/* ONA — launch page. Tokens mirror "ONA Identity brand case study/brand/tokens.css"; see site/DESIGN.md. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/newsreader-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/newsreader-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/newsreader-300-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/newsreader-300-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched local fallbacks so the swap to web fonts doesn't move the layout. */
@font-face {
  font-family: 'Newsreader Fallback';
  src: local('Georgia');
  size-adjust: 90.4%;
  ascent-override: 81.3%;
  descent-override: 29.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Newsreader Fallback';
  font-style: italic;
  src: local('Georgia Italic'), local('Georgia-Italic');
  size-adjust: 81.2%;
  ascent-override: 90.5%;
  descent-override: 32.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Hanken Grotesk Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 99.8%;
  ascent-override: 100.2%;
  descent-override: 30.4%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --ivory: #F3EEE4;
  --paper: #F8F5EF;
  --bone: #E6DDCD;
  --linen: #D9D1C3;
  --stone: #C9BFAE;
  --taupe: #8E857A;
  --umber: #6E665C;
  --espresso: #3A2B22;
  --ink: #1C1A18;
  --gold: #C8AE76;
  --burgundy: #5E1F1E;
  --espresso-line: #6E5B4E;
  --error-on-dark: #E6C9A8;

  --serif: 'Newsreader', 'Newsreader Fallback', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Hanken Grotesk Fallback', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --track-caps: 0.12em;
  --track-label: 0.06em;

  --max-page: 1320px;
  --margin: 20px;
  --gutter: 20px;
  --section: 96px;
  /* Left/right padding that keeps content on the 1320px page grid, also inside full-bleed rows. */
  --page-x: max(var(--margin), calc((100vw - var(--max-page)) / 2));

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-object: 0 18px 32px -18px rgba(28, 26, 24, 0.40);
}
@media (min-width: 1024px) {
  :root {
    --margin: 72px;
    --gutter: 24px;
    --section: 160px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
a:hover { color: var(--burgundy); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--bone); color: var(--ink); }

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

/* Mono caps label — "01 — The house" */
.label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.wrap { padding-inline: var(--page-x); }

/* ---------- Logo ---------- */
.wordmark { fill: currentColor; height: auto; aspect-ratio: 284 / 100; }
.lockup {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  color: var(--espresso);
  text-decoration: none;
}
.lockup .wordmark { width: 86px; }          /* ≈ 30px tall, above the 22px digital minimum */
.by-alma {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  color: var(--espresso);
}
.lockup .by-alma { font-size: 17px; transform: translateY(2px); }

/* ---------- Language switch (EN · SR) ---------- */
.langs { display: flex; gap: 2px; margin-right: -6px; }
.langs a {
  padding: 8px 6px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: var(--track-label);
  color: var(--umber);
  text-decoration: none;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.hero__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero { display: flex; flex-direction: column; }
.hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 9svh, 88px);
  padding: 22px var(--page-x) 56px;
}
.hero__body {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}
.hero__intro { display: flex; flex-direction: column; gap: 14px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  max-width: 13ch;
  text-wrap: balance;
}
.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--umber);
  max-width: 36ch;
  text-wrap: pretty;
}

/* The media panel. Today: the open O on Espresso. Later: the hero photograph (see README). */
.hero__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(100vw, 72svh);
  background: var(--espresso);
  color: var(--gold);
  overflow: hidden;
}
.hero__media > img,
.hero__media > picture,
.hero__media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__symbol { width: clamp(132px, 38vw, 360px); height: auto; fill: currentColor; }
.hero__caption {
  position: absolute;
  left: var(--margin);
  right: var(--margin);
  bottom: 22px;
  color: var(--stone);
}
@media (min-width: 1024px) { .hero__caption { left: 40px; bottom: 36px; } }
@media (min-width: 600px) and (max-width: 899px) { .hero__media { min-height: 56vw; } }

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: 100svh;
  }
  .hero__text {
    justify-content: space-between;
    padding: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 88px) clamp(40px, 6svh, 72px) var(--page-x);
  }
  .hero__media { min-height: 0; }
  .hero__symbol { width: clamp(160px, 22vw, 380px); }

  /* Desktop lockup: wordmark with "by Alma" beneath, left-aligned (approved launch layout). */
  .hero__header { align-items: flex-start; }
  .hero .lockup { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero .lockup .wordmark { width: clamp(150px, 17vw, 250px); }
  .hero .lockup .by-alma { font-size: clamp(24px, 2.4vw, 34px); transform: none; }
}
@media (min-width: 1800px) {
  .hero h1 { font-size: clamp(4rem, 3.4vw, 5.5rem); }
  .lead { font-size: 20px; }
}

