/* Northwind — Island Courier · landing page reference styles
   Spring 1986 printed-matter look: telegrams, logbook paper and in-game captures mounted as prints.
   Every colour, font and size here matches the approved canvas mockups. */

/* ---------- Fonts (self-hosted, SIL OFL — licences in assets/fonts/) ---------- */
@font-face { font-family: "Big Shoulders Stencil"; src: url("assets/fonts/big-shoulders-stencil-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Stencil"; src: url("assets/fonts/big-shoulders-stencil-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("assets/fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* paper */
  --paper: #efe3c8;          /* page ground, "How it plays" */
  --logbook: #f4ecd8;        /* lists, crew card, light text on dark */
  --print: #f8f2e2;          /* photo-plate mount */
  --telegram: #f3e7a6;       /* telegram forms */
  --telegram-field: #fbf4cf; /* input on a telegram */
  --tape: rgba(243, 223, 122, 0.78);
  --rule: #c9b994;           /* ledger lines */

  /* ink — colour means something, never decoration */
  --ink: #23211e;
  --ink-soft: #3d382f;
  --ink-muted: #4a443a;
  --label-ink: #5b4a30;
  --ballpoint: #2b4c8c;      /* people writing */
  --stamp: #b8322a;          /* the one call to action */
  --nav-blue: #2f5fa7;       /* weather + navigation only */

  /* night + instruments */
  --night: #252f4a;          /* hero ground, final call */
  --night-hero-sm: #1f2333;  /* phone hero ground under the art */
  --runway: #1d2333;
  --footer: #161a26;
  --panel: #2b302c;          /* instrument-panel green-black, "The run" */
  --dusk: #f2c47c;           /* kicker gold on dark */
  --needle: #e8c547;
  --lamp: #e8a33a;
  --on-dark-soft: #ddd3bd;
  --on-dark-muted: #b9b2a2;
  --footer-text: #c9c1ae;

  --accent: var(--stamp);    /* swap here to try blue #2f5fa7 or green #2f6b45 */

  /* type roles — never mix roles */
  --f-stencil: "Big Shoulders Stencil", "Barlow Condensed", "Arial Narrow", sans-serif; /* titles, stamps, crate marks */
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;                            /* printed labels, numbers, headings */
  --f-type: "Courier Prime", "Courier New", monospace;                                  /* typed forms, telegrams, body */
  --f-hand: "Caveat", cursive;                                                          /* handwriting */

  --shadow-paper: 0 2px 0 rgba(35, 33, 30, 0.14), 0 16px 32px rgba(35, 33, 30, 0.16);
  --shadow-dark: 0 18px 36px rgba(0, 0, 0, 0.4);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-type); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--logbook); }
