/* ==========================================================================
   Real Gravy - realgravy.co.uk
   Design system. One stylesheet, no framework, no build step.
   ========================================================================== */

:root {
  /* Ink and paper */
  --paper:        #fbf7f0;
  --paper-2:      #f4ede1;
  --paper-3:      #ece1d0;
  --card:         #ffffff;
  --ink:          #24170e;
  --ink-2:        #4a382a;
  --ink-3:        #756047;
  --line:         #e3d6c2;
  --line-strong:  #cdb99c;

  /* Brand */
  --roast:        #4a2410;
  --roast-2:      #6b3a1c;
  --copper:       #b4652a;
  --copper-2:     #96501e;
  --sage:         #6d7d46;
  --claret:       #7c2f34;
  --butter:       #e9b949;

  --focus:        #1f6feb;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(36,23,14,.06), 0 2px 8px rgba(36,23,14,.05);
  --shadow-2: 0 2px 6px rgba(36,23,14,.07), 0 12px 28px rgba(36,23,14,.09);
  --shadow-3: 0 4px 12px rgba(36,23,14,.10), 0 24px 56px rgba(36,23,14,.13);

  --wrap: 1180px;
  --measure: 68ch;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.38vw, 1.42rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 1.90rem);
  --step-3:  clamp(1.73rem, 1.50rem + 1.15vw, 2.53rem);
  --step-4:  clamp(2.07rem, 1.70rem + 1.85vw, 3.38rem);
  --step-5:  clamp(2.49rem, 1.90rem + 2.90vw, 4.50rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #17110c;
    --paper-2:     #1f1710;
    --paper-3:     #291e15;
    --card:        #211810;
    --ink:         #f5ece0;
    --ink-2:       #d9c9b4;
    --ink-3:       #b09a80;
    --line:        #3a2b1e;
    --line-strong: #4d3a28;
    --roast:       #f0dcc4;
    --roast-2:     #e2c6a4;
    --copper:      #e2914f;
    --copper-2:    #f0a463;
    --sage:        #9fb173;
    --claret:      #d4737a;
    --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.30);
    --shadow-2: 0 2px 6px rgba(0,0,0,.40), 0 12px 28px rgba(0,0,0,.40);
    --shadow-3: 0 4px 12px rgba(0,0,0,.45), 0 24px 56px rgba(0,0,0,.50);
  }
}

:root[data-theme="dark"] {
  --paper:       #17110c;
  --paper-2:     #1f1710;
  --paper-3:     #291e15;
  --card:        #211810;
  --ink:         #f5ece0;
  --ink-2:       #d9c9b4;
  --ink-3:       #b09a80;
  --line:        #3a2b1e;
  --line-strong: #4d3a28;
  --roast:       #f0dcc4;
  --roast-2:     #e2c6a4;
  --copper:      #e2914f;
  --copper-2:    #f0a463;
  --sage:        #9fb173;
  --claret:      #d4737a;
  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.30);
  --shadow-2: 0 2px 6px rgba(0,0,0,.40), 0 12px 28px rgba(0,0,0,.40);
  --shadow-3: 0 4px 12px rgba(0,0,0,.45), 0 24px 56px rgba(0,0,0,.50);
}

/* --------------------------------------------------------------- Reset --- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--roast); margin: 0 0 .5em; letter-spacing: -0.015em; font-variation-settings: "SOFT" 20, "WONK" 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1.1em; }
a  { color: var(--copper-2); text-underline-offset: 3px; text-decoration-thickness: from-font; }
a:hover { color: var(--copper); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
small { font-size: var(--step--1); }
button { font: inherit; }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--roast); color: var(--paper); padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- Layout --- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
@media (max-width: 560px) { .wrap, .wrap-narrow { width: min(100% - 1.75rem, var(--wrap)); } }

.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

.stack > * + * { margin-top: 1rem; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: var(--measure); line-height: 1.5; }

/* -------------------------------------------------------------- Header --- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--paper); } }

.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--roast); flex: 0 0 auto; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; line-height: 1; }
.brand__name span { color: var(--copper); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: var(--ink-2); text-decoration: none; padding: .5rem .7rem; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 500; white-space: nowrap;
}
.nav a:hover { background: var(--paper-3); color: var(--roast); }
.nav a[aria-current="page"] { color: var(--roast); background: var(--paper-3); }

.header-tools { display: flex; align-items: center; gap: .4rem; margin-left: .3rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: var(--r-sm); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--roast); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 1.25rem 1rem;
    box-shadow: var(--shadow-2); gap: 0;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .75rem .5rem; border-bottom: 1px solid var(--line); }
}

/* --------------------------------------------------------------- Search --- */

