/* ===================================================================
  GLASS GARDEN FINS - design tokens
   Palette pulled from the subject itself: deep tank water, driftwood
   tannin, plant foliage, and the pale glint of light on the surface.
   =================================================================== */

:root {
  --color-bg:          #0A1614;   /* deep tank water */
  --color-bg-alt:      #0F2320;   /* slightly lifted water panel */
  --color-bg-panel:    #16110C;   /* substrate — dark warm brown-black */
  --color-text:        #E7EEEC;
  --color-text-muted:  #93A8A3;
  --color-text-faint:  #7A8B87;

  --color-amber:       #C68A4B;   /* tannin / driftwood */
  --color-amber-soft:  #8C6238;
  --color-home-orange: #F0A34A;
  --color-green:       #5C8A62;   /* plant growth */
  --color-green-soft:  #3E5E43;
  --color-surface:     #DCEEE8;   /* surface highlight */

  --color-border:      rgba(220, 238, 232, 0.12);
  --color-border-soft: rgba(220, 238, 232, 0.07);

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body:    'Literata', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --wrap-width: 1080px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================================
   Reset / base
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  text-transform: lowercase;
}

body *:not(.entry):not(.entry *) {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: lowercase;
}

.preserve-case {
  text-transform: none !important;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: var(--color-surface);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  z-index: 999;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.wrap {
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin: 0 0 var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

.section-title--compact {
  margin-bottom: var(--space-2);
}

.note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

/* ===================================================================
   Header
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0A1614;
  border-bottom: 1px solid var(--color-border-soft);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .site-header {
    background: rgba(10, 22, 20, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 4.25rem;
  padding-block: 1.25rem;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-nav a { text-decoration: none; color: var(--color-text-muted); }
.site-nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 0.75rem;
}
.site-nav a:hover { color: var(--color-surface); }
.site-nav a[aria-current="page"] {
  color: var(--color-surface);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ===================================================================
   Hero
   =================================================================== */

.hero {
  position: relative;
  padding-top: 1.9rem;
  padding-bottom: var(--space-4);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(92, 138, 98, 0.10), transparent 70%),
    var(--color-bg);
}

.hero__inner { position: relative; z-index: 2; text-align: center; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1.05;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}

.hero__tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 34em;
  margin-inline: auto;
}

.site-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-panel);
}

.site-media img,
.site-media video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-bg-deep);
}

.site-media video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.site-media figcaption {
  padding: 0.65rem 0.8rem;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: left;
}

.hero-photo,
.hero-montage {
  max-width: 56rem;
  margin: var(--space-4) auto 0;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.26);
}

.hero-montage {
  cursor: pointer;
}

.hero-montage:focus-visible {
  outline-color: var(--color-home-orange);
}

.hero-photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-montage__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.site-media .hero-montage__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.site-media .hero-montage__clip.is-active {
  z-index: 1;
  opacity: 1;
}

.skip-link {
  border: 1px solid var(--color-home-orange);
  background: var(--color-bg-deep);
  color: var(--color-home-orange);
}

.wordmark,
.site-nav a,
.hero__title,
.section-title,
.journal-card__title,
.entry__tag,
.eyebrow,
.site-footer a {
  color: var(--color-home-orange);
}

.tank-scene {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 16 / 7;
  margin: var(--space-4) auto 0;
  overflow: hidden;
  border: 1px solid rgba(220, 238, 232, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(220, 238, 232, 0.16), transparent 24%),
    radial-gradient(circle at 20% 15%, rgba(198, 138, 75, 0.20), transparent 30%),
    linear-gradient(180deg, #173a36 0%, #102623 58%, #15100b 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tank-scene::before {
  content: '';
  position: absolute;
  inset: 11% 5% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 238, 232, 0.7), transparent);
}

.tank-scene__water,
.tank-scene__light,
.tank-scene__bubbles,
.tank-scene__plant,
.tank-scene__wood,
.tank-scene__fish,
.tank-scene__shrimp,
.tank-scene__substrate { position: absolute; }

