/* ==========================================================================
   After Dark Kitchen · styles.css
   Design system and all page components. Mobile first, no framework.
   Order: 1 fonts · 2 tokens · 3 themes · 4 base · 5 layout · 6 components
          7 pages · 8 utilities · 9 motion · 10 print
   Contrast values in comments are WCAG ratios, checked against the token
   pairs they are used on.
   ========================================================================== */

/* 1. Fonts ----------------------------------------------------------------
   Self-hosted (no request to Google: GDPR, Germany). Files live in
   /assets/fonts/. Family names are prefixed "ADK" so a missing file falls
   through to the next family in the stack instead of fighting with it. */

/* @font-face rules: inserted here by build.py, depending on which files
   are in src/fonts/ (variable Fraunces/Instrument Sans if present, else
   the static fallbacks). Do not write them by hand. */
@font-face {
  font-family: "ADK Serif";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ADK Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff") format("woff");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ADK Sans";
  src: url("/assets/fonts/instrument-sans-400.woff") format("woff");
  font-weight: 100 549;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ADK Sans";
  src: url("/assets/fonts/instrument-sans-700.woff") format("woff");
  font-weight: 550 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens ---------------------------------------------------------------- */

:root {
  /* Night: the kitchen after dark (brand frame, header, footer, heroes) */
  --night-950: #0F0C0A;
  --night-900: #181310;
  --night-800: #221B16;
  --night-700: #2F2620;
  --night-600: #3D3229;
  --cream: #F4ECE1;        /* text on night        16.65 */
  --cream-2: #DCCFBF;      /* secondary on night   12.74 */
  --cream-muted: #B9AC9C;  /* muted on night        8.77 */
  --night-rule-strong: #7A6A5B; /* UI borders on night 3.75 */
  --lamp: #F3B562;         /* pendant-lamp gold, accent on night 10.76 */
  --lamp-hot: #FFD08F;
  --flame: #F07A2E;        /* flame orange, buttons on night (text #140C07: 6.94) */
  --flame-hot: #FF9147;
  --flame-ink: #140C07;

  /* Paper: where recipes are read */
  --paper: #FAF6EF;
  --paper-2: #F2EBE0;
  --paper-3: #E9DFD0;
  --surface: #FFFFFF;
  --line: #E4D9C9;
  --line-strong: #8C7E70;  /* checkbox and input borders 3.65 on paper */
  --ink: #1C1612;          /* body on paper 16.62 */
  --ink-2: #4A4038;        /* secondary      9.36 */
  --ink-3: #6B6056;        /* muted          5.68 */
  --ember: #B5400F;        /* links, labels, buttons (white on it: 5.67) */
  --ember-deep: #8F320C;   /* hover, white on it: 7.99 */
  --ember-tint: #FBE3D2;
  --ember-wash: #FDF1E7;

  /* Type */
  --font-serif: "ADK Serif", "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "ADK Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.55rem + 5.2vw, 5.75rem); /* 44 to 92px */
  --fs-h1: clamp(2.25rem, 1.6rem + 2.9vw, 4rem);          /* 36 to 64px */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);        /* 28 to 40px */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);      /* 20 to 24px */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);/* 18 to 21px */
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);/* 17 to 18px */
  --fs-step: 1.125rem;                                    /* 18px, cooking text */
  --fs-small: 0.9375rem;                                  /* 15px */
  --fs-label: 0.8125rem;                                  /* 13px */
  --fs-micro: 0.75rem;                                    /* 12px */

  --lh-tight: 1.02;
  --lh-snug: 1.18;
  --lh-body: 1.6;
  --tracking-label: 0.12em;

  /* Space (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  /* Widths */
  --w-wide: 76rem;     /* 1216px */
  --w-recipe: 76rem;   /* recipe card: same edge as the recipe hero above it */
  --w-content: 48rem;  /* 768px */
  --w-prose: 40rem;    /* about 68ch */

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

  --shadow-card: 0 1px 2px rgba(28, 22, 18, 0.05), 0 12px 32px -18px rgba(28, 22, 18, 0.28);
  --shadow-lift: 0 2px 6px rgba(28, 22, 18, 0.06), 0 24px 48px -24px rgba(28, 22, 18, 0.4);
  --glow-flame: 0 28px 60px -28px rgba(240, 122, 46, 0.5);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 600ms;

  --header-h: 4rem;
}

/* 3. Themes ----------------------------------------------------------------
   Components only use the semantic tokens below. A section switches its
   whole look with .theme-night or .theme-paper.
   Since 15.10.2026 the site is light: paper is the default for header,
   heroes and page heads, warmed by a lamp glow (.has-glow). Night stays
   for the footer and the link preview cards only. */

:root,
.theme-paper {
  --bg: var(--paper);
  --bg-raised: var(--surface);
  --bg-sunken: var(--paper-2);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --accent: var(--ember);
  --accent-strong: var(--ember-deep);
  --accent-tint: var(--ember-tint);
  --link: var(--ember);
  --focus: var(--ember);
  --btn-bg: var(--ember);
  --btn-fg: #FFFFFF;
  --btn-bg-hover: var(--ember-deep);
  --btn2-fg: var(--ink);
  --btn2-line: var(--line-strong);
  --btn2-bg-hover: var(--paper-2);
  --tint: var(--paper-2);                     /* chips, pills, hovered rows */
  --glow-a: rgba(243, 181, 98, 0.26);         /* warm lamp light on paper; at its centre
                                                ember text still has 4.6:1, ink-3 4.97:1 */
  --glow-b: rgba(240, 122, 46, 0.10);
  color-scheme: light;
}

.theme-night {
  --bg: var(--night-950);
  --bg-raised: var(--night-800);
  --bg-sunken: var(--night-900);
  --fg: var(--cream);
  --fg-2: var(--cream-2);
  --fg-3: var(--cream-muted);
  --rule: var(--night-600);
  --rule-strong: var(--night-rule-strong);
  --accent: var(--lamp);
  --accent-strong: var(--lamp-hot);
  --accent-tint: rgba(243, 181, 98, 0.14);
  --link: var(--lamp);
  --focus: var(--lamp);
  --btn-bg: var(--flame);
  --btn-fg: var(--flame-ink);
  --btn-bg-hover: var(--flame-hot);
  --btn2-fg: var(--cream);
  --btn2-line: var(--night-rule-strong);
  --btn2-bg-hover: rgba(244, 236, 225, 0.07);
  --tint: rgba(244, 236, 225, 0.07);
  --glow-a: rgba(243, 181, 98, 0.2);
  --glow-b: rgba(240, 122, 46, 0.07);
  color-scheme: dark;
}

.theme-paper,
.theme-night {
  background-color: var(--bg);
  color: var(--fg);
}

.bg-sunken { background-color: var(--bg-sunken); }

