@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --card: #fffdf7;
  --sand: #ede6d7;
  --ink: #222a23;
  --muted: #555b51;
  --line: #dcd6c7;
  --green: #193e32;
  --green-hover: #2e5446;
  --green-wash: #e7ede3;
  --red: #a0402b;
  --red-wash: #f6e6db;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 19px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 "DM Sans", system-ui, sans-serif; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, .wordmark, .footer-brand { font-family: var(--serif); font-weight: 400; }
h3, h4 { line-height: 1.25; letter-spacing: -.02em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.frame { width: min(100%, 1270px); margin-inline: auto; padding-inline: clamp(18px, 4.3vw, 62px); }
.section, #top, #nutrition { scroll-margin-top: 92px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; left: 14px; top: 12px; translate: 0 -150%; background: var(--card); padding: 9px 16px; border-radius: 8px; }
.skip-link:focus { translate: 0; }

.topbar { position: sticky; top: 0; z-index: 6; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 14px; }
.wordmark { color: var(--green); font-size: clamp(1.95rem, 4.4vw, 2.65rem); line-height: .94; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 5px clamp(9px, 1.55vw, 18px); border-radius: 99px; color: var(--green); font-size: .88rem; font-weight: 700; text-decoration: none; }
nav a:hover { background: var(--sand); }
nav a[aria-current="location"], nav a[aria-current="page"] { color: var(--card); background: var(--green); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 8px 17px; border: 1px solid transparent; border-radius: 99px; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.hero-button, .primary-button, .mode-next { background: var(--green); color: var(--card); }
.hero-button:hover, .primary-button:not(:disabled):hover, .mode-next:hover { background: var(--green-hover); }
.outline-button { border-color: #c6c9ba; color: var(--green); background: var(--card); }
.outline-button:not(:disabled):hover, .outline-button[data-filter-active="true"] { border-color: #a8b5a5; background: var(--green-wash); }
.text-button { color: var(--green); min-height: 44px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; font-size: .84rem; padding: 4px 5px; }

.hero { display: grid; grid-template-columns: .94fr 1.06fr; margin-top: clamp(19px, 3vw, 40px); border: 1px solid var(--line); border-radius: clamp(19px, 3.2vw, 34px); background: var(--sand); overflow: hidden; }
.hero-copy { padding: clamp(28px, 4.8vw, 69px); align-self: center; }
h1 { color: var(--green); font-size: clamp(4rem, 8.9vw, 8.6rem); line-height: .80; letter-spacing: -.035em; }
h1 .dish-line { color: var(--red); white-space: nowrap; }
.hero-copy > p { max-width: 37ch; margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.16rem); }
.hero-photo { width: 100%; height: 100%; min-height: 470px; object-fit: cover; object-position: center 55%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.quick-facts { display: flex; flex-wrap: wrap; gap: 10px clamp(11px, 2.4vw, 28px); margin-top: 22px; padding-top: 13px; border-top: 1px solid #cec7b6; }
.quick-facts dt { color: var(--muted); font-size: .76rem; font-weight: 700; }
.quick-facts dd { color: var(--green); font-size: .98rem; font-weight: 700; }
.quick-facts small { display: block; font-size: .69rem; font-weight: 500; color: var(--muted); line-height: 1.22; }
.portion-field { margin-top: 16px; }
.portion-field label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--green); font-size: .86rem; font-weight: 700; }
.portion-field select { min-height: 44px; max-width: 100%; padding: 7px 14px; border: 1px solid #aebaaa; border-radius: 10px; background: var(--card); color: var(--green); font: inherit; font-size: 1rem; cursor: pointer; }

.section { margin-top: clamp(45px, 7vw, 84px); }
.section-heading { margin-bottom: 8px; }
h2 { color: var(--green); font-size: clamp(2.9rem, 5.8vw, 5rem); line-height: .93; letter-spacing: -.025em; }
.section-intro { color: var(--muted); max-width: 65ch; margin: 0 0 17px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: clamp(16px, 2.7vw, 26px); }
.card h3 { color: var(--green); font-size: 1.14rem; }

.checklist-toolbar { margin-bottom: 13px; padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 15px; background: var(--green-wash); color: var(--green); border: 1px solid #cdd7ca; border-radius: 15px; }
.checklist-progress { display: grid; gap: 5px; }
#check-count { font-size: .88rem; font-weight: 700; }
progress { height: 7px; accent-color: var(--green); border: 0; border-radius: 12px; background: #d2dbcb; }
progress::-webkit-progress-bar { background: #d2dbcb; border-radius: 12px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 12px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 12px; }
#shop-progress { width: min(100%, 440px); }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.checklist-actions .button { min-height: 44px; padding-inline: 12px; font-size: .81rem; }
.checklist-actions button:disabled { opacity: .55; }
.copy-status, #copy-fallback { grid-column: 1 / -1; }
.copy-status { font-size: .84rem; }
.copy-status:empty { display: none; }
#copy-fallback { resize: vertical; width: 100%; background: var(--card); color: var(--ink); border-radius: 9px; border: 1px solid var(--line); padding: 8px; font: inherit; font-size: .84rem; }

.shopping-grid { display: grid; grid-template-columns: 1fr 1fr 1.13fr; align-items: start; gap: 13px; }
.seasoning { background: #f1ebdd; }
.seasoning > p { color: var(--muted); margin-top: 5px; font-size: .86rem; }
.checklist { list-style: none; margin: 10px 0 0; padding: 0; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist label { min-height: 46px; display: flex; gap: 10px; align-items: center; padding-block: 7px; cursor: pointer; font-size: .94rem; line-height: 1.38; }
.checklist input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--green); }
.checklist small { display: block; margin-top: 3px; color: var(--muted); font-size: .81rem; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.item-amount { margin-left: auto; white-space: nowrap; font-size: .88rem; }
.checklist .optional-tag { display: inline-block; margin-left: .25em; background: var(--sand); padding: 1px 6px; border-radius: 99px; color: #4f4a3f; font-size: .7rem; }
.empty-shopping { color: var(--muted); margin-top: 9px; font-size: .87rem; }
.seasoning > .spice-note { padding-top: 10px; margin-top: 7px; border-top: 1px solid #d4cbbb; }
.equipment-kit, .photo-credits { margin-top: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.equipment-kit summary, .photo-credits summary, .photo-guide summary { color: var(--green); cursor: pointer; font-weight: 700; min-height: 44px; padding-block: 11px; }
.equipment-kit p { padding-bottom: 13px; max-width: 70ch; }
.photo-credits ul { margin: 0 0 12px; padding-left: 20px; }
.photo-credits a { text-underline-offset: .16em; }

.cut-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.cut-card { margin: 0; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); overflow: hidden; }
.cut-card > a { display: block; }
.cut-card > a:focus-visible { outline-offset: -4px; }
.cut-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.cut-card figcaption { padding: 10px 12px 14px; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.cut-card figcaption strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.mode-phase { color: var(--red); font-size: .76rem; font-weight: 700; }

.cook-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; }
.cook-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px; margin-bottom: 13px; }
.cook-timeline a { display: grid; align-content: start; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sand); color: var(--muted); font-size: .85rem; line-height: 1.3; text-decoration: none; }
.cook-timeline a:hover { background: var(--green-wash); }
.cook-timeline strong { color: var(--green); font-size: .93rem; }
.cook-timeline span { text-decoration: underline; text-underline-offset: .16em; }
.batch-note { margin-bottom: 12px; }
.steps { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 165px); gap: 13px 17px; align-items: start; }
.step:not(:has(.step-tools)) { grid-template-columns: auto minmax(0, 1fr); }
.step::before { content: counter(step); width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; color: var(--card); background: var(--green); font-size: .88rem; font-weight: 700; }
.step h3 { margin-top: 5px; font-size: clamp(1.12rem, 2vw, 1.32rem); }
.step-content > p { margin-top: 8px; max-width: 72ch; }
.spice-steps .step { scroll-margin-top: 88px; }
.step-cue { padding: 8px 11px; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: var(--green-wash); }
.spice-prep-group { max-width: 72ch; margin-top: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.spice-prep-group h4 { color: var(--green); }
.spice-prep-group ul { margin: 5px 0 0; padding-inline-start: 18px; }
.spice-prep-group li + li { margin-top: 4px; }
.spice-measures { max-width: 36rem; margin: 9px 0; }
.spice-measures > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.spice-measures dd { color: var(--green); font-weight: 700; white-space: nowrap; }
.tip { border-left: 3px solid var(--red); padding: 8px 11px; border-radius: 0 8px 8px 0; background: var(--red-wash); font-size: .88rem; }
.tip strong { color: #85351f; margin-right: 4px; }
.step-tools { display: grid; gap: 8px; }
.timer-group-start { grid-column: 1 / -1; min-height: 44px; padding: 6px 9px; border: 1px solid #bdccbb; border-radius: 10px; background: #dce8db; color: var(--green); font-size: .83rem; font-weight: 700; }
.timer-group-start:not(:disabled):hover { background: #d0e0cf; }
.timer-group-start:disabled { opacity: .63; }
.timer { border: 1px solid #cbd7c8; border-radius: 12px; background: var(--green-wash); color: var(--green); padding: 9px; text-align: center; }
.timer-title { display: block; font-size: .78rem; font-weight: 700; }
.clock { display: block; margin: 2px 0 5px; font-size: 1.51rem; line-height: 1.20; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-actions { display: flex; justify-content: center; gap: 3px; }
.timer-actions button { min-height: 44px; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; font-size: .79rem; font-weight: 700; white-space: nowrap; }
.timer-toggle { background: var(--green); color: var(--card); }
.timer-toggle:hover { background: var(--green-hover); }
.timer-reset { background: transparent; color: var(--green); }
.timer-reset:hover { border-color: #a8b5a4; }
.timer-status { display: block; font-size: .76rem; font-weight: 700; }
.timer-status:empty { display: none; }
.timer.finished { color: #78331f; background: var(--red-wash); border-color: #c07e66; }
.nutrition-sources summary { min-height: 44px; padding-block: 10px; color: var(--green); font-weight: 700; cursor: pointer; }
.food-note { margin: 11px 2px 0; color: var(--muted); font-size: .83rem; }
.food-note a, .nutrition-panel a { text-underline-offset: .18em; }

.nutrition-panel { margin-top: clamp(25px, 5vw, 62px); }
.nutrition-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; }
.nutrition-heading h2 { font-size: clamp(2.7rem, 4.6vw, 4.2rem); }
.nutrition-heading span { color: var(--muted); font-size: .9rem; font-weight: 700; }
.nutrition-facts { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin: 14px 0 0; }
.nutrition-facts > div { padding: 8px clamp(8px, 1.7vw, 18px); border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.nutrition-facts dt { color: var(--muted); font-size: .82rem; }
.nutrition-facts dd { color: var(--green); font-size: clamp(1.12rem, 2.8vw, 1.7rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.nutrition-facts small { font-size: .77rem; font-weight: 500; }
.nutrition-note, .nutrition-message, .nutrition-sources { color: var(--muted); font-size: .88rem; }
.nutrition-note, .nutrition-message { margin-top: 8px; max-width: 76ch; }
.nutrition-message:empty { display: none; }
.nutrition-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 13px; }
.nutrition-actions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: .88rem; }
.nutrition-copy-text { width: 100%; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; resize: vertical; }
.nutrition-sources { margin-top: 7px; border-top: 1px solid var(--line); }
.nutrition-sources p { max-width: 75ch; }
.nutrition-sources ul { margin: 7px 0 0; padding-inline-start: 20px; }

.footer { margin-top: 49px; padding-block: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--green); }
.footer-brand { font-size: 1.75rem; line-height: .98; }
.footer a { font-size: .87rem; text-underline-offset: .22em; }
.footer a.footer-brand { font-size: 1.75rem; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(12px, 2.7vw, 28px); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

.before-cooking { margin-top: clamp(14px, 2vw, 28px); padding: 13px 16px; border: 1px solid #cad4c6; border-radius: 12px; background: var(--green-wash); }
.before-cooking h3 { color: var(--green); font-size: 1.12rem; }
.before-cooking p { max-width: 78ch; margin-top: 4px; }
.before-cooking strong { color: var(--green); }
.before-cooking + .cook-section, .recipe-kit + .cook-section { margin-top: clamp(29px, 5vw, 65px); }
.cook-mode { width: min(calc(100% - 36px), 810px); height: min(calc(100dvh - 42px), 820px); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 24px 90px #17271f4a; }
.cook-mode[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.cook-mode::backdrop { background: #192c21b9; }
.cook-mode-open { overflow: hidden; }
.mode-header { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 15px clamp(18px,4vw,34px) 13px; border-bottom: 1px solid var(--line); background: var(--card); }
.mode-label { color: var(--green); font-weight: 700; }
.mode-count { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.mode-header-actions { display: flex; gap: 7px; }
.mode-header button { min-height: 44px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--green); font-size: .86rem; font-weight: 700; }
.mode-header button:hover, .mode-header button[aria-expanded="true"], .mode-header button[aria-pressed="true"] { border-color: #a5baa6; background: var(--green-wash); }
.mode-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.mode-tool-status { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.mode-tool-status:empty { display: none; }
.mode-progress { display: block; grid-column: 1 / -1; width: 100%; }
.mode-body { padding: 23px clamp(18px,4vw,34px) 25px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.mode-step-title { margin: 4px 0 13px; max-width: 20ch; font-size: clamp(2.67rem, 6.5vw, 4.55rem); }
.mode-step-title:focus { outline: none; }
.mode-instructions { font-size: clamp(1rem, 2vw, 1.12rem); }
.mode-instructions .step-content > p { margin-top: 10px; }
.mode-instructions .step-tools { grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); margin-top: 16px; }
.mode-instructions > .tip { margin-top: 12px; font-size: .92rem; }
.mode-instructions .portion-field { margin-top: 0; }
.mode-instructions .before-cooking { margin-top: 11px; }
.mode-lookup h2 { margin: 0 0 10px; font-size: clamp(2.5rem, 6vw, 4rem); }
.mode-lookup h3 { margin-top: 13px; color: var(--green); }
.lookup-portions { color: var(--muted); font-weight: 700; }
.lookup-list { margin: 4px 0 0; padding: 0; list-style: none; }
.lookup-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.lookup-steps { margin: 8px 0 0; padding-inline-start: 25px; }
.lookup-steps li + li { margin-top: 5px; }
.lookup-steps button { width: 100%; min-height: 46px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--green); text-align: left; }
.lookup-steps button:hover, .lookup-steps button[aria-current="step"] { border-color: #a5baa6; background: var(--green-wash); }
.lookup-steps button[aria-current="step"] { font-weight: 700; }
.mode-ingredient-list, .step-ingredients ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.mode-ingredient-list li, .step-ingredients li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--green); font-size: .86rem; }
.mode-ingredient-list { margin-top: 13px; }
.step-ingredients h4 { color: var(--green); font-size: .93rem; }
.photo-guide { margin-top: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.photo-guide summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.photo-guide summary::-webkit-details-marker { display: none; }
.photo-guide summary span { color: var(--red); font-size: 1.3rem; line-height: 1; }
.photo-guide[open] summary span { transform: rotate(45deg); }
.mode-instructions .cut-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 12px; }
.mode-footer { display: flex; gap: 9px; padding: 12px clamp(18px,4vw,34px) max(12px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.mode-footer button { min-height: 48px; }
.mode-prev { flex: 1; }
.mode-prev:disabled { opacity: .53; }
.mode-next { flex: 2; }
.mode-return { flex: 1; }
.spice-cook-mode .mode-next { line-height: 1.25; text-align: center; white-space: normal; }
.spice-cook-mode .timer-group-start { min-height: 48px; background: var(--green); color: var(--card); font-size: 1rem; }
.spice-cook-mode .timer-group-start:not(:disabled):hover { background: var(--green-hover); }

.timer-dock { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; padding: 8px; color: var(--green); }
.mode-timers { max-height: min(33dvh,135px); flex-wrap: wrap; overflow: auto; border-top: 1px solid var(--line); padding: 7px clamp(18px,4vw,34px); }
.page-timers { position: fixed; bottom: max(12px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 22px); border: 1px solid #bdccbb; border-radius: 15px; background: #f9faf4; box-shadow: 0 6px 21px #213b2929; }
body:has(.page-timers:not([hidden])) .footer { padding-bottom: 100px; }
.dock-timer { display: flex; flex: 0 0 auto; border: 1px solid #c4d1c0; border-radius: 9px; background: var(--green-wash); }
.dock-timer[data-phase="due"] { background: var(--red-wash); border-color: #c07e66; color: #78331f; }
.dock-timer[data-phase="paused"] { background: var(--sand); border-color: var(--line); }
.dock-view, .dock-dismiss { min-height: 44px; border: 0; border-radius: 9px; padding: 4px 9px; background: transparent; color: inherit; }
.dock-view { text-align: left; font-size: .8rem; line-height: 1.2; font-weight: 700; }
.dock-view:hover, .dock-dismiss:hover { background: #42342010; }
.dock-clock { margin-left: .4em; font-variant-numeric: tabular-nums; font-weight: 700; }
.dock-status { font-weight: 500; }
.mode-timers .dock-timer { max-width: 100%; }
.mode-timers .dock-priority { flex: 1 0 100%; }
.dock-priority .dock-view { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 9px; padding: 6px 10px; font-size: .94rem; }
.dock-priority-label { flex-basis: 100%; color: inherit; font-size: .81rem; }
.dock-priority .dock-clock { margin-left: auto; font-size: 1.2rem; }
.dock-priority .dock-status { display: none; }
.dock-dismiss { margin: 2px 2px 2px 0; min-width: 41px; background: var(--card); font-size: 1.16rem; }
.dock-view:focus-visible, .dock-dismiss:focus-visible { outline-offset: -3px; }

@media (max-width: 920px) {
  .hero-copy { padding-inline: clamp(23px,4vw,36px); }
  h1 { font-size: clamp(3.9rem,9.5vw,6.3rem); }
  .hero-photo { min-height: 390px; }
  .shopping-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .shopping-grid .seasoning { grid-column: 2; grid-row: 1 / span 2; }
  .cut-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .topbar-inner { min-height: 60px; gap: 7px; }
  .wordmark { font-size: clamp(1.87rem, 7vw, 2.22rem); }
  nav { gap: 2px; }
  nav a { padding-inline: 9px; font-size: .82rem; }
  .section, #top, #nutrition { scroll-margin-top: 75px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 24px 21px 20px; }
  h1 { font-size: clamp(4.45rem, 16vw, 6.15rem); }
  .hero-copy > p, .quick-facts { margin-top: 13px; }
  .hero-actions { margin-top: 15px; }
  .hero-actions .button { padding-inline: 13px; }
  .hero-photo { min-height: 0; height: auto; aspect-ratio: 1.72; object-position: 50% 54%; }
  .checklist-toolbar, .shopping-grid { grid-template-columns: 1fr; }
  .checklist-toolbar { padding: 10px 12px; gap: 9px; }
  .shopping-grid .seasoning { grid-column: auto; grid-row: auto; }
  .cut-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .cut-card { border-radius: 12px; }
  .cut-card figcaption { padding: 8px 9px 11px; }
  .step { grid-template-columns: auto minmax(0,1fr); gap: 9px; }
  .step::before { width: 28px; height: 28px; }
  .step h3 { margin-top: 3px; }
  .step-tools { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit,minmax(115px,1fr)); }
  .nutrition-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cook-mode { inset: 0; margin: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; border: 0; border-radius: 0; }
  .mode-header { padding-top: max(12px,env(safe-area-inset-top)); }
  .mode-body { padding-top: 17px; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .recipe-topbar .wordmark { font-size: 1.6rem; }
  .recipe-topbar nav a { padding-inline: 5px; font-size: .77rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.all-recipes-link {
  display: inline-block;
  margin-top: 17px;
  padding: 3px 0;
  color: var(--green);
  font-size: .87rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.all-recipes-link:hover { color: var(--red); }
.recipe-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-block: 12px 8px; color: var(--green); font-size: .87rem; font-weight: 700; }
.recipe-trail a { display: inline-flex; align-items: center; min-height: 30px; text-underline-offset: .18em; }
.recipe-trail a:hover { color: var(--red); }
.recipe-trail span { color: var(--muted); }
.recipe-trail + .hero { margin-top: 7px; }
.recipe-kit { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.recipe-kit summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 11px;
  list-style: none;
  color: var(--green);
  font-size: .92rem;
  cursor: pointer;
  scroll-margin-top: 92px;
}
.recipe-kit summary::-webkit-details-marker { display: none; }
.recipe-kit summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin: -4px 2px 0 4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.recipe-kit[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.recipe-kit summary:hover, .recipe-kit-link:hover { background: var(--green-wash); }
.recipe-kit-summary-label { margin-left: auto; }
.recipe-kit-summary-label, .recipe-kit-label, .recipe-kit-disclosure { color: var(--muted); font-size: .77rem; }
.recipe-kit-disclosure { padding: 0 14px 8px; }
.recipe-kit-list { margin: 0 14px 4px; padding: 0; list-style: none; }
.recipe-kit-list li { border-top: 1px solid var(--line); }
.recipe-kit-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  min-height: 44px;
  padding: 9px 8px;
  border-radius: 6px;
  text-decoration: none;
}
.recipe-kit-item { flex: 1 1 13rem; }
.recipe-kit-item strong { display: block; color: var(--green); font-size: .9rem; text-decoration: underline; text-underline-offset: .16em; }
.recipe-kit-item > span { display: block; color: var(--muted); font-size: .82rem; }
.recipe-kit-label { white-space: nowrap; }
.recipe-questions h2 { margin: 0; }
.recipe-grid { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 14px; padding: 0; margin: 0; }
.recipe-card { min-width: 0; }
.recipe-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.recipe-card > a:hover { border-color: #8fa396; background: #fffefa; }
.recipe-card > a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.recipe-card-image { flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.recipe-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.recipe-card-copy { display: flex; flex: 1; flex-direction: column; padding: 15px 16px 12px; }
.recipe-card-text .recipe-card-copy { padding-top: 18px; }
.recipe-category { display: block; color: var(--red); font-size: .76rem; font-weight: 700; }
.recipe-card h3 { margin: 5px 0 7px; color: var(--green); font: 400 clamp(1.65rem, 2.6vw, 2.35rem)/.96 var(--serif); letter-spacing: -.015em; }
.recipe-card-copy p { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.recipe-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; color: var(--green); font-size: .83rem; font-weight: 700; }
.recipe-card-footer span:last-child { font-size: 1.05rem; }
.recipe-card-text > a { background: #f2ebde; }
.recipe-card-text > a:hover { background: var(--card); }
.related-recipes h2 { font-size: clamp(2.5rem, 4.5vw, 3.8rem); }
.recipe-questions p { max-width: 68ch; margin-block: 10px; color: var(--muted); }
.recipe-questions details { max-width: 740px; border-bottom: 1px solid var(--line); }
.recipe-questions summary { min-height: 44px; padding-block: 10px; color: var(--green); font-weight: 700; cursor: pointer; }
.recipe-questions details p { margin: 0 0 12px; padding-inline-start: 18px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.guide-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 700; text-underline-offset: .18em; }
.guide-links a:hover { color: var(--red); }
.related-recipes h2 { margin-bottom: 12px; }

.spice-method-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-top: 16px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
main[data-recipe="spicebag"] h1 .dish-line { white-space: normal; }
.spice-method-picker a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  color: var(--green);
}
.spice-method-picker a:hover { background: var(--green-wash); }
.spice-method-picker [aria-current="page"] { background: var(--green); color: var(--card); }
.spice-method-picker [aria-current="page"]:hover { background: var(--green-hover); }
.spice-hero-figure { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.spice-hero-figure .hero-photo { flex: 1 1 auto; min-height: 0; }
.spice-hero-figure figcaption, .takeaway-photo figcaption {
  padding: 10px 13px;
  color: var(--muted);
  background: var(--card);
  font-size: .78rem;
}
.recipe-questions details a, .before-cooking .food-note a { color: var(--green); text-underline-offset: .18em; }
.takeaway-photo { max-width: 740px; margin-top: 16px; }
.takeaway-photo summary { min-height: 44px; padding-block: 9px; color: var(--green); font-weight: 700; cursor: pointer; }
.takeaway-photo figure { width: min(100%, 325px); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.takeaway-photo img { width: 100%; height: auto; }

@media (max-width: 920px) {
  .recipe-grid { gap: 10px; }
}
@media (max-width: 690px) {
  .recipe-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .recipe-card-copy { padding: 10px 11px; }
  .recipe-card-text .recipe-card-copy { padding-top: 12px; }
  .recipe-card h3 { font-size: clamp(1.55rem, 5.2vw, 2.05rem); }
  .recipe-card-footer { padding-top: 7px; }
}
@media (max-width: 490px) {
  .recipe-card-copy p { display: none; }
  .recipe-card-image { aspect-ratio: 4 / 3; }
}