a:hover { color: var(--dusk); }
:focus-visible { outline: 3px solid var(--nav-blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { max-width: 1280px; margin: 0 auto; }

.kicker { margin: 0; font-family: var(--f-label); font-weight: 700; font-size: 16px; letter-spacing: 0.26em; }
.h2 { margin: 0; font-family: var(--f-label); font-weight: 700; font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -0.005em; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }

/* ---------- Buttons + form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 2px solid var(--logbook); background: transparent; color: var(--logbook); font-family: var(--f-label); font-weight: 700; font-size: 17px; letter-spacing: 0.14em; text-decoration: none; cursor: pointer; }
.btn--stamp { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border: 0; background: var(--accent); color: var(--logbook); font-family: var(--f-stencil); font-weight: 800; font-size: 24px; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: inset 0 0 0 2px var(--ink); transition: transform 90ms ease-out; }
.btn--stamp:hover { color: var(--logbook); filter: brightness(1.08); }
.btn--stamp:active { transform: translateY(1px) scale(0.98); }
.btn--stamp[disabled] { opacity: 0.7; cursor: progress; }
.on-dark .btn--stamp { box-shadow: inset 0 0 0 2px var(--logbook); }

.signup { display: flex; flex-direction: column; gap: 10px; }
.signup__label { font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; }
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup__input { flex: 1 1 220px; min-width: 0; height: 54px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 0; background: var(--telegram-field); font-family: var(--f-type); font-size: 18px; color: var(--ink); }
.signup__input::placeholder { color: #8a7f66; }
.signup__input[aria-invalid="true"] { border-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); }
.signup__note { margin: 0; font-size: 14px; color: var(--ink-muted); }
.signup__status { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 700; color: var(--stamp); }
.signup__status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Telegram (the recurring paper object) ---------- */
.telegram { background: var(--telegram); color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.telegram__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.telegram__title { font-family: var(--f-stencil); font-weight: 800; font-size: 24px; letter-spacing: 0.12em; }
.telegram__meta { font-family: var(--f-label); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; }
.telegram__meta--urgent { font-weight: 700; color: var(--stamp); }
.telegram__msg { margin: 0; font-weight: 700; font-size: 21px; line-height: 1.45; letter-spacing: 0.02em; }
.telegram__body { margin: 0; font-size: 16px; line-height: 1.5; }
.telegram__sign { margin: 0; font-size: 15px; }
.hand { margin: 0; font-family: var(--f-hand); font-weight: 700; line-height: 1.1; color: var(--ballpoint); }

/* ---------- Brand ---------- */
.roundel { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--logbook); border-radius: 50%; font-family: var(--f-stencil); font-weight: 800; font-size: 17px; letter-spacing: 0.04em; color: var(--logbook); text-decoration: none; }
.wordmark { font-family: var(--f-label); font-weight: 600; font-size: 16px; letter-spacing: 0.22em; color: var(--logbook); }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; background: var(--night); }
.hero__inner { position: relative; max-width: 1360px; margin: 0 auto; padding: 28px 40px 96px; }
.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav__link { font-family: var(--f-label); font-weight: 600; font-size: 17px; letter-spacing: 0.12em; text-decoration: none; }

.hero__grid { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); grid-template-areas: "titles prints" "telegram prints"; column-gap: 64px; row-gap: 36px; align-items: start; }
.hero__titles { grid-area: titles; display: flex; flex-direction: column; gap: 10px; }
.hero__kicker { margin: 0; font-family: var(--f-label); font-weight: 600; font-size: 18px; letter-spacing: 0.26em; color: var(--dusk); }
.hero__title { margin: 0; font-family: var(--f-stencil); font-weight: 900; font-size: clamp(64px, 7.5vw, 108px); line-height: 0.86; letter-spacing: 0.01em; color: var(--logbook); }
.hero__sub { margin: 0; font-family: var(--f-stencil); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: 0.34em; color: var(--dusk); }
.hero__prints { grid-area: prints; position: relative; padding-bottom: 170px; }
.telegram--hero { grid-area: telegram; max-width: 540px; padding: 22px 26px 24px; transform: rotate(-1.2deg); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 24px 48px rgba(10, 12, 24, 0.45); }

/* Photo prints: every in-game capture is mounted like a print pinned to the ops-room board */
.print { --tilt: 0deg; --tape-tilt: 2deg; margin: 0; position: relative; background: var(--print); padding: 12px 12px 14px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 24px 48px rgba(8, 10, 20, 0.5); transform: rotate(var(--tilt)); }
.print::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px; background: var(--tape); transform: rotate(var(--tape-tilt)); z-index: 1; }
.print img { display: block; width: 100%; height: auto; border: 1.5px solid var(--ink); }
.print figcaption { padding: 10px 2px 0; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft); }
.print--main { --tilt: 1.4deg; }
.print--main figcaption { text-align: right; }
.print--small { --tilt: -3deg; --tape-tilt: -4deg; position: absolute; left: -6%; bottom: 0; width: 46%; }
.print--wide { --tilt: -0.8deg; flex: 999 1 560px; min-width: 0; }