/* 4. Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-strong); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--flame); color: var(--flame-ink); }

[hidden] { display: none !important; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 5. Layout ---------------------------------------------------------------- */

.container {
  --container: var(--w-wide);
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--recipe { --container: var(--w-recipe); }
.container--content { --container: var(--w-content); }
.container--prose { --container: var(--w-prose); }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--into-band { padding-bottom: calc(var(--section) * 0.5); } /* home: the brand band below closes this section */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.section-head__title { font-size: var(--fs-h2); }
.section-head__lede { margin-top: var(--sp-2); color: var(--fg-3); max-width: 36rem; }

.flow > * + * { margin-top: var(--flow, 1em); }

/* 6. Components ------------------------------------------------------------ */

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-3);
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--lamp);
  color: var(--flame-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}

/* Wordmark: "after dark" italic serif + KITCHEN in caps, set as one unit
   next to the logo (the fried drumstick with the halo, as on Instagram).
   Tighter since 15.10.2026: less space between the words, KITCHEN less
   spaced and sized so its capitals are as tall as the x-height of "after
   dark" (13.5 px caps next to 23 px italic), so it no longer reads as a
   label hung on the end. All sizes in em: the header sets it 10 percent
   larger from 900px. The light header uses the logo without the outer glow
   (--paper); footer and 404 keep the glowing one, whose negative margins
   let the glow overlap a bit. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--fg);
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark:hover { color: var(--fg); }
.wordmark__logo { flex: none; width: auto; height: 2.875em; margin: -0.3em -0.2em -0.3em -0.35em; }
.wordmark__logo--paper { height: 2.5em; margin: -0.125em 0.05em -0.125em 0; }
.wordmark__text { display: inline-flex; align-items: baseline; gap: 0.32em; }
.wordmark__script {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4375em;
  letter-spacing: -0.015em;
  word-spacing: -0.06em;
}
.wordmark__caps {
  margin-right: -0.1em; /* the last letter's spacing would hang outside */
  font-family: var(--font-sans);
  font-size: 0.84375em;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
@media (min-width: 900px) { .site-header .wordmark { font-size: 1.1rem; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease,
    color var(--dur-1) ease, transform var(--dur-1) ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }

.btn--secondary { border-color: var(--btn2-line); color: var(--btn2-fg); }
.btn--secondary:hover { background: var(--btn2-bg-hover); color: var(--btn2-fg); }

.btn--ghost { color: var(--fg-2); padding-inline: 0.875rem; }
.btn--ghost:hover { background: var(--btn2-bg-hover); color: var(--fg); }

.btn--sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
}
.link-arrow .icon { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-pill);
  color: var(--fg-2);
}
.icon-link:hover { color: var(--fg); background: var(--btn2-bg-hover); }

/* Chips (categories, filters) */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--bg-raised);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: border-color var(--dur-1) ease, background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.chip:hover { border-color: var(--rule-strong); color: var(--fg); }
.chip[aria-pressed="true"],
.chip[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip__count {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--fg-3);
}
.chip[aria-pressed="true"] .chip__count,
.chip[aria-current="page"] .chip__count { color: inherit; opacity: 0.75; }

/* Search field */
.search { position: relative; display: flex; width: 100%; max-width: 32rem; }
.search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: var(--fg-3);
  pointer-events: none;
}
.search__input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0 1.25rem 0 3.1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-pill);
  background: var(--bg-raised);
  color: var(--fg);
  font-size: 1.0625rem; /* >= 16px: no iOS zoom */
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.search--with-btn .search__input { padding-right: 7.5rem; }
.search__input::placeholder { color: var(--fg-3); opacity: 1; }
.search__input:hover { border-color: var(--fg-3); }
.search__input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent);
}
.search__input::-webkit-search-cancel-button { cursor: pointer; }
.search__btn { position: absolute; top: 0.375rem; right: 0.375rem; bottom: 0.375rem; min-height: 0; }

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}
.nav-desktop { display: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-pill);
  color: var(--fg-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { color: var(--fg); background: var(--tint); }
.nav-link[aria-current="page"] { color: var(--fg); background: var(--tint); }

/* Mobile menu: <details>, works without JS */
.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1.5px solid var(--btn2-line);
  border-radius: var(--r-pill);
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu > summary::-webkit-details-marker { display: none; }
/* very narrow phones: the menu button shows only its icon, so the header fits */
@media (max-width: 359px) {
  .menu > summary { width: 2.75rem; padding: 0; justify-content: center; }
  .menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.menu > summary::marker { content: ""; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
/* dim the page under the open menu; a tap on it closes the menu (it is part of <summary>) */
.menu[open] > summary::before {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 0;
  background: rgba(28, 22, 18, 0.34);
  cursor: default;
}
.menu__panel {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--sp-2) var(--gutter) var(--sp-6);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 40px 60px -30px rgba(28, 22, 18, 0.35);
}
.menu__panel a:not(.btn) {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
}
.menu__panel a[aria-current="page"] { color: var(--accent); }
.menu__panel .menu__meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

@media (min-width: 900px) {
  .menu { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: var(--sp-1); }
  .nav-desktop .btn { margin-left: var(--sp-3); }
}

/* Grain + glow for night sections */
.has-glow { position: relative; isolation: isolate; overflow: hidden; }
.has-glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35vmax;
  right: -20vmax;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 45%, transparent 72%);
  pointer-events: none;
}
/* grain needs its own positioned box, otherwise it covers the first screen of the page */
.has-grain { position: relative; isolation: isolate; }
.has-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Home hero: light, warm lamp glow behind the "Latest recipes" box.
   Phones: heading, box, then lede and search (grid areas keep one DOM
   order for both). From 900px: text left, box right, text centred. */
.hero { padding-block: clamp(1.5rem, 0.9rem + 2.4vw, 3.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "latest" "rest";
  gap: var(--sp-5);
}
/* the lamp glow sits lower than on other pages: behind the box, so it
   glows around it (the text column stays on plain paper) */
.hero.has-glow::before { top: -20vmax; right: -30vmax; width: 96vmax; height: 96vmax; }
.hero__head { grid-area: head; }
.hero__latest { grid-area: latest; min-width: 0; max-width: 34rem; }
.hero__rest { grid-area: rest; }
.hero__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero__lede {
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: var(--fg-2);
  text-wrap: balance; /* phones: two even lines, never "step." alone */
}
.hero__search { margin-top: var(--sp-5); }
/* phones: below the box the lede is the lead-in to the search, so the two
   sit close together and a little apart from the box */
@media (max-width: 899px) {
  .hero__rest { padding-top: var(--sp-3); }
  .hero__search { margin-top: var(--sp-4); }
}
.hero__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-4); }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
    align-items: stretch;
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". latest" "head latest" "rest latest" ". latest";
    gap: 0 clamp(2.5rem, 1rem + 4vw, 5rem);
  }
  .hero__title { font-size: clamp(3rem, 1.2rem + 3.6vw, 5.25rem); }
  .hero__rest { margin-top: var(--sp-5); }
  .hero__search { margin-top: var(--sp-6); }
}