/* ---------- Signup form ---------- */
.signup { position: relative; max-width: 520px; }
.signup__label { display: block; margin-bottom: 12px; color: var(--espresso); }
.signup__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid var(--stone);
  transition: border-color .2s, box-shadow .2s;
}
.signup__row:focus-within { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.signup[data-state="invalid"] .signup__row,
.signup[data-state="error"] .signup__row { border-color: var(--burgundy); box-shadow: 0 1px 0 0 var(--burgundy); }

.signup input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1.3 var(--sans);   /* ≥16px so iOS does not zoom on focus */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.signup input::placeholder { color: var(--taupe); opacity: 1; }
.signup button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 400 15px/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.signup button:hover { background: var(--espresso); }
.signup button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.signup[data-state="submitting"] button { opacity: .7; cursor: progress; }
/* Very narrow screens: the button drops under the field instead of truncating. */
@media (max-width: 359px) {
  .signup__row,
  .signup__row:focus-within { border-bottom: 0; box-shadow: none; }
  .signup input[type="email"] { flex-basis: 100%; border-bottom: 1px solid var(--stone); }
  .signup input[type="email"]:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
  .signup[data-state="invalid"] input[type="email"],
  .signup[data-state="error"] input[type="email"] { border-bottom-color: var(--burgundy); box-shadow: 0 1px 0 0 var(--burgundy); }
  .signup--dark input[type="email"] { border-bottom-color: var(--espresso-line); }
  .signup--dark input[type="email"]:focus { border-bottom-color: var(--ivory); box-shadow: 0 1px 0 0 var(--ivory); }
  .signup button { flex-basis: 100%; margin-top: 12px; }
}

.signup__msg {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--burgundy);
}
.signup__msg:empty { margin-top: 0; min-height: 12px; }
.signup__privacy {
  margin-top: 4px;
  max-width: 52ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--umber);
}
.signup__static-error { display: none; }
.signup__static-error:target { display: block; margin-top: 12px; font-size: 14px; color: var(--burgundy); }

/* Honeypot: off-screen for people, visible to naive bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Success / already subscribed — replaces the form. */
.signup-done {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 520px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  outline: none;
}
.signup-done[hidden] { display: none; }
.signup-done svg { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 4px; fill: var(--espresso); }
.signup-done__title {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
}
.signup-done__body { display: block; margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--espresso); }

/* Dark variant (Espresso band) */
.signup--dark .signup__label { color: var(--bone); }
.signup--dark .signup__row { border-color: var(--espresso-line); }
.signup--dark .signup__row:focus-within { border-color: var(--ivory); box-shadow: 0 1px 0 0 var(--ivory); }
.signup--dark[data-state="invalid"] .signup__row,
.signup--dark[data-state="error"] .signup__row { border-color: var(--error-on-dark); box-shadow: 0 1px 0 0 var(--error-on-dark); }
.signup--dark input[type="email"] { color: var(--ivory); }
.signup--dark input::placeholder { color: var(--taupe); }
.signup--dark button { background: var(--ivory); color: var(--ink); }
.signup--dark button:hover { background: var(--bone); }
.signup--dark button:focus-visible { outline-color: var(--ivory); }
.signup--dark .signup__msg { color: var(--error-on-dark); }
.signup--dark .signup__privacy { color: var(--stone); }
.signup--dark :focus-visible { outline-color: var(--ivory); }
.signup-done--dark { border-top-color: var(--espresso-line); }
.signup-done--dark svg { fill: var(--gold); }
.signup-done--dark .signup-done__body { color: var(--bone); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.section__grid {
  display: grid;
  gap: 28px var(--gutter);
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
@media (min-width: 900px) {
  .section__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .section__grid > .label { grid-column: 1 / span 3; }
  .section__grid > .section__content { grid-column: 4 / span 9; }
}

/* 01 — The house */
.manifesto {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 1.1rem + 1.7vw, 42px);
  line-height: 1.2;
  max-width: 30ch;
  text-wrap: pretty;
}
.made-by {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--espresso);
}