.tank-scene__water {
  inset: 0;
  background: repeating-linear-gradient(160deg, transparent 0 22px, rgba(220, 238, 232, 0.035) 23px 24px);
  opacity: 0.55;
}

.tank-scene__light {
  top: -16%;
  left: 18%;
  width: 22%;
  height: 130%;
  background: linear-gradient(90deg, transparent, rgba(220, 238, 232, 0.10), transparent);
  transform: rotate(12deg);
}

.tank-scene__substrate {
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background:
    radial-gradient(circle at 10% 30%, rgba(198, 138, 75, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 45%, rgba(220, 238, 232, 0.13) 0 1px, transparent 2px),
    linear-gradient(180deg, #23180f, #120d08);
}

.tank-scene__plant { bottom: 15%; width: 26%; height: 58%; }
.tank-scene__plant--left { left: 8%; }
.tank-scene__plant--right { right: 8%; transform: scaleX(-1); }

.tank-scene__plant span {
  position: absolute;
  bottom: 0;
  width: 10px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #79a76e, #315839);
  transform-origin: bottom center;
}

.tank-scene__plant span:nth-child(1) { left: 18%; height: 82%; transform: rotate(-8deg); }
.tank-scene__plant span:nth-child(2) { left: 42%; height: 100%; transform: rotate(5deg); }
.tank-scene__plant span:nth-child(3) { left: 64%; height: 70%; transform: rotate(13deg); }

.tank-scene__wood {
  left: 30%;
  bottom: 17%;
  width: 31%;
  height: 13%;
  border-radius: 55% 35% 45% 20%;
  background: linear-gradient(135deg, #6f4727, #2a190d 72%);
  transform: rotate(-7deg);
  box-shadow: inset 12px 0 22px rgba(255, 221, 170, 0.08);
}

.tank-scene__fish {
  right: 25%;
  top: 40%;
  width: 13%;
  height: 13%;
  border-radius: 64% 40% 54% 46%;
  background: linear-gradient(90deg, #b35f46, #253d3d);
  box-shadow: 18px 4px 0 -8px rgba(179, 95, 70, 0.75);
}

.tank-scene__fish::before {
  content: '';
  position: absolute;
  right: -22%;
  top: 18%;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent rgba(179, 95, 70, 0.72);
}

.tank-scene__shrimp {
  left: 20%;
  bottom: 22%;
  width: 8%;
  height: 6%;
  border: 2px solid rgba(220, 238, 232, 0.72);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.tank-scene__shrimp::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 45%;
  width: 18px;
  height: 1px;
  background: rgba(220, 238, 232, 0.55);
  transform: rotate(22deg);
}

.tank-scene__bubbles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(220, 238, 232, 0.48);
  border-radius: 50%;
}

.tank-scene__bubbles span:nth-child(1) { left: 55%; top: 58%; }
.tank-scene__bubbles span:nth-child(2) { left: 57%; top: 44%; width: 4px; height: 4px; }
.tank-scene__bubbles span:nth-child(3) { left: 54%; top: 31%; width: 8px; height: 8px; }
.tank-scene__bubbles span:nth-child(4) { left: 58%; top: 20%; width: 3px; height: 3px; }

/* floating bubbles — restrained, slow, ambient only */
.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__bubbles span {
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(220,238,232,0.55), rgba(220,238,232,0.05));
  animation: rise linear infinite;
  opacity: 0;
}

.hero__bubbles span:nth-child(1) { left: 8%;  width: 4px;  height: 4px;  animation-duration: 14s; animation-delay: 0s; }
.hero__bubbles span:nth-child(2) { left: 18%; width: 7px;  height: 7px;  animation-duration: 19s; animation-delay: 2s; }
.hero__bubbles span:nth-child(3) { left: 34%; width: 3px;  height: 3px;  animation-duration: 16s; animation-delay: 5s; }
.hero__bubbles span:nth-child(4) { left: 52%; width: 5px;  height: 5px;  animation-duration: 21s; animation-delay: 1s; }
.hero__bubbles span:nth-child(5) { left: 67%; width: 4px;  height: 4px;  animation-duration: 17s; animation-delay: 7s; }
.hero__bubbles span:nth-child(6) { left: 81%; width: 6px;  height: 6px;  animation-duration: 20s; animation-delay: 3s; }
.hero__bubbles span:nth-child(7) { left: 92%; width: 3px;  height: 3px;  animation-duration: 15s; animation-delay: 9s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0);    opacity: 0; }
  8%   { opacity: 0.5; }
  92%  { opacity: 0.35; }
  100% { transform: translateY(-92vh) translateX(14px); opacity: 0; }
}