/* ================= HOW IT PLAYS ================= */
.job { background: var(--paper); padding: 112px 40px 120px; }
.job .kicker { color: var(--stamp); }
.plates { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 40px; }
.plate { --tilt: -1deg; --tape-tilt: 2deg; margin: 0; position: relative; background: var(--print); padding: 14px 14px 24px; box-shadow: var(--shadow-paper); transform: rotate(var(--tilt)); }
.plate:nth-child(2) { --tilt: 0.7deg; --tape-tilt: -3deg; }
.plate:nth-child(3) { --tilt: -0.5deg; --tape-tilt: 1deg; }
.plate::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px; background: var(--tape); transform: rotate(var(--tape-tilt)); }
.plate__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1.5px solid var(--ink); }
.plate__cap { padding: 20px 6px 0; display: flex; flex-direction: column; gap: 8px; }
.plate__num { font-family: var(--f-stencil); font-weight: 800; font-size: 20px; letter-spacing: 0.12em; color: var(--accent); }
.plate__title { margin: 0; font-family: var(--f-label); font-weight: 700; font-size: 30px; line-height: 1.05; }
.plate__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* ================= THE RUN (islands) ================= */
.run { background: var(--panel); color: var(--logbook); padding: 112px 40px 120px; }
.run .kicker { color: var(--needle); }
.run__layout { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.run__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.telegram--urgent { padding: 20px 22px 22px; gap: 12px; transform: rotate(1.4deg); box-shadow: var(--shadow-dark); }
.telegram--urgent .telegram__title { font-size: 22px; }
.telegram--urgent .telegram__msg { font-size: 19px; letter-spacing: 0; }
.telegram--urgent .hand { margin-top: 2px; font-size: 26px; }

.islands { margin: 0; padding: 8px 22px; list-style: none; background: var(--logbook); color: var(--ink); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35); }
.islands li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.islands li:last-child { border-bottom: 0; }
.islands__who { display: flex; flex-direction: column; gap: 2px; }
.islands__name { font-family: var(--f-stencil); font-weight: 800; font-size: 21px; letter-spacing: 0.08em; }
.islands__desc { font-size: 14px; color: var(--ink-muted); }
.islands__strip { font-family: var(--f-label); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.islands__strip--short { color: var(--stamp); }

/* ================= FINAL CALL ================= */
.join { position: relative; background: var(--night); color: var(--logbook); padding: 120px 40px 0; overflow: hidden; }
.join__inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.join .kicker { color: var(--dusk); }
.join__title { margin: 0; font-family: var(--f-stencil); font-weight: 900; font-size: clamp(56px, 8vw, 116px); line-height: 0.9; letter-spacing: 0.01em; }
.join__lede { margin: 0; max-width: 600px; font-family: var(--f-label); font-weight: 500; font-size: 24px; line-height: 1.3; color: var(--on-dark-soft); }
.join .signup { width: 100%; max-width: 560px; margin-top: 12px; align-items: center; }
.join .signup__label { color: var(--dusk); }
.join .signup__row { width: 100%; }
.join .signup__input { flex-basis: 240px; height: 58px; padding: 0 18px; border-color: var(--logbook); background: var(--logbook); }
.join .btn--stamp { height: 58px; padding: 0 28px; }
.join .signup__note { color: var(--on-dark-muted); }
.join .signup__status { color: var(--dusk); }
.runway { max-width: 1360px; margin: 96px auto 0; padding: 0 2%; display: flex; justify-content: space-between; gap: 8px; }
.runway span { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px 3px rgba(232, 163, 58, 0.45); }
.runway-strip { height: 42px; margin: 18px -40px 0; background: var(--runway); }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: var(--footer-text); padding: 28px 40px; }
.footer__inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__name { font-family: var(--f-stencil); font-weight: 800; font-size: 20px; letter-spacing: 0.14em; color: var(--logbook); }
.footer__copy { font-size: 14px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-label); font-weight: 600; font-size: 16px; letter-spacing: 0.12em; }