/* 02 — Naming */
.naming__layout { display: grid; gap: 56px var(--gutter); }
@media (min-width: 900px) {
  .naming__layout { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .naming__text { grid-column: 1 / span 5; display: flex; flex-direction: column; justify-content: space-between; }
  .naming__object { grid-column: 6 / span 4; }
}
.naming__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 1.1rem + 1.5vw, 40px);
  line-height: 1.15;
}
.model { container-type: inline-size; margin-top: clamp(28px, 4vw, 56px); }
.model__name {
  font-weight: 500;
  font-size: clamp(2.25rem, 0.5rem + 8vw, 7rem);
  font-size: min(12.5cqi, 6.5rem);   /* fits “USKORO / 01” in its column at any width */
  line-height: 1.1;
  letter-spacing: var(--track-caps);
  white-space: nowrap;
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--taupe);
}
.spec {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 18px clamp(28px, 4vw, 56px);
  padding-top: 20px;
}
.spec div { display: flex; flex-direction: column; gap: 2px; }
.spec dt { font-size: 14px; color: var(--umber); }
.spec dd { font-weight: 500; font-size: 18px; letter-spacing: var(--track-caps); }
.spec .spec__next { grid-column: 1 / -1; }
.spec .spec__next dd { font-weight: 400; letter-spacing: 0; font-size: 16px; line-height: 1.5; max-width: 34ch; }
.spec .spec__next dd strong { font-weight: 500; letter-spacing: var(--track-caps); }
@media (min-width: 600px) {
  .spec { grid-template-columns: auto auto minmax(0, 1fr); }
  .spec .spec__next { grid-column: auto; }
}

/* Later: a detail photograph can replace .tissue one-for-one (see README → Photography). */
.naming__object > img,
.naming__object > picture > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--linen); }

/* The object: a product card and hang tag resting on patterned tissue paper. Illustration, not UI. */
.tissue {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-62 -62 224 224'%3E%3Cg fill='none' stroke='%23DCD0BC' stroke-width='14'%3E%3Cpath d='M54.87 10.30 A40 40 0 0 1 86.82 65.63'/%3E%3Cpath d='M81.95 74.07 A40 40 0 0 1 18.05 74.07'/%3E%3Cpath d='M13.18 65.63 A40 40 0 0 1 45.13 10.30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 18% auto;   /* % of the box: cqi here would resolve against an ancestor */
  background-position: center;
  overflow: hidden;
}
.tag {
  position: absolute;
  left: 11cqi;
  top: 21cqi;
  width: 20cqi;
  height: 43cqi;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14cqi 0 5cqi;
  background: var(--espresso);
  color: var(--ivory);
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: var(--shadow-object);
  transform: rotate(-4deg);
}
.tag::before {
  content: '';
  position: absolute;
  top: 5cqi;
  left: 50%;
  width: 3.2cqi;
  height: 3.2cqi;
  margin-left: -1.6cqi;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 0.6cqi var(--gold);
}
.tag svg { width: 7cqi; height: 7cqi; fill: var(--gold); }
.tag span { font-family: var(--mono); font-size: 4.2cqi; letter-spacing: var(--track-label); }
.card {
  position: absolute;
  right: 9cqi;
  bottom: 12cqi;
  width: 58cqi;
  aspect-ratio: 5 / 7;
  display: flex;
  flex-direction: column;
  padding: 7cqi 6.5cqi 6cqi;
  background: var(--ivory);
  border-radius: 3px;
  box-shadow: var(--shadow-object);
  color: var(--ink);
}
.card .wordmark { width: 17cqi; color: var(--espresso); }
.card__name { margin-top: auto; font-weight: 500; font-size: 4.6cqi; letter-spacing: var(--track-caps); line-height: 1.2; }
.card__maker { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 5cqi; line-height: 1.3; color: var(--espresso); }
.card__meta {
  margin-top: 4.5cqi;
  padding-top: 3.5cqi;
  border-top: 1px solid var(--linen);
  font-size: 3.6cqi;
  line-height: 1.3;
  color: var(--umber);
}

