/* =========================================================================
   Book of Recipes — bookofrecipes.co
   Editorial cookbook. Quiet, dense, asymmetric: a wordmark rather than a
   sales headline, left-aligned copy inside centred columns, an indented
   process ladder that drifts right and back, and an index of rows where a
   lesser page would put a row of cards.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --paper:     #faf4e8;
  --paper-2:   #f4ecdb;
  --card:      #fffdf7;
  --ink:       #16130d;
  --ink-2:     #554c3d;
  --ink-3:     #8a7f6a;
  --rule:      #ddd0b5;
  --rule-soft: #e9dfc9;

  --tomato:  #c93f26;
  --saffron: #e9a72c;
  --herb:    #2f6b4f;
  --mint:    #c6e3ce;
  --berry:   #7b3350;
  --sky:     #a9c8dd;

  /* One family carries the page; the serif is reserved for editorial moments. */
  --display:   "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --editorial: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1040px;
  --gut: clamp(1.15rem, 4vw, 2rem);
  --r: 7px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
dl, dd { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain is fixed and inert so it never repaints while the page scrolls. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .45; 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'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.display { font-family: var(--display); font-weight: 800; font-stretch: 96%; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav__in { display: flex; align-items: center; gap: 1rem; min-height: 2.9rem; max-width: 1400px; margin-inline: auto; padding-inline: clamp(1rem, 3vw, 1.75rem); width: 100%; }
.brand { font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: -.04em; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.brand svg { width: 17px; height: 17px; flex: none; }
.nav__links { display: flex; gap: 1.1rem; margin-inline: auto; font-size: .72rem; }
.nav__links a { text-decoration: none; color: var(--ink-2); position: relative; padding-block: .15rem; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink); transition: right .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: .4rem; }

/* ---------- buttons — small on purpose ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--rule);
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--display); font-size: .715rem; font-weight: 600; letter-spacing: -.005em;
  padding: .34rem .75rem;
  border: 1px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { --bd: var(--ink); }
.btn:active { transform: scale(.975); }
.btn svg { width: 11px; height: 11px; flex: none; }
.btn--solid { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--solid:hover { --bg: var(--tomato); --bd: var(--tomato); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.nav__actions .btn--quiet { border-color: transparent; color: var(--ink-2); }
.nav__actions .btn--quiet:hover { color: var(--ink); border-color: var(--rule); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.5rem, 3.5vw, 2.5rem) 0; }
.hero__wordmark { font-size: clamp(1.75rem, 4.4vw, 2.9rem); text-align: center; }
.hero__tagline {
  font-weight: 600; font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  line-height: 1.08; text-align: center; margin-top: .1rem;
  max-width: 17ch; margin-inline: auto;
}
.hero__tagline span { display: inline; }
.hero__art { margin: clamp(.75rem, 2.4vw, 1.5rem) auto clamp(1rem, 2.4vw, 1.5rem); max-width: 500px; padding-inline: var(--gut); }

/* Centred column, left-aligned type. */
.hero__foot { max-width: 680px; }
.hero__lead { font-size: .875rem; color: var(--ink-2); line-height: 1.6; }
.hero__lead b { color: var(--ink); font-weight: 700; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ---------- section furniture ---------- */
section { padding-block: clamp(3rem, 6.5vw, 5.5rem); }

.head { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; }
.head h2 {
  font-family: var(--display); font-weight: 800; font-stretch: 96%;
  font-size: clamp(1.4rem, 3.2vw, 2.05rem); letter-spacing: -.038em; line-height: 1;
  border-bottom: 2.5px solid var(--ink); padding-bottom: .16em;
}
.head::after { content: ""; flex: 1; height: 1px; background: var(--rule); margin-bottom: .45rem; }

/* Centred heading with the rule beneath, as in the reference's process block. */
.head--center { display: block; text-align: center; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 2.25rem; }
.head--center h2 { display: inline-block; border-bottom: 0; padding-bottom: 0; }
.head--center::after { display: none; }

/* Intro copy sits offset to the right of the heading it belongs to. */
.head__aside { margin: -.9rem 0 2rem 28%; max-width: 46ch; color: var(--ink-2); font-size: .84rem; }

/* ---------- process ladder ---------- */
.steps { display: grid; gap: clamp(.8rem, 1.8vw, 1.15rem); list-style: none; padding: 0; }
.step { display: flex; align-items: flex-start; gap: clamp(.6rem, 1.6vw, 1.1rem); }
.step__n { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 2.6vw, 1.75rem); line-height: 1; letter-spacing: -.05em; flex: none; padding-top: .5rem; }
.step__card { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: .7rem .8rem .8rem; }
.step__label { font-size: .7rem; font-weight: 700; letter-spacing: -.01em; }
.step__visual { margin-top: .6rem; }

/* The ladder drifts right, peaks, and eases back — not a straight diagonal. */
@media (min-width: 880px) {
  .step { padding-left: var(--ind, 0); }
  .step:nth-child(1) { --ind: 6%; }
  .step:nth-child(2) { --ind: 23%; }
  .step:nth-child(3) { --ind: 46%; }
  .step:nth-child(4) { --ind: 42%; }
  .step:nth-child(5) { --ind: 26%; }
  .step__card { max-width: 30rem; }
  .step--xl .step__card { max-width: 34rem; }
  .step--md .step__card { max-width: 27rem; }
}
.steps__cta { display: flex; justify-content: flex-end; margin-top: 1.5rem; }

/* ---- step visuals ---- */
.vis { border: 1px solid var(--rule-soft); border-radius: 5px; background: var(--paper-2); padding: .65rem; }
.vis--paste { display: flex; gap: .4rem; align-items: center; background: var(--card); }
.urlbar { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; background: var(--paper-2); border: 1px solid var(--rule-soft); border-radius: 999px; padding: .32rem .65rem; font-size: .68rem; color: var(--ink-3); overflow: hidden; white-space: nowrap; }
.urlbar > span:not(.caret) { overflow: hidden; text-overflow: ellipsis; }
.urlbar .caret { width: 1px; height: 1em; background: var(--tomato); animation: blink 1.1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.pill-btn { font-size: .66rem; font-weight: 600; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: .32rem .7rem; }

.sources { display: flex; flex-wrap: wrap; gap: .3rem; }
.source { display: inline-flex; align-items: center; gap: .35rem; font-size: .66rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--rule-soft); border-radius: 999px; padding: .26rem .6rem; }
.source i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--herb)); }