/* ================= SIGNED ON (after sign-up) ================= */
.signed { position: relative; min-height: 100vh; overflow: hidden; background: var(--night); color: var(--ink); }
.signed__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.signed__veil { position: absolute; inset: 0; background: rgba(18, 22, 36, 0.66); }
.signed__inner { position: relative; max-width: 1360px; margin: 0 auto; padding: 28px 40px 64px; }
.signed__stage { position: relative; max-width: 960px; height: 500px; margin: 132px auto 0; }
.telegram--signed { position: absolute; left: 0; top: 0; width: 548px; padding: 26px 30px 30px; gap: 16px; transform: rotate(-1.6deg); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 28px 56px rgba(0, 0, 0, 0.5); z-index: 2; }
.telegram--signed .telegram__title { font-size: 26px; }
.telegram--signed .telegram__msg { font-size: 30px; line-height: 1.35; letter-spacing: 0; }
.telegram--signed .telegram__body { font-size: 17px; line-height: 1.55; }
.crew { position: absolute; right: 0; top: 58px; width: 420px; background: var(--logbook); padding: 22px 26px 26px; transform: rotate(3deg); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 14px; z-index: 1; }
.crew__grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.crew__grid div { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.crew__grid dt { font-family: var(--f-label); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; color: var(--label-ink); }
.crew__grid dd { margin: 0; font-family: var(--f-label); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.crew__grid dd.big { font-size: 30px; }
.crew .hand { font-size: 28px; }
.crew__title { font-size: 22px; }
.stamp { position: absolute; left: 400px; top: 318px; z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 8px 18px 10px; border: 5px solid var(--accent); color: var(--accent); opacity: 0.88; transform: rotate(-11deg); pointer-events: none; }
.stamp__big { font-family: var(--f-stencil); font-weight: 900; font-size: 54px; line-height: 1; letter-spacing: 0.08em; }
.stamp__small { font-family: var(--f-label); font-weight: 700; font-size: 15px; letter-spacing: 0.24em; }
.signed__actions { max-width: 960px; margin: 24px auto 0; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.signed__actions .btn--stamp { font-size: 22px; box-shadow: inset 0 0 0 2px var(--logbook); text-decoration: none; }
.signed__actions .text-link { font-family: var(--f-label); font-weight: 600; font-size: 19px; letter-spacing: 0.1em; }

/* Motion: the stamp slams once when the page opens (Feel DNA: scale 1.25 → 0.97 → 1.0 in ~120 ms) */
@keyframes stamp-slam { 0% { transform: rotate(-11deg) scale(1.25); opacity: 0; } 60% { transform: rotate(-11deg) scale(0.97); opacity: 0.95; } 100% { transform: rotate(-11deg) scale(1); opacity: 0.88; } }
@keyframes paper-settle { from { transform: translateY(-14px) rotate(-3deg); opacity: 0; } to { transform: rotate(-1.6deg); opacity: 1; } }
.signed .telegram--signed { animation: paper-settle 220ms ease-out both; }
.signed .stamp { animation: stamp-slam 140ms cubic-bezier(.2, .9, .3, 1.2) 260ms both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signed .telegram--signed, .signed .stamp { animation: none; }
}

/* ================= PHONE (≤ 640 px) ================= */
@media (max-width: 640px) {
  .hero__inner { padding: 16px 16px 56px; }
  .nav .wordmark, .nav__link { display: none; }
  .nav__links .btn { font-size: 16px; padding: 0 16px; }
  .hero__grid { margin-top: 36px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "titles" "prints" "telegram"; row-gap: 28px; }
  .hero__prints { padding-bottom: 96px; }
  .print { padding: 8px 8px 10px; }
  .print figcaption { font-size: 11px; padding-top: 8px; }
  .print--small { left: auto; right: -6px; width: 56%; }
  .hero__titles { gap: 8px; }
  .hero__kicker { font-size: 15px; letter-spacing: 0.22em; }
  .hide-sm { display: none; }
  .hero__title { font-size: min(80px, 18.5vw); }
  .hero__sub { font-size: 24px; letter-spacing: 0.32em; }
  .telegram--hero { padding: 18px 18px 20px; gap: 12px; transform: rotate(-1deg); }
  .telegram--hero .telegram__title { font-size: 21px; }
  .telegram__msg { font-size: 18px; }
  .telegram__body { font-size: 15px; }
  .signup__row { flex-direction: column; }
  .signup__input { flex: 0 0 auto; width: 100%; height: 52px; font-size: 17px; }
  .btn--stamp { width: 100%; }

  .job, .run { padding: 72px 20px 80px; }
  .kicker { font-size: 15px; letter-spacing: 0.24em; }
  .h2 { font-size: 40px; }
  .plates { margin-top: 44px; gap: 44px; }
  .plate { padding: 12px 12px 20px; }
  .plate__cap { padding: 16px 4px 0; gap: 6px; }
  .plate__num { font-size: 18px; }
  .plate__title { font-size: 26px; }
  .plate__text { font-size: 15px; }

  .run__layout { margin-top: 32px; gap: 32px; }
  .telegram--urgent { padding: 16px 18px 18px; gap: 10px; transform: rotate(1.2deg); }
  .telegram--urgent .telegram__msg { font-size: 17px; }
  .telegram--urgent .hand { font-size: 24px; }
  .islands { padding: 4px 18px; }
  .islands li { padding: 12px 0; gap: 10px; }
  .islands__name { font-size: 19px; }
  .islands__desc { font-size: 13px; }

  .join { padding: 72px 20px 0; }
  .join__inner { gap: 16px; }
  .join__title { font-size: min(58px, 15vw); }
  .join__lede { font-size: 21px; }
  .join .signup { margin-top: 8px; }
  .join .signup__input { flex: 0 0 auto; height: 54px; }
  .join .btn--stamp { height: 56px; }
  .runway { margin-top: 56px; padding: 0; }
  .runway span { width: 9px; height: 9px; }
  .runway span:nth-child(n + 10) { display: none; }
  .runway-strip { height: 32px; margin: 16px -20px 0; }
  .footer { padding: 24px 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__name { font-size: 18px; }
}

/* Signed-on page stacks below 960 px */
@media (max-width: 960px) {
  .signed__inner { padding: 16px 16px 48px; }
  .signed .nav .wordmark { display: none; }
  .signed__stage { height: auto; margin-top: 48px; transform: none; display: flex; flex-direction: column; gap: 28px; }
  .telegram--signed, .crew { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .telegram--signed { padding: 20px 20px 24px; }
  .telegram--signed .telegram__msg { font-size: 22px; }
  .crew { transform: rotate(1.5deg); }
  .crew { order: 3; }
  .stamp { order: 2; position: relative; left: auto; top: auto; align-self: center; margin: -30px 0 -40px; }
  .stamp__big { font-size: 40px; }
  .signed__actions { transform: none; margin-top: 32px; }
  .signed__actions .btn--stamp { width: 100%; }
}

/* Integrated account flow: keep the reference's printed objects and spacing. */
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 12px; background: var(--logbook); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
a, button, input, select { touch-action: manipulation; }
button { cursor: pointer; }
.btn--stamp { text-decoration: none; min-height: 54px; height: auto; padding-block: 12px; }
.telegram a, .crew a, .privacy-page a { color: var(--ballpoint); }
.telegram a:hover, .crew a:hover, .privacy-page a:hover { color: var(--ink); }
.telegram .btn--stamp { color: var(--logbook); }
.signup__input::placeholder { color: var(--ink-muted); }
.hero :focus-visible, .join :focus-visible, .signed :focus-visible { outline-color: var(--dusk); }
.telegram :focus-visible, .crew :focus-visible { outline-color: var(--ballpoint); }
.nav__link, .paper-link, .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.play-options { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; line-height: 1.4; }
.play-options a { display: inline-flex; min-height: 44px; align-items: center; }
.play-options span { color: var(--ink-muted); }
.join .play-options span { color: var(--on-dark-soft); }
.account-slip p { margin: 8px 0; overflow-wrap: anywhere; line-height: 1.5; }
.account-links { display: flex; flex-wrap: wrap; gap: 10px; }
.paper-button { min-height: 44px; padding: 8px 12px; font: 600 18px var(--f-label); color: var(--ink); border: 1.5px solid var(--ink); background: var(--logbook); }
.crew dd, .telegram__body { overflow-wrap: anywhere; }
.signed__note { max-width: 960px; margin: 24px auto 0; color: var(--logbook); font-size: 14px; line-height: 1.6; }
.privacy-page { max-width: 860px; margin: auto; padding: 40px 24px 80px; line-height: 1.7; }
.privacy-page h1 { font: 800 clamp(40px,7vw,68px)/1 var(--f-stencil); }
.privacy-page h2 { font: 700 32px/1.1 var(--f-label); margin-top: 36px; }
.noscript-notice { padding: 24px; }
@media (min-width: 641px) and (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
  .hero__title { font-size: 7.2vw; }
  .hero__sub { font-size: 2.5vw; letter-spacing: .25em; }
  .hero__kicker { font-size: 14px; letter-spacing: .16em; }
  .hero__prints { padding-bottom: 120px; }
  .telegram--hero { padding: 20px; }
  .hero .wordmark { display: none; }
}
@media (max-width: 640px) {
  .plates { grid-template-columns: minmax(0,1fr); }
  .hero__sub { font-size: min(24px, 5.8vw); }
  .print--small { right: 0; }
  .telegram--hero { margin-inline: 2px; }
  .play-options { gap: 0 12px; }
  .signed .nav > .btn { max-width: calc(100% - 60px); padding: 8px 12px; font-size: 14px; }
  .crew { margin-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .btn--stamp:active { transform: none; }
}
@media (max-width:640px) { .nav .nav__link { display: none; } }

/* Let verified identities grow the paper stage instead of covering its actions. */
@media (min-width:961px) {
  .signed__stage { display:grid; grid-template-columns:minmax(0,548px) minmax(0,1fr); align-items:start; height:auto; min-height:500px; }
  .telegram--signed { position:relative; width:auto; grid-column:1; grid-row:1; }
  .crew { position:relative; right:auto; top:auto; width:calc(100% + 8px); margin:58px 0 0 -8px; grid-column:2; grid-row:1; }
  .stamp { top:auto; bottom:50px; }
}

/* Fixed line metrics reserve the hero while its self-hosted faces arrive. */
.hero__kicker { line-height:1.2; }
.hero__sub { line-height:1.2; white-space:nowrap; }
.print figcaption { line-height:1.3; }
.print img { aspect-ratio:1600/1001; object-fit:cover; }
.print--small img { aspect-ratio:1000/625; }