/* "Latest recipes" box (home hero). The slides sit in a row that scrolls
   sideways with scroll snap, so swiping works without script; site.js adds
   the arrows, the counter and arrow keys (section 9 there). */
.latest {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-card), 0 36px 70px -36px rgba(181, 64, 15, 0.38);
}
.latest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 3.5rem;
  padding: 0.375rem 0.75rem 0.375rem 1.125rem; /* room for the focus ring inside the rounded box */
  border-bottom: 1px solid var(--rule);
}
.latest__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}
.latest__label .icon { width: 1rem; height: 1rem; color: var(--flame); }
.latest__count {
  min-width: 3rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.latest__viewport {
  position: relative;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.js .latest__viewport { scrollbar-width: none; }
.js .latest__viewport::-webkit-scrollbar { display: none; }
.latest__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.latest__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.latest__link:hover { color: inherit; }
.latest__link:focus-visible { outline-offset: -4px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.latest__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper-3);
}
.latest__media img,
.latest__media > .media-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}
.latest__link:hover .latest__media img { transform: scale(1.03); }
.latest__body { display: grid; align-content: start; gap: 0.35rem; flex: 1; padding: 1rem 1.125rem 1.25rem; }
.latest__body .eyebrow { font-size: var(--fs-micro); }
.latest__title { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.1; }
.latest__link:hover .latest__title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}
.latest__text { color: var(--fg-2); font-size: var(--fs-small); line-height: 1.5; }
.latest__cta { margin-top: 0.4rem; font-size: var(--fs-small); }
.latest__link:hover .latest__cta .icon { transform: translateX(3px); }
/* arrows and counter in the head of the box ("‹ 1 / 6 ›"), so the photo
   stays free; 44 px targets, focus ring in ink on the white head */
.latest__controls { display: flex; align-items: center; gap: 0.125rem; flex: none; }
.latest__nav {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, border-color var(--dur-1) ease, opacity var(--dur-2) ease, transform var(--dur-1) ease;
}
.latest__nav .icon { width: 1.25rem; height: 1.25rem; stroke-width: 2.25; }
.latest__nav:hover { background: var(--tint); border-color: var(--rule-strong); color: var(--accent); }
.latest__nav:active { transform: scale(0.94); }
.latest__nav:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 50%; box-shadow: 0 0 0 2px #FFFFFF; }
.latest__nav[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.latest__nav[aria-disabled="true"]:hover { background: var(--bg-raised); border-color: var(--rule); color: var(--fg); }
.latest__nav[aria-disabled="true"]:active { transform: none; }
.latest__nav[hidden] { display: none; }

/* Recipe cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
}
@media (min-width: 600px) { .grid-cards { gap: 2.5rem 1.5rem; } }
@media (min-width: 900px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Related recipes: pass 2 or 4. Phones 2x2, from 900px one row of 4 */
@media (min-width: 900px) { .grid-cards--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Bento: first card large (home, latest recipes) */
.grid-cards--feature > :first-child { grid-column: 1 / -1; }
.grid-cards--feature > :first-child .card__media { aspect-ratio: 1 / 1; }
.grid-cards--feature > :first-child .card__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
@media (min-width: 900px) {
  .grid-cards--feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-cards--feature > :first-child { grid-column: span 2; grid-row: span 2; }
  .grid-cards--feature > :first-child .card__media { aspect-ratio: auto; flex: 1; min-height: 22rem; }
  /* the media box gets its height from the grid row, so the photo fills it absolutely */
  .grid-cards--feature > :first-child .card__media img { position: absolute; inset: 0; }
}

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-md);
}
.card__link:hover { color: inherit; }
.card__link:focus-visible { outline-offset: 6px; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-3);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}
.card__link:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--night-950);
  color: var(--lamp);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card__body { display: grid; gap: 0.3rem; padding-top: 0.875rem; }
.card__eyebrow { font-size: var(--fs-micro); }
.card__title {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  line-height: 1.15;
}
.card__link:hover .card__title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}
/* Small order ticket on each card: method and cook time, same motif as the
   ticket in the recipe. Dividers sit on the left of every item; the first one
   is pushed outside the box and clipped, so wrapped lines stay clean. */
.card__ticket {
  display: inline-flex;
  flex-wrap: wrap;
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.45rem 0;
  overflow: hidden;
  background: var(--paper-3);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  -webkit-mask:
    radial-gradient(3px at 50% 0, #0000 97%, #000) 50% 0 / 9px 51% repeat-x,
    radial-gradient(3px at 50% 100%, #0000 97%, #000) 50% 100% / 9px 51% repeat-x;
  mask:
    radial-gradient(3px at 50% 0, #0000 97%, #000) 50% 0 / 9px 51% repeat-x,
    radial-gradient(3px at 50% 100%, #0000 97%, #000) 50% 100% / 9px 51% repeat-x;
}
.card__ticket > span { margin-left: -1.5px; padding: 0.05rem 0.6rem; border-left: 1.5px dashed var(--line-strong); }
.bg-sunken .card__ticket { background: var(--surface); }

/* Placeholder when a recipe has no photo yet */
.media-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--sp-3);
  background:
    radial-gradient(90% 60% at 50% 105%, rgba(240, 122, 46, 0.45), transparent 70%),
    radial-gradient(60% 40% at 50% 0%, rgba(243, 181, 98, 0.12), transparent 70%),
    var(--night-900);
  color: var(--flame);
}
.media-empty__logo { width: auto; height: clamp(5rem, 30%, 8rem); }
.media-empty__label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* Stats: a receipt on phones (value left, label right), tiles from 600px */
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--rule);
}
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg);
}
.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--fg);
  white-space: nowrap;
}
.stat__label { font-size: var(--fs-small); line-height: 1.35; color: var(--fg-3); text-align: right; }
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { display: block; padding: var(--sp-5) var(--sp-5) var(--sp-5); }
  .stat__value { display: block; }
  .stat__label { display: block; margin-top: var(--sp-2); text-align: left; }
  .stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats--3 > .stat:last-child:nth-child(odd),
  .stats--4 > .stat:last-child:nth-child(odd) { grid-column: auto; }
}
/* Receipt rows at every width (home "Who's cooking", next to the photo) */
.stats--receipt { grid-template-columns: minmax(0, 1fr) !important; }
.stats--receipt .stat { display: flex; padding: var(--sp-4) var(--sp-5); }
.stats--receipt .stat__value { display: inline; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.stats--receipt .stat__label { display: inline; margin-top: 0; text-align: right; }
/* Long labels: always value above label */
.stats--stack .stat { display: block; }
.stats--stack .stat__value { display: block; }
.stats--stack .stat__label { display: block; margin-top: var(--sp-2); text-align: left; }
.stats-note { margin-top: var(--sp-3); font-size: var(--fs-label); color: var(--fg-3); }
.stats-group + .stats-group { margin-top: var(--sp-7); }
.stats-group__title {
  margin-bottom: var(--sp-4);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Intro strip (home: who cooks here). The kitchen photo from Instagram
   lives here since 15.10.2026: the one dark, warm image of the home page. */
.intro { display: grid; gap: var(--sp-6); }
.intro__photo { overflow: hidden; border-radius: var(--r-lg); background: var(--night-800); box-shadow: var(--glow-flame); }
.intro__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 32% 45%; }
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--sp-8); align-items: center; }
  .intro__photo img { aspect-ratio: 1 / 1; object-position: 32% 50%; }
}
.intro__text { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.375rem); line-height: 1.22; font-weight: 400; text-wrap: balance; }
.intro__text em { font-style: italic; color: var(--accent); }
.intro__text { max-width: 52rem; }