.recipe { background: var(--card); }
.recipe__t { font-family: var(--editorial); font-weight: 500; font-size: .95rem; letter-spacing: 0; }
.recipe__meta { font-size: .65rem; color: var(--ink-3); margin-top: .1rem; }
.recipe__cols { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: .8rem; margin-top: .55rem; }
.recipe__cols h4 { font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .25rem; font-weight: 600; }
.recipe ul, .recipe ol { margin: 0; padding-left: .95rem; font-size: .72rem; color: var(--ink-2); line-height: 1.45; font-family: var(--editorial); }
@media (max-width: 540px) { .recipe__cols { grid-template-columns: 1fr; } }

.scaler { display: grid; gap: .55rem; background: var(--card); }
.scaler__row { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: .6rem; align-items: center; font-size: .66rem; color: var(--ink-3); }
.track { height: 3px; background: var(--rule-soft); border-radius: 2px; position: relative; }
.track span { position: absolute; inset-block: 0; left: 0; background: var(--herb); border-radius: 2px; width: var(--w, 50%); transition: width .9s var(--ease); }
.track::after { content: ""; position: absolute; top: 50%; left: var(--w, 50%); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--card); border: 2px solid var(--herb); transition: left .9s var(--ease); }
.scaler__val { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.grocery { background: var(--card); columns: 2; column-gap: 1rem; }
.grocery h4 { font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .2rem; font-weight: 600; break-after: avoid; }
.grocery h4 + ul { margin-bottom: .55rem; }
.grocery ul { list-style: none; padding: 0; font-size: .72rem; color: var(--ink-2); }
.grocery li { display: flex; gap: .4rem; align-items: baseline; break-inside: avoid; }
.grocery li::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--ink-3); border-radius: 2px; flex: none; translate: 0 1px; }
.grocery li.done { color: var(--ink-3); text-decoration: line-through; }
.grocery li.done::before { background: var(--herb); border-color: var(--herb); }
@media (max-width: 540px) { .grocery { columns: 1; } }
.form__note { font-size: .66rem; color: var(--ink-3); }

