/* Shawn Ostapuk Photography: editorial, dark, image-first. Mobile first.
   Headings: Cormorant Garamond. Text and labels: Inter. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url(/assets/CormorantGaramond-latin.2dc2bd49bd.woff2) format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/assets/InterVariable-latin.8d362825e3.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/assets/InterVariable-Italic-latin.a96200f192.woff2) format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #0d0d0d;
  --bg-raised: #191919;
  --fg: #ededed;          /* 16.9:1 on --bg */
  --muted: #ababab;       /*  8.6:1 */
  --faint: #8e8e8e;       /*  6.0:1 */
  --line: #262626;
  --pad: clamp(1rem, 4.5vw, 4rem);
  --max: 1720px;
  --row: 110px;           /* justified-row target height (2 across on phones) */
  --gap: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 640px)  { :root { --row: 220px; --gap: 8px; } }
@media (min-width: 1200px) { :root { --row: 300px; --gap: 10px; } }
@media (min-width: 2200px) { :root { --row: 400px; --gap: 12px; --max: 2800px; } }
@media (min-width: 3000px) { :root { --row: 520px; --gap: 14px; --max: 3500px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg); color: var(--fg); font-family: var(--sans);
  font-size: 100%; line-height: 1.65; -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern", "calt"; text-rendering: optimizeLegibility;
}
@media (min-width: 2200px) { html { font-size: 125%; } }
@media (min-width: 3000px) { html { font-size: 150%; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column;
       overflow-x: clip; }  /* full-bleed heroes/banners are 100vw, which counts a classic scrollbar */
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 6rem; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(237, 237, 237, 0.3);
    text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: #000; padding: 0.5rem 1rem; }

/* ---------- type ---------- */
h1, h2, .hero-title, .card-title, .footer-wordmark {
  font-family: var(--serif); font-weight: 300; letter-spacing: 0.005em; line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); margin: 0; }
h2 a { text-decoration: none; }
h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 0.6rem; line-height: 1.4;
}
.label a { text-decoration: none; color: inherit; }
.label a:hover { color: var(--fg); }
.meta { color: var(--faint); font-size: 0.85rem; margin: 0.4rem 0 0; font-variant-numeric: tabular-nums; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 44rem; margin: 2.5rem 0 0; }
.prose { max-width: 42rem; color: var(--muted); margin-top: 2.5rem; }
.prose p { margin: 0 0 1rem; }
.prose h2 { font-size: 1.8rem; margin: 3rem 0 1rem; color: var(--fg); }
.prose .big { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; color: var(--fg); }
.crumbs { font-size: 0.8rem; color: var(--faint); margin: 1.25rem 0 0; letter-spacing: 0.04em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* ---------- header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; width: 100%; max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--pad);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.8rem; }
.wordmark-mark { display: block; height: 2.2rem; width: auto; }
.wordmark { text-decoration: none; font-weight: 500; font-size: 0.78rem;
            letter-spacing: 0.24em; text-transform: uppercase; }
.site-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); font-size: 0.78rem;
            letter-spacing: 0.16em; text-transform: uppercase; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px currentColor; }