/* Brand teaser and brand list */
.split { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); align-items: center; }
}
.brand-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.brand-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-4);
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.brand-list__name {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.1rem + 1.3vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.brand-list__result { font-size: var(--fs-small); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.brand-list--compact .brand-list__name { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); }

/* Brand band: running logos "Brands I've worked with" (home, work with me).
   Default: the logos stand still and wrap (no motion wanted, or an old
   browser). With motion allowed, the row and its hidden copies run endlessly:
   every track moves by its own width, so the loop has no visible seam.
   Logos are one-colour cream files; --s (set per logo by build.py) evens out
   their optical size. */
.brand-band {
  padding-block: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  overflow: hidden;
}
/* home: the band closes "Who's cooking" above it, same background, no line */
.brand-band--joined { padding-top: 1.5rem; border-top: 0; }
.brand-band__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.brand-band__title {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}
.brand-band__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.25rem 0 0.75rem;
  border: 0;
  background: none;
  color: var(--fg-3);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-band__toggle:hover { color: var(--fg); }
.brand-band__toggle .icon { width: 1rem; height: 1rem; }
.marquee {
  --logo-h: 1.875rem;
  --gap: clamp(2.75rem, 1.6rem + 4vw, 5.5rem);
  --marquee-time: 30s;
  padding-inline: var(--gutter);
}
@media (min-width: 900px) { .marquee { --logo-h: 2.25rem; --marquee-time: 42s; } }
.marquee__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5) var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.marquee__track[aria-hidden="true"] { display: none; }
.marquee__item { flex: none; display: flex; align-items: center; }
.marquee__logo { width: auto; height: calc(var(--logo-h) * var(--s, 1)); opacity: 0.86; }
/* the logo files are cream (made for night); on paper they turn ink */
.theme-paper .marquee__logo { filter: brightness(0); opacity: 0.72; }
/* Brands without a usable logo file: a quiet sans word mark in caps, so it
   reads as a partner name and not as a headline of the page. */
.marquee__word {
  font-family: var(--font-sans);
  font-size: calc(var(--logo-h) * 0.48);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg);
  opacity: 0.86;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee {
    padding-inline: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  }
  .marquee__rail { display: flex; width: max-content; }
  .marquee__track,
  .marquee__track[aria-hidden="true"] {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    gap: var(--gap);
    padding-inline: calc(var(--gap) / 2);
    animation: adk-marquee var(--marquee-time) linear infinite;
  }
  .brand-band.is-paused .marquee__track { animation-play-state: paused; }
}
/* pause on hover only with a real pointer: on a phone a tap would leave the
   band in :hover and it would stop for good */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .brand-band__toggle { display: none; } }
@keyframes adk-marquee { to { transform: translateX(-100%); } }

/* Process steps (work with me) */
.process { list-style: none; padding: 0; display: grid; gap: var(--sp-4); counter-reset: proc; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process li {
  counter-increment: proc;
  padding: var(--sp-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
}
.process li::before {
  content: counter(proc, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.process h3 { font-size: var(--fs-h3); }
.process p { margin-top: var(--sp-2); color: var(--fg-2); font-size: var(--fs-small); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band__title { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.02em; }
.cta-band__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.cta-band__text { max-width: 34rem; margin: var(--sp-4) auto 0; color: var(--fg-2); font-size: var(--fs-lead); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.cta-band__mail { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--fg-3); }
.cta-band__mail a { color: var(--fg-2); }

/* Newsletter (links out to the hosted rapidmail form in a new tab, never a
   pop-up, no third-party script on this site). Home: big block with a
   kitchen ticket as the "free PDF" stub. Recipe pages: compact version
   right under the recipe card. */
.newsletter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--sp-5);
  padding: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  border: 1px solid #F1D5BF;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(243, 181, 98, 0.22), transparent 60%),
    var(--ember-wash);
}
.newsletter__ticket {
  justify-self: start;
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px -14px rgba(28, 22, 18, 0.45);
  -webkit-mask:
    radial-gradient(4px at 50% 0, #0000 97%, #000) 50% 0 / 12px 51% repeat-x,
    radial-gradient(4px at 50% 100%, #0000 97%, #000) 50% 100% / 12px 51% repeat-x;
  mask:
    radial-gradient(4px at 50% 0, #0000 97%, #000) 50% 0 / 12px 51% repeat-x,
    radial-gradient(4px at 50% 100%, #0000 97%, #000) 50% 100% / 12px 51% repeat-x;
}
.newsletter__ticket span:first-child { color: var(--ember); }
.newsletter__title { margin-top: var(--sp-2); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; }
.newsletter__text { margin-top: var(--sp-3); max-width: 38rem; color: var(--fg-2); }
.newsletter__action { display: grid; justify-items: start; gap: var(--sp-3); }
.newsletter__fine { font-size: var(--fs-small); color: var(--fg-3); }
.newsletter__fine a, .newsletter__text a { color: var(--fg-2); }
.newsletter__fine a:hover, .newsletter__text a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .newsletter { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-7); }
  .newsletter__ticket { align-self: center; gap: 0.2rem; padding: 1.4rem 1.6rem; font-size: 1.0625rem; transform: rotate(-4deg); }
  .newsletter__action { justify-items: end; text-align: right; }
}
.newsletter--compact { margin-top: var(--sp-6); gap: var(--sp-4); padding: clamp(1.25rem, 1rem + 1.4vw, 2rem); }
.newsletter--compact .newsletter__title { font-size: var(--fs-h3); }
.newsletter--compact .newsletter__text { margin-top: var(--sp-2); font-size: var(--fs-small); }
.newsletter--compact > .btn { justify-self: start; }
@media (min-width: 700px) {
  .newsletter--compact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-6); }
}

/* Page head (all non-home pages) */
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 1.75rem + 2.5vw, 4rem); }
.page-head__title { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; margin-top: var(--sp-3); }
.page-head__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.page-head__lede { margin-top: var(--sp-4); max-width: 38rem; font-size: var(--fs-lead); color: var(--fg-2); }
.page-head__title:first-child { margin-top: 0; }
.page-head--compact { padding-block: clamp(2.25rem, 1.75rem + 2vw, 3.5rem) clamp(1.75rem, 1.5rem + 1vw, 2.5rem); }
.page-head.has-glow { border-bottom: 1px solid var(--rule); }

/* Work with me: text left, two stills from the brand reels right (phones:
   below the text, side by side). The second still sits lower, so the pair
   reads like two reels on a table and not like a grid. */
.work-hero { display: grid; gap: var(--sp-7); }
.work-hero__stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  max-width: 30rem;
}
.still { margin: 0; min-width: 0; }
.still__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-3);
  box-shadow: var(--shadow-lift);
}
.still__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.still__label {
  margin-top: 0.625rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
}
@media (min-width: 900px) {
  .work-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: var(--sp-8); }
  .work-hero__stills { justify-self: end; width: 100%; gap: var(--sp-5); }
  .still--1 { margin-bottom: var(--sp-8); }
  .still--2 { margin-top: var(--sp-8); }
}

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--fg-3); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--rule-strong); }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }

/* Recipe hero */
.recipe-hero { padding-block: var(--sp-5) var(--sp-7); }
.recipe-hero__grid { display: grid; gap: var(--sp-6); }
.recipe-hero__title { margin-top: var(--sp-3); font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
.recipe-hero__lede { margin-top: var(--sp-4); max-width: 34rem; font-size: var(--fs-lead); color: var(--fg-2); }
.facts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); padding: 0; list-style: none; }
.fact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--fg-2);
  font-size: 0.875rem;
}
.fact .icon { width: 1rem; height: 1rem; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: var(--sp-6); }
.actions > .btn--primary { flex: 1 1 100%; }
@media (min-width: 600px) { .actions > .btn--primary { flex: 0 0 auto; } }
/* Recipe hero on phones: "Jump to recipe" and a round share button share one
   row, so the photo starts higher; "Watch the reel" gets its own row */
.btn--share { flex: none; width: 3rem; padding: 0; }
.btn--share .btn__label { display: none; }
.recipe-hero .actions > .btn--primary { flex: 1 1 0; min-width: 0; }
.recipe-hero .actions > a.btn--secondary { order: 3; flex: 1 1 100%; }
@media (min-width: 600px) {
  .btn--share { width: auto; padding: 0.75rem 1.375rem; }
  .btn--share .btn__label { display: inline; }
  .recipe-hero .actions > .btn--primary,
  .recipe-hero .actions > a.btn--secondary { order: 0; flex: 0 0 auto; }
}
.mail-note { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--fg-3); }
.mail-note a { color: var(--fg-2); overflow-wrap: anywhere; }
.recipe-hero__media {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-3);
  box-shadow: var(--glow-flame);
}
.recipe-hero { border-bottom: 1px solid var(--rule); }
.recipe-hero__media img,
.recipe-hero__media > .media-empty {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62svh;
  object-fit: cover;
}
@media (min-width: 900px) {
  .recipe-hero { padding-block: var(--sp-6) var(--sp-8); }
  .recipe-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-8); align-items: center; }
  .recipe-hero__media { justify-self: end; width: 100%; max-width: 30rem; }
  .recipe-hero__media img,
  .recipe-hero__media > .media-empty { max-height: 40rem; }
}

/* "Why you'll love this" (short, above the card) */
.love { padding-block: var(--sp-7) var(--sp-6); }
.love__title { font-size: var(--fs-h3); }
.love__list { list-style: none; padding: 0; margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.love__list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--sp-2); font-size: var(--fs-body); color: var(--fg-2); }
.love__list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin: 0.6em 0 0 0.3rem;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(240, 122, 46, 0.16);
}

/* Recipe card: the core of the site */
.recipe {
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--sp-6) var(--gutter);
  background: var(--surface);
  border-block: 1px solid var(--line);
  scroll-margin-top: var(--sp-4);
}
@media (min-width: 600px) {
  .recipe {
    margin-inline: 0;
    padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
  }
}
.recipe__head { display: grid; gap: var(--sp-5); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--line); }
.recipe__title { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.015em; }
.recipe__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
}
.recipe__tools-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.recipe__tools-label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* Ticket: recipe meta styled like a kitchen order ticket */
.ticket {
  --hole: 5px;
  --pitch: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  row-gap: var(--sp-2);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--paper-2);
  -webkit-mask:
    radial-gradient(var(--hole) at 50% 0, #0000 97%, #000) 50% 0 / var(--pitch) 51% repeat-x,
    radial-gradient(var(--hole) at 50% 100%, #0000 97%, #000) 50% 100% / var(--pitch) 51% repeat-x;
  mask:
    radial-gradient(var(--hole) at 50% 0, #0000 97%, #000) 50% 0 / var(--pitch) 51% repeat-x,
    radial-gradient(var(--hole) at 50% 100%, #0000 97%, #000) 50% 100% / var(--pitch) 51% repeat-x;
}
/* every item draws a divider on its left; the first item of each row has it
   pushed outside the box and clipped, so wrapped rows stay clean */
.ticket > div { margin-left: -1.5px; padding: 0.35rem 1rem 0.35rem calc(1rem + 1.5px); border-left: 1.5px dashed var(--line-strong); }
.ticket dt {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ticket dd { margin-top: 0.2rem; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--ink); }
.nw { white-space: nowrap; }

/* Segmented control (scale 1x 2x 3x) */
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper-2);
}
.segmented button {
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Switch (cook mode: keep screen on) */
.switch { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); cursor: pointer; }
.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 1.625rem;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper-3);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.switch input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(28, 22, 18, 0.3);
  transition: transform var(--dur-2) var(--ease-out);
}
.switch input:checked { background: var(--ember); border-color: var(--ember); }
.switch input:checked::before { transform: translateX(1.125rem); }
.switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Card body: ingredients left (sticky on desktop), steps right */
.recipe__body { display: grid; gap: var(--sp-7); padding-top: var(--sp-6); }
.recipe__section-title { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
@media (min-width: 900px) {
  .recipe__body { grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr); gap: var(--sp-8); }
  .ingredients { align-self: start; }
  /* site.js adds .is-sticky only when the whole list fits the screen,
     so a long list never turns into a hidden inner scroll area */
  .ingredients.is-sticky { position: sticky; top: var(--sp-5); }
}

.ing-group + .ing-group { margin-top: var(--sp-5); }
.ing-group__title {
  margin-bottom: var(--sp-1);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}