/* the surface line - signature element */
.surface-line {
  position: relative;
  z-index: 2;
  margin-block: var(--space-4);
  height: 40px;
}

.surface-line__svg {
  width: 100%;
  height: 60px;
  overflow: visible;
}

.surface-line__line {
  fill: none;
  stroke: url(#surfaceLineGradient);
  stroke-width: 1.5;
  stroke-linecap: round;
  animation: shimmer 10s var(--ease) infinite alternate;
}

.surface-line__glow {
  fill: none;
  stroke: var(--color-surface);
  stroke-width: 8;
  stroke-linecap: round;
  opacity: 0.06;
  filter: blur(4px);
}

@keyframes shimmer {
  0%   { stroke-width: 1.2; opacity: 0.75; }
  100% { stroke-width: 1.8; opacity: 1; }
}

.readout {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.readout__item {
  text-align: center;
}

.readout__item:not(:last-child) { margin-right: var(--space-4); }

.readout__item dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 0.3rem;
}

.readout__item dd {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--color-surface);
  margin: 0;
}

.page-main {
  min-height: calc(100vh - 120px);
}

.page-hero {
  padding-block: 1.9rem var(--space-2);
}

.page-hero__lead {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 64ch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* section dividers - smaller echo of the surface motif */
.divider {
  line-height: 0;
  color: var(--color-border);
}

.divider svg {
  width: 100%;
  height: 24px;
}

.divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

/* ===================================================================
   Tank section
   =================================================================== */

.tank {
  padding-block: var(--space-5);
  background: var(--color-bg-alt);
}

.tank__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.tank-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 54rem;
  margin: 0 auto var(--space-4);
}

.tank-media-grid img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.tank-media-grid video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.spec-card {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  padding: var(--space-3);
}

.spec-card__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green);
  margin: 0 0 var(--space-2);
}

.spec-card__title--spaced { margin-top: var(--space-3); }

.spec-list {
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.spec-list__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border-soft);
}

.spec-list__row:last-child { border-bottom: none; padding-bottom: 0; }

.spec-list__row dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.spec-list__row dd {
  margin: 0;
  font-size: 0.95rem;
}

.plant-list {
  list-style: none;
  margin: 0 0 var(--space-1);
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.plant-list li {
  font-size: 0.95rem;
  padding-left: 1.1rem;
  position: relative;
}

.plant-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-green);
}

.stocking-plan {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.stocking-plan li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-muted);
}

.stocking-plan li.is-done {
  border-color: var(--color-green);
  color: var(--color-surface);
}

.stocking-plan li:not(:last-child)::after {
  content: '→';
  margin-left: 0.6rem;
  color: var(--color-text-faint);
}

.stocking-plan--current li::after {
  display: none;
}

.equipment-link,
.purchase-list a {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  color: var(--color-surface);
  text-decoration-color: var(--color-amber);
}

.equipment-link:hover,
.purchase-list a:hover {
  color: var(--color-amber);
}

.purchase-history {
  margin-top: var(--space-5);
}