/* over a hero or banner: transparent, white */
.overlay-header .site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10; max-width: none;
  background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
}
.overlay-header .site-nav a, .overlay-header .wordmark { color: #fff; }
.overlay-header .site-nav a:not([aria-current]) { color: rgba(255, 255, 255, 0.82); }
/* Portfolio · All photographs (two views; the web server keeps the choice) */
.view-switch { display: flex; gap: 0; font-size: 0.68rem; letter-spacing: 0.14em;
               text-transform: uppercase; border: 1px solid var(--line, #333); border-radius: 999px; }
.view-switch a { padding: 0.3rem 0.8rem; color: var(--muted); text-decoration: none; border-radius: 999px; }
.view-switch a[aria-current] { background: var(--fg); color: var(--bg); }
.view-switch a { display: inline-flex; align-items: center; gap: 0.45rem; }
/* small stars: more = more selective (Portfolio fullest) */
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 0.62rem; height: 0.62rem; fill: currentColor; }
.stars svg.off { opacity: 0.25; }
.overlay-header .view-switch { border-color: rgba(255, 255, 255, 0.45); }
.overlay-header .view-switch a:not([aria-current]) { color: rgba(255, 255, 255, 0.85); }
.overlay-header .view-switch a[aria-current] { background: #fff; color: #000; }
.view-switch a { white-space: nowrap; }
@media (max-width: 640px) {
  .view-switch { order: 3; width: 100%; justify-content: space-between; font-size: 0.62rem;
                 letter-spacing: 0.08em; }
  .view-switch a { padding: 0.35rem 0.6rem; gap: 0.35rem; }
  .stars svg.off { display: none; }
}


/* ---------- home hero ---------- */
/* The dark gradients over photos (hero, banner, card) carry noise.png on top:
   darkening a smooth dark background in 8 bits shows bands; the noise
   (0-2 levels, assets.noise_png) breaks them up. */
/* full-bleed: the window's width, not main's (main stops at --max, which left
   dark bands at the sides that snapped shut at each --max step) */
.hero { position: relative; margin: 0 calc(50% - 50vw); height: 100vh; height: 100svh;
        min-height: 30rem; overflow: hidden; background: #000; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
               background: url(/assets/noise.5a7ce0e0fd.png), linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7)); }
.hero-text { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(3rem, 10vh, 7rem);
             z-index: 2; color: #fff; }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 7rem); margin: 0; }
.hero-tagline { font-size: clamp(1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, 0.85);
                margin: 0.75rem 0 0; max-width: 36rem; }
.hero-credit { position: absolute; right: var(--pad); bottom: 1.25rem; z-index: 2;
               font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.hero-credit:hover { color: #fff; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.1rem; z-index: 2; width: 1px; height: 2.5rem;
              background: rgba(255, 255, 255, 0.6); }
@media (max-width: 700px) {
  .scroll-cue { display: none; }
  .hero-credit { left: var(--pad); text-align: left; bottom: 1rem; }
  .hero-text { bottom: clamp(4.5rem, 12vh, 7rem); }
}

/* ---------- banner (place / country / animal pages) ---------- */
/* full-bleed, like .hero */
.banner { position: relative; margin: 0 calc(50% - 50vw); height: 68vh; height: 68svh;
          min-height: 22rem; overflow: hidden; background: #000; }
/* phones: a 4:3 box keeps most of a landscape photo (68% of a tall screen cut most of it) */
@media (max-width: 640px) {
  .banner { height: auto; min-height: 15rem; aspect-ratio: 4 / 3; }
  /* the header sits above a banner on phones instead of covering half of it */
  .overlay-header:has(.banner) .site-header { position: static; background: none; }
}
.banner picture, .banner-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-img { object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                 background: url(/assets/noise.5a7ce0e0fd.png),
                             linear-gradient(rgba(0, 0, 0, 0.25), transparent 30%, transparent 45%, rgba(0, 0, 0, 0.75)); }
.banner-text { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(2rem, 6vh, 4rem);
               z-index: 2; color: #fff; }
.banner-text .label { color: rgba(255, 255, 255, 0.8); }
.banner-meta { margin: 0.75rem 0 0; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; letter-spacing: 0.04em; }

.page-head { padding: clamp(2rem, 6vw, 5rem) 0 0; }

/* ---------- sections ---------- */
.section { margin-top: clamp(4rem, 8vw, 7rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
                gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.more-link { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
             color: var(--muted); text-decoration: none; white-space: nowrap; }
.more-link:hover { color: var(--fg); }

/* ---------- justified rows (flex-grow / basis from ratios.css .ar-*) ---------- */
.rows { display: flex; flex-wrap: wrap; gap: var(--gap); margin: 2rem 0 0; }
.section-head + .rows { margin-top: 0; }
.rows::after { content: ""; flex-grow: 1000000; }
.tile { display: grid; position: relative; overflow: hidden; background: var(--bg-raised);
        text-decoration: none; }
.tile > * { grid-area: 1 / 1; display: block; width: 100%; height: auto; }
.tile .ph { filter: blur(14px); transform: scale(1.12); }
.tile picture { position: relative; z-index: 1; }
.tile picture img { display: block; width: 100%; height: auto; }

/* hover titles (pointer devices) */
.tile-title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; align-self: end;
              padding: 2.5rem 1rem 0.8rem; color: #fff; font-size: 0.85rem; line-height: 1.3;
              background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
              opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none; }
@media (hover: hover) {
  .tile:hover .tile-title, .tile:focus-visible .tile-title,
  .mosaic-item:hover .tile-title, .mosaic-item:focus-visible .tile-title { opacity: 1; }
  .tile picture img, .mosaic-item img, .card img { transition: transform 0.9s var(--ease), opacity 0.6s var(--ease); }
  .tile:hover picture img { transform: scale(1.025); }
}

/* ---------- mosaic (home: selected work) ---------- */
.mosaic { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr);
          grid-auto-rows: 42vw; margin-top: 2rem; }
.mosaic-item { position: relative; overflow: hidden; background: var(--bg-raised); display: block; }
.mosaic-item picture, .mosaic-item img { display: block; width: 100%; height: 100%; }
.mosaic-item img { object-fit: cover; }
.mosaic-item.big { grid-column: span 2; grid-row: span 2; }
.mosaic-item .tile-title { padding-top: 3rem; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 17vw, 520px); }
  @media (hover: hover) { .mosaic-item:hover img { transform: scale(1.03); } }
}

/* ---------- cards: alternating wide / narrow, title on the photo ---------- */
.cards { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: 2rem; }
.section-head + .cards { margin-top: 0; }
.card { position: relative; display: block; overflow: hidden; text-decoration: none;
        background: var(--bg-raised); aspect-ratio: 4 / 3; }
.card picture, .card img { display: block; width: 100%; height: 100%; }
.card img { object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
               background: url(/assets/noise.5a7ce0e0fd.png), linear-gradient(transparent 45%, rgba(0, 0, 0, 0.72)); }
.card-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1rem, 2.5vw, 2rem);
             color: #fff; display: flex; flex-direction: column; }
.card-text .label { color: rgba(255, 255, 255, 0.8); }
.card-title { font-size: clamp(1.8rem, 3.2vw, 3rem); }
.card-meta { font-size: 0.8rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.78); margin-top: 0.4rem; }
@media (hover: hover) { .card:hover img { transform: scale(1.035); } }
@media (min-width: 800px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
  .card { aspect-ratio: auto; height: clamp(18rem, 30vw, 44rem); grid-column: span 2; }
  .card:nth-child(4n + 1), .card:nth-child(4n + 4) { grid-column: span 3; }
  .card:only-child, .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- photo page ---------- */
.photo-page .single { margin: 0 calc(-1 * var(--pad)); padding: clamp(0.5rem, 2vw, 2rem) var(--pad);
                      background: #000; display: flex; justify-content: center; }
.single a { display: block; cursor: zoom-in; }
/* prev/next arrows over the photo (site.js): appear while the mouse moves */
.photo-page .single { position: relative; }
.single .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer; opacity: 0;
  transition: opacity 0.35s var(--ease), background 0.2s; }
.single .nav-arrow.prev { left: max(0.75rem, calc(var(--pad) - 1.6rem)); }
.single .nav-arrow.next { right: max(0.75rem, calc(var(--pad) - 1.6rem)); }
.single .nav-arrow svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.single.arrows .nav-arrow, .single .nav-arrow:focus-visible { opacity: 1; }
.single .nav-arrow:hover { background: rgba(0, 0, 0, 0.7); }
@media (hover: none) { .single .nav-arrow { display: none; } }
.single img { display: block; width: auto; height: auto; max-width: 100%; max-height: 86vh; }
.photo-info { display: grid; gap: 2rem 5rem; margin: clamp(2rem, 5vw, 4rem) 0 0; }
@media (min-width: 960px) { .photo-info { grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr); } }
.photo-main h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.species { margin: 0.6rem 0 0; color: var(--muted); font-size: 1.05rem; }
.species i { color: var(--muted); }
.caption { margin: 1.5rem 0 0; max-width: 42rem; color: var(--fg); font-size: 1.05rem; }
.setting { margin: 1rem 0 0; color: var(--faint); font-size: 0.85rem; }
.details { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.5rem;
           font-size: 0.88rem; align-content: start; padding-top: 1.75rem; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .details { margin-top: 0.4rem; } }
.details dt { color: var(--faint); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; padding-top: 0.2rem; }
.details dd { margin: 0; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
         margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 1.5rem 0; border-top: 1px solid var(--line);
         border-bottom: 1px solid var(--line); }
.pager-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--muted); }
.pager-link.next { justify-content: flex-end; text-align: right; }
.pager-link:hover { color: var(--fg); }
.pager-link img { width: clamp(64px, 9vw, 120px); height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.pager-link .label { display: block; margin-bottom: 0.2rem; }
.pager .pos { text-align: center; color: var(--faint); font-size: 0.8rem; letter-spacing: 0.06em; }
.pager .pos a { color: var(--muted); text-decoration: none; }
@media (max-width: 640px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .pos { grid-column: 1 / -1; grid-row: 2; }
  .pager-link img { display: none; }
}

/* ---------- footer ---------- */
.site-footer { width: 100%; max-width: var(--max); margin: 0 auto; padding: 4rem var(--pad) 2.5rem;
               border-top: 1px solid var(--line); display: grid; gap: 2.5rem 3rem;
               grid-template-columns: 1fr; font-size: 0.88rem; color: var(--muted); }
@media (min-width: 800px) { .site-footer { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-wordmark { font-size: 1.9rem; text-decoration: none; color: var(--fg); }
.footer-logo { display: inline-flex; align-items: center; gap: 0.9rem; color: var(--fg); text-decoration: none;
               font-size: 1.05rem; font-weight: 500; letter-spacing: 0.02em; }
.footer-logo img { display: block; height: 3.6rem; width: auto; opacity: 0.92; }
.footer-brand p { margin: 0.6rem 0 0; color: var(--faint); max-width: 22rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--fg); }
.footer-legal { grid-column: 1 / -1; margin: 1rem 0 0; color: var(--faint); font-size: 0.78rem; }

/* ---------- images fade in once loaded (early.js adds .js and .loaded) ---------- */
.js .fade { opacity: 0; transition: opacity 0.7s var(--ease); }
.js .fade.loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .js .fade { opacity: 1; }
}

/* ---------- species index ---------- */
.species-jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.species-jump a { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
                  color: var(--muted); text-decoration: none; }
.species-jump a:hover { color: var(--fg); }
.species-jump span { color: var(--faint, var(--muted)); margin-left: 0.25rem; }
.species-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem var(--gap);
                grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .species-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .species-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .species-grid { grid-template-columns: repeat(6, 1fr); } }