.ing-list { list-style: none; padding: 0; }
.ing + .ing { border-top: 1px solid var(--line); }
.ing label {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  gap: 0.875rem;
  align-items: start;
  padding-block: 0.7rem;
  line-height: 1.45;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ing input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.05rem 0 0;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease;
}
.ing input::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background: #FFFFFF;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform var(--dur-1) var(--ease-out);
}
.ing label:hover input { border-color: var(--ember); }
.ing input:checked { background: var(--ember); border-color: var(--ember); }
.ing input:checked::before { transform: scale(1); }
.ing input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ing__text { color: var(--ink); transition: color var(--dur-1) ease; }
.ing__amt { font-weight: 650; font-variant-numeric: tabular-nums; }
.ing__note { display: block; font-size: var(--fs-small); color: var(--ink-3); }
.ing input:checked + .ing__text { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(107, 96, 86, 0.55); }
.ing input:checked + .ing__text .ing__amt { font-weight: 500; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0 var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}
.step:first-child { padding-top: var(--sp-1); border-top: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 0.05rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ember);
  font-variant-numeric: lining-nums tabular-nums;
}
@media (min-width: 600px) {
  .step { grid-template-columns: 3rem minmax(0, 1fr); }
  .step::before { font-size: 2rem; }
}
.step__title {
  grid-column: 2;
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.step__body { grid-column: 2; font-size: var(--fs-step); line-height: 1.65; color: var(--ink-2); }
.step__body > * + * { margin-top: 0.75em; }
.step__body ul { padding-left: 1.1rem; list-style: disc; }
.step__body li + li { margin-top: 0.3em; }
.step__body li::marker { color: var(--ember); }
.step__body strong {
  color: var(--ink);
  font-weight: 650;
  background: linear-gradient(transparent 58%, var(--ember-tint) 0);
  padding-inline: 0.12em;
  margin-inline: -0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Tips box */
.callout {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border: 1px solid #F1D5BF;
  border-radius: var(--r-lg);
  background: var(--ember-wash);
}
.callout__title { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-h3); }
.callout__title .icon { width: 1.4rem; height: 1.4rem; color: var(--ember); }
.checklist { list-style: none; padding: 0; margin-top: var(--sp-3); display: grid; gap: 0.6rem; }
.checklist li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.6rem; color: var(--ink-2); }
.checklist li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25em;
  background: var(--ember);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Result (the "final result" lines of a recipe) */
.result { margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: 1px solid var(--line); text-align: center; }
.result__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.result__text { max-width: 36rem; margin: var(--sp-4) auto 0; color: var(--ink-2); }

/* Watch the reel */
.reel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  color: var(--fg);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease;
}
.reel:hover { border-color: var(--rule-strong); }
.reel:hover { color: var(--fg); transform: translateY(-2px); }
.reel:has(.reel__thumb) { grid-template-columns: 5.5rem minmax(0, 1fr); }
.reel__thumb { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: var(--night-800); }
.reel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  background: linear-gradient(to top, rgba(15, 12, 10, 0.55), transparent 60%);
}
.reel__play .icon { width: 1.75rem; height: 1.75rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.reel__title { font-size: var(--fs-h3); }
.reel__text { margin-top: 0.25rem; color: var(--fg-2); font-size: var(--fs-small); }
.reel__cta { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--sp-3); color: var(--accent); font-weight: 600; font-size: var(--fs-small); }

/* Affiliate note (Amazon) */
.affiliate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  color: var(--fg-2);
}
.affiliate__note { flex-basis: 100%; font-size: var(--fs-label); color: var(--fg-3); }

.recipe-section { padding-block: var(--sp-6) var(--section); }
.recipe-after { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 900px) { .recipe-after { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }

/* Recipe overview: filters, search, empty state */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.filters__chips { display: none; }
.js .filters__chips { display: flex; }
.page-recipes .page-head + .section { padding-top: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem); }
/* Phones: one row of chips that scrolls sideways, fading out on the right */
@media (max-width: 599px) {
  .filters__bar { display: block; }
  .js .filters__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: -0.5rem calc(var(--gutter) * -1);
    padding: 0.5rem var(--gutter);
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
  }
  .filters__chips::-webkit-scrollbar { display: none; }
  .filters__chips::after { content: ""; flex: 0 0 2rem; }
  .filters__chips .chip { flex: none; scroll-snap-align: start; }
  .result-count { margin-top: var(--sp-3); }
}
.filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.result-count { font-size: var(--fs-small); color: var(--fg-3); }
.empty-state { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-8) var(--sp-4); text-align: center; }
.empty-state .icon { width: 2.5rem; height: 2.5rem; color: var(--ember); }
.empty-state h2 { font-size: var(--fs-h3); }
.empty-state p { max-width: 28rem; color: var(--fg-2); }

/* Prose (about, legal) */
.prose { max-width: var(--w-prose); }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.25em; font-size: var(--fs-h3); }
.prose h3 { margin-top: 1.75em; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5em; }
.prose address { font-style: normal; }
.prose--legal { font-size: var(--fs-small); }
.prose--legal h2 { font-size: 1.25rem; }

/* About */
.about { display: grid; gap: var(--sp-7); }
.about__photo { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--glow-flame); }
.about__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 32% 50%; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-8); align-items: start; }
  .about__photo { position: sticky; top: var(--sp-5); }
}

/* Contact cards */
.contact-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  color: var(--fg);
  text-decoration: none;
  transition: border-color var(--dur-2) ease, transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease;
}
.contact-card:hover { color: var(--fg); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
}
.contact-card__title { font-size: var(--fs-h3); }
.contact-card__text { color: var(--fg-2); font-size: var(--fs-small); }
.contact-card__value { margin-top: auto; padding-top: var(--sp-2); color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }

/* 404 */
.notfound { display: grid; place-items: center; min-height: 72svh; padding-block: var(--sp-8); text-align: center; }
.notfound__code { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.2em; color: var(--fg-3); }
.notfound__title { margin-top: var(--sp-3); font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.025em; }
.notfound__title em { display: block; font-style: italic; font-weight: 500; color: var(--accent); }
.notfound__text { max-width: 30rem; margin: var(--sp-5) auto 0; color: var(--fg-2); font-size: var(--fs-lead); }
.notfound .search { margin: var(--sp-6) auto 0; }
.notfound .hero__links { justify-content: center; margin-top: var(--sp-5); }