/* ---------- collections rail ---------- */
.rail-nav { display: flex; align-items: center; gap: .3rem; margin-bottom: .3rem; }
.rail-nav button { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.rail-nav button:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.rail-nav button:disabled { opacity: .3; cursor: default; }
.rail-nav svg { width: 11px; height: 11px; }
.rail-count { font-size: .64rem; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 999px; padding: .18rem .55rem; margin-left: .15rem; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(52vw, 158px); gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .85rem; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.tile { scroll-snap-align: start; text-decoration: none; display: block; }
.tile__cover {
  display: block; aspect-ratio: 3 / 4; border-radius: 4px; border: 1px solid var(--rule);
  background: var(--tone, var(--mint)); position: relative; overflow: hidden;
  transition: transform .35s var(--ease);
}
.tile:hover .tile__cover { transform: translateY(-4px) rotate(-.7deg); }
.tile__cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,253,247,.5) 0 1px, transparent 1px 12px), radial-gradient(120% 90% at 20% 0%, rgba(255,253,247,.5), transparent 60%); mix-blend-mode: soft-light; }
.tile__cover::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px;
  background: rgba(22,19,13,.12); border-right: 1px solid rgba(22,19,13,.14);
  box-shadow: 18px 0 0 -17px rgba(22,19,13,.25), inset -1px 0 0 rgba(255,253,247,.3);
}
/* Debossed frame — the cheapest possible signal that this is a book jacket. */
.tile__cover { box-shadow: inset 0 0 0 1px rgba(255,253,247,.4), inset 14px 14px 0 -13px rgba(22,19,13,.16), inset -14px -14px 0 -13px rgba(22,19,13,.16); }
.tile__title { display: block; font-weight: 700; font-size: .76rem; letter-spacing: -.02em; margin-top: .5rem; }
.tile__meta { display: block; font-size: .66rem; color: var(--ink-3); }

/* ---------- seasonal: almanac panel, bleeds off the left edge ---------- */
.seasonal {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding-right: var(--gut);
}
.seasonal__art {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule); border-left: 0;
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--card);
  padding: clamp(1.25rem, 2.6vw, 2rem);
}
/* Distinct, unblurred colour fields — the old version smeared these into a
   single formless wash, which is why it read as a rendering artefact. */
.seasonal__wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(30% 26% at 14% 16%, rgba(233,167,44,.34), transparent 70%),
    radial-gradient(26% 24% at 82% 12%, rgba(119,162,136,.36), transparent 70%),
    radial-gradient(30% 28% at 88% 74%, rgba(201,63,38,.20), transparent 70%),
    radial-gradient(28% 26% at 12% 82%, rgba(123,51,80,.20), transparent 70%),
    radial-gradient(34% 30% at 50% 50%, rgba(198,227,206,.30), transparent 72%);
}
.seasonal__wash::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .5;
  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'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}
.seasonal__sheet { position: relative; }