.purchase-timeline {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.purchase-day {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.purchase-day time {
  color: var(--color-amber);
  font-size: 0.82rem;
  font-weight: 600;
}

.purchase-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.purchase-list li {
  color: var(--color-text-muted);
}

.purchase-note {
  color: var(--color-text-faint);
  font-size: 0.82rem;
}

/* ===================================================================
   Species catalog
   =================================================================== */

.species {
  padding-block: var(--space-4) var(--space-5);
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.species-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-panel);
}

.species-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.species-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.species-video-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 0.25rem;
  padding: var(--space-2);
  background:
    radial-gradient(circle at 25% 30%, rgba(92, 138, 98, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(220, 238, 232, 0.04), transparent 58%),
    var(--color-bg-alt);
  font-family: var(--font-mono);
  text-align: center;
}

.species-video-placeholder::before {
  content: '▶';
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.45rem;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 0.75rem;
}

.species-video-placeholder span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.species-video-placeholder strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.species-card__body {
  padding: var(--space-3);
}

.species-card__count {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.species-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}

.species-card__scientific {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.species-card__note {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
}

/* ===================================================================
   Journal section
   =================================================================== */

.journal { padding-block: var(--space-5); }

.journal--index {
  padding-top: var(--space-3);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.journal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(220, 238, 232, 0.035), transparent 55%),
    var(--color-bg-panel);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.journal-card:first-child {
  border-color: rgba(198, 138, 75, 0.3);
  background:
    linear-gradient(105deg, rgba(198, 138, 75, 0.12), transparent 52%),
    var(--color-bg-panel);
}

.journal-card__link {
  display: grid;
  min-height: 6.5rem;
  padding: 1.35rem 3.25rem 1.35rem 1.4rem;
  text-decoration: none;
}

.journal-card:hover {
  border-color: var(--color-amber-soft);
  transform: translateY(-2px);
}

.journal-card__link:hover .journal-card__title {
  color: var(--color-amber);
}

.journal-card__link::after {
  content: '→';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  color: var(--color-text-faint);
  font-size: 1.1rem;
  transform: translateY(-50%);
  transition: color 180ms ease, transform 180ms ease;
}

.journal-card__link:hover::after {
  color: var(--color-amber);
  transform: translate(0.2rem, -50%);
}

.journal-card__title {
  display: -webkit-box;
  align-self: end;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: var(--color-surface);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
  transition: color 180ms ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.journal-card .entry__meta {
  align-self: start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.journal-card .entry__tag {
  margin-right: 0;
  color: var(--color-amber);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.journal-card .entry__date {
  color: var(--color-text-faint);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.journal-card__excerpt {
  max-width: 62ch;
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
}

.journal-card__cta {
  color: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journal-card__cta::after {
  content: ' →';
  color: var(--color-amber);
}

.entries {
  display: grid;
  gap: var(--space-4);
}

.entry {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-body);
  text-transform: none;
}

.entry:first-child { border-top: none; padding-top: 0; }

.entry__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.entry__tag {
  color: var(--color-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: var(--space-2);
}

.entry__date {
  color: var(--color-text-faint);
}

.entry__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.entry p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 62ch;
}

.entry p + p {
  margin-top: var(--space-2);
}

.entry p em, .entry p i { color: var(--color-text); }

.entry__dek {
  color: var(--color-text);
  font-size: 1.05rem;
}

.entry__section {
  margin-top: var(--space-4);
}

.entry-media {
  max-width: 100%;
  margin: var(--space-3) 0;
}

.entry-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

.entry-media-grid .site-media {
  margin: 0;
}

.entry-media-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.entry__section h3 {
  max-width: 32ch;
  margin: 0 0 var(--space-2);
  color: var(--color-surface);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
}

.entry__closing {
  margin-top: var(--space-4) !important;
  color: var(--color-home-orange) !important;
  font-style: italic;
}

.related-guides {
  max-width: 62ch;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.related-guides h2 {
  margin: 0 0 var(--space-2);
  color: var(--color-surface);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.related-guides ul {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding-left: 1.25rem;
}

.related-guides a {
  color: var(--color-surface);
  text-underline-offset: 0.18em;
}

.eyebrow__link {
  display: inline-flex;
  min-height: 44px;
  align-items: flex-start;
  text-decoration-color: var(--color-amber-soft);
}

.affiliate-disclosure {
  margin-top: var(--space-3) !important;
  padding: var(--space-2);
  border-left: 2px solid var(--color-amber-soft);
  color: var(--color-home-orange) !important;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.product-box {
  max-width: 62ch;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-panel);
}

.product-box h2,
.product-box h4 {
  margin: 0 0 var(--space-1);
  color: var(--color-surface);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.product-box p {
  font-size: 0.9rem;
}

.product-box__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.product-box--compact .product-box__list {
  grid-template-columns: 1fr;
}

.product-box__list li {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 238, 232, 0.08);
  border-radius: 7px;
  background: rgba(5, 22, 19, 0.38);
}

.product-box__list a {
  display: grid;
  min-height: 44px;
  color: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.product-box__list a:hover {
  color: var(--color-amber);
}

.product-box__name {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.75rem;
  text-decoration: underline;
  text-decoration-color: var(--color-amber);
  text-underline-offset: 0.2em;
}

.product-box__note {
  display: block;
  padding: 0 0.75rem 0.85rem;
  color: var(--color-text-faint);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ===================================================================
   Page nav — homepage links out to subpages
   =================================================================== */

.page-nav { padding-block: var(--space-5); }

.page-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-4);
}

.page-nav__link {
  display: block;
  height: 100%;
  padding: var(--space-3);
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  text-decoration: none;
}

.page-nav__link:hover { border-color: var(--color-border); }

.page-nav__link:hover .page-nav__title { color: var(--color-surface); }

.page-nav__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.page-nav__title::after {
  content: ' →';
  color: var(--color-amber);
}

.page-nav__desc {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.page-nav--subpage {
  padding-top: 0;
}

.home-update {
  padding-bottom: var(--space-5);
}

.content-card {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  padding: var(--space-3);
}

.home-update__text {
  margin-top: 0;
  margin-bottom: var(--space-2);
  max-width: 65ch;
  color: var(--color-text-muted);
}

.inline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.equipment-link,
.purchase-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* ===================================================================
   Footer
   =================================================================== */

.site-footer {
  border-top: 1px solid var(--color-border-soft);
  padding-block: var(--space-3);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-footer__meta {
  display: grid;
  justify-items: end;
}

.site-footer__updated {
  color: var(--color-text-faint);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.back-to-top { text-decoration: none; }
.back-to-top:hover { color: var(--color-surface); }

/* ===================================================================
   Responsive
   =================================================================== */

@media (max-width: 760px) {
  :root {
    --wrap-width: 100%;
    --space-5: 3.5rem;
    --space-6: 5rem;
  }

  .tank__grid { grid-template-columns: 1fr; }

  .tank-media-grid { grid-template-columns: 1fr; }

  .entry-media-grid { grid-template-columns: 1fr; }

  .species-grid { grid-template-columns: 1fr; }

  .page-nav__list { grid-template-columns: 1fr; }

  .product-box__list { grid-template-columns: 1fr; }

  .journal-grid { grid-template-columns: 1fr; }

  .journal-card__link {
    min-height: 7.5rem;
  }

  .journal-card__title {
    -webkit-line-clamp: 2;
  }

  .purchase-day { grid-template-columns: 1fr; gap: var(--space-1); }

  .site-nav { gap: 0.25rem; }

  .readout { gap: var(--space-3); }

  .spec-list__row { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (max-width: 420px) {
  :root {
    --space-3: 1.25rem;
    --space-4: 2.25rem;
    --space-5: 3rem;
    --space-6: 4rem;
  }

  .site-header__inner {
    align-items: stretch;
    flex-direction: column;
    padding-block: 0.75rem;
  }
  .site-nav {
    justify-content: space-between;
    gap: var(--space-1);
  }
  .site-nav a { padding-inline: 0.35rem; }
  .hero,
  .page-hero { padding-top: 1.5rem; }
  .journal--index { padding-top: var(--space-2); }
  .journal-grid { gap: 0.6rem; }
  .journal-card__link {
    min-height: 0;
    padding: 1rem 2.7rem 1rem 1rem;
  }
  .journal-card .entry__meta { margin-bottom: 0.75rem; }
  .journal-card__link::after { right: 1rem; }
  .site-footer__row,
  .site-footer__links { align-items: flex-start; }
  .site-footer__meta { justify-items: start; }
  .site-footer__links { flex-direction: column; gap: 0; }
}

/* ===================================================================
   Reduced motion
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__bubbles span { animation: none; display: none; }
  .site-media .hero-montage__clip { transition: none; }
  .surface-line__line { animation: none; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