/* Footer */
.site-footer { padding-block: var(--sp-8) var(--sp-6); border-top: 1px solid var(--night-700); color: var(--cream-muted); }
.footer__giant {
  margin-bottom: var(--sp-7);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--night-800);
  white-space: nowrap;
  user-select: none;
}
.footer__top { display: grid; gap: var(--sp-6); }
@media (min-width: 600px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: auto; } }
.footer__brand p { margin-top: var(--sp-4); max-width: 22rem; font-size: var(--fs-small); }
.footer__brand .btn { margin-top: var(--sp-5); }
.footer__col h2 {
  margin-bottom: var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--cream);
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.footer__col a { display: inline-block; padding-block: 0.3rem; color: var(--cream-muted); font-size: var(--fs-small); text-decoration: none; }
.footer__col a:hover { color: var(--cream); text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--night-700);
  font-size: var(--fs-label);
}
.footer__bottom a { color: var(--cream-muted); }
.footer__bottom a:hover { color: var(--cream); }

/* Toast (share / copy link) */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  transform: translate(-50%, 0.75rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

/* 7b. Build additions (src only, not in design/styles.css) ----------------
   Elements the real recipe files need: tagline, step tips, serving ideas,
   notes, double amounts, stat lists inside prose, reel card without thumb. */

.recipe-hero__kicker { margin-top: var(--sp-4); }
.recipe-hero__kicker + .recipe-hero__title { margin-top: var(--sp-2); }

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin-top: var(--sp-3);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}
/* the dot hangs at the end of a part, so a wrapped line never starts with one */
.tagline > span { white-space: nowrap; }
.tagline > span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 0.3rem;
  height: 0.3rem;
  margin: 0 0.7rem 0.15em;
  border-radius: 50%;
  background: var(--flame);
  vertical-align: middle;
}
.recipe-hero__lede strong { color: var(--fg); font-weight: 600; }

/* Byline under the title: author (links to About), published, updated.
   Each part stays on one line and carries its dot at the end, so a wrapped
   line never starts with one. The dots are real text, so crawlers that read
   the HTML as plain text keep the words apart. */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.4rem;
  margin-top: var(--sp-3);
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--fg-3);
}
.byline > span { white-space: nowrap; }
.byline__sep { margin-left: 0.15rem; color: var(--rule-strong); }
.byline a { color: var(--fg-2); font-weight: 600; text-decoration: none; }
.byline a:hover { color: var(--fg); text-decoration: underline; }

/* Short summary under the lede: method, marinating, temperature, cooking
   time, servings, all taken from the ticket (recipe_summary in build.py) */
.recipe-hero__summary {
  margin-top: var(--sp-3);
  max-width: 34rem;
  font-size: var(--fs-small);
  color: var(--fg-2);
}

/* Drafts preview only (python3 build.py with the drafts flag) */
.draft-note {
  display: inline-block;
  margin-top: var(--sp-3);
  padding: 0.35rem 0.75rem;
  border: 1.5px dashed var(--flame);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--fg);
}

/* Tip inside a step */
.step-tip {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  background: var(--ember-wash);
  border: 1px solid #F1D5BF;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-2);
}
.step-tip .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.15em; color: var(--ember); }
.step-tip b { color: var(--ink); font-weight: 700; }

/* Serving ideas and notes (below the tips) */
.serve, .notes { margin-top: var(--sp-6); }
.serve__title { font-size: var(--fs-h3); }
.serve__list { list-style: none; padding: 0; margin-top: var(--sp-3); display: grid; gap: 0.5rem; }
.serve__list li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.6rem; color: var(--ink-2); }
.serve__list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin: 0.6em 0 0 0.25rem;
  border-radius: 50%;
  background: var(--flame);
}
.notes__body { margin-top: var(--sp-3); color: var(--ink-2); }
.notes__body > * + * { margin-top: 0.75em; }

/* Ingredients: optional label and the second amount in brackets */
.ing__opt {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.ing__alt { color: var(--ink-3); }
.ing__alt .ing__amt { font-weight: 500; }

/* Result without the big quote */
.result__quote + .result__text { margin-top: var(--sp-4); }
.result > .result__text:first-child { margin-top: 0; font-size: var(--fs-lead); }

/* Reel / Instagram card (works with and without a thumbnail) */
.reel > span:last-child { display: grid; justify-items: start; gap: 0.35rem; }
.reel__title { display: block; font-family: var(--font-serif); font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-snug); }
.reel__cta { margin-top: var(--sp-2); }
.recipe-after > :only-child { grid-column: 1 / -1; }

/* Stat tiles written as a list in Markdown (about page) */
.prose ul.stats { padding-left: 0; }
.prose .stats li + li { margin-top: 0; }
.prose .stats .stat__value { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); }
.prose .stats + p { font-size: var(--fs-label); color: var(--fg-3); margin-top: var(--sp-3); }
.prose a { overflow-wrap: anywhere; }
.prose h4 { margin-top: 1.5em; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.about .actions { margin-top: var(--sp-7); }

.footer__paid { font-size: var(--fs-micro); opacity: 0.8; }

/* "Why you'll love this" shares the left edge with the hero text and the
   recipe card; from 900px the points sit in two columns across the width */
.love .container { --container: var(--w-recipe); }
@media (min-width: 900px) {
  .love__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-7); }
}
.split--top { align-items: start; }
.nav-desktop .btn[aria-current="page"] { background: var(--btn2-bg-hover); border-color: var(--fg-3); }

/* 8. Utilities ------------------------------------------------------------- */

.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;
}
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.print-only { display: none; }

/* 9. Motion ---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .menu[open] .menu__panel { animation: adk-drop var(--dur-2) var(--ease-out); }
  .menu[open] > summary::before { animation: adk-fade var(--dur-2) ease; }
  .recipe:target { animation: adk-flash 1.2s var(--ease-out); }
}
@keyframes adk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes adk-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes adk-flash { from { box-shadow: 0 0 0 4px var(--ember-tint), var(--shadow-card); } to { box-shadow: var(--shadow-card); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .brand-band { forced-color-adjust: none; } /* keeps the paper background behind the ink-tinted logos */
  .ing input:checked { background: Highlight; }
  .ticket { -webkit-mask: none; mask: none; border: 1px solid CanvasText; }
  .btn { border-color: ButtonText; }
}

/* 10. Print ----------------------------------------------------------------
   A recipe prints as one clean sheet: title, short line, meta, ingredients
   (left) and steps (right), tips. No header, footer, photos or buttons. */

