/* Johnny B. Quacker — "The Honest Quack": Victorian medicine label meets farmers' almanac. */

:root {
  --paper: #F3EAD7;
  --panel: #EADDC2;
  --card: #FBF6EA;
  --ink: #1A1612;
  --soft: #3A3129;
  --muted: #4A4036;
  --accent: #7A1F1F;
  --green: #2F4A3A;
  --gold: #E3C77A;      /* only on --green */
  --rule: #C9B993;
  --hatch-a: #E6D8BA;
  --hatch-b: #DCCDAC;

  --display: 'Abril Fatface', Georgia, serif;
  --fell: 'IM Fell English', Georgia, serif;
  --caps: 'Playfair Display SC', Georgia, serif;
  --body: 'Libre Caslon Text', Georgia, serif;

  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 72px; }
.section--follow { padding-top: 32px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 14px; }

/* ---------- Small type pieces ---------- */

.kicker { font-family: var(--caps); font-size: 15px; letter-spacing: 0.24em; color: var(--accent); }
.label { font-family: var(--caps); font-weight: 700; font-size: 15px; letter-spacing: 0.18em; color: var(--green); }
.byline { font-family: var(--caps); font-size: 14px; letter-spacing: 0.16em; color: var(--muted); }
.sig { font-family: var(--fell); font-style: italic; font-size: 22px; }

.double-rule { width: min(640px, 90%); height: 4px; border-block: 1px solid var(--ink); }
.ornament { display: flex; align-items: center; gap: 12px; width: min(420px, 80%); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.ornament span { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }

.framed { border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -9px; }
.panel { border: 1.5px solid var(--ink); background: var(--panel); padding: 18px 20px; }

/* Stand-in for photography until real pictures arrive. */
.photo { background: repeating-linear-gradient(135deg, var(--hatch-a) 0 9px, var(--hatch-b) 9px 18px); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.photo span { font-size: 12px; line-height: 1.4; background: var(--paper); padding: 2px 8px; }
img.photo { width: 100%; padding: 0; object-fit: cover; }

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--caps); font-size: 17px; letter-spacing: 0.1em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Header and footer ---------- */

.topband { background: var(--ink); color: var(--paper); font-family: var(--caps); font-size: 14px; letter-spacing: 0.14em; }
.topband__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 9px; }

.site-header { border-bottom: 1px solid var(--ink); }
.site-header__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px; padding-block: 12px; }
.brand { display: flex; flex-direction: column; text-decoration: none; padding-block: 4px; }
.brand__name { font-family: var(--display); font-size: 26px; line-height: 1; text-decoration: none; }
.brand__tag { font-family: var(--fell); font-style: italic; font-size: 15px; line-height: 1.3; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; font-family: var(--caps); font-size: 16px; letter-spacing: 0.1em; }
.nav a:not(.btn) { text-decoration: none; padding-block: 10px; }
.nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 599px) {
  .topband__in { justify-content: center; }
  .topband__in span + span { display: none; }
  .nav { gap: 0 18px; font-size: 15px; }
  .nav .btn { display: none; }   /* the sign-up coupon is on the front page */
}

