/* Ruth Bell's Kitchen: large print, high contrast, big targets. Base type is 21px. */
@font-face { font-family: "Atkinson"; src: url("/fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/AtkinsonHyperlegible-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #fbf7ef;
  --card: #fffdf8;
  --ink: #2a221d;
  --muted: #574c43;
  --rust: #9a3a20;
  --rust-dark: #7c2d17;
  --sage: #e9eee2;
  --sage-ink: #3f5638;
  --line: #e2d8c6;
  --tip: #fff3d6;
  --tip-line: #e5c06a;
  --focus: #1d5fbf;
  --on-rust: #fffaf2;
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1916; --card: #26211d; --ink: #f3ece2; --muted: #cfc3b6; --rust: #e2896c;
    --rust-dark: #f0a58c; --sage: #263124; --sage-ink: #c9dbbf; --line: #3d352e; --tip: #3a301c;
    --tip-line: #8a6d2a; --focus: #8ab4ff; --on-rust: #1d1916; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1d1916; --card: #26211d; --ink: #f3ece2; --muted: #cfc3b6; --rust: #e2896c;
  --rust-dark: #f0a58c; --sage: #263124; --sage-ink: #c9dbbf; --line: #3d352e; --tip: #3a301c;
  --tip-line: #8a6d2a; --focus: #8ab4ff; --on-rust: #1d1916; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 131.25%; -webkit-text-size-adjust: 100%; }          /* 21px */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Atkinson", Verdana, sans-serif; font-size: 1rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--rust-dark); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap, .wrap-narrow { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* header */
.site-header { border-bottom: 2px solid var(--line); background: var(--card); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rust); color: var(--on-rust); font-size: 1.4rem; }
.site-header nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.site-header nav a:hover { background: var(--sage); }
.site-header nav a[aria-current="page"] { background: var(--sage); color: var(--sage-ink); }

main { padding-bottom: 24px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 26px;
  border-radius: 12px; border: 2px solid var(--rust); background: var(--card); color: var(--rust);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--sage); color: var(--rust-dark); text-decoration: none; }
.btn-primary { background: var(--rust); color: var(--on-rust); }
.btn-primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: var(--on-rust); }
.btn-big { min-height: 64px; font-size: 1.15rem; padding: 14px 34px; }

.kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 0.4em; }
.lede { font-size: 1.15rem; color: var(--muted); }
.small { font-size: 0.85rem; color: var(--muted); }
.center { text-align: center; }
.crumbs { font-size: 0.9rem; margin: 22px 0 10px; color: var(--muted); }
.page-head { padding: 28px 0 8px; }
.section-head { margin-top: 1.6em; }
.section-head a { color: inherit; text-decoration: none; }
.section-head a:hover { color: var(--rust); text-decoration: underline; }
.latest { padding-top: 24px; }
.latest .section-head { margin-top: 0; }
.note { background: var(--sage); color: var(--sage-ink); border-radius: var(--radius); padding: 14px 18px; }

/* hero */
.hero { background: var(--card); border-bottom: 2px solid var(--line); margin-bottom: 12px; }
.hero-inner { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 36px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr 1fr; padding-top: 48px; padding-bottom: 52px; } }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* cards */
.cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: var(--rust); }
.card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--sage); }
.text-card { display: flex; align-items: center; justify-content: center; gap: 0.3em; font-family: var(--serif); font-size: 1.6rem; color: var(--sage-ink); }
.text-card span { font-size: 3rem; font-weight: 700; color: var(--rust); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.card-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sage-ink); }
.card-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.card-link:hover .card-title { color: var(--rust); text-decoration: underline; }
.card-meta { color: var(--muted); font-size: 0.9rem; }