.seasonal__top { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .7rem; border-bottom: 1px solid var(--rule); }
.seasonal__label { font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.seasonal__month { font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin-left: auto; }

.produce { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.produce__i {
  display: grid; justify-items: center; gap: .35rem; padding: clamp(.7rem, 1.6vw, 1.1rem) .3rem;
  border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.produce__i:nth-child(3n) { border-right: 0; }
.produce__i:nth-child(n+7) { border-bottom: 0; }
.produce__art { width: clamp(2.6rem, 5.6vw, 3.7rem); display: block; }
.produce__art svg { width: 100%; height: auto; }
/* Hand-placed rather than stamped on a rigid grid. */
.produce__i:nth-child(3n+1) .produce__art { rotate: -4deg; }
.produce__i:nth-child(3n+2) .produce__art { rotate:  3deg; }
.produce__i:nth-child(3n)   .produce__art { rotate: -1.5deg; }
.produce__n { font-family: var(--editorial); font-style: italic; font-size: .76rem; color: var(--ink-2); text-align: center; }
.produce__i.is-peak .produce__n { color: var(--ink); }
.produce__i.is-peak .produce__n::after {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--tomato); margin-left: .3rem; translate: 0 -2px;
}

.seasonal__foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; padding-top: .8rem; margin-top: .3rem; border-top: 1px solid var(--rule); font-size: .64rem; color: var(--ink-3); }
.produce__key { display: inline-flex; align-items: center; gap: .35rem; }
.produce__key i { width: 5px; height: 5px; border-radius: 50%; background: var(--tomato); }

.seasonal__body { max-width: 42ch; }
.seasonal__body p { color: var(--ink-2); font-size: .84rem; }
.seasonal__body .btn { margin-top: 1.1rem; }
.seasonal__body .head::after { display: none; }

@media (max-width: 860px) {
  .seasonal { grid-template-columns: 1fr; padding-right: 0; }
  .seasonal__art { border-radius: 0; border-inline: 0; }
  .seasonal__body { padding-inline: var(--gut); max-width: var(--wrap); margin-inline: auto; width: 100%; }
}
@media (max-width: 430px) {
  .produce { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .produce__i:nth-child(3n) { border-right: 1px solid var(--rule-soft); }
  .produce__i:nth-child(2n) { border-right: 0; }
  .produce__i:nth-child(n+7) { border-bottom: 1px solid var(--rule-soft); }
  .produce__i:nth-child(n+9) { border-bottom: 0; }
  /* An odd count orphans the last cell and leaves a divider hanging beside
     empty space — let it span the row instead. */
  .produce__i:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
}

/* ---------- index rows (principles + pricing) ---------- */
.rows { margin-left: 28%; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 1rem; border: 1px solid var(--rule); border-top: 0; background: var(--card); }
.row:first-child { border-top: 1px solid var(--rule); }
/* Grid, not wrapping flex: a long title must never push the marker onto its own line. */
.row__t { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .5rem; font-weight: 700; font-size: .8rem; letter-spacing: -.015em; padding: .8rem .9rem; }
.rows--price .row__t { grid-template-columns: auto 1fr auto; }
.row__mark { width: 7px; height: 7px; flex: none; border: 1px solid var(--ink-3); rotate: 45deg; translate: 0 -1px; }
.row__b { font-size: .74rem; color: var(--ink-2); line-height: 1.55; padding: .8rem .9rem .8rem 0; }
.row--on { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--tomato); }
.rows--price .row__price { text-align: right; font-weight: 800; font-size: 1rem; letter-spacing: -.04em; }
.rows--price .row__price i { display: block; }
.rows--price .row__price i { font-style: normal; font-weight: 400; font-size: .6rem; color: var(--ink-3); letter-spacing: 0; line-height: 1.3; }
.row__cta { display: inline-flex; clear: both; align-items: center; gap: .35rem; margin-top: .5rem; font-size: .68rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: .1rem; transition: border-color .2s var(--ease); }
.row__cta:hover { border-bottom-color: var(--ink); }
.row__cta svg { width: 10px; height: 10px; }
.rows__note { margin: 1rem 0 0 28%; font-size: .68rem; color: var(--ink-3); }
@media (max-width: 820px) {
  .rows, .rows__note { margin-left: 0; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .row__b { padding: 0 .9rem .8rem calc(.9rem + 7px + .5rem); }
  .head__aside { margin-left: 0; margin-top: -.5rem; }
}

/* ---------- quote ---------- */
.quote { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.quote__in { max-width: 34ch; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--editorial); font-style: italic; font-size: clamp(.95rem, 2vw, 1.15rem); line-height: 1.45; }
.quote cite { display: block; margin-top: .7rem; font-style: normal; font-family: var(--display); font-size: .66rem; color: var(--ink-3); text-align: right; }

/* ---------- waitlist ---------- */
.waitlist { border-top: 1px solid var(--rule); }
.waitlist__box { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.25rem,4vw,3rem); align-items: start; }
@media (max-width: 820px) { .waitlist__box { grid-template-columns: 1fr; } }
.waitlist p { color: var(--ink-2); font-size: .84rem; }
.waitlist .head::after { display: none; }
.form { display: flex; gap: .4rem; flex-wrap: wrap; }
.form input[type=email] { flex: 1 1 13rem; min-width: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: .45rem .9rem; font-size: .78rem; transition: border-color .2s var(--ease); }
.form input[type=email]::placeholder { color: var(--ink-3); }
.form input[type=email]:focus { border-color: var(--ink); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: .6rem; font-size: .74rem; display: flex; gap: .4rem; align-items: baseline; }
.msg--success { color: var(--herb); }
.msg--error { color: var(--tomato); }
.msg::before { content: "●"; font-size: .55em; translate: 0 -.25em; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper-2); padding-block: 1.5rem 1rem; }
.footer a { color: var(--paper-2); text-decoration: none; transition: opacity .2s var(--ease); }
.footer a:hover { opacity: .62; }
.footer__in { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 1.5rem; align-items: center; max-width: 1400px; padding-inline: clamp(1rem, 3vw, 1.75rem); }
.footer__links { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.footer__links ul { list-style: none; padding: 0; display: grid; gap: .12rem; font-size: .66rem; }
.footer__mid { text-align: center; }
.footer__mono { font-size: 1.5rem; letter-spacing: -.05em; }
.footer__tagline { font-size: .64rem; color: color-mix(in srgb, var(--paper-2) 62%, transparent); margin-top: .1rem; }
.footer__actions { display: flex; gap: .35rem; justify-content: flex-end; }
.footer__actions a { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgba(250,244,232,.24); border-radius: 999px; padding: .24rem .6rem; font-size: .64rem; }
.footer__actions a:hover { opacity: 1; border-color: var(--paper-2); background: var(--paper-2); color: var(--ink); }
.footer__actions svg { width: 10px; height: 10px; }
.footer__fine { text-align: center; font-size: .62rem; color: color-mix(in srgb, var(--paper-2) 48%, transparent); margin-top: 1.25rem; }
@media (max-width: 820px) {
  .footer__in { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
  .footer__links { justify-content: center; }
  .footer__links ul { justify-items: center; }
  .footer__actions { justify-content: center; }
}

/* ---------- 404 ---------- */
.oops { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: .9rem; }
.oops h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); }

