/* savewildwaves.org — see docs/superpowers/specs/2026-09-09-savewildwaves-design.md */

/* ---------- Tokens ---------- */
:root {
  --paper:  #FAF4E8;
  --record: #F7F5F0;
  --ink:    #1C1917;
  --ink-60: #57534E;
  --teal:   #2E7D7B;
  --water:  #14494B;
  --sand:   #E8DCC4;
  --sunset: #E4652B;
  --alert:  #B3321E;

  --display: "Alfa Slab One", Georgia, serif;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --wide:    72rem;
  --gap:     clamp(3rem, 8vw, 6.5rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain, nostalgic sections only */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared ---------- */
.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.narrow { max-width: var(--measure); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem;
  font-family: var(--sans); text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

a { color: var(--teal); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sunset); outline-offset: 3px; border-radius: 2px;
}

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: 1.05rem; letter-spacing: .01em; text-decoration: none;
  background: var(--sunset); color: #fff;
  padding: 1.05rem 2.1rem; border-radius: 3px; border: 0;
  box-shadow: 0 2px 0 #B94E1D;
}
.btn:hover { background: #D65A22; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: none; padding: .95rem 1.9rem;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 1rem;
}

.ph {
  font-family: var(--sans); font-size: .82em; font-weight: 700;
  background: #FFF3B0; color: #6B4E00;
  padding: .1em .45em; border-radius: 2px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Header ---------- */
.site-head {
  background: var(--paper); border-bottom: 1px solid var(--sand);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .9rem 0; flex-wrap: wrap;
}
.brand {
  font-family: var(--sans); font-weight: 800; font-size: 1rem;
  letter-spacing: .02em; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: .6rem;
}
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.9rem, 10.5vw, 7.5rem);
  line-height: .92; letter-spacing: -.015em;
  margin: 0 0 1.5rem; text-wrap: balance;
}
.hero h1 .tint { color: var(--teal); display: block; }
.hero .lede {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.4; max-width: 28ch; margin: 0 0 2.25rem; color: var(--ink);
}
.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-count {
  font-family: var(--sans); font-size: .95rem; color: var(--ink-60);
  line-height: 1.4;
}
.hero-count strong { color: var(--ink); font-size: 1.15rem; }

.hero-grid { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: auto; }

/* ---------- Nostalgic sections ---------- */
.band { padding: var(--gap) 0; }
.band h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  line-height: 1.08; margin: 0 0 1.25rem; text-wrap: balance;
}
.band--sand { background: var(--sand); }

.stakes { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 46rem) { .stakes { grid-template-columns: repeat(3, 1fr); } }
.stake h3 {
  font-family: var(--sans); font-size: 1.15rem; font-weight: 700;
  margin: 1.25rem 0 .5rem;
}
.stake p { margin: 0; color: var(--ink-60); font-size: 1rem; }
.stake svg { display: block; }

/* Photo slots — deliberately empty until licensed images exist */
.slots { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 46rem) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot {
  aspect-ratio: 4 / 3; border: 2px dashed #B9A98A; border-radius: 3px;
  display: grid; place-content: center; text-align: center; padding: 1rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: #8A7A5C;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(185,169,138,.08) 12px 24px);
}

/* ---------- Civic register ---------- */
.civic {
  background: var(--record); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  padding: var(--gap) 0;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.civic h2 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  letter-spacing: -.01em; line-height: 1.1; margin: 0 0 .5rem;
}
.civic .rule { border: 0; border-top: 1px solid #D6D1C7; margin: 1.5rem 0; }
.civic .sub {
  font-family: var(--sans); font-size: .95rem; color: var(--ink-60);
  max-width: 60ch; margin: 0;
}

.figures { display: grid; gap: 1.5rem; margin: 2.5rem 0; }
@media (min-width: 46rem) { .figures { grid-template-columns: repeat(3, 1fr); } }
.figure { border-top: 3px solid var(--ink); padding-top: .85rem; }
.figure b {
  display: block; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 800; line-height: 1; letter-spacing: -.02em;
}
.figure span {
  display: block; margin-top: .4rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-60);
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; gap: .25rem 1.75rem; padding: 1.1rem 0;
  border-bottom: 1px solid #D6D1C7;
}
@media (min-width: 40rem) { .timeline li { grid-template-columns: 9rem 1fr; } }
.timeline .when {
  font-weight: 700; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-60); padding-top: .15em;
}
.timeline .what { margin: 0; }
/* Timeline status badges. `live` is reserved for a genuinely open window —
   never set it without a verified end date. `closed` is the resting state. */
