/* Hallmark · genre: playful · macrostructure: Marquee Hero · theme: custom (vibe: "riso tide-pool stamp book, patient, warm") · nav: N1a (two real destinations) · footer: Ft5 Statement
 * paper oklch(94.5% 0.03 196) pool · band oklch(86% 0.13 88) sun · accent oklch(65% 0.175 38) coral · display Young Serif + body Atkinson Hyperlegible
 * axes: light / roman-serif / chromatic-other (pool ground)
 */

:root {
  /* Ground and ink */
  --paper: oklch(94.5% 0.03 196);   /* pool: riso on blue-green stock */
  --paper-2: oklch(90.5% 0.045 196);
  --stamp: oklch(99.2% 0.008 90);
  --sepia: oklch(29% 0.035 50);
  --sepia-2: oklch(43% 0.04 52);
  --rule: oklch(29% 0.035 50 / 0.2);
  --coral: oklch(65% 0.175 38);
  --lagoon: oklch(81% 0.072 210);
  --lagoon-2: oklch(89% 0.042 205);
  --sun: oklch(86% 0.13 88);

  /* The crew inks: one per creature */
  --ink-cuttle: oklch(65% 0.175 38);
  --ink-shrimp: oklch(73% 0.13 5);
  --ink-hermit: oklch(67% 0.1 215);
  --ink-otter: oklch(52% 0.08 55);
  --ink-puff: oklch(81% 0.15 80);
  --ink-turtle: oklch(61% 0.12 155);
  --ink-wrasse: oklch(51% 0.13 260);

  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 72px; --space-4xl: 112px;
  --radius-sm: 8px; --radius-md: 12px; --radius-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-short: 160ms;
}

html, body { overflow-x: clip; }
.c-page, .bb { font-family: var(--font-body); color: var(--sepia); background: var(--paper); -webkit-font-smoothing: antialiased; }
.c-page *, .bb * { box-sizing: border-box; }
.c-page p, .bb p { margin: 0; }
.c-page img, .bb img { display: block; max-width: 100%; }

/* ---------- Wordmark: the two t's hold hands, like sea otters asleep ---------- */
.wm { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1; display: inline-block; white-space: nowrap; color: var(--sepia); text-decoration: none; }
.wm .tt { position: relative; }
.wm .tt::after { content: ""; position: absolute; left: 0.02em; right: -0.012em; top: 0.543em; height: 0.0625em; background: currentColor; border-radius: 0.01em; }

/* ---------- Shared type ---------- */
.c-display { font-family: var(--font-display); font-weight: 400; font-size: clamp(60px, 10.6vw, 160px); line-height: 1.04; text-wrap: balance; letter-spacing: -0.035em; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.c-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.14; text-wrap: balance; letter-spacing: -0.025em; margin: 0; overflow-wrap: anywhere; }
.c-h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0; }
.c-lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 36ch; }
.c-body { font-size: 18px; line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.c-small { font-size: 14px; line-height: 1.5; color: var(--sepia-2); }
.c-label { font-size: 15px; font-weight: 700; }
.c-num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill); background: var(--sepia); color: var(--paper); font: 700 17px/1 var(--font-body); white-space: nowrap; text-decoration: none; border: 0; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform 100ms var(--ease-out); }
.btn:hover { background: oklch(36% 0.06 45); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .tlink:focus-visible, .wm:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.tlink { color: var(--sepia); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.tlink:hover { text-decoration-color: var(--coral); }

/* ---------- Layout ---------- */
.c-wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding-inline: clamp(16px, 4.4vw, 64px); }
.c-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: 22px; }
.c-nav .wm { font-size: 38px; }
.c-nav-links { display: flex; align-items: center; gap: var(--space-lg); }

