/* The Motherhood Map — Momunnity.com
   Palette: warm cream, dusty blue, sage, butter, blush, muted brown ink. */

:root {
  --cream: #F4EBDC;
  --paper: #FBF5EA;
  --paper-2: #EFE3CF;
  --blue: #9DB7CB;
  --blue-soft: #C6D6E2;
  --blue-deep: #4F6E86;
  --sage: #B9C7A9;
  --butter: #EBD08A;
  --blush: #EBC7B8;
  --lilac: #D9C2E0;
  --ink: #3B2A22;
  --soft: #6E5B50;
  --night: #26323F;
  --night-2: #2F3E4E;
  --error: #A3412B;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --sheet-r: 56px;
  --gutter: clamp(1rem, 5vw, 3rem);
  --lift: 0 6px 0 rgba(59, 42, 34, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .22;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .16 0 0 0 0 .13 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100;
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; letter-spacing: -.015em; }

p { margin: 0 0 1em; max-width: 36em; text-wrap: pretty; }
a { color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .7rem 1.1rem; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 800 1.02rem/1 var(--sans);
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(59, 42, 34, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(59, 42, 34, .28); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.btn--ghost:active { box-shadow: inset 0 0 0 2.5px var(--ink); }
.btn--small { padding: .72rem 1.3rem; font-size: .95rem; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: .9rem 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-head.is-scrolled {
  background: rgba(244, 235, 220, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(59, 42, 34, .12);
  padding: .55rem 0;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.menu ul { display: flex; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.menu a { font-weight: 700; font-size: .98rem; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.menu i { display: none; }
.m-only, .burger, .scrim, .menu-cta { display: none; }
.menu-cta { width: 100%; margin-top: 1.1rem; }
html.no-scroll { overflow: hidden; }

.burger {
  width: 46px; height: 46px; flex: none; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 2.5px var(--ink);
  position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.5, 0, .2, 1), opacity .2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; right: 18px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* logo: pin mark + rounded wordmark, the i's tittle is a small heart */
.brand {
  --pin: var(--ink); --face: #FFFDF8; --baby: var(--butter);
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none;
}
.mark { height: 48px; width: auto; flex: none; transition: transform .35s cubic-bezier(.34, 1.5, .5, 1); transform-origin: 50% 70%; }
.brand:hover .mark { transform: rotate(-6deg); }
.wordmark {
  font: 600 1.85rem/1 "Fredoka", var(--sans);
  letter-spacing: -.01em;
  padding-top: .1em;
}
.wordmark .i { position: relative; }
.wordmark .i::before {
  content: ""; position: absolute; left: 50%; top: .16em;
  width: .31em; height: .28em; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath fill='%23E0B85C' d='M17 29C9 23 1 17 1 9 1 4 5 1 9 1c4 0 7 2 8 6 1-4 4-6 8-6 4 0 8 3 8 8 0 8-8 14-16 20Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- sheets (stacked paper sections) ---------- */
.sheet {
  position: relative;
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  margin-top: calc(var(--sheet-r) * -1);
  padding: calc(var(--sheet-r) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(4.5rem, 9vw, 7.5rem);
  box-shadow: 0 -14px 28px -22px rgba(40, 25, 15, .45);
}

.note {
  font: 600 clamp(1.55rem, 2.2vw, 1.85rem)/1.1 var(--hand);
  color: var(--soft);
  margin: 0 0 .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.note svg { width: 38px; height: 22px; flex: none; }

/* ---------- hero ---------- */
.hero {
  background: var(--blue);
  padding: clamp(7rem, 12vw, 9rem) 0 calc(var(--sheet-r) + 4.5rem);
  position: relative;
  overflow: hidden;
}
.hero-sun {
  position: absolute; right: -6vw; top: -10vw;
  width: min(44vw, 470px); aspect-ratio: 1; border-radius: 50%;
  background: var(--butter); opacity: .85;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { margin-bottom: 1.6rem; }
.hero-lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-map { position: relative; }
.hero-map svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 18px rgba(38, 50, 63, .22)); transform: rotate(-2deg); }
.route-ink { stroke-dasharray: 2 11; }
.map-label { font: 700 23px var(--hand); fill: var(--ink); stroke: #FBF5EA; stroke-width: 6px; stroke-linejoin: round; paint-order: stroke; }
.map-pin { transition: transform .55s cubic-bezier(.34, 1.4, .5, 1); }
.pin-drop { animation: pin-drop .7s 2s cubic-bezier(.34, 1.5, .5, 1) both; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
.route-mask { animation: draw 2.2s .3s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes draw { from { stroke-dashoffset: var(--len, 900); } to { stroke-dashoffset: 0; } }

.months { position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.months-q { font: 600 1.55rem/1.1 var(--hand); margin: 0 0 1rem; }
.month-row { display: flex; gap: clamp(.45rem, 1vw, .7rem); list-style: none; margin: 0; padding: 0; max-width: 920px; }
.month-row li { flex: 1 1 0; min-width: 0; }
.month {
  width: 100%; max-width: 72px; aspect-ratio: 1;
  border: 0; border-radius: 18px;
  color: var(--ink); cursor: pointer;
  font: 600 clamp(1.3rem, 2.3vw, 1.75rem)/1 var(--serif); font-variation-settings: "SOFT" 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  box-shadow: 0 5px 0 rgba(38, 50, 63, .22);
  transition: transform .2s ease;
}
.month small { font: 700 .62rem/1 var(--sans); opacity: .7; }
.month-row li:nth-child(3n+1) .month { transform: rotate(-4deg); }
.month-row li:nth-child(3n+2) .month { transform: rotate(3deg) translateY(5px); }
.month-row li:nth-child(3n) .month { transform: rotate(-1deg) translateY(-3px); }
.month-row .month:hover, .month-row .month:focus-visible { transform: translateY(-8px) rotate(0); }

.st-1 { background: var(--sage); }
.st-2 { background: var(--butter); }
.st-3 { background: var(--blush); }
.st-4 { background: var(--paper); }
.st-5 { background: var(--lilac); }
.st-6 { background: var(--blue-soft); }

/* ---------- 2 a.m. ---------- */
.night { background: var(--night); color: #EFE6D8; overflow: hidden; }
.night .note { color: #B8C4CF; }
.night-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.night h2 { font-size: clamp(3rem, 8vw, 6.4rem); margin-bottom: 1.8rem; }
.night p { font-size: clamp(1.12rem, 1.5vw, 1.25rem); color: #DDD3C4; }
.night .pull {
  font: 400 italic clamp(1.45rem, 2.4vw, 2rem)/1.3 var(--serif); font-variation-settings: "SOFT" 100;
  color: var(--butter); margin-top: 2rem; max-width: 22em;
  padding-left: 1.2rem; border-left: 3px solid rgba(235, 208, 138, .5);
}
.moon {
  position: absolute; top: calc(var(--sheet-r) + 2.4rem); right: 8%;
  width: 58px; height: 58px; border-radius: 50%;
  box-shadow: -14px 8px 0 0 #F1E3B8;
  transform: rotate(-12deg);
}
.star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #F1E3B8; opacity: .7; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }

.phone {
  justify-self: center;
  width: min(290px, 100%); aspect-ratio: 9 / 17.5;
  border-radius: 42px; padding: 14px;
  background: #1A232D;
  box-shadow: 0 0 0 2px #3A4A5B, 0 30px 80px -10px rgba(157, 183, 203, .35);
  transform: rotate(4deg);
}
.screen {
  height: 100%; border-radius: 30px; overflow: hidden; position: relative;
  background: linear-gradient(#34465A, #2B3A4A);
  padding: 16px 14px;
  display: flex; flex-direction: column;
}
.feed {
  flex: 1; min-height: 0; overflow: hidden; padding-top: 4px;
  -webkit-mask: linear-gradient(transparent, #000 16px, #000 82%, transparent);
  mask: linear-gradient(transparent, #000 16px, #000 82%, transparent);
}
.screen-top { display: flex; justify-content: space-between; font: 800 .8rem/1 var(--sans); color: #DCE6EE; padding: 2px 8px 14px; }
.search { flex: none; height: 34px; border-radius: 999px; background: #465B70; margin-bottom: 14px; display: flex; align-items: center; padding: 0 12px; gap: 8px; }
.search i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #9FB3C5; flex: none; }
.search b { height: 7px; width: 60%; border-radius: 9px; background: #7D93A8; }
.results { display: grid; gap: 10px; animation: scroll-results 14s ease-in-out infinite alternate; }
@keyframes scroll-results { to { transform: translateY(-30%); } }
.res { background: #3C5064; border-radius: 14px; padding: 11px 12px; display: grid; grid-template-columns: 20px 1fr; gap: 6px 10px; }
.res i { grid-row: span 2; width: 20px; height: 20px; border-radius: 6px; }
.res b { height: 7px; border-radius: 9px; background: #8BA0B4; }
.res b + b { width: 70%; background: #5E7489; }
.res.yes i { background: var(--sage); }
.res.no i { background: #D99A86; }
.res.maybe i { background: var(--butter); }

/* ---------- permission ---------- */
.permission { background: var(--sage); text-align: center; }
.permission h2 { font-size: clamp(2.6rem, 7.6vw, 6.4rem); max-width: 10.5em; margin: 0 auto 2.4rem; }
.slips { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.2rem; list-style: none; padding: 0; margin: 0 auto 3rem; max-width: 900px; }
.slips li {
  background: var(--paper); padding: .95rem 1.4rem .95rem 1.1rem; border-radius: 6px;
  font: 500 clamp(1.1rem, 1.8vw, 1.35rem)/1.25 var(--serif); font-variation-settings: "SOFT" 100;
  box-shadow: var(--lift);
  display: flex; align-items: center; gap: .75rem; text-align: left;
}
.slips li:nth-child(1) { transform: rotate(-2.5deg); }
.slips li:nth-child(2) { transform: rotate(1.8deg) translateY(8px); background: var(--butter); }
.slips li:nth-child(3) { transform: rotate(-1deg); }
.tick { width: 26px; height: 26px; flex: none; }
.permission .closing { font-size: clamp(1.15rem, 1.7vw, 1.35rem); margin: 0 auto; max-width: 32em; }

/* ---------- the map (stages) ---------- */
.map-sec { background: var(--cream); }
.map-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.map-intro p { font-size: 1.15rem; margin: 0; }

.trail { --d: 60px; position: relative; margin: clamp(3rem, 6vw, 4.5rem) 0 1.6rem; }
.trail svg { position: absolute; left: 0; right: 0; top: calc(var(--d) / 2 - 20px); width: 100%; height: 80px; }
.trail-line { fill: none; stroke: var(--soft); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; }
.tabs { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0; padding: 0; }
.tabs li:nth-child(even) { padding-top: 40px; }
.stop {
  width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font: 700 .92rem/1.2 var(--sans);
}
.stop .dot {
  width: var(--d); height: var(--d); border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.5rem/1 var(--serif); font-variation-settings: "SOFT" 100;
  box-shadow: 0 0 0 5px var(--cream), 0 5px 0 5px rgba(59, 42, 34, .12);
  transition: transform .25s cubic-bezier(.34, 1.5, .5, 1);
}
.stop:hover .dot { transform: scale(1.08); }
.stop .when { color: var(--soft); }
.stop[aria-selected="true"] .dot { transform: scale(1.14); box-shadow: 0 0 0 5px var(--cream), 0 0 0 8px var(--ink); }
.stop[aria-selected="true"] .when { color: var(--ink); }
.stop:focus-visible { outline: none; }
.stop:focus-visible:not([aria-selected="true"]) .dot { outline: 3px solid var(--ink); outline-offset: 8px; }
.stop[aria-selected="true"]:focus-visible .dot { box-shadow: 0 0 0 5px var(--cream), 0 0 0 9px var(--ink); }

.stage-panel {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center;
  background: var(--paper);
  border-radius: 40px 40px 40px 10px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--lift);
}
.stage-num {
  width: clamp(110px, 16vw, 170px); aspect-ratio: 1;
  display: grid; place-items: center;
  font: 500 italic clamp(4rem, 9vw, 6.4rem)/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  transition: background .35s ease;
}
.stage-when { font: 600 1.5rem/1 var(--hand); color: var(--soft); margin: 0 0 .4rem; }
.stage-panel h3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: .8rem; }
.stage-panel p { margin: 0; }
.stage-panel.swap .stage-body, .stage-panel.swap .stage-num { animation: swap .45s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- what's inside ---------- */
.inside { background: var(--butter); }
.inside h2 { max-width: 12em; }
.inside-list { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.inside-list li { background: var(--paper); padding: 1.6rem 1.4rem 1.5rem; font-size: 1.08rem; line-height: 1.45; box-shadow: var(--lift); }
.inside-list li:nth-child(1) { border-radius: 60px 60px 18px 18px; }
.inside-list li:nth-child(2) { border-radius: 18px 60px 18px 60px; transform: translateY(18px); }
.inside-list li:nth-child(3) { border-radius: 18px; }
.inside-list li:nth-child(4) { border-radius: 60px 18px 60px 18px; transform: translateY(18px); }
.inside-list svg { width: 46px; height: 46px; margin-bottom: 1.1rem; }
.inside-list strong { display: block; font: 600 1.35rem/1.15 var(--serif); font-variation-settings: "SOFT" 100; margin-bottom: .35rem; }
.minute {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
}
.minute svg { width: clamp(70px, 9vw, 96px); flex: none; }
.minute p { font: 500 clamp(1.5rem, 3vw, 2.3rem)/1.2 var(--serif); font-variation-settings: "SOFT" 100; margin: 0; max-width: 22em; }
.minute .hand { transform-origin: 48px 54px; animation: tick-round 6s steps(12) infinite; }
@keyframes tick-round { to { transform: rotate(360deg); } }

/* ---------- inside one chapter ---------- */
.chapter { background: var(--blue); }
.chapter-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.chapter .note { color: var(--ink); opacity: .75; }
.chapter h2 { margin-bottom: 1.4rem; }
.chapter-stage { display: block; font: 600 2.1rem/1 var(--hand); margin-bottom: .6rem; }
.chapter-grid > div > p { font-size: 1.15rem; }

.page {
  position: relative;
  background:
    linear-gradient(90deg, transparent 58px, rgba(235, 199, 184, .9) 58px, rgba(235, 199, 184, .9) 60px, transparent 60px),
    repeating-linear-gradient(var(--paper) 0 33px, #E2D6C2 33px 34px),
    var(--paper);
  background-position: 0 0, 0 20px, 0 0;
  border-radius: 10px 26px 26px 10px;
  padding: 2rem 1.8rem 2.2rem 5.2rem;
  box-shadow: 0 10px 0 rgba(38, 50, 63, .18), 0 30px 50px -20px rgba(38, 50, 63, .4);
  transform: rotate(1.6deg);
}
.page::before { /* punched holes */
  content: ""; position: absolute; left: 20px; top: 26px; bottom: 26px; width: 16px;
  background: radial-gradient(circle at 8px 8px, var(--blue) 7px, transparent 8px) 0 0 / 16px 68px repeat-y;
}
.clip { position: absolute; top: -26px; right: 60px; width: 34px; height: 86px; transform: rotate(8deg); }
.page-kicker { font: 800 .82rem/1 var(--sans); color: var(--soft); margin: 0 0 .7rem; }
.page h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.4rem; }
.day { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.day li { text-align: center; font: 600 1.3rem/1 var(--hand); padding: .8rem .2rem; border-radius: 999px; }
.day li:nth-child(1) { background: var(--butter); }
.day li:nth-child(2) { background: var(--sage); }
.day li:nth-child(3) { background: var(--blush); }
.day li:nth-child(4) { background: var(--blue-soft); }
.jot { margin: 0 0 1.05rem; }
.jot dt { font: 800 .9rem/1.2 var(--sans); margin-bottom: .1rem; }
.jot dd { margin: 0; font: 500 1.55rem/1.3 var(--hand); color: var(--blue-deep); }
.page-foot { font-size: .82rem; color: var(--soft); margin: 1.4rem 0 0; }

/* ---------- for whom ---------- */
.whom { background: var(--cream); }
.whom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.whom h2 { margin-bottom: 1.4rem; }
.whom-grid p { font-size: 1.2rem; }
.ahead { width: 100%; height: auto; }
.ahead text { font-family: var(--hand); font-weight: 600; fill: var(--ink); }
.ahead .num { font-family: var(--serif); font-weight: 600; font-size: 44px; }

/* ---------- notes from other moms ---------- */
.reviews { background: var(--blush); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.8rem, 6vw, 4rem); max-width: 1000px; }
.notes figure {
  position: relative; margin: 0;
  background: var(--paper); padding: 2.6rem 2rem 1.8rem; border-radius: 4px;
  box-shadow: var(--lift);
}
.notes figure:nth-child(1) { transform: rotate(-1.8deg); }
.notes figure:nth-child(2) { transform: rotate(1.4deg) translateY(2.5rem); }
.notes figure::before { /* washi tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px;
  background: repeating-linear-gradient(45deg, rgba(157, 183, 203, .75) 0 8px, rgba(185, 199, 169, .75) 8px 16px);
  transform: rotate(-3deg);
}
.notes figure:nth-child(2)::before { background: repeating-linear-gradient(-45deg, rgba(235, 208, 138, .85) 0 8px, rgba(251, 245, 234, .85) 8px 16px); transform: rotate(4deg); }
.notes blockquote { margin: 0 0 1.4rem; font: 500 clamp(1.3rem, 2.2vw, 1.7rem)/1.32 var(--serif); font-variation-settings: "SOFT" 100; }
.notes figcaption { font: 600 1.5rem/1.1 var(--hand); color: var(--soft); }

/* ---------- free checklist ---------- */
.free { background: var(--cream); }
.ticket {
  --notch: 22px;
  position: relative;
  background: var(--blue);
  border-radius: 30px;
  padding: clamp(2rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); margin-bottom: 1.2rem; }
.ticket p { font-size: 1.12rem; }
.stamp { position: absolute; z-index: 2; top: 1.2rem; right: 1.3rem; width: 104px; height: 104px; animation: spin 26s linear infinite; }
.stamp text { font: 800 10.5px var(--sans); fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.form-card {
  background: var(--paper); border-radius: 26px; padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 8px 0 rgba(38, 50, 63, .18);
  position: relative; z-index: 1;
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: .4rem; }
.field label span { font-weight: 600; color: var(--soft); }
.field input {
  width: 100%; font: 600 1.05rem var(--sans); color: var(--ink);
  padding: .95rem 1.2rem; border-radius: 16px;
  border: 2px solid #D8CAB4; background: #fff;
  transition: border-color .2s ease;
}
.field input::placeholder { color: #A8978A; }
.field input:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--error); background: #FFF6F2; }
.field .err { display: none; color: var(--error); font-size: .9rem; font-weight: 700; margin-top: .35rem; }
.field input[aria-invalid="true"] + .err { display: block; }
.form-card .btn { width: 100%; margin-top: .3rem; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }
.btn[aria-busy="true"]::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.fine { font-size: .85rem; color: var(--soft); margin: .9rem 0 0; }
.done:focus { outline: none; }
.done { display: none; text-align: center; padding: 1rem 0 .5rem; }
.done svg { width: 84px; margin: 0 auto 1rem; }
.done h3 { margin-bottom: .6rem; }
.done p { margin: 0 auto; font-size: 1rem; }
.form-card.is-done form { display: none; }
.form-card.is-done .done { display: block; animation: swap .5s cubic-bezier(.3, 1.3, .5, 1); }
.done .check { stroke-dasharray: 60; stroke-dashoffset: 60; }
.form-card.is-done .check { animation: check .6s .15s ease forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }

/* ---------- journal ---------- */
.journal { background: var(--paper); }
.journal-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.journal-head p { margin: 0; font-size: 1.15rem; }
.posts { list-style: none; margin: clamp(2.6rem, 5vw, 3.6rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.post {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; background: var(--cream); border-radius: 24px; overflow: hidden;
  box-shadow: var(--lift);
}
.post-art { height: 120px; position: relative; overflow: hidden; }
.post-art span { position: absolute; }
.post-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-topic { font: 600 1.35rem/1 var(--hand); color: var(--soft); margin-bottom: .45rem; }
.post h3 { font-size: 1.32rem; margin-bottom: .6rem; }
.post p { font-size: .98rem; color: var(--soft); margin: 0; line-height: 1.5; }

.art-1 { background: var(--sage); }
.art-1 span { width: 90px; height: 90px; border-radius: 50%; background: var(--paper); right: 18px; bottom: -34px; }
.art-2 { background: var(--blush); }
.art-2 span { width: 150px; height: 60px; border-radius: 999px 999px 0 0; background: var(--butter); left: 16px; bottom: 0; }
.art-3 { background: var(--butter); }
.art-3 span { width: 70px; height: 70px; border-radius: 18px; background: var(--blue); left: 24px; top: 26px; transform: rotate(12deg); }
.art-4 { background: var(--blue); }
.art-4 span { width: 110px; height: 110px; border-radius: 0 50% 50% 50%; background: var(--blush); right: 26px; top: 24px; }

/* ---------- final cta ---------- */
.cta { background: var(--butter); text-align: center; }
.cta h2 { font-size: clamp(2.6rem, 7.6vw, 6.2rem); max-width: 10.5em; margin: 0 auto 1.6rem; }
.cta p { margin: 0 auto 2.2rem; font-size: 1.2rem; max-width: 30em; }
.squiggle { width: min(300px, 70%); margin: 0 auto 2rem; }
.cta .disclaimer { font-size: .92rem; color: var(--soft); margin: 1.6rem auto 0; max-width: 34em; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #E9DECF; padding-bottom: 3rem; }
.site-foot.sheet { padding-top: calc(var(--sheet-r) + 3.5rem); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: start; }
.foot-grid p { font-size: .98rem; color: #CFC2B3; }
.foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; list-style: none; padding: 0; margin: .4rem 0 0; justify-content: flex-end; }
.foot-links a { text-decoration: none; font-weight: 700; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { max-width: none; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(233, 222, 207, .18); font-size: .88rem; color: #B7A898; }
.site-foot :focus-visible { outline-color: var(--cream); }
.site-foot .brand { --pin: var(--cream); --face: var(--ink); color: var(--cream); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 60;
  transform: translate(-50%, 140%);
  background: var(--ink); color: var(--cream);
  padding: .95rem 1.4rem; border-radius: 18px; max-width: calc(100% - 2rem);
  font-weight: 700; font-size: .98rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .45s cubic-bezier(.34, 1.4, .5, 1);
}
.toast { visibility: hidden; transition: transform .45s cubic-bezier(.34, 1.4, .5, 1), visibility 0s .45s; }
.toast.is-on { visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; min-height: 100svh; background: var(--blue); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.lost-main { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: 7rem; padding-bottom: 4rem; position: relative; }
.lost .lost-code { font: 600 clamp(5rem, 16vw, 11rem)/.9 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.04em; display: flex; align-items: center; margin-bottom: 1.2rem; }
.lost-code svg { width: .78em; height: .95em; margin: 0 .02em; }
.lost h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 1.2rem; }
.lost p { font-size: 1.18rem; }
.lost .hero-actions { margin-top: 1.8rem; }
.lost-map svg { width: 100%; height: auto; transform: rotate(3deg); filter: drop-shadow(0 16px 18px rgba(38, 50, 63, .22)); overflow: visible; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .inside-list, .posts { grid-template-columns: 1fr 1fr; }
  .inside-list li:nth-child(n) { transform: none; }
}

@media (max-width: 860px) {
  :root { --sheet-r: 34px; }
  .site-nav { gap: .6rem; }
  .burger, .m-only { display: block; }
  .menu-open, .site-head.menu-open.is-scrolled { background: var(--cream); box-shadow: 0 1px 0 rgba(59, 42, 34, .12); }
  .menu {
    position: absolute; top: calc(100% + .6rem); left: .75rem; right: .75rem;
    background: var(--paper); border-radius: 30px 30px 30px 10px;
    padding: 1.4rem 1.4rem 1.5rem;
    box-shadow: 0 8px 0 rgba(59, 42, 34, .14), 0 24px 50px -18px rgba(38, 30, 25, .45);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
    transition: opacity .22s ease, transform .3s cubic-bezier(.34, 1.3, .5, 1), visibility 0s .3s;
  }
  .menu-open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li + li { border-top: 1.5px dashed #DDCFB9; }
  .menu a {
    display: flex; align-items: center; gap: .9rem; padding: .95rem .3rem;
    font: 560 1.65rem/1.1 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -.015em;
  }
  .menu a:hover { text-decoration: none; }
  .menu a.menu-cta { display: none; justify-content: center; padding: 1.05rem 1.9rem; font: 800 1.02rem/1 var(--sans); letter-spacing: 0; color: var(--cream); }
  .menu i { display: block; width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(59, 42, 34, .25); }
  .menu-foot { font-size: .85rem; color: var(--soft); margin: 1rem .3rem 0; }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 49;
    background: rgba(38, 50, 63, .35);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s;
  }
  html.no-scroll .scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
  .hero-grid, .night-grid, .map-intro, .chapter-grid, .whom-grid, .ticket, .journal-head, .foot-grid, .lost-main { grid-template-columns: minmax(0, 1fr); }
  .hero-map { max-width: 460px; margin: 0 auto; width: 100%; }
  .phone { width: 230px; transform: rotate(3deg); }
  .moon { right: 1.2rem; width: 44px; height: 44px; }
  .trail { --d: 44px; }
  .stop .dot { font-size: 1.15rem; }
  .stop .when { font-size: .78rem; white-space: nowrap; }
  .when-word { display: none; }
  .stage-panel { grid-template-columns: 1fr; border-radius: 30px 30px 30px 10px; }
  .stage-num { width: 96px; font-size: 3.6rem; }
  .notes { grid-template-columns: 1fr; }
  .notes figure:nth-child(2) { transform: rotate(1.4deg); }
  .page { padding-left: 4.4rem; padding-right: 1.3rem; transform: rotate(1deg); }
  .page { background-position: -8px 0, 0 20px, 0 0; }
  .stamp { width: 84px; height: 84px; top: 1rem; right: 1rem; }
  .ticket h2 { padding-right: 4.5rem; }
  .foot-links { justify-content: flex-start; }
  .lost-main { padding-top: 6.5rem; }
  .lost-map { order: -1; max-width: 360px; }
  .ahead { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .mark { height: 40px; }
  .wordmark { font-size: 1.5rem; }
  .site-head .btn--small { padding: .62rem 1rem; font-size: .88rem; }
  .inside-list, .posts { grid-template-columns: 1fr; }
  .month-row { gap: .45rem; flex-wrap: wrap; }
  .month-row li { flex: 0 0 calc((100% - 5 * .45rem) / 6); }
  .month-row li .month { width: 100%; max-width: none; border-radius: 14px; }
  .day li { font-size: 1.05rem; }
  .ticket { --notch: 16px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .site-head .nav-cta { display: none; }
  .menu a.menu-cta { display: flex; }
  .wordmark { font-size: 1.45rem; }
  .day { grid-template-columns: 1fr 1fr; }
  .page { padding: 1.6rem 1.1rem 1.8rem 3.6rem; background-position: -22px 0, 0 20px, 0 0; }
  .page::before { left: 12px; }
  .clip { right: 16px; height: 70px; top: -22px; }
  .page-kicker { padding-right: 2.4rem; }
  .ticket { padding: 1.8rem 1.3rem; }
  .ticket h2 { font-size: 1.75rem; padding-right: 0; margin-top: 4.2rem; }
  .stamp { width: 78px; height: 78px; }
  .form-card { padding: 1.2rem; }
  .notes figure { padding: 2.3rem 1.4rem 1.5rem; }
  .stage-panel { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route-mask { stroke-dashoffset: 0 !important; }
  .done .check { stroke-dashoffset: 0; }
}
