/* ─────────────────────────────────────────────────────────────────────────
   The Waitsburg Community Cookbook — stylesheet
   Small-town wheat country, not SaaS. Newsprint bone, field green, harvest
   gold, ink. 18px minimum text, 48px minimum tap targets, AA contrast.
   ───────────────────────────────────────────────────────────────────────── */

@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/bitter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/bitter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/bitter-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lora-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/lora-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/lora-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/courier-prime-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/courier-prime-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bone: #F5F0E4;
  --bone-2: #EBE3CE;
  --paper: #F9F4E7;
  --ink: #1B1A17;
  --ink-2: #45423B;
  --green: #2E4A3A;
  --green-2: #24392D;
  --gold: #C9A227;
  --gold-ink: #7A5A0B;
  --brick: #8B2E1F;
  --line: #CDC3A9;
  --line-strong: #6F6A5E;
  --display: 'Bitter', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --body: 'Lora', Georgia, 'Times New Roman', serif;
  --mono: 'Courier Prime', 'Courier New', Courier, monospace;
  --tap: 48px;
  --radius: 6px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--body); font-size: 1rem; line-height: 1.5; color: var(--ink);
  background-color: var(--bone); background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--green); text-underline-offset: .15em; text-decoration-thickness: 2px; }
a:hover { color: var(--green-2); }
small, .small { font-size: 1rem; } /* no text below 18px, ever */
.muted { color: var(--ink-2); }
.mono, .label-mono { font-family: var(--mono); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.center { text-align: center; }
.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; }
hr.rule { border: 0; border-top: 2px solid var(--line); margin: 1.5rem 0; }
.ornament { text-align: center; color: var(--gold-ink); letter-spacing: .5em; margin: 1rem 0; font-size: 1rem; }