/* Hero: the headline is the page above the fold */
.c-hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: var(--space-2xl); }
.c-wait { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr) minmax(0, 230px); align-items: center; gap: clamp(8px, 2vw, 28px); margin-top: clamp(16px, 2vw, 28px); }
.c-wait .who img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.flip { transform: scaleX(-1); }
.ruler { position: relative; padding-top: 14px; }
.ruler-line { height: 3px; background: var(--sepia); border-radius: 2px; }
.ruler-ticks { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); }
.ruler-ticks span { position: relative; height: 30px; border-left: 2px solid var(--rule); font: 400 15px/1 var(--font-display); padding-left: 5px; padding-top: 12px; color: transparent; }
.ruler-ticks span.show { border-left-color: var(--sepia); color: var(--sepia-2); }
.ruler-end { position: absolute; right: 0; top: -20px; height: 64px; border-right: 3px solid var(--coral); }
.ruler-end b { position: absolute; right: 8px; top: -2px; font: 400 17px/1 var(--font-display); color: var(--coral); white-space: nowrap; }
.c-page .ruler-cap { margin-top: var(--space-xs); font-size: 14px; color: var(--sepia-2); max-width: 60ch; }

/* Study band */
.c-band { background: var(--sun); }
.c-band-2 { background: var(--paper-2); }
.c-section { padding-block: clamp(64px, 9vw, 128px); }
.c-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.c-split.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.c-stack { display: flex; flex-direction: column; gap: var(--space-lg); }

.plates { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.plate { flex: none; overflow: hidden; border-radius: 50%; background: var(--stamp); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: inset 0 0 0 10px oklch(99% 0.008 90), inset 0 0 0 12px var(--rule); }
.plate-now { width: clamp(150px, 16vw, 220px); aspect-ratio: 1; padding: 24px; }
.plate-later { width: clamp(220px, 25vw, 340px); aspect-ratio: 1; padding: 30px; }
.plate .c-h3 { font-size: clamp(20px, 2.2vw, 30px); }
.plate img { width: 56%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; margin: 2px auto; }
.plate-pick { font-size: 13px; line-height: 1.3; font-weight: 700; color: var(--sepia); max-width: 18ch; }
.cite { font-size: 14px; line-height: 1.5; color: var(--sepia); opacity: 0.86; border-top: 1px solid var(--rule); padding-top: var(--space-sm); max-width: 52ch; }

/* ---------- Stamps ---------- */
.stamp { --r: 5px; --g: 5px; position: relative; display: block; padding: calc(var(--r) + 7px); background: var(--stamp);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2 * var(--r) + var(--g)) calc(2 * var(--r) + var(--g)) round;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2 * var(--r) + var(--g)) calc(2 * var(--r) + var(--g)) round; }
.stamp-field { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: color-mix(in oklch, var(--ink, var(--coral)) 20%, var(--stamp)); overflow: hidden; }
.stamp-field img { width: 96%; height: auto; }
.stamp-top { position: absolute; left: 8px; top: 7px; font: 400 13px/1 var(--font-display); letter-spacing: -0.01em; }
.stamp-val { position: absolute; right: 8px; top: 7px; font: 700 13px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.stamp-job { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 700 12px/1 var(--font-body); letter-spacing: 0.09em; text-transform: uppercase; }
.stamp.sm { --r: 3px; --g: 3px; padding: 7px; }
.stamp.sm .stamp-field { aspect-ratio: 1; }

.ink-cuttle { --ink: var(--ink-cuttle); }
.ink-shrimp { --ink: var(--ink-shrimp); }
.ink-hermit { --ink: var(--ink-hermit); }
.ink-otter { --ink: var(--ink-otter); }
.ink-puff { --ink: var(--ink-puff); }
.ink-turtle { --ink: var(--ink-turtle); }
.ink-wrasse { --ink: var(--ink-wrasse); }

/* Goal card */
.goal { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: clamp(18px, 2.4vw, 32px); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px oklch(29% 0.035 50 / 0.45); }
.goal-head { display: flex; align-items: center; gap: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid var(--rule); }
.goal-head img { width: 76px; height: auto; flex: none; }
.goal-name { font: 400 28px/1.05 var(--font-display); }
.goal-head .goal-price { margin-left: auto; font: 700 22px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.book { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding-block: var(--space-lg); }
.slot { aspect-ratio: 1; border: 2px dashed oklch(29% 0.035 50 / 0.32); border-radius: 4px; display: flex; align-items: center; justify-content: center; font: 400 14px/1 var(--font-display); color: var(--sepia-2); }
.goal-foot { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; font-size: 15px; }
.goal .goal-note { margin-top: var(--space-sm); font-size: 14px; color: var(--sepia-2); }

/* Crew sheet */
.sheet { background: var(--paper-2); border-radius: var(--radius-sm); padding: clamp(16px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px) clamp(16px, 2.6vw, 36px); }
.crew-item { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.crew-item .c-h3 { margin-bottom: 4px; }
.crew-job { font-size: 15px; font-weight: 700; color: var(--sepia-2); margin-bottom: 6px; }
.crew-fact { font-size: 16px; line-height: 1.5; }

/* Stamp book history */
.c-narrow { max-width: 760px; }
.b75 { width: 100%; aspect-ratio: 15 / 5; background-color: var(--stamp); background-image: linear-gradient(90deg, var(--paper-2) 3px, transparent 3px), linear-gradient(0deg, var(--paper-2) 3px, transparent 3px), linear-gradient(var(--ink-puff), var(--ink-puff)); background-size: calc(100% / 15) calc(100% / 5), calc(100% / 15) calc(100% / 5), 100% 100%; background-clip: padding-box; border: 3px solid var(--paper-2); border-radius: 2px; }
.b75-wrap { background: var(--stamp); padding: 14px; border-radius: 4px; box-shadow: 0 1px 0 var(--rule); }
.b75-cap { display: flex; justify-content: space-between; width: 100%; font-size: 14px; color: var(--sepia-2); margin-top: var(--space-xs); font-variant-numeric: tabular-nums; }

/* Parents list */
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--sepia); }
.facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-sm); padding-block: 18px; border-bottom: 1px solid var(--rule); font-size: 19px; line-height: 1.45; }
.facts li .n { font: 400 20px/1.3 var(--font-display); color: var(--coral); }
.todo { background: oklch(29% 0.035 50 / 0.07); border-radius: 4px; padding: 0 6px; font-size: 0.9em; }

