:root {
  --paper: #f4eadb;
  --ink: #291d17;
  --muted: #746257;
  --line: #d8c4b0;
  --tomato: #b33f2b;
  --cream: #fff7eb;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--tomato); color: var(--cream); }

button, output { font: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shell {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.brand {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-decoration: none;
}

.brand span { color: var(--tomato); }
.tagline { display: none; margin: 0; color: var(--muted); font-size: .78rem; }
.header-meta { display: flex; align-items: center; gap: 18px; }
.language-switcher { position: relative; z-index: 2; color: var(--muted); font-size: .72rem; font-weight: 750; }
.language-switcher summary { display: flex; align-items: center; gap: 6px; padding: 6px 0; cursor: pointer; list-style: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::marker { content: ""; }
.language-current { color: var(--ink); }
.language-chevron { color: var(--tomato); font-size: .9rem; line-height: 1; transition: transform .15s ease; }
.language-switcher[open] .language-chevron { transform: rotate(180deg); }
.language-switcher nav { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; width: max-content; min-width: 168px; max-width: min(240px, calc(100vw - 32px)); max-height: min(18rem, calc(100vh - 82px)); overflow: auto; padding: 6px; border: 1px solid var(--ink); background: var(--cream); box-shadow: 4px 5px 0 var(--line); }
.language-switcher ul { margin: 0; padding: 0; list-style: none; }
.language-switcher a { display: grid; grid-template-columns: 2.6ch 1fr; gap: 12px; align-items: baseline; padding: 8px; text-decoration: none; }
.language-switcher a:hover, .language-switcher a:focus-visible { background: var(--paper); color: var(--tomato); outline: none; }
.language-switcher a[aria-current="page"] { color: var(--tomato); }
.language-code { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; }
.language-switcher a[aria-current="page"] .language-code { color: currentColor; }

.recipe { padding-block: 20px 56px; }
.recipe-hero {
  aspect-ratio: 4 / 3;
  margin: 0 0 26px;
  overflow: hidden;
  background: var(--cream);
}
.recipe-hero picture,
.recipe-hero img {
  display: block;
  width: 100%;
  height: 100%;
}
.recipe-hero img {
  object-fit: cover;
  object-position: center 58%;
}
.eyebrow, .kicker {
  margin: 0 0 8px;
  color: var(--tomato);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 8ch;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 13vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .85;
}

.recipe-style {
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lede { max-width: 34rem; margin-bottom: 14px; color: var(--muted); font-size: .93rem; }

.recipe-facts {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 12px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.micro-help { margin: 0 0 12px; color: var(--muted); font-size: .75rem; }
.micro-help summary, .step-help summary { width: max-content; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.micro-help p { max-width: 34rem; margin: 6px 0 0; }

.recipe-facts li { min-width: 0; }
.recipe-facts strong, .recipe-facts span { display: block; }
.recipe-facts strong { font-size: .91rem; font-variant-numeric: tabular-nums; }
.recipe-facts span { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.recipe-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 8px 0 10px;
  padding: 8px 0;
  border-block: 1px solid var(--line);
}
.recipe-control {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.recipe-control + .recipe-control {
  margin-inline-start: 12px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
}
.control-label {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fact-stepper {
  display: grid;
  width: max-content;
  grid-template-columns: 24px minmax(24px, auto) 24px;
  align-items: center;
}
.fact-stepper button {
  width: 24px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tomato);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.fact-stepper button:disabled { color: var(--line); cursor: default; }
.fact-stepper button:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
.fact-stepper output {
  min-width: 26px;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hydration-stepper output { min-width: 36px; }

.ingredients { margin-bottom: 36px; }
.section-heading { margin-bottom: 4px; }
h2 { margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; font-weight: 500; letter-spacing: -.035em; }

.ingredient-group { min-width: 0; }
.ingredient-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.ingredient-group-heading h3 { margin: 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.ingredient-group-heading small { color: var(--muted); font-size: .65rem; }
.ingredient-list { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.ingredient-list li, .ball-weight { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ingredient-list small { color: var(--muted); font-size: .72rem; }
.ingredient-list strong, .ball-weight strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ingredient-note { margin: 12px 0; color: var(--muted); font-size: .72rem; }
.ingredient-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ingredient-split .ingredient-group-heading { display: block; }
.ingredient-split .ingredient-group-heading h3 { color: var(--tomato); }
.ingredient-split .ingredient-list li { gap: 8px; padding-block: 7px; font-size: .78rem; }
.ball-weight { justify-content: flex-end; padding-block: 12px; border-color: var(--ink); color: var(--tomato); }
.supporting-ingredients { display: grid; gap: 16px; margin-top: 18px; }
.supporting-ingredients .ingredient-group-heading h3 { color: var(--tomato); }
.compact-ingredient-list li { padding-block: 7px; font-size: .78rem; }
.topping-list li { display: block; }
.topping-list small { display: block; margin-top: 1px; line-height: 1.3; }
.ingredient-prep { margin-top: 10px; padding: 10px 12px; border-inline-start: 2px solid var(--tomato); background: var(--cream); }
.ingredient-prep h4 { margin: 0 0 4px; color: var(--tomato); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.ingredient-prep p { margin: 0; color: var(--muted); font-size: .75rem; }

.method-heading { margin-bottom: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.steps { margin: 0; padding: 0; list-style: none; }
.step { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.step header { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.step-number { color: var(--tomato); font-size: .7rem; font-weight: 800; }
.step h3 { margin: 0; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; }
.step time { color: var(--muted); font-size: .78rem; font-weight: 700; }
.step > p { max-width: 38rem; margin: 0 0 8px; margin-inline-start: 42px; font-size: 1.04rem; }
.step .cue { color: var(--muted); font-size: .84rem; }
.cue strong { color: var(--ink); }
.warning { color: var(--tomato); font-size: .84rem !important; font-weight: 800; text-transform: uppercase; }
.step-help { margin: 12px 0 0; margin-inline-start: 42px; font-size: .78rem; }
.step-help p { max-width: 35rem; margin: 8px 0 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--tomato); color: var(--muted); }
.coil-step > header { grid-template-columns: 42px 1fr auto; }
.fold-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0; margin-inline-start: 42px; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.fold-timeline li { min-width: 0; padding: 10px; }
.fold-timeline li + li { border-inline-start: 1px solid var(--line); }
.fold-timeline span, .fold-timeline strong, .fold-timeline small { display: block; }
.fold-timeline span { margin-bottom: 4px; color: var(--tomato); font-size: .64rem; font-weight: 800; }
.fold-timeline strong { font-size: .76rem; text-transform: uppercase; }
.fold-timeline small { min-height: 2.5em; margin-top: 3px; color: var(--muted); font-size: .64rem; }
.fold-timeline p { margin: 8px 0 0; font-size: .72rem; }
.recipe-media {
  margin: 16px 0 2px;
  margin-inline-start: 42px;
}
.recipe-media picture,
.recipe-media img,
.recipe-video {
  display: block;
  width: 100%;
}
.recipe-media img,
.recipe-video {
  height: auto;
  background: var(--cream);
}
.recipe-media figcaption,
.media-label,
.media-key {
  color: var(--muted);
  font-size: .72rem;
}
.recipe-media figcaption { margin-top: 7px; }
.recipe-media--portrait { max-width: 430px; }
.recipe-media--video-portrait { max-width: 320px; }
.recipe-video { aspect-ratio: 16 / 7; object-fit: contain; }
.recipe-video--portrait { aspect-ratio: 9 / 16; }
.recipe-video--landscape { aspect-ratio: 3 / 2; }
.media-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 7px;
}
.media-key span:last-child { text-align: end; }
.recipe-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.media-state { min-width: 0; }
.media-label { display: block; margin-top: 6px; }
.proof-paths, .bake-options { display: grid; gap: 1px; margin: 14px 0; margin-inline-start: 42px; background: var(--line); border: 1px solid var(--line); }
.proof-paths section, .bake-options section { padding: 12px; background: var(--cream); }
.proof-paths h4, .bake-options h4 { margin: 0 0 4px; color: var(--tomato); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.proof-paths p, .bake-options p { margin: 0 0 5px; font-size: .85rem; }
.proof-paths p:last-of-type, .bake-options p:last-child { margin-bottom: 0; color: var(--muted); }
.proof-paths a { display: inline-block; margin-top: 9px; color: var(--tomato); font-size: .7rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }

.home-main { padding-block: clamp(70px, 14vw, 170px); }
.home-main h1 { max-width: 10ch; }
html[lang="uk"] .home-main h1 { max-width: 13ch; font-size: clamp(2.65rem, 11vw, 5rem); }
.home-intro { max-width: 32rem; color: var(--muted); font-size: 1.05rem; }
.recipe-link { display: grid; max-width: 620px; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 42px; padding: 14px 0; border-block: 1px solid var(--ink); text-decoration: none; }
.recipe-link-image,
.recipe-link-image img { display: block; width: 100%; }
.recipe-link-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream); }
.recipe-link-image img { height: 100%; object-fit: cover; }
.recipe-link small, .recipe-link strong { display: block; }
.recipe-link small { color: var(--tomato); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recipe-link strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 500; }
.recipe-link > span:last-child { color: var(--tomato); font-size: 1.5rem; }
.recipe-link:hover strong { color: var(--tomato); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px 32px; border-top: 1px solid var(--ink); color: var(--muted); font-size: .72rem; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }

@media (min-width: 760px) {
  .shell { width: min(100% - 64px, var(--max)); }
  .site-header { min-height: 74px; }
  .tagline { display: block; }
  .recipe { display: grid; grid-template-columns: minmax(300px, 420px) minmax(390px, 1fr); column-gap: clamp(64px, 10vw, 150px); row-gap: 32px; padding-top: 54px; }
  .recipe-hero { grid-column: 1 / -1; aspect-ratio: 16 / 7; margin-bottom: 4px; }
  .recipe-overview { position: sticky; top: 28px; align-self: start; }
  .method { padding-top: 8px; }
  .proof-paths, .bake-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) and (max-height: 1400px) {
  .recipe-overview { position: static; }
}

@media (max-width: 759px) {
  .recipe-media, .fold-timeline, .proof-paths, .bake-options { margin-inline-start: 0; }
  .recipe-media--portrait { max-width: 100%; }
  .recipe-media--video-portrait { max-width: min(100%, 320px); margin-inline: auto; }
}

@media (max-width: 479px) {
  .proof-paths { grid-template-columns: 1fr; }
  .recipe-link { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; }
  .recipe-link strong { font-size: 1.15rem; }
  .recipe-link small { font-size: .62rem; }
}

@media (max-width: 359px) {
  .fact-stepper output { font-size: .82rem; }
  .fact-stepper { grid-template-columns: 21px minmax(20px, auto) 21px; }
  .fact-stepper button { width: 21px; }
  .hydration-stepper output { min-width: 32px; }
  .recipe-control + .recipe-control { margin-inline-start: 8px; padding-inline-start: 8px; }
}

@media print {
  :root { --paper: #fff; --cream: #fff; }
  .site-header, .site-footer, .language-switcher, .fact-stepper button, details, .recipe-hero { display: none; }
  .shell { width: 100%; }
  .recipe { display: grid; grid-template-columns: 36% 1fr; gap: 28px; padding: 0; }
  .recipe-overview { position: static; }
  h1 { font-size: 42pt; }
  .step { break-inside: avoid; padding-block: 8px; }
  .step > p { font-size: 9pt; }
  .recipe-video { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