/* Focus — visible on every interactive element, on light and dark ground */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
.on-dark :focus-visible { outline-color: var(--gold); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bone); padding: 12px 18px; z-index: 100; font-family: var(--display); border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 600px; }
section.block { padding: 2.5rem 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 64px; border-bottom: 2px solid var(--line); background: var(--bone); }
.site-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1.1; min-height: var(--tap); }
.mark-wheat { color: var(--gold-ink); display: inline-flex; }
.header-cta { white-space: nowrap; }
.site-footer { margin-top: 3rem; padding: 2rem 20px 3rem; border-top: 2px solid var(--line); background: var(--bone-2); }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid var(--green); background: transparent; color: var(--green); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background .12s, color .12s, transform .06s;
}
.btn:hover { background: rgba(46,74,58,.08); color: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--bone); }
.btn-primary:hover { background: var(--green-2); color: var(--bone); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #B8921F; color: var(--ink); }
.btn-quiet { border-color: transparent; color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.btn-quiet:hover { background: transparent; }
.btn-block { display: flex; width: 100%; }
.btn-big { min-height: 64px; font-size: 1.35rem; padding: 14px 26px; }
.btn-small { min-height: var(--tap); font-size: 1rem; padding: 8px 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .7; cursor: progress; transform: none; }
.btn .sub { display: block; flex-basis: 100%; font-family: var(--body); font-weight: 400; font-size: 1rem; font-style: italic; }
.btn-stack { flex-wrap: wrap; row-gap: 2px; }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin: 1.25rem 0; }
@media (min-width: 560px) { .btn-row.inline { flex-direction: row; } .btn-row.inline .btn { flex: 1; } }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { margin: 0 0 1.5rem; }
.field label, .field .legend { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.field .help { color: var(--ink-2); margin: 0 0 10px; font-size: 1rem; }
.field .help em { font-style: italic; }
.optional { font-family: var(--mono); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 400; margin-left: .4em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], input[type="url"], textarea, select {
  width: 100%; min-height: 56px; padding: 12px 14px; font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line-strong); border-radius: 4px;
}
textarea { min-height: 150px; line-height: 1.5; resize: vertical; overflow: hidden; }
textarea.big { min-height: 170px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%231B1A17' stroke-width='3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 48px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--ink); outline-offset: 2px; }
::placeholder { color: #625D52; opacity: 1; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--brick); }
.error { color: var(--brick); font-weight: 700; margin: 8px 0 0; }
.error:empty { display: none; }
.check, .field label.check { display: flex; align-items: flex-start; gap: 14px; min-height: var(--tap); padding: 10px 0; cursor: pointer; font-family: var(--body); font-weight: 400; font-size: 1.05rem; margin: 0; }
.field label.check-quiet { color: var(--ink-2); font-style: italic; font-size: 1rem; }
.check input[type="checkbox"] { width: 32px; height: 32px; flex: 0 0 32px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.check strong { font-weight: 700; }
.quiet { color: var(--ink-2); }
.reveal { border-left: 4px solid var(--line); padding-left: 16px; margin: 12px 0 0; }
.reveal[hidden] { display: none; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { padding: 0; }

/* Big tappable option cards */
.options { display: grid; gap: 12px; margin: 0 0 1.5rem; }
.option {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 84px; padding: 16px 18px; text-align: left;
  font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.option:hover { border-color: var(--green); background: #fff; }
.option[aria-pressed="true"], .option.selected { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); background: #fff; }
.option .icon { font-size: 2rem; line-height: 1; flex: 0 0 auto; width: 44px; text-align: center; }
.option .title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; display: block; }
.option .desc { color: var(--ink-2); display: block; margin-top: 4px; font-size: 1rem; }
.option.primary-option { border-width: 3px; border-color: var(--green); min-height: 104px; }
.field label.radio-option, label.radio-option { display: flex; align-items: center; gap: 16px; margin: 0; font-weight: 400; cursor: pointer; }
.radio-option input[type="radio"] { width: 30px; height: 30px; flex: 0 0 30px; margin: 0; accent-color: var(--green); }
.radio-option .title { font-size: 1.05rem; }
.radio-option:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); background: #fff; }
.radio-option.soldout { border-style: dashed; background: var(--bone-2); }
.soldout-text { color: var(--brick); font-weight: 700; }
.file-input { min-height: 56px; padding: 10px; font-size: 1rem; width: 100%; border: 2px dashed var(--line-strong); border-radius: 4px; background: var(--paper); }
.file-input::file-selector-button { font: inherit; font-family: var(--display); font-weight: 700; min-height: var(--tap); padding: 8px 16px; margin-right: 12px; border: 2px solid var(--green); border-radius: var(--radius); background: var(--green); color: var(--bone); cursor: pointer; }
.option.primary-option .title { font-size: 1.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: var(--tap); padding: 10px 16px; border: 2px solid var(--line-strong); border-radius: 999px; background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--bone); border-color: var(--green); font-weight: 700; }
.chip:hover { border-color: var(--green); }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.stepper button { width: 64px; height: 64px; font: inherit; font-size: 2rem; font-weight: 700; background: transparent; border: 0; color: var(--green); cursor: pointer; touch-action: manipulation; }
.stepper output { min-width: 72px; text-align: center; font-family: var(--display); font-size: 2rem; font-weight: 800; }

/* Progress */
.progress { margin: 0 0 1.25rem; }
.progress .track { height: 10px; background: var(--bone-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.progress .fill { height: 100%; background: var(--green); transition: width .3s; }
.progress .text { display: flex; justify-content: space-between; margin-top: 6px; }

/* ── Wizard ────────────────────────────────────────────────────────────── */
.wizard { max-width: 600px; margin: 0 auto; padding: 4px 20px 4rem; }
.wizard-page .screen h1 { font-size: 1.7rem; }
.wizard-page .screen .lede { font-size: 1.05rem; margin-bottom: 1rem; }
.wizard .progress { margin-bottom: .9rem; }
.wizard .progress .text { margin-top: 4px; }
.wizard-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 8px 10px 8px 0; font-family: var(--display); font-weight: 700; text-decoration: none; color: var(--green); }
.screen h1 { font-size: 1.9rem; margin-bottom: .6rem; }
.screen .lede { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.resume-note { background: var(--bone-2); border-left: 4px solid var(--gold); padding: 12px 16px; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.resume-note a { display: inline-flex; align-items: center; min-height: var(--tap); }
.photo-list { display: grid; gap: 12px; margin: 1rem 0; }
.photo-item { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; }
.photo-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; background: var(--bone-2); flex: 0 0 84px; }
.photo-item .ph { width: 84px; height: 84px; border-radius: 4px; background: var(--bone-2); flex: 0 0 84px; display: grid; place-items: center; font-size: 2rem; }
.photo-item .status { flex: 1; }
.photo-item .status strong { display: block; font-family: var(--display); }
.photo-item .bar { height: 8px; background: var(--bone-2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.photo-item .bar i { display: block; height: 100%; background: var(--green); width: 0; transition: width .2s; }
.photo-item .btn-small { flex: 0 0 auto; }
.net-note { display: none; background: var(--bone-2); border-left: 4px solid var(--brick); padding: 12px 16px; margin: 1rem 0; }
.net-note.show { display: block; }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* ── Hero (Module 1) ───────────────────────────────────────────────────── */
.hero { position: relative; color: var(--bone); background: var(--green-2); overflow: hidden; isolation: isolate; }
.hero.has-photo { background: var(--ink) url('/img/hero.jpg') center / cover no-repeat; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: rgba(27,26,23,.58); z-index: -1; }
.hero .wheat-field { position: absolute; inset: auto 0 0; height: 38%; opacity: .22; z-index: -1; color: var(--gold); pointer-events: none; }
.hero-inner { padding: 3rem 20px 2.5rem; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 1rem; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.hero .hero-sub { font-size: 1.2rem; line-height: 1.45; max-width: 34em; margin-bottom: 1.5rem; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.hero .btn-gold { box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.hero .kicker { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; color: var(--gold); margin-bottom: 1rem; }
.hero .on-dark a:not(.btn) { color: var(--bone); }
.on-dark .btn:focus-visible { outline-color: var(--bone); }
.counter { margin: 1.5rem 0 1rem; font-family: var(--display); font-size: 1.3rem; line-height: 1.35; font-weight: 700; }
.counter b { font-size: 1.9rem; font-weight: 800; color: var(--gold); }
.counter .sep { opacity: .6; font-weight: 400; padding: 0 .35em; }
.deadline-line { font-family: var(--mono); font-size: 1rem; letter-spacing: .04em; color: var(--bone); opacity: .95; margin: 0 0 1.5rem; }
.reasons { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 12px; }
.reasons li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.reasons .ic { flex: 0 0 32px; font-size: 1.5rem; line-height: 1.1; }
.secondary-cta { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--display); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; color: var(--bone); }
.inline-cta { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--display); font-weight: 700; }
.hero .secondary-cta:hover { color: var(--gold); }

/* ── Wall (Module 6) ───────────────────────────────────────────────────── */
.wall-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.wall-counter { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.wall-counter b { color: var(--green); font-size: 1.6rem; font-weight: 800; }
.filters { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filters .chip { white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.wcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 rgba(27,26,23,.08); }
.wcard:hover { border-color: var(--green); }
.wcard .photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--bone-2); }
.wcard .typo { aspect-ratio: 16 / 7; display: flex; align-items: flex-end; padding: 16px; background: var(--bone-2) var(--grain); border-bottom: 2px solid var(--line); }
.wcard .typo .cat { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: var(--gold-ink); }
.wcard .typo .quote { font-style: italic; font-size: 1.05rem; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.filter-form { display: flex; align-items: center; gap: 10px; margin: 0 0 .5rem; }
.filter-form label { font-family: var(--display); font-weight: 700; }
.filter-form select { flex: 1; max-width: 420px; }
.wcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wcard .title { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.wcard .name { font-style: italic; }
.wcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: var(--bone-2); color: var(--ink-2); }
.tag.gold { background: var(--gold); color: var(--ink); }
.tag.green { background: var(--green); color: var(--bone); }
.tag.quiet { background: transparent; border: 1px solid var(--line); }
.badge-founding { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--ink); font-family: var(--mono); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.wall-section { margin: 3rem 0 0; }
.wall-section h2 { display: flex; align-items: center; gap: 10px; }
.memory-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.memory-list li { border-left: 3px solid var(--line-strong); padding: 6px 14px; }
.memory-list li a { text-decoration: none; color: var(--ink); display: block; min-height: var(--tap); }
.memory-list .who { font-style: italic; color: var(--ink-2); }
.away-list, .leader-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.away-list li, .leader-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: var(--tap); align-items: center; }
.away-list a { display: inline-flex; align-items: center; min-height: var(--tap); }
.leader-list .rank { font-family: var(--mono); color: var(--gold-ink); width: 2.2em; }
.leader-list .n { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--green); }
.gap-box { background: var(--paper); border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 20px; }
.gap-box .mono { color: var(--gold-ink); }
.gap-box p.big { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.gap-counts { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: .5rem 0 0; }
.gap-counts dt { margin: 0; overflow-wrap: anywhere; }
.gap-counts dd { margin: 0; font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }
.empty { padding: 2rem; text-align: center; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }

/* ── Recipe card (Module 4) ────────────────────────────────────────────── */
.payback-title { text-align: center; margin: 1.5rem 0 1rem; }
.payback-title h1 { font-size: 2.4rem; }
.recipe-card {
  position: relative; max-width: 520px; margin: 0 auto; padding: 28px 26px 24px; color: var(--ink);
  background: var(--paper) var(--grain); border: 2px solid var(--ink); box-shadow: 0 6px 0 -2px var(--bone-2), 0 14px 28px rgba(27,26,23,.18);
}
.recipe-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--ink); pointer-events: none; opacity: .6; }
.recipe-card .rc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; font-family: var(--mono); font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.25rem; }
.recipe-card .rc-title { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .75rem; }
.recipe-card .rc-quote { font-style: italic; font-size: 1.15rem; line-height: 1.45; margin: 0 0 1rem; color: var(--ink); }
.recipe-card .rc-quote::before { content: "“"; } .recipe-card .rc-quote::after { content: "”"; }
.recipe-card .rc-credit { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0; }
.recipe-card .rc-credit .class { font-family: var(--mono); font-weight: 400; font-size: 1rem; letter-spacing: .04em; margin-left: .5em; color: var(--ink-2); }
.recipe-card .rc-away { font-family: var(--mono); font-size: 1rem; color: var(--ink-2); margin: 2px 0 0; }
.recipe-card .rc-memory { margin: 1rem 0 0; font-size: 1rem; color: var(--ink-2); font-style: italic; }
.recipe-card .rc-foot { margin-top: 1.5rem; padding-top: 12px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.recipe-card .rc-foot .wheat { color: var(--gold-ink); }
.recipe-card .rc-stamp { display: inline-block; margin: 1.25rem 0 0; transform: rotate(-2deg); border: 3px double var(--gold-ink); color: var(--gold-ink); font-family: var(--mono); font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; padding: 6px 12px; white-space: nowrap; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg) scale(.96); } to { opacity: 1; transform: none; } }
.recipe-card.animate { animation: card-in .7s cubic-bezier(.2,.8,.2,1) both; }
.actions { max-width: 560px; margin: 2rem auto 0; display: grid; gap: 14px; }
.actions .btn { text-align: left; justify-content: flex-start; }
.actions .btn .num { font-family: var(--mono); font-weight: 400; opacity: .85; margin-right: .6em; font-size: 1rem; }
.panel { background: var(--paper); border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 20px; margin: 0; }
.panel[hidden] { display: none; }
.panel h2 { font-size: 1.4rem; }
.share-msg { background: var(--bone-2); border-left: 4px solid var(--gold); padding: 14px 16px; font-style: italic; margin: 0 0 1rem; word-break: break-word; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bone); padding: 14px 20px; border-radius: var(--radius); font-family: var(--display); font-weight: 700; z-index: 50; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }

/* ── Video (Module 5) ──────────────────────────────────────────────────── */
.video-stage { position: relative; background: var(--ink); border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-height: 70vh; }
.video-stage video { width: 100%; height: 100%; object-fit: cover; }
.video-stage .prompts { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 16px; background: rgba(27,26,23,.72); color: var(--bone); }
.video-stage .prompts ol { margin: 0; padding-left: 1.3em; font-family: var(--display); font-size: 1.1rem; line-height: 1.35; }
.video-stage .timer { position: absolute; top: 12px; right: 12px; background: var(--brick); color: #fff; font-family: var(--mono); font-size: 1.1rem; padding: 6px 12px; border-radius: 4px; }
.video-stage .timer[hidden] { display: none; }

/* ── Sponsors (Module 7) ───────────────────────────────────────────────── */
.tiers { display: grid; gap: 14px; }
.tier { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tier .name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.tier .price { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--green); text-align: right; }
.tier .includes { grid-column: 1 / -1; color: var(--ink-2); }
.tier .left { grid-column: 1 / -1; font-family: var(--mono); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); }
.tier .left.soldout { color: var(--brick); }
.sponsor-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sponsor-tile { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; }
.sponsor-tile img { max-height: 80px; width: auto; object-fit: contain; }
.sponsor-tile .biz { font-family: var(--display); font-weight: 700; line-height: 1.2; }
.sponsor-tile .tier-name { font-family: var(--mono); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.booster-line { font-family: var(--body); font-style: italic; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ── Notices ───────────────────────────────────────────────────────────── */
.notice { background: var(--paper); border: 2px solid var(--line-strong); border-left-width: 6px; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.25rem; }
.notice.warn { border-left-color: var(--brick); }
.notice.gold { border-left-color: var(--gold); }
.notice.green { border-left-color: var(--green); }

/* ── Admin (Module 8) ──────────────────────────────────────────────────── */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; margin-bottom: 1rem; border-bottom: 2px solid var(--line); }
.admin-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 8px 14px; border-radius: var(--radius); text-decoration: none; font-family: var(--display); font-weight: 700; border: 2px solid transparent; }
.admin-nav a[aria-current="page"] { border-color: var(--green); background: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0 0 1.5rem; }
.stat { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.stat span { color: var(--ink-2); }
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.data td { position: relative; }
table.data td a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--tap); }
table.data label.check { min-width: var(--tap); justify-content: center; padding: 0; }
tr.declined td { opacity: 1; } tr.declined td > * { text-decoration: line-through; }
table.data { border-collapse: collapse; width: 100%; min-width: 720px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--mono); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--bone-2); position: sticky; top: 0; }
table.data tr:hover td { background: rgba(46,74,58,.05); }
table.data td.num { font-family: var(--mono); text-align: right; }
table.data select, table.data input[type="text"] { min-height: var(--tap); font-size: 1rem; padding: 8px 10px; }
table.data select { padding-right: 40px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 1rem; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input[type="search"], .toolbar select { min-height: var(--tap); width: auto; font-size: 1rem; }
.edit-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .edit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .edit-grid .sticky { position: sticky; top: 12px; } }
.scan-view { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; }
.scan-view img { width: 100%; border-radius: 4px; }
.scan-view .meta { font-family: var(--mono); font-size: 1rem; color: var(--ink-2); margin-top: 6px; word-break: break-all; }
.status-pill { display: inline-block; font-family: var(--mono); font-size: 1rem; padding: 3px 8px; border-radius: 4px; background: var(--bone-2); white-space: nowrap; }
.status-needs_typing { background: #F3DFA1; }
.status-needs_question { background: #F1C8BE; }
.status-test_kitchen { background: #D6E3D9; }
.status-tested, .status-ready { background: var(--green); color: var(--bone); }
.save-flash { display: inline-block; margin-left: 8px; color: var(--green); font-family: var(--mono); }
.inline-form { display: inline; }
.two-col { display: grid; gap: 16px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }
.kbd { font-family: var(--mono); background: var(--bone-2); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.notice a:not(.btn), .panel p a:not(.btn), .meta a, .mono a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ── Video public page ─────────────────────────────────────────────────── */
.video-page video { width: 100%; max-height: 80vh; background: #000; border-radius: var(--radius); }

@media (min-width: 700px) {
  h1 { font-size: 2.8rem; }
  .hero-inner { padding: 4.5rem 24px 3.5rem; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 8px 28px; }
  .options.two { grid-template-columns: 1fr 1fr; }
}
@media print { .site-header, .site-footer, .actions, .btn { display: none !important; } }