.search-form { position: relative; flex: 1 1 260px; max-width: 340px; }
@media (max-width: 900px) { .search-form { display: none; } }
.search-form input {
  width: 100%; padding: .6rem .85rem .6rem 2.3rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: .93rem;
}
.search-form input::placeholder { color: var(--ink-3); }
.search-form svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }

.results-panel {
  position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-3); max-height: 60vh; overflow-y: auto; padding: .35rem; z-index: 60;
}
.results-panel a {
  display: block; padding: .55rem .7rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink);
}
.results-panel a:hover, .results-panel a.is-active { background: var(--paper-3); }
.results-panel strong { display: block; font-weight: 600; font-size: .95rem; }
.results-panel em { font-style: normal; color: var(--ink-3); font-size: .8rem; }
.results-panel .empty { padding: .8rem; color: var(--ink-3); font-size: .9rem; }

/* ----------------------------------------------------------------- Hero --- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60rem 30rem at 78% 12%, color-mix(in srgb, var(--copper) 12%, transparent), transparent 70%),
    radial-gradient(45rem 28rem at 8% 88%, color-mix(in srgb, var(--sage) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: var(--step-5); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--copper); }
.hero__art { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); border: 1px solid var(--line); }
.hero__art svg { width: 100%; height: auto; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--copper-2); margin-bottom: .9rem;
}

.hero-search { margin-top: 1.6rem; position: relative; max-width: 520px; }
.hero-search input {
  width: 100%; padding: 1rem 1.15rem 1rem 3rem; font-size: 1.05rem;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-1);
}
.hero-search svg { position: absolute; left: 1.1rem; top: 1.15rem; width: 20px; height: 20px; color: var(--ink-3); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.8rem; }
.hero-stats div { line-height: 1.2; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.75rem; color: var(--roast); }
.hero-stats span { font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

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

.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .72rem 1.25rem; border-radius: var(--r-pill); font-weight: 600; font-size: .96rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--copper-2); color: #fff; }
.btn--primary:hover { background: var(--copper); color: #fff; }
:root[data-theme="dark"] .btn--primary, :root:not([data-theme="light"]) .btn--primary { color: #23150a; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn--primary { color: #fff; } }
.btn--ghost { background: transparent; color: var(--roast); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper-3); color: var(--roast); }

/* ---------------------------------------------------------------- Cards --- */

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card__media { aspect-ratio: 3 / 2; background: var(--paper-3); overflow: hidden; }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-2); margin-bottom: .4rem; }
.card__title { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.22; margin: 0 0 .45rem; color: var(--roast); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__summary { font-size: .89rem; color: var(--ink-2); margin: 0 0 .9rem; line-height: 1.5; }
.card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .8rem; font-size: .78rem; color: var(--ink-3); }
.card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card__meta svg { width: 13px; height: 13px; }

.card--wide { flex-direction: row; }
@media (max-width: 640px) { .card--wide { flex-direction: column; } }
.card--wide .card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }

/* Category tiles */
.cat-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cat-tile {
  position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: var(--card); text-decoration: none; color: inherit; display: block;
  transition: transform .16s ease, box-shadow .16s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cat-tile__art { aspect-ratio: 16 / 9; }
.cat-tile__art svg { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__body { padding: .9rem 1rem 1.1rem; }
.cat-tile h3 { font-size: 1.08rem; margin: 0 0 .3rem; }
.cat-tile p { font-size: .85rem; color: var(--ink-2); margin: 0 0 .5rem; line-height: 1.45; }
.cat-tile b { font-size: .78rem; color: var(--copper-2); font-weight: 700; }

/* ---------------------------------------------------------------- Chips --- */

.chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1.2rem; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .34rem .78rem; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600;
  background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line); text-decoration: none;
}
a.chip:hover { background: var(--card); border-color: var(--line-strong); color: var(--roast); }
.chip--on { background: var(--copper-2); border-color: var(--copper-2); color: #fff; }
.chip--diet { background: color-mix(in srgb, var(--sage) 18%, var(--paper-2)); border-color: color-mix(in srgb, var(--sage) 40%, var(--line)); }
.chip--warn { background: color-mix(in srgb, var(--claret) 15%, var(--paper-2)); border-color: color-mix(in srgb, var(--claret) 35%, var(--line)); }

/* ------------------------------------------------------------ Breadcrumb --- */

.crumbs { font-size: .82rem; color: var(--ink-3); padding-block: 1rem .25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--line-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--copper-2); text-decoration: underline; }

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