.species-item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.species-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-raised);
                 margin-bottom: 0.7rem; }
.species-thumb picture, .species-thumb img { display: block; width: 100%; height: 100%; }
.species-thumb img { object-fit: cover; }
/* tiny subject (critique): zoom in around the focal point (.fp-* sets the origin) */
.species-thumb.zoom img { transform: scale(1.7); }
.species-name { font-size: 0.98rem; line-height: 1.3; }
.species-sci { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.species-count { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.3rem; }
@media (hover: hover) {
  .species-thumb img { transition: transform 0.9s var(--ease); }
  .species-item:hover .species-thumb img { transform: scale(1.04); }
  .species-item:hover .species-name { text-decoration: underline; text-underline-offset: 0.2em; }
}
.species-back { margin: 1.5rem 0 0; }

/* species IDs nobody has confirmed yet */
.unverified { color: var(--faint); font-style: normal; font-size: 0.85em; letter-spacing: 0.02em; }
.species-modes { margin: 1rem 0 0; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.species-modes a { color: var(--muted); text-decoration: none; }
.species-modes a:hover { color: var(--fg); }
.species-modes [aria-current] { color: var(--fg); }
/* IUCN category: quiet, a warmer tone the more threatened */
.iucn { display: inline-block; padding: 0 0.35em; border: 1px solid currentColor; border-radius: 3px;
        font: 600 0.62rem/1.5 var(--sans); letter-spacing: 0.08em; text-decoration: none; vertical-align: 0.15em;
        color: var(--faint); font-style: normal; }
.iucn-VU { color: #c9b27a; } .iucn-EN { color: #d79a6a; } .iucn-CR, .iucn-EW { color: #e0806b; }
.species-facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 1.5rem 0 2rem; }
.species-facts dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.species-facts dd { margin: 0.2rem 0 0; color: var(--muted); }
.species-facts a { color: var(--fg); }
.faint { color: var(--faint); }
.life-list { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.life-list th { text-align: left; font: 500 0.72rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
                color: var(--faint); padding: 0 1rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.life-list td { padding: 0.65rem 1rem 0.65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.life-list td a { color: var(--fg); text-decoration: none; }
.life-list td a:hover { text-decoration: underline; }
.life-list td a.where { color: var(--muted); }
.life-list .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.life-list .sci { font-size: 0.85rem; }
@media (max-width: 640px) { .life-list .opt { display: none; } }

/* search */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-search { display: inline-flex; align-items: center; }
.nav-search svg { display: block; }
.search-input { width: min(40rem, 100%); margin-top: 1rem; padding: 0.7rem 0.9rem; font: 1.15rem var(--sans);
                color: var(--fg); background: var(--bg-raised); border: 1px solid var(--line); border-radius: 6px; }
.search-input:focus { outline: 2px solid var(--muted); outline-offset: 2px; }
.search-status { color: var(--muted); margin: 0.8rem 0 0; min-height: 1.5em; }
.search-results { padding-bottom: 2rem; }
.search-group { margin-top: 2rem; }
.search-list { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.5rem 1.5rem;
               grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.search-list a { display: flex; gap: 0.8rem; align-items: center; color: var(--fg); text-decoration: none; }
.search-list img { width: 4.5rem; height: 3rem; object-fit: cover; border-radius: 2px; background: var(--bg-raised); }
.search-list a:hover .search-name { text-decoration: underline; text-underline-offset: 0.2em; }
.search-text { display: flex; flex-direction: column; min-width: 0; }
.search-detail { color: var(--muted); font-size: 0.85rem; }
.search-photos { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: var(--gap);
                 grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.search-photos a { display: block; color: var(--fg); text-decoration: none; }
.search-photos img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-raised); }
.search-photos .search-text { padding: 0.3rem 0 0.4rem; font-size: 0.85rem; }
.search-photos .search-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-more { color: var(--faint); font-size: 0.85rem; }

/* stories */
.story { max-width: 75rem; margin: 0 auto; }
.story > .lede { margin-left: auto; margin-right: auto; max-width: 42rem; }
.story-text { max-width: 42rem; margin: 0 auto; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.story-text p { margin: 1.4rem 0 0; }
.story-text h2, .story-text h3 { color: var(--fg); margin: 3rem 0 0; }
.story-text a { color: var(--fg); }
.story-text blockquote { margin: 2rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--line);
                         font-family: var(--serif); font-size: 1.35rem; color: var(--fg); }
.story-text ul { padding-left: 1.2rem; margin: 1.2rem 0 0; }
.story-photo { margin: 3rem 0 0; }
.story-photo img { display: block; width: 100%; height: auto; }
.story-photo figcaption { color: var(--faint); font-size: 0.85rem; margin-top: 0.5rem; }
.story-row { margin-top: 3rem; }
.confirmed { font-size: 0.85rem; color: var(--muted); }

/* rotating tagline: hidden for a moment while site.js picks one (early.js unhides it after 2 s regardless) */
.js body[data-taglines] [data-tagline] { opacity: 0; transition: opacity 0.4s var(--ease); }
.js body[data-taglines] [data-tagline].shown { opacity: 1; }