/* ---------- hero illustration motion ---------- */
.art { width: 100%; height: auto; overflow: visible; }
.art-float { animation: bob 7s var(--ease) infinite alternate; }
.art-float--a { animation-duration: 6.4s; animation-delay: -.4s; }
.art-float--b { animation-duration: 7.6s; animation-delay: -1.9s; }
.art-float--c { animation-duration: 6.9s; animation-delay: -3.1s; }
.art-float--d { animation-duration: 5.8s; animation-delay: -2.4s; }
.art-float--e { animation-duration: 8.2s; animation-delay: -1.1s; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -9px; } }
.art-flow { animation: crumbs 2.4s linear infinite; animation-delay: calc(var(--i) * -.8s); }
@keyframes crumbs { to { stroke-dashoffset: -18; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; translate: 0 12px; }
.reveal-all .reveal { opacity: 1 !important; translate: none !important; }
.js .reveal.in { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* ---------- mobile nav ---------- */
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
.nav__menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .28s var(--ease), opacity .2s var(--ease); }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -4.5px; }
.burger::after  { top:  4.5px; }
.nav__menu[open] .burger { background: transparent; }
.nav__menu[open] .burger::before { transform: translateY(4.5px) rotate(45deg); }
.nav__menu[open] .burger::after  { transform: translateY(-4.5px) rotate(-45deg); }
.nav__panel { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 12rem; display: grid; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 16px 36px -22px rgba(22,19,13,.6); padding: .3rem; z-index: 50; animation: fadeUp .22s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; translate: 0 5px; } }
.nav__panel a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .78rem; text-decoration: none; padding: .5rem .6rem; border-radius: 5px; }
.nav__panel a span { color: var(--ink-3); }
.nav__panel a:hover { background: var(--paper-2); }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__actions .btn--quiet { display: none; }
  .nav__menu { display: block; }
  .head__aside { margin-left: 0; }
}