/* recipe */
.recipe-head { margin-top: 6px; }
.recipe-head h1 { margin-bottom: 0.3em; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); }
.recipe-photo { margin: 0 0 20px; }
.recipe-photo img { border-radius: var(--radius); width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.ingredients, .method { margin-bottom: 28px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; border-top: 2px solid var(--line); }
.checklist li { border-bottom: 2px solid var(--line); }
.checklist label { display: flex; align-items: center; gap: 16px; padding: 14px 4px; font-size: 1.15rem; cursor: pointer; }
.checklist input { width: 30px; height: 30px; flex: none; accent-color: var(--rust); }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 64px; min-height: 48px; font-size: 1.1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rust); color: var(--on-rust); font-weight: 700;
}
.tip { background: var(--tip); border-left: 8px solid var(--tip-line); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 6px 0 22px; font-size: 1.15rem; }
.tip p:last-child { margin: 0; }
.tip-label { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.2em; }
.source { color: var(--muted); font-size: 0.9rem; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0; border-top: 2px solid var(--line); padding-top: 20px; }
.prev-next a { display: flex; flex-direction: column; font-weight: 700; text-decoration: none; max-width: 48%; }
.prev-next a span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.prev-next .next { text-align: right; margin-left: auto; }
.related { margin-top: 12px; }
.video { margin: 28px 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.print-only { display: none; }

/* recipe index */
.filter { display: block; font-weight: 700; margin: 18px 0 6px; max-width: 560px; }
.filter input, .signup-form input {
  display: block; width: 100%; margin-top: 8px; min-height: 58px; padding: 10px 16px; font: inherit; font-size: 1.1rem;
  color: var(--ink); background: var(--card); border: 2px solid var(--muted); border-radius: 12px;
}
.jump ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.jump a { display: block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; background: var(--card); }
.jump a:hover { border-color: var(--rust); }
.index-list { padding-left: 2em; }
.index-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.index-list a { font-weight: 700; font-size: 1.1rem; }
.index-meta { display: block; color: var(--muted); font-size: 0.9rem; }
.index-list.plain { list-style: none; padding: 0; }

/* bands */
.band { margin: 40px 0 0; padding: 40px 0; }
.band-signup { background: var(--sage); }
.band-signup h2 { color: var(--sage-ink); }
.signup-inner { display: grid; gap: 18px 40px; align-items: start; }
@media (min-width: 860px) { .signup-inner { grid-template-columns: 1fr 1fr; } }
.signup-form label { font-weight: 700; }
.signup-form button { margin-top: 12px; width: 100%; }
.form-note { font-weight: 700; color: var(--rust); margin: 10px 0 0; }
.form-note:empty { display: none; }
.signup-form .small { margin-top: 10px; }
.band-book { background: var(--card); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.book-promo { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 640px) { .book-promo { grid-template-columns: 200px 1fr; } }
.book-cover { border-radius: 6px; box-shadow: 0 10px 28px rgba(60, 40, 20, 0.25); width: 200px; }

/* cookbook page */
.book-hero { display: grid; gap: 28px; align-items: center; padding: 32px 0; }
.book-hero figure { margin: 0; }
.book-hero .book-cover { width: min(360px, 70vw); }
@media (min-width: 760px) { .book-hero { grid-template-columns: 360px 1fr; gap: 48px; } }
.buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0.8em; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding: 0 0 12px 40px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--sage-ink); background: var(--sage); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; }
.spread { margin: 28px 0; }
.spread img { border-radius: var(--radius); border: 2px solid var(--line); width: 100%; }
.faq details { border-bottom: 2px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 48px; }
.about-photo { margin: 0 0 24px; }
.about-photo img { border-radius: var(--radius); }

/* footer */
.site-footer { margin-top: 48px; background: var(--card); border-top: 2px solid var(--line); padding: 36px 0 18px; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 22px 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr 1.4fr 1fr; } }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.footer-head { font-weight: 700; margin-bottom: 0.4em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 3px 0; }
.copyright { color: var(--muted); margin-top: 18px; }

[hidden] { display: none !important; }

/* print: just the recipe, big and plain, on paper */
@media print {
  @page { margin: 0.6in; }
  html { font-size: 15pt; }
  body { background: #fff; color: #000; line-height: 1.4; }
  .note { padding: 8px 14px; font-size: 0.9rem; }
  .facts { margin-bottom: 10px; }
  .site-header, .site-footer, .no-print, .crumbs, .skip, .band { display: none !important; }
  .print-only { display: block; }
  .recipe-photo img { max-height: 2.6in; width: auto; }
  .steps li::before { background: #fff; color: #000; border: 2px solid #000; }
  .tip { background: #fff; border-left-color: #000; }
  .checklist input { display: none; }
  .checklist label { padding: 6px 0; }
  .latest { padding-top: 24px; }
.latest .section-head { margin-top: 0; }
.note { background: #fff; color: #000; border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
  .print-url { margin: 0 0 10px; font-size: 0.8rem; color: #444; }
  h1 { font-size: 26pt; }
  h2 { font-size: 17pt; margin-bottom: 0.3em; }
  .ingredients, .method { margin-bottom: 14px; }
  .checklist label { font-size: 1rem; padding: 4px 0; }
  .steps li { padding-bottom: 8px; min-height: 0; font-size: 1rem; }
  .steps li::before { width: 32px; height: 32px; }
  .tip { break-inside: avoid; }
  .tip { font-size: 1rem; padding: 10px 16px; }
  .recipe-photo { display: none; }
}