.timeline .badge {
  display: inline-block; margin-left: .6rem; font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; padding: .18em .5em; border-radius: 2px;
  vertical-align: .12em; white-space: nowrap;
}
.timeline .badge--closed { background: #D6D1C7; color: #57534E; }
.timeline .badge--next   { background: var(--ink);  color: #fff; }
.timeline .live .when    { color: var(--alert); }
.timeline .live .badge   { background: var(--alert); color: #fff; }

/* Standing notice for a status the reader must not misread. */
.status {
  border-left: 4px solid var(--alert); background: #FCF1EE;
  padding: 1.15rem 1.4rem; margin: 2rem 0; font-size: .95rem;
}
.status b { display: block; margin-bottom: .3rem; }
.status p { margin: 0; color: var(--ink-60); }

.ladder { display: grid; gap: 1.25rem; margin-top: 2.5rem; counter-reset: step; }
@media (min-width: 52rem) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.rung {
  border: 2px solid var(--ink); padding: 1.5rem; background: #fff;
  display: flex; flex-direction: column;
}
.rung::before {
  counter-increment: step; content: counter(step);
  font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  color: var(--ink-60); margin-bottom: .6rem;
}
.rung h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 .5rem; }
.rung p { margin: 0 0 1.5rem; font-size: .95rem; color: var(--ink-60); }
.rung .btn, .rung .btn--ghost { margin-top: auto; align-self: flex-start; }
.rung--primary { background: #FFF8F2; border-color: var(--sunset); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--water); color: #DCEBE8;
  font-family: var(--sans); font-size: .92rem; padding: var(--gap) 0 3rem;
}
.site-foot a { color: #9FD4CE; }
.site-foot h2 {
  font-family: var(--display); font-weight: 400; color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0 0 1rem;
}
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.2fr .8fr .8fr; } }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .55rem; }
.foot-title {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #7FB8B2; margin: 0 0 1rem;
}
.colophon {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #276A6A;
  font-size: .82rem; color: #7FB8B2;
}

/* ---------- Stub pages ---------- */
.stub { padding: var(--gap) 0 calc(var(--gap) * 1.5); }
.stub h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem); line-height: 1;
  margin: 0 0 1.25rem;
}

/* ---------- Content pages ---------- */
.prose { max-width: var(--measure); }
.prose h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 1.25rem + 1.7vw, 2.4rem);
  line-height: 1.12; margin: 3rem 0 1rem;
}
.prose h3 {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 700;
  margin: 2rem 0 .5rem;
}
.prose p, .prose li { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.2rem; }
.prose blockquote {
  margin: 2rem 0; padding: .4rem 0 .4rem 1.5rem;
  border-left: 3px solid var(--teal); font-size: 1.1rem; color: var(--ink-60);
}

.civic .prose h2, .civic .prose h3 { font-family: var(--sans); font-weight: 800; }
.civic .prose h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem); }