/* ---------- faq ---------- */
.faq { margin-left: 28%; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); background: var(--card); }
.faq summary {
  display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none;
  padding: .7rem .9rem; font-size: .78rem; font-weight: 700; letter-spacing: -.015em;
  transition: background .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--paper-2); }
.faq .row__mark { transition: background .25s var(--ease), border-color .25s var(--ease); }
.faq details[open] .row__mark { background: var(--tomato); border-color: var(--tomato); }
.faq .plus { margin-left: auto; flex: none; width: 10px; height: 10px; position: relative; }
.faq .plus::before, .faq .plus::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.4px; background: var(--ink-2);
  translate: 0 -50%; transition: rotate .3s var(--ease), opacity .3s var(--ease);
}
.faq .plus::after { rotate: 90deg; }
.faq details[open] .plus::after { rotate: 0deg; opacity: 0; }
.faq .panel { padding: 0 .9rem .8rem calc(.9rem + 7px + .6rem); }
.faq .panel p { font-size: .74rem; color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.faq details[open] .panel p { animation: fadeUp .35s var(--ease) both; }
@media (max-width: 820px) { .faq { margin-left: 0; } }

/* ---------- real cover art in the rail ---------- */
.tile__cover { display: block; position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 22px -14px rgba(22,19,13,.55); }
.tile__cover picture, .tile__cover img { display: block; width: 100%; height: auto; }
.tile__cover::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,253,247,.22) 0 6%, transparent 22%);
}
.tile__cover::after { content: none; }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(3rem, 7vw, 5rem); }
.crumbs { display: flex; gap: .45rem; align-items: center; font-size: .68rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumbs a:hover { border-bottom-color: var(--ink); }
.legal__head { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.legal__head h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.legal__lede { margin-top: .6rem; color: var(--ink-2); font-size: .9rem; max-width: 52ch; }
.legal__updated { margin-top: .55rem; font-size: .68rem; color: var(--ink-3); }

.legal__body { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
/* Grid children default to min-width:auto, so the wide cookie table would
   stretch its whole column instead of scrolling inside its own wrapper. */
.legal__body > * { min-width: 0; }
.legal__toc { position: sticky; top: 4.5rem; }
.legal__toc p { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: .5rem; }
.legal__toc ol { list-style: none; padding: 0; counter-reset: toc; display: grid; gap: .12rem; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: .5rem; font-size: .74rem; color: var(--ink-2); text-decoration: none; padding: .22rem .4rem; border-radius: 4px; }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legal__toc a:hover { background: var(--paper-2); color: var(--ink); }

.prose { max-width: 68ch; min-width: 0; }
/* The landing-page section rhythm must not leak into prose sections. */
.prose section { padding-block: 0; }
.prose section + section { margin-top: 2rem; }
.prose h2 { font-size: .98rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .55rem; scroll-margin-top: 4.5rem; }
.prose p { font-size: .84rem; color: var(--ink-2); line-height: 1.7; }
.prose p + p { margin-top: .7rem; }
.prose ul { margin: .7rem 0 0; padding: 0; list-style: none; display: grid; gap: .38rem; }
.prose li { display: flex; gap: .6rem; font-size: .84rem; color: var(--ink-2); line-height: 1.6; }
.prose li::before { content: ""; width: 6px; height: 6px; flex: none; border: 1px solid var(--ink-3); rotate: 45deg; translate: 0 .55em; }
.prose__scroll { overflow-x: auto; margin-top: .8rem; border: 1px solid var(--rule); border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; min-width: 30rem; background: var(--card); }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; font-size: .76rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.prose th { font-weight: 700; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.prose tr:last-child td { border-bottom: 0; }

@media (max-width: 820px) {
  .legal__body { grid-template-columns: 1fr; }
  .legal__toc { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
  .legal__toc ol { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.footer__fine-note { display: block; margin-top: .25rem; }