/* Footer statement */
.c-foot { padding-top: clamp(64px, 9vw, 120px); padding-bottom: var(--space-xl); }
.c-foot-line { font-family: var(--font-display); font-size: clamp(48px, 8vw, 116px); line-height: 1.06; text-wrap: balance; letter-spacing: -0.03em; margin: 0; }
.parade { display: flex; align-items: flex-end; gap: clamp(4px, 1.4vw, 20px); margin-top: var(--space-2xl); flex-wrap: wrap; }
.parade img { width: clamp(72px, 9vw, 132px); height: auto; }
.c-foot-meta { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: var(--space-xl); padding-top: var(--space-lg); font-size: 14px; color: var(--sepia-2); }
.c-foot-meta nav { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.c-foot-meta a { color: var(--sepia); }

@media (max-width: 900px) {
  .c-split, .c-split.rev { grid-template-columns: minmax(0, 1fr); }
  .c-split.rev > .c-stack { order: -1; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-wait { grid-template-columns: minmax(0, 160px) minmax(0, 1fr) minmax(0, 100px); }
  .ruler-ticks span { color: transparent; }
  .ruler-ticks span.show { color: var(--sepia-2); }
}
@media (max-width: 560px) {
  .c-nav .wm { font-size: 30px; }
  .c-nav-links .tlink { display: none; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .crew-item { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
  .c-wait { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) minmax(0, 72px); gap: 6px; }
  .ruler-end b { font-size: 12px; }
  .plates { flex-direction: row; gap: 12px; }
  .plate-now { width: 128px; padding: 16px; }
  .plate-later { width: 206px; padding: 22px; }
  .book { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .goal-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- Brand book pages (1280 x 800) ---------- */
.bb { box-sizing: border-box; width: 1280px; height: 800px; position: relative; overflow: hidden; padding: 48px 64px; display: flex; flex-direction: column; }
.bb-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; color: var(--sepia-2); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.bb-head .wm { font-size: 22px; letter-spacing: -0.02em; color: var(--sepia); }
.bb-title { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1.1; text-wrap: balance; letter-spacing: -0.025em; margin: 36px 0 0; }
.bb-body { flex: 1; min-height: 0; display: grid; gap: 40px; margin-top: 32px; }
.bb-p { font-size: 18px; line-height: 1.55; max-width: 52ch; }
.bb-cap { font-size: 13px; line-height: 1.45; color: var(--sepia-2); }
.bb-rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.swatch { border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; font-size: 13px; line-height: 1.35; }
.swatch b { font: 400 22px/1.1 var(--font-display); display: block; margin-bottom: 4px; }
.dd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 2px solid var(--sepia); }
.dd > div { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.45; }
.dd .h { font-size: 15px; font-weight: 700; padding-block: 12px; }
.mark-x { position: relative; }
.no { position: relative; }
.no::after { content: ""; position: absolute; inset: 6px; background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--coral) calc(50% - 1.5px), var(--coral) calc(50% + 1.5px), transparent calc(50% + 1.5px)); pointer-events: none; }

/* One authored motion moment: the wait. The ruler fills from 0 to 130 seconds once, on load. */
@keyframes c-wait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes c-flag { from { opacity: 0; } to { opacity: 1; } }
.c-hero .ruler-line { transform-origin: left center; animation: c-wait 1.3s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both; }
.c-hero .ruler-end { animation: c-flag 200ms ease-out 1.6s both; }
@media (prefers-reduced-motion: reduce) {
  .c-hero .ruler-line { animation: none; }
  .c-hero .ruler-end { animation: c-flag 150ms ease-out 0s both; }
}

/* ---------- Waitlist site additions ---------- */
.c-display.wl { font-size: clamp(50px, 8.2vw, 124px); max-width: 13ch; }
.c-hero .c-lede { margin-top: var(--space-lg); max-width: 40ch; }
.wl-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; max-width: 580px; margin-top: var(--space-xl); }
.wl-form label { width: 100%; font-weight: 700; font-size: 15px; }
.wl-input { flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 20px; border: 2px solid var(--sepia); border-radius: var(--radius-pill); background: var(--stamp); font: 400 17px/1 var(--font-body); color: var(--sepia); }
.wl-input::placeholder { color: var(--sepia-2); }
.wl-input:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.wl-note { width: 100%; font-size: 14px; color: var(--sepia-2); }
.bot { position: absolute; left: -9999px; }
.helpers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: var(--space-lg); }
.helper img { width: 100%; height: auto; background: var(--paper-2); border-radius: var(--radius-sm); }
.helper .c-h3 { font-size: 20px; margin-top: 10px; }
.helper p { font-size: 15px; line-height: 1.45; }
.c-join { text-align: left; }
.small-page { max-width: 680px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 4.4vw, 64px); }
.small-page h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.1; margin: 0 0 var(--space-lg); }
.small-page p { font-size: 18px; line-height: 1.6; margin: 0 0 var(--space-md); }
/* Laptop and desktop: fit the wait strip above the fold. The headline runs two lines and
 * scales with window height too, and the strip shrinks on short windows. */
@media (min-width: 1000px) {
  .c-hero { padding-top: clamp(16px, 3.5svh, 56px); }
  .c-display.wl { max-width: none; font-size: clamp(50px, min(8.2vw, 15svh), 124px); }
  .c-hero .c-lede { margin-top: var(--space-md); }
  .c-hero .wl-form { margin-top: var(--space-lg); }
  .c-hero .c-wait { --cuttle: clamp(220px, 2 * (100svh - 620px), 400px); grid-template-columns: minmax(0, var(--cuttle)) minmax(0, 1fr) minmax(0, calc(var(--cuttle) * 0.575)); margin-top: var(--space-md); }
}
@media (max-width: 900px) { .helpers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .helpers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wl-form .btn { width: 100%; } }
.c-join .c-lede { margin-top: var(--space-md); }