.recipe-head { padding-block: .5rem clamp(1.5rem, 3vw, 2.5rem); }
.recipe-head h1 { font-size: var(--step-4); margin-bottom: .3em; max-width: 20ch; }
.recipe-head .lede { margin-bottom: 1.2rem; }
.recipe-hero { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); margin-bottom: 1.5rem; }
.recipe-hero img, .recipe-hero svg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card);
  margin-bottom: 2rem;
}
.facts div { padding: .85rem 1rem; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
@media (max-width: 620px) { .facts div { border-right: 0; border-bottom: 1px solid var(--line); } .facts div:last-child { border-bottom: 0; } }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; margin-bottom: .15rem; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.12rem; color: var(--roast); }

.recipe-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .recipe-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }

.ingredients { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ingredients li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .6rem 0; border-bottom: 1px dashed var(--line); margin: 0;
}
.ingredients li:last-child { border-bottom: 0; }
.ingredients input[type="checkbox"] { margin-top: .35rem; width: 1.05rem; height: 1.05rem; accent-color: var(--copper-2); flex: 0 0 auto; cursor: pointer; }
.ingredients label { cursor: pointer; }
.ingredients .amt { font-weight: 700; color: var(--roast); font-variant-numeric: tabular-nums; }
.ingredients .note { color: var(--ink-3); font-size: .88em; }
.ingredients li.done label { text-decoration: line-through; opacity: .5; }

.scaler { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.scaler span { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.scaler button {
  padding: .35rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink-2); cursor: pointer; font-size: .85rem; font-weight: 600;
}
.scaler button[aria-pressed="true"] { background: var(--copper-2); border-color: var(--copper-2); color: #fff; }

.method { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.method li {
  counter-increment: step; position: relative; padding-left: 3.1rem; margin-bottom: 1.5rem;
  min-height: 2.2rem;
}
.method li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--roast); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
:root[data-theme="dark"] .method li::before, :root:not([data-theme="light"]) .method li::before { color: #1b120a; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .method li::before { color: var(--paper); } }
.method li.done { opacity: .55; }
.method li.done::before { background: var(--sage); }
.method p { margin: 0; }
.method .tick {
  margin-top: .5rem; font-size: .78rem; color: var(--ink-3); background: none; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: .2rem .65rem; cursor: pointer;
}

.callout {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--copper);
  border-radius: var(--r-sm); padding: 1.1rem 1.25rem; margin: 1.8rem 0;
}
.callout h3 { margin-top: 0; font-size: 1.05rem; }
.callout :last-child { margin-bottom: 0; }

.tips { list-style: none; padding: 0; }
.tips li { position: relative; padding-left: 1.6rem; }
.tips li::before { content: "✦"; position: absolute; left: 0; color: var(--copper); }

.faq details {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .1rem 1rem; margin-bottom: .7rem;
  background: var(--card);
}
.faq summary { cursor: pointer; padding: .85rem 0; font-weight: 600; color: var(--roast); font-family: var(--font-display); font-size: 1.02rem; }
.faq summary::marker { color: var(--copper); }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.faq p { margin-bottom: .9rem; }

/* Sidebar */
.side { position: sticky; top: 5.5rem; display: grid; gap: 1.25rem; }
@media (max-width: 979px) { .side { position: static; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem 1.25rem; }
.panel h2, .panel h3 { font-size: 1.02rem; margin: 0 0 .8rem; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { font-size: .9rem; margin-bottom: .55rem; }
.panel a { text-decoration: none; color: var(--ink-2); }
.panel a:hover { color: var(--copper-2); text-decoration: underline; }

.nutrition-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.nutrition-table th, .nutrition-table td { text-align: left; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.nutrition-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--roast); font-weight: 600; }
.nutrition-table tr:last-child th, .nutrition-table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------- Browse --- */

.filters { display: grid; gap: 1rem; padding: 1.15rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 1.75rem; }
.filters__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters__row > strong { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); min-width: 5.5rem; }
.filters input[type="search"] {
  width: 100%; padding: .75rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font-size: 1rem;
}
.filter-chip { cursor: pointer; }
.result-count { font-size: .88rem; color: var(--ink-3); margin-bottom: 1rem; }
.no-results { text-align: center; padding: 3rem 1rem; color: var(--ink-3); }

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; list-style: none; padding: 0; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-size: .9rem;
}
.pagination a:hover { border-color: var(--line-strong); color: var(--roast); }
.pagination [aria-current="page"] { background: var(--roast); color: var(--paper); border-color: var(--roast); font-weight: 700; }

/* -------------------------------------------------------------- Footer --- */

.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 3rem 2rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-family: var(--font-body); font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; font-size: .9rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--copper-2); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* --------------------------------------------------------------- Print --- */

@media print {
  .site-header, .site-footer, .side, .crumbs, .scaler, .method .tick, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .recipe-layout { display: block; }
  .recipe-hero { max-height: 6cm; }
  .prose { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  .method li { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}