/* ---------- Final signup band + footer ---------- */
.notify {
  margin-top: var(--section);
  background: var(--espresso);
  color: var(--ivory);
}
.notify a:hover { color: var(--bone); }
.notify :focus-visible { outline-color: var(--ivory); }
.notify__inner {
  display: grid;
  gap: clamp(40px, 6vw, 96px) var(--gutter);
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(64px, 7vw, 112px);
}
@media (min-width: 900px) {
  .notify__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .notify__intro { grid-column: 1 / span 6; }
  .notify__form { grid-column: 7 / span 6; justify-self: end; width: 100%; max-width: 560px; }
}
.notify__intro { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.notify__symbol { width: clamp(44px, 4vw, 64px); height: auto; fill: var(--gold); }
.notify h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 1.4rem + 4vw, 76px);
  line-height: 1.02;
  max-width: 12ch;
  text-wrap: balance;
}
.notify__sub { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--stone); max-width: 40ch; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--espresso-line);
}
.site-footer .wordmark { width: 52px; color: var(--ivory); }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--stone);
}
/* Text and links share one box so every item sits on the same line (links keep a 32px tap height). */
.site-footer li > * { display: inline-block; padding-block: 8px; line-height: 16px; }

/* ---------- Motion (only when welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero text settles without fading: an element that first paints at opacity 0 is skipped as the
     Largest Contentful Paint candidate, which leaves phones with no LCP at all. */
  .hero__body { animation: rise 1.2s var(--ease) both; }
  .hero__symbol { animation: settle 2.2s var(--ease) both; }
  [data-reveal] { transition: opacity 1s ease, transform 1.2s var(--ease); }
  [data-reveal].is-pending { opacity: 0; transform: translateY(24px); }
}
@keyframes rise { from { transform: translateY(16px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.035); } }

/* ---------- Simple text pages (privacy, thanks, 404) ---------- */
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; }
.page-header .lockup .wordmark { width: 72px; }
.doc {
  max-width: calc(62ch + 2 * var(--page-x));
  padding-top: clamp(48px, 8vw, 112px);
  padding-bottom: var(--section);
}
.doc h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.125rem, 1.2rem + 3vw, 4rem);
  line-height: 1.08;
  margin-bottom: 24px;
}
.doc h2 {
  margin: 48px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--linen);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 1rem + 1vw, 28px);
  line-height: 1.2;
}
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; }
.doc .note { color: var(--umber); font-size: 14px; }
.todo {
  background: var(--bone);
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.85em;
}
.simple-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 36px;
  border-top: 1px solid var(--linen);
  font-size: 13px;
  color: var(--umber);
}
.message-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.message-page main { flex: 1; display: flex; align-items: center; }
.message {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 34ch;
  padding-block: 64px;
}
.message svg { width: 40px; height: 40px; fill: var(--espresso); }
.message h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.125rem, 1.2rem + 3vw, 3.5rem); line-height: 1.08; }
.message p { color: var(--espresso); }