.site-footer { background: var(--ink); color: var(--paper); }
.site-footer__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: 48px 36px; }
.site-footer .brand__name { font-size: 32px; }
.site-footer a:hover { color: var(--gold); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; font-family: var(--caps); font-size: 15px; letter-spacing: 0.12em; }
.site-footer nav a { padding-block: 10px; }
.fineprint { max-width: 640px; font-family: var(--fell); font-style: italic; font-size: 16px; line-height: 1.5; color: #D9CFBA; }
.copyright { font-size: 13px; color: #B9AE98; }

/* ---------- Section headings ---------- */

.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--display); font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.section-head p { font-family: var(--fell); font-style: italic; font-size: 22px; color: var(--muted); }

.cards { display: flex; flex-wrap: wrap; gap: 28px; }
.cards > * { flex: 1 1 300px; min-width: 0; }
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* ---------- Home: hero label ---------- */

.hero { padding-block: clamp(28px, 4vw, 48px); }
.hero__label { border: 8px double var(--accent); padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hero__maker { font-family: var(--fell); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.hero__claims { font-family: var(--caps); font-size: clamp(13px, 1.4vw, 16px); letter-spacing: 0.34em; color: var(--accent); }
.hero h1 { font-family: var(--display); font-size: clamp(60px, 10vw, 136px); line-height: 0.92; color: var(--accent); }
.hero__sub { font-family: var(--fell); font-style: italic; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; }
.hero__row { width: 100%; display: flex; flex-wrap: wrap; gap: 28px; margin-top: 18px; text-align: left; }
.hero__row > .panel { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.55; }
.hero__row .label { text-align: center; }
.hero__blurb { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero__blurb p { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; max-width: 520px; }
.hero .note { font-size: 15px; font-style: italic; color: var(--muted); }
@media (max-width: 899px) { .hero__blurb { order: -1; } }

/* ---------- Home: remedies ---------- */

.remedy { padding: 26px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; text-decoration: none; }
.remedy__title { font-family: var(--display); font-size: 36px; line-height: 1.02; }
.remedy__sub { font-family: var(--fell); font-style: italic; font-size: 19px; color: var(--muted); }
.remedy .photo { width: 100%; height: 170px; margin-block: 8px; }
.remedy p { font-size: 16px; line-height: 1.55; }

/* ---------- Chronicle (green band) ---------- */

.band-green { background: var(--green); color: var(--paper); }
.band-green .kicker { color: var(--gold); }
.band-green a:hover { color: var(--gold); }
.chronicle { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border-block: 1px solid #8FA394; }
.chronicle li { flex: 1 1 200px; min-width: 0; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.chronicle .year { font-family: var(--display); font-size: 46px; line-height: 1; color: var(--gold); }
.chronicle p { font-size: 16px; line-height: 1.5; }
.center-link { display: block; width: fit-content; margin: 28px auto 0; padding-block: 10px; font-family: var(--caps); font-size: 17px; letter-spacing: 0.12em; }

/* ---------- Kitchen Prescription (swap list) ---------- */

.rx { background: var(--card); border: 1.5px solid var(--ink); padding: 26px 28px; display: flex; flex-direction: column; }
.rx--narrow { max-width: 760px; margin-inline: auto; }
.rx__head { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.rx__mark { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--accent); }
.rx h2 { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.rx__sub { font-family: var(--fell); font-style: italic; font-size: 17px; color: var(--muted); }
.rx table { width: 100%; border-collapse: collapse; font-size: 17px; }
.rx th { padding: 10px 0 6px; font-family: var(--caps); font-weight: 400; font-size: 13px; letter-spacing: 0.16em; color: var(--muted); text-align: left; }
.rx td { width: 50%; padding: 10px 16px 10px 0; border-top: 1px dotted var(--ink); vertical-align: top; }
.rx tr:last-child td { border-bottom: 1px dotted var(--ink); }
.rx td:first-child { color: var(--muted); font-style: italic; }
.rx__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 14px; }
.rx__foot a { font-family: var(--caps); font-size: 16px; letter-spacing: 0.1em; padding-block: 10px; }

/* ---------- Index lists with dotted leaders ---------- */

.index--narrow { max-width: 760px; margin-inline: auto; }
.index h2 { font-family: var(--display); font-size: 30px; line-height: 1.05; margin-bottom: 6px; }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.index li > a, .index li > .t { font-size: 20px; line-height: 1.35; }
.index li > a { text-decoration: none; }
.index li > a:hover { text-decoration: underline; }
.index .leader { flex: 1 1 24px; border-bottom: 1.5px dotted var(--muted); transform: translateY(-4px); }
.index .tag { font-family: var(--caps); font-size: 14px; letter-spacing: 0.1em; color: var(--accent); white-space: nowrap; }
.index .soon { color: var(--muted); }
.index .soon .tag { color: var(--muted); }

/* ---------- Recipe cards ---------- */

.band-panel { background: var(--panel); border-block: 1px solid var(--ink); }
.recipe-card { background: var(--paper); border: 1.5px solid var(--ink); display: flex; flex-direction: column; text-decoration: none; }
.recipe-card .photo { height: 210px; justify-content: flex-start; }
.recipe-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.recipe-card__meta { font-family: var(--caps); font-size: 13px; letter-spacing: 0.16em; color: var(--accent); }
.recipe-card__title { font-family: var(--display); font-size: 26px; line-height: 1.1; }

/* ---------- Sign-up coupon ---------- */

.coupon { border: 2px dashed var(--ink); padding: 8px; }
.coupon__in { border: 1px solid var(--ink); background: var(--card); padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.coupon__in > * { flex: 1 1 360px; min-width: 0; }
.coupon h2 { font-family: var(--display); font-size: clamp(36px, 4.5vw, 50px); line-height: 1; }
.coupon form { display: flex; flex-direction: column; gap: 8px; }
.coupon label { font-family: var(--caps); font-size: 14px; letter-spacing: 0.14em; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input { flex: 1 1 220px; min-width: 0; min-height: 50px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: 0 4px; font: inherit; font-size: 18px; color: var(--ink); }
.field-row input:focus-visible { outline-offset: 0; }
.form-status { min-height: 1.65em; font-style: italic; color: var(--green); }

/* ---------- Page titles (inner pages) ---------- */

.page-title { max-width: 900px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.page-title h1 { font-family: var(--display); font-size: clamp(46px, 7vw, 92px); line-height: 0.98; }
.standfirst { max-width: 680px; font-family: var(--fell); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; color: var(--soft); }

/* ---------- Article ---------- */

.article { max-width: 720px; margin-inline: auto; padding: 0 var(--gutter) 80px; display: flex; flex-direction: column; gap: 26px; font-size: 19px; line-height: 1.75; }
.article > .ornament { align-self: center; padding-block: 12px; }
.inbrief { background: var(--panel); padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; outline-offset: -7px; }
.inbrief .label { text-align: center; }
.inbrief ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.55; }
.era { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 18px; text-align: center; scroll-margin-top: 16px; }
.era__year { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--accent); }
.era h2 { font-family: var(--caps); font-weight: 700; font-size: 22px; letter-spacing: 0.14em; }
.dropcap::first-letter { float: left; font-family: var(--display); font-size: 84px; line-height: 0.8; padding: 8px 10px 0 0; color: var(--accent); }
.article figure { display: flex; flex-direction: column; gap: 8px; margin-block: 8px; }
.article figure .photo { height: clamp(220px, 40vw, 320px); border: 1.5px solid var(--ink); }
figcaption { font-family: var(--fell); font-style: italic; font-size: 16px; text-align: center; color: var(--muted); }
.pullquote { margin-block: 12px; padding-block: 22px; border-block: 4px double var(--ink); text-align: center; }
.pullquote p { font-family: var(--fell); font-style: italic; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; color: var(--accent); }
.kitchen-note { background: var(--card); border: 1.5px dashed var(--green); padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.article h2.plain { font-family: var(--display); font-size: 40px; line-height: 1.1; text-align: center; }
.sources { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sources ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--soft); }
.next { padding: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; text-decoration: none; }
.next__title { font-family: var(--display); font-size: 32px; line-height: 1.1; }

/* ---------- Recipe ---------- */
/* Johnny's recipe format, built for cooking with breaks: stages laid out as a "ladder"
   (each step beside its ingredients, stepping right as the cook goes on), heavy lines at
   safe stopping points, dashed lines before optional parts, and pace notes. */

.recipe-page { --rung-step: clamp(10px, 4.5vw, 64px); }
.recipe-photo { height: clamp(260px, 36vw, 480px); border: 1.5px solid var(--ink); }
.recipe-body { display: flex; flex-direction: column; gap: 40px; padding-bottom: 72px; }

/* Reader's text size and font (also used when printing). */
html[data-text-size="large"] .recipe-body { font-size: 21px; }
html[data-text-size="xlarge"] .recipe-body { font-size: 25px; }
html[data-font="easy"] .recipe-body { font-family: 'Atkinson Hyperlegible', Verdana, sans-serif; }

.spoons { display: inline-flex; gap: 3px; vertical-align: middle; }
.spoon { width: 14px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.recipe-card__meta .spoon { width: 9px; height: 19px; }
.spoon-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1.5px solid var(--ink); text-decoration: none; font-family: var(--caps); font-size: 15px; letter-spacing: 0.12em; }
.spoon-badge .spoon { color: var(--accent); }

/* Controls */
.recipe-controls { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: var(--card); border: 1.5px solid var(--ink); }
.recipe-controls[hidden] { display: none; }
.recipe-controls__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.recipe-controls__row:empty { display: none; }
.control { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.control__label { font-family: var(--caps); font-size: 14px; letter-spacing: 0.16em; color: var(--muted); }
.segmented { display: flex; border: 1.5px solid var(--ink); }
.segmented button { min-width: 52px; min-height: 44px; padding: 0 12px; border: 0; border-left: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--caps); font-size: 17px; cursor: pointer; }
.segmented button:first-child { border-left: 0; }
.segmented button:hover { background: var(--panel); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--paper); }
.segmented .seg-lg { font-size: 21px; }
.segmented .seg-xl { font-size: 26px; }
.segmented .seg-easy { font-family: 'Atkinson Hyperlegible', Verdana, sans-serif; letter-spacing: 0; }
.control__note { flex: 1 1 100%; font-size: 16px; font-style: italic; color: var(--muted); }

/* Intro, legend, shopping list, tips */
.recipe-intro { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.credit { padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--card); font-size: 0.9em; }
.spoon-notes { margin: 0; padding: 10px 16px 10px 34px; background: var(--panel); font-size: 0.9em; }

.legend, .shopping { border: 1.5px solid var(--ink); background: var(--card); }
.legend summary, .shopping summary { cursor: pointer; padding: 14px 18px; min-height: 44px; font-family: var(--caps); font-size: 17px; letter-spacing: 0.1em; }
.legend__body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9em; }
.legend__rule { display: inline-block; width: 44px; vertical-align: middle; margin-right: 6px; }
.legend__rule--stop { border-top: 4px solid var(--ink); }
.legend__rule--optional { border-top: 2px dashed var(--ink); }
.shopping__list { margin: 0; padding: 0 18px 16px 40px; columns: 2 260px; column-gap: 32px; }
.shopping__list li { padding-block: 3px; break-inside: avoid; }

.experience h2, .idea-table h2, .stage__title, .helper h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.experience ul { margin: 14px 0 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.experience li { font-style: italic; }
.experience li strong { font-style: italic; }

/* Equipment & Fix It: black title bar, banded rows (as in Johnny's sheets) */
.bar-table__title { background: var(--ink); color: var(--paper); font-family: var(--caps); font-size: 18px; letter-spacing: 0.12em; padding: 8px 14px; }
.bar-table table { width: 100%; border-collapse: collapse; border-bottom: 1.5px solid var(--ink); }
.bar-table th, .bar-table td { padding: 9px 14px; text-align: left; vertical-align: top; }
.bar-table th { width: 30%; font-weight: 700; }
.bar-table tr:nth-child(even) { background: var(--panel); }

/* Ingredients (in the ladder and the shopping list) */
.ing__note { font-style: italic; color: var(--muted); font-size: 0.9em; }
.ing--optional::before { content: "Optional: "; font-family: var(--caps); font-size: 0.8em; letter-spacing: 0.08em; color: var(--muted); }
.ing--ref .ing__item { font-style: italic; }

/* Stage: header rows, then the ladder */
.stage { display: flex; flex-direction: column; gap: 14px; }
.stage__table { border: 1.5px solid var(--ink); border-bottom-width: 3px; background: var(--card); }
.stage__meta { padding: 8px 14px; text-align: center; border-bottom: 1px solid var(--ink); }
.stage__meta:nth-of-type(2) { font-weight: 700; }
.stage__heads { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); border-bottom: 1.5px solid var(--ink); font-family: var(--caps); font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.stage__heads span { padding: 6px 14px; }

.rung { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.rung--stop { border-bottom: 4px solid var(--ink); }
.rung--optional { border-bottom: 2px dashed var(--ink); }
.rung__ing { padding: 10px 14px; border-right: 1.5px solid var(--ink); }
.rung__ing ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rung__aside { margin-top: 6px; font-style: italic; }
.rung__do { margin-left: calc(var(--level) * var(--rung-step)); border-left: 1.5px solid var(--ink); padding: 10px 14px; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.rung:has(.rung__ing:empty) .rung__ing { border-right-color: transparent; }
.rung__steps { display: flex; flex-direction: column; gap: 8px; }
.rung--optional-part .rung__aside { font-family: var(--caps); font-style: normal; letter-spacing: 0.12em; }
.rung.is-done .rung__ing, .rung.is-done .rung__steps { opacity: 0.45; }

.tick { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-family: var(--caps); font-size: 14px; letter-spacing: 0.08em; color: var(--muted); cursor: pointer; }
.tick[hidden] { display: none; }
.tick input { width: 22px; height: 22px; accent-color: var(--accent); }

.pace { display: inline-block; padding: 2px 10px; background: var(--panel); font-style: italic; }
.pace__label { font-family: var(--caps); font-style: normal; font-size: 0.8em; letter-spacing: 0.12em; margin-right: 6px; }
.pace--stop .pace__label { color: var(--green); }
.pace--rest .pace__label { color: var(--green); }
.pace--go { background: var(--ink); color: var(--paper); }
.pace--go .pace__label { color: var(--gold); }

.stage__foot { padding: 10px 14px; text-align: center; }
.stage__after { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }

@media screen and (max-width: 699px) {
  .recipe-page { --rung-step: 10px; }
  .stage__heads { display: none; }
  .rung { grid-template-columns: minmax(0, 1fr); }
  .rung__ing { border-right: 0; padding-bottom: 0; }
  .rung__ing:empty { display: none; }
  .rung__ing ul { gap: 2px; }
  .rung__ing li { font-weight: 700; }
  .rung__do { flex-wrap: wrap; }
}

/* Extra tables (e.g. paella ideas) */
.idea-table { display: flex; flex-direction: column; gap: 12px; }
.idea-table__intro { max-width: 860px; }
.scroll-x { overflow-x: auto; }
.idea-table table { width: 100%; min-width: 620px; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--card); }
.idea-table th { background: var(--rule); text-align: left; font-family: var(--caps); font-weight: 400; letter-spacing: 0.1em; }
.idea-table th, .idea-table td { padding: 8px 12px; border: 1px solid var(--muted); vertical-align: top; }
.idea-table tbody tr:nth-child(even) { background: var(--panel); }

/* Helper card: an index card (6 × 4 in when printed) */
.helper { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.card-sheet { width: min(100%, 680px); min-height: 340px; box-sizing: border-box; background: #FFFDF7; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--rule); padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; font-family: 'Atkinson Hyperlegible', Verdana, sans-serif; }
.card-sheet__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.card-sheet__title { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.card-sheet__head .spoon { color: var(--accent); width: 11px; height: 24px; }
.card-sheet__steps { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.35; }
.card-sheet__keys { margin: auto 0 0; padding: 8px 12px; list-style: none; background: var(--panel); display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 14px; font-weight: 700; }
.card-sheet__foot { font-size: 11px; color: var(--muted); text-align: right; }

/* Print dialog */
.print-dialog { max-width: min(520px, calc(100vw - 32px)); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 24px; }
.print-dialog::backdrop { background: rgba(26, 22, 18, 0.55); }
.print-dialog h2 { font-family: var(--display); font-size: 30px; margin-bottom: 10px; }
.print-dialog fieldset { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.print-dialog legend { font-family: var(--caps); letter-spacing: 0.12em; font-size: 15px; padding: 0; }
.print-dialog label { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.print-dialog input { width: 20px; height: 20px; accent-color: var(--accent); }
.print-dialog__buttons { display: flex; justify-content: flex-end; gap: 12px; margin-top: 14px; }

.more { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; text-align: center; padding-block: 44px; }
.more h2 { font-family: var(--display); font-size: 32px; line-height: 1.1; }
.more nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; font-family: var(--caps); font-size: 17px; letter-spacing: 0.08em; }
.more nav a { padding-block: 10px; }

/* ---------- Simple prose pages (guide intro, about, 404) ---------- */

.prose { max-width: 720px; margin-inline: auto; padding: 0 var(--gutter) 72px; display: flex; flex-direction: column; gap: 22px; font-size: 19px; line-height: 1.75; }
.prose h2 { font-family: var(--display); font-size: 36px; line-height: 1.1; padding-top: 12px; }
.prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.prose .photo { height: 320px; border: 1.5px solid var(--ink); }

/* Recipes page: spoons and cooking-with-breaks explainer */
.prose-box { border: 1.5px solid var(--ink); background: var(--card); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.prose-box h2 { font-family: var(--display); font-size: 30px; line-height: 1.1; }

/* Guide: the eating-out pocket guide (Johnny's red / green / yellow card) */
.pocket { display: flex; flex-wrap: wrap; gap: 24px; }
.pocket__panel { flex: 1 1 280px; min-width: 0; border: 1.5px solid var(--ink); background: var(--card); }
.pocket__panel--watch { flex: 2 1 520px; }
.pocket__panel h3 { padding: 10px 18px; font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--paper); }
.pocket__panel--watch h3 { background: var(--accent); }
.pocket__panel--yes h3 { background: var(--green); }
.pocket__panel--if h3 { background: #C89B2C; color: var(--ink); }
.pocket__panel h4 { font-family: var(--caps); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; margin: 0 0 4px; }
.pocket__panel ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.pocket__panel > ul { padding: 16px 18px 6px 40px; }
.pocket__cols { display: flex; flex-wrap: wrap; gap: 0 32px; padding: 16px 18px 4px; }
.pocket__cols > div { flex: 1 1 220px; }

/* Guide: ingredients to watch for */
.watch-list { border: 1.5px solid var(--ink); border-top: 6px solid var(--accent); background: var(--card); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.watch-list h3 { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.watch-list ul { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; }
.watch-list li { break-inside: avoid; padding-block: 2px; }
.watch-list .muted { font-size: 16px; }

/* About */
.about-strap { font-family: var(--fell); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--accent); text-align: center; padding-block: 8px; border-block: 4px double var(--ink); }
.beliefs { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }

/* Recipes: step labels, step photos, the spoon scale */
.rung__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.rung__meta span { font-family: var(--caps); font-size: 13px; letter-spacing: 0.1em; padding: 1px 8px; border: 1px solid var(--muted); color: var(--muted); }
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1.5px solid var(--ink); }
.gallery figcaption { font-size: 0.85em; line-height: 1.45; color: var(--soft); }
.spoon-scale { max-width: 860px; margin-inline: auto; border: 1.5px solid var(--ink); background: var(--card); padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.spoon-scale__head h2 { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.spoon-scale dl { margin: 0; display: flex; flex-direction: column; }
.spoon-scale dl > div { display: grid; grid-template-columns: minmax(150px, 0.3fr) 1fr; gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--rule); }
.spoon-scale dt { display: flex; align-items: center; gap: 10px; font-family: var(--caps); letter-spacing: 0.1em; color: var(--accent); }
.spoon-scale dd { margin: 0; }
@media screen and (max-width: 599px) { .spoon-scale dl > div { grid-template-columns: 1fr; } }
@media print { .gallery { break-before: page; } .gallery__grid { grid-template-columns: repeat(2, 1fr); } .print-steps .gallery, .print-card .gallery { display: none !important; } }

@page { margin: 0.6in; }

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; font-size: 12pt; }
  a { color: inherit; text-decoration: none; }
  .topband, .site-header, .site-footer, .band-panel, .btn, .photo, .recipe-photo, #subscribe,
  .recipe-controls, .legend, .tick, .print-dialog, .helper__head { display: none !important; }
  .wrap { max-width: none; padding-inline: 0; }
  .page-title { padding: 0 0 12pt; gap: 6pt; }
  .page-title h1 { font-size: 30pt; }
  .standfirst { font-size: 13pt; }
  .recipe-page { --rung-step: 0.45in; }
  .recipe-body { gap: 16pt; padding: 0; }
  html[data-text-size="large"] .recipe-body { font-size: 15pt; }
  html[data-text-size="xlarge"] .recipe-body { font-size: 18pt; }
  .rung, .bar-table tr, .idea-table tr, .card-sheet { break-inside: avoid; }
  .stage__title, .bar-table__title { break-after: avoid; }
  .rung.is-done .rung__ing, .rung.is-done .rung__steps { opacity: 1; }
  .shopping summary { padding: 6pt 10pt; }

  /* The helper card prints at index-card size with a dashed cut line. */
  .helper { break-before: page; }
  .card-sheet { width: 6in; min-height: 4in; padding: 0.22in 0.3in; gap: 6pt; box-shadow: none; border: 1px dashed #000; }
  .card-sheet__title { font-size: 18pt; }
  .card-sheet__steps { font-size: 10.5pt; gap: 2pt; }
  .card-sheet__keys { font-size: 9pt; padding: 4pt 8pt; }
  .card-sheet--dense .card-sheet__steps { font-size: 9.5pt; }
  .card-sheet--dense .card-sheet__keys { font-size: 8.5pt; }

  .stage__meta, .stage__heads { break-after: avoid; }
  .print-stage-pages .stage ~ .stage, .print-stage-pages.print-full .stage { break-before: page; }

  .print-steps .recipe-intro, .print-steps .shopping, .print-steps .experience, .print-steps .bar-table,
  .print-steps .idea-table, .print-steps .stage__after, .print-steps .helper { display: none !important; }

  .print-card .recipe-body > :not(.helper), .print-card .page-title { display: none !important; }
  .print-card .helper { break-before: auto; }

  .print-plain .pace, .print-plain .bar-table tr, .print-plain .idea-table tr, .print-plain .idea-table th,
  .print-plain .spoon-notes, .print-plain .card-sheet__keys, .print-plain .credit, .print-plain .stage__table,
  .print-plain .card-sheet { background: none !important; color: #000 !important; }
  .print-plain .pace { border: 1px solid #000; }
  .print-plain .pace__label { color: #000 !important; }
}