@media print {
  @page { margin: 11mm 13mm 11mm; }

  html, body { background: #FFFFFF !important; color: #000000 !important; font-size: 10.5pt; }
  .theme-night, .theme-paper, .bg-sunken { background: none !important; color: #000000 !important; }
  .has-glow::before, .has-grain::after { display: none !important; }

  .site-header, .site-footer, .skip-link, .toast, .crumbs, .actions, .facts,
  .recipe-hero__media, .recipe__tools, .love, .result, .recipe-after, .related,
  .newsletter, .brand-band, .latest, .no-print,
  .recipe-hero__summary, .draft-note { display: none !important; }

  .page-recipe main > *:not(.recipe-hero):not(.recipe-section) { display: none !important; }

  a { color: #000000 !important; text-decoration: none !important; }
  .eyebrow { color: #000000 !important; }

  .recipe-hero { padding: 0 !important; }
  .recipe-hero__grid { display: block; }
  .recipe-hero__title { font-size: 22pt; color: #000000; }
  .recipe-hero__lede { margin-top: 2mm; font-size: 10.5pt; color: #333333; }
  .byline { margin-top: 1mm; font-size: 8.5pt; color: #333333 !important; }
  .byline a { font-weight: 400; }

  .recipe-section { padding: 0 !important; }
  .recipe-section > .container { width: 100%; max-width: none; }
  .recipe { margin: 4mm 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0; box-shadow: none !important; }
  .recipe__head { padding-bottom: 3mm; gap: 3mm; border-bottom: 1px solid #000000; }
  .recipe__title { display: none; }
  .ticket { -webkit-mask: none !important; mask: none !important; background: none !important; padding: 0; grid-template-columns: repeat(auto-fit, minmax(28mm, 1fr)); }
  .ticket > div { border-left: 1px solid #999999; padding: 0 3mm; }
  .ticket dt { color: #333333; }
  .ticket dd { color: #000000; font-size: 10pt; }

  .recipe__body { display: grid !important; grid-template-columns: 36% 1fr !important; gap: 7mm !important; padding-top: 4mm; }
  .ingredients { position: static !important; }
  .recipe__section-title { font-size: 13pt; margin-bottom: 2mm; }
  .ing-group__title { color: #000000; }
  .ing label { padding-block: 1mm; gap: 2.5mm; grid-template-columns: 9pt 1fr; }
  .ing input { width: 9pt; height: 9pt; border: 1px solid #000000 !important; border-radius: 2px; background: #FFFFFF !important; }
  .ing input::before { display: none; }
  .ing + .ing { border-top: 0; }
  .ing input:checked + .ing__text { color: #000000; text-decoration: none; }

  .step { break-inside: avoid; padding-block: 2.5mm; border-top: 0; grid-template-columns: 8mm 1fr; }
  .step::before { color: #000000; font-size: 13pt; }
  .step__title { font-size: 11pt; }
  .step__body { font-size: 10.5pt; line-height: 1.45; color: #000000; }
  .step__body strong { background: none; color: #000000; }
  .step__body li::marker { color: #000000; }
  .callout__title .icon { color: #000000; }

  .callout { break-inside: avoid; margin-top: 4mm; padding: 3mm 4mm; background: none !important; border: 1px solid #000000; }
  .callout__title { font-size: 12pt; }
  .checklist li { color: #000000; }
  .checklist li::before { background: #000000; }

  .print-only { display: block !important; }
  .print-footer { margin-top: 6mm; padding-top: 2mm; border-top: 1px solid #999999; font-size: 8.5pt; color: #333333; }
}

@media print {
  .serve { break-inside: avoid; margin-top: 4mm; }
  .serve__title { font-size: 12pt; }
  .serve__list li { color: #000000; }
  .serve__list li::before { background: #000000; }
  .step-tip { background: none !important; border: 1px solid #999999; color: #000000; padding: 1.5mm 3mm; }
  .step-tip .icon { color: #000000; }
  .ing__opt { background: none; border: 1px solid #999999; color: #000000; }
  .ing__alt, .ing__note { color: #333333; }
  .tagline { color: #333333 !important; margin-top: 1mm; }
  .tagline > span:not(:last-child)::after { background: #333333; }
  .recipe-hero__kicker { margin-top: 0; }
}

/* Print, second pass: dark-theme colours off, nothing breaks apart, and a
   typical recipe fits on one sheet */
@media print {
  .theme-night, .recipe-hero {
    --fg: #000000; --fg-2: #333333; --fg-3: #333333;
    --accent: #000000; --accent-strong: #000000; --link: #000000;
  }
  .recipe-hero__lede, .recipe-hero__lede strong { color: #000000 !important; }
  .recipe-hero__lede { font-size: 9.5pt; line-height: 1.4; }
  .recipe-hero__title { font-size: 20pt; }
  .ing-group { break-inside: avoid; }
  .ing-group + .ing-group { margin-top: 2.5mm; }
  .ing-group__title { break-after: avoid; margin-bottom: 0.5mm; }
  .recipe__section-title { break-after: avoid; }
  .ing label { padding-block: 0.6mm; line-height: 1.3; }
  .ing__note { font-size: 8.5pt; }
  .step { padding-block: 1.5mm; }
  .step__title { margin-bottom: 0.5mm; }
  .step__body { font-size: 10pt; line-height: 1.4; }
  .step__body > * + * { margin-top: 1mm; }
  .step__body li + li { margin-top: 0.5mm; }
  .callout { margin-top: 3mm; padding: 2mm 3mm; }
  .checklist { gap: 0.8mm; margin-top: 1.5mm; }
  .serve, .notes { margin-top: 3mm; }
  .serve__list { gap: 0.8mm; margin-top: 1.5mm; }
  .recipe__body { padding-top: 3mm; gap: 6mm !important; }
  .print-footer { margin-top: 4mm; }
  .method > .callout, .method > .serve { display: none !important; }
  .print-extras {
    display: grid !important;
    gap: 2mm;
    margin-top: 3mm;
    padding-top: 2.5mm;
    border-top: 1px solid #000000;
    break-inside: avoid;
  }
  /* title on the left, the points in two columns next to it */
  .print-extras__block { display: grid; grid-template-columns: 30mm minmax(0, 1fr); gap: 0 4mm; align-items: baseline; }
  .print-extras__title { font-family: var(--font-serif); font-size: 11pt; font-weight: 600; }
  .print-extras ul { columns: 2; column-gap: 8mm; padding-left: 4mm; font-size: 9.5pt; line-height: 1.35; }
  .print-extras li { break-inside: avoid; }
  .print-extras li + li { margin-top: 0.6mm; }
  /* short lists inside a step ("Oil, Brown sugar, Cayenne ...") run in two columns */
  .step__body ul { columns: 2; column-gap: 8mm; }
  .step__body li { break-inside: avoid; }
  .step__body { font-size: 9.5pt; line-height: 1.38; }
  .step-tip { padding: 1mm 2.5mm; font-size: 9pt; }
  .ing label { font-size: 9.5pt; }
  .recipe__head { padding-bottom: 2.5mm; gap: 2.5mm; }
  .print-footer { margin-top: 3mm; padding-top: 1.5mm; font-size: 8pt; break-before: avoid; }
  /* backgrounds are not printed: the tagline dots become text */
  .tagline > span:not(:last-child)::after {
    content: "•"; width: auto; height: auto; margin: 0 0.5em; background: none; vertical-align: baseline; color: #333333;
  }
}