/* Data tables — civic register only */
.dt { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.dt caption {
  text-align: left; font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-60); padding-bottom: .75rem;
}
.dt th, .dt td { text-align: left; padding: .7rem .9rem .7rem 0; vertical-align: top; }
.dt thead th {
  border-bottom: 2px solid var(--ink); font-size: .74rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.dt tbody tr { border-bottom: 1px solid #D6D1C7; }
.dt td a { word-break: break-word; }
.dt .row-key { font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Sample message */
.letter {
  background: #fff; border: 2px solid var(--ink); padding: 1.5rem;
  font-family: var(--sans); font-size: .95rem; line-height: 1.65; margin: 1.5rem 0;
}
.letter p { margin: 0 0 1rem; }
.letter p:last-child { margin-bottom: 0; }

.note {
  font-family: var(--sans); font-size: .88rem; color: var(--ink-60);
  border-left: 3px solid var(--sand); padding-left: 1rem; margin: 1.5rem 0;
}
.civic .note { border-left-color: #D6D1C7; }

.lede-lg {
  font-size: clamp(1.15rem, 1rem + .8vw, 1.4rem); line-height: 1.5;
  max-width: 40ch;
}

/* ---------- Photographs ---------- */
figure.photo { margin: 0; }
figure.photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 3px; background: var(--sand);
}
figure.photo figcaption {
  font-family: var(--sans); font-size: .74rem; line-height: 1.45;
  color: var(--ink-60); margin-top: .55rem;
}
figure.photo figcaption a { color: var(--ink-60); }

/* Turns the missing third image into the request for one. */
.slot--ask {
  display: flex; flex-direction: column; justify-content: center;
  gap: .6rem; text-transform: none; letter-spacing: 0; font-size: .92rem;
  color: var(--ink-60); text-decoration: none;
}
.slot--ask:hover { border-color: var(--teal); color: var(--teal); }
.slot--ask b {
  display: block; font-size: 1rem; color: var(--ink); letter-spacing: 0;
}
.slot--ask:hover b { color: var(--teal); }

/* Hero photograph replaces the illustration at the top of the landing page. */
figure.photo--hero img { aspect-ratio: 3 / 2; box-shadow: 0 1px 0 rgba(28,25,23,.12); }
/* The stakes band photographs are 4:3 originals; do not crop people out of them. */
.slots figure.photo img { aspect-ratio: 4 / 3; }

/* ---------- Press coverage list ---------- */
.clips { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.clips li { padding: 1.5rem 0; border-bottom: 1px solid #D6D1C7; }
.clips h3 {
  font-family: var(--sans); font-size: 1.08rem; font-weight: 700;
  line-height: 1.35; margin: 0 0 .45rem;
}
.clips h3 a { color: var(--ink); text-decoration-color: var(--sand); }
.clips h3 a:hover { color: var(--teal); }
.clip-meta {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; color: var(--ink-60); margin: 0 0 .6rem;
}
.clip-meta .pub { color: var(--ink); }
.clips p.sum { margin: 0; font-size: .95rem; color: var(--ink-60); max-width: 62ch; }
.clip-note {
  display: inline-block; margin-top: .6rem; font-size: .78rem;
  color: var(--ink-60); font-style: italic;
}

/* ---------- Shared memory ---------- */
.memory {
  background: #FFFDF7; border: 1px solid #DCCFB2; border-left: 4px solid var(--sunset);
  border-radius: 3px; padding: 1.75rem; margin: 2rem 0;
}
.memory h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.35rem;
  line-height: 1.2; margin: 0 0 1rem;
}
.memory p { margin: 0 0 1rem; }
.memory p:last-of-type { margin-bottom: 0; }
.memory .byline {
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  color: var(--ink-60); margin-top: 1.25rem;
}
.memory .kicker {
  font-family: var(--sans); font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sunset);
  margin: 0 0 .6rem;
}

/* ---------- Sitewide notice ---------- */
.notice-bar {
  background: var(--water); color: #DCEBE8;
  font-family: var(--sans); font-size: .92rem; line-height: 1.5;
  border-bottom: 3px solid var(--sunset);
}
.notice-bar .wrap {
  display: flex; align-items: baseline; gap: .35rem 1rem;
  flex-wrap: wrap; padding: .85rem 0;
}
.notice-bar b { color: #fff; font-weight: 700; }
.notice-bar a { color: #9FD4CE; font-weight: 600; white-space: nowrap; }
.notice-bar a:hover { color: #fff; }
