:root {
  --sand: #f6f1e7;
  --sand-2: #ece3d2;
  --salt: #fffdf8;
  --ink: #1c2626;
  --ink-2: #48514e;
  --line: #d9cdb6;
  --sea: #1d6763;
  --sea-deep: #134744;
  --sea-pale: #e2eeeb;
  --lime: #8fb339;
  --ph: #e6dbc6;
  --ph-ink: #4d4535;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--sea-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { text-wrap: balance; font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 68rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--salt); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Top bar */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; gap: 12px; }
.top img { width: 36px; height: 36px; }
.top span { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }

/* Hero */
.hero { padding: 12px 0 40px; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sea-deep); margin-bottom: .7em; }
.lede { font-size: 1.25rem; color: var(--ink-2); max-width: 36rem; }
.hero-media { margin-top: 28px; border-radius: var(--radius); overflow: hidden; background: var(--ph); aspect-ratio: 16 / 10; }
.hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px;
  font: 600 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--sea); background: var(--sea); color: #fff;
}
.btn:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sea-deep); }
.btn-ghost:hover { background: var(--sea-pale); color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--sand-2); border-color: var(--line); color: var(--ph-ink); cursor: default; }

/* Sections */
section { padding: 44px 0; }
.band { background: var(--salt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story h2 { margin-top: 1.6em; }
.story h2:first-child { margin-top: 0; }

.callout {
  margin: 2em 0; padding: 22px 22px 6px; border-radius: var(--radius);
  background: var(--sea-pale); border-left: 6px solid var(--sea);
}
.callout h2 { margin-top: 0 !important; display: flex; align-items: center; gap: 12px; }
.flag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4em; height: 1.6em; padding: 0 .4em; border-radius: 6px;
  background: var(--lime); color: #12210a; font-family: var(--sans); font-size: .8em; font-weight: 800;
}

/* Numbers */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stat { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--sea-deep); margin-bottom: 6px; }
.stat span { color: var(--ink-2); font-size: 1rem; line-height: 1.4; display: block; }
.stat.wide { grid-column: 1 / -1; }
.stat ul { margin: 6px 0 0; padding-left: 1.1em; }
.stat h3 { font-family: var(--sans); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sea-deep); margin: 0; }
@media (min-width: 720px) { .stats { grid-template-columns: 1fr 1fr 1.4fr 1.6fr; } .stat.wide { grid-column: auto; } }

/* Report */
.report { background: var(--salt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.report .doi { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1rem; word-break: break-all; }
.soon { display: inline-block; background: var(--ph); color: var(--ph-ink); font-weight: 700; font-size: .9rem; padding: 4px 12px; border-radius: 999px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery figure { margin: 0; }
.gallery .frame { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ph); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ph-ink); }
.gallery .ph svg { width: 40%; max-width: 72px; opacity: .55; }
.gallery figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }

/* Help */
.help { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .help { grid-template-columns: 1fr 1fr; } }
.help li { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.help li p { color: var(--ink-2); font-size: 1rem; }
.help .btn { margin-top: auto; align-self: flex-start; }
.share-status { font-size: .95rem; color: var(--sea-deep); min-height: 1.4em; margin: 8px 0 0; }

/* Thanks */
.thanks { columns: 1; padding-left: 1.1em; }
@media (min-width: 720px) { .thanks { columns: 2; } }
.thanks li { margin-bottom: .35em; break-inside: avoid; }

/* Footer */
footer { padding: 36px 0 48px; font-size: 1rem; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { font-weight: 600; }
