/* =========================================================
   GOURMETLY STYLES
   Colors and fonts are set once here in :root. Change a value
   and it updates across the whole site.
   ========================================================= */
:root {
  --paper: #ffffff;
  --mist: #f3f6ec;          /* light lettuce tint for soft sections */
  --line: #e2e6d9;
  --ink: #2b1d2f;           /* deep aubergine, main text */
  --ink-soft: #5b4e5f;
  --basil: #2f6b3b;         /* buttons and links */
  --basil-dark: #22512c;
  --tomato: #b9351e;        /* small accents, step numbers */
  --yolk: #f6c64b;          /* hero and highlights */
  --yolk-deep: #e0a400;
  --star-off: #d9d3cc;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--basil); text-underline-offset: 3px; }
a:hover { color: var(--basil-dark); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.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;
}
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.fine-print { font-size: 0.875rem; color: var(--ink-soft); }
.text-link { font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; font-weight: 600;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--basil); color: #fff; }
.btn-primary:hover { background: var(--basil-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 38% 40%, var(--tomato) 0 22%, transparent 23%),
              radial-gradient(circle at 64% 62%, var(--yolk) 0 20%, transparent 21%),
              var(--basil);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 1.5px var(--basil);
}
.brand-name { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-search { margin-left: auto; position: relative; }
.header-search input { width: 190px; height: 42px; padding: 0 42px 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.header-search input:focus { border-color: var(--ink); outline: none; }
.header-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); }
.saved-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); }
.saved-link:hover { background: var(--mist); color: var(--ink); }
.saved-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--tomato); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
/* Recipes drop-down menu */
.has-mega { position: relative; display: flex; align-items: center; }
.mega-toggle { display: grid; place-items: center; width: 28px; height: 32px; margin-left: -6px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 6px; }
.mega-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { display: none; position: absolute; top: calc(100% + 10px); left: -24px; z-index: 60; width: min(720px, 92vw); grid-template-columns: 1fr 1fr 1.2fr; gap: 0 28px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(43, 29, 47, .14); }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { display: grid; }
.mega-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mega ul { list-style: none; margin: 0; padding: 0; flex-direction: column; }
.site-nav .mega a { padding: 6px 0; border-radius: 0; font-weight: 400; }
.site-nav .mega a:hover { background: none; text-decoration: underline; }
.mega-feature { grid-row: 1 / 3; grid-column: 3; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.site-nav .mega .mega-feature { padding: 0; display: flex; flex-direction: column; }
.site-nav .mega .mega-feature:hover { text-decoration: none; }
.site-nav .mega .mega-feature:hover .mega-feature-title { text-decoration: underline; }
.mega-feature img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 6px; }
.mega-feature-label { font-size: .85rem; font-weight: 600; color: var(--tomato); }
.mega-feature-title { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; }
.site-nav .mega .mega-all { grid-column: 1 / 3; margin-top: 16px; padding: 10px 20px; border-radius: 999px; color: #fff; font-weight: 600; text-align: center; }
.site-nav .mega .mega-all:hover { background: var(--basil-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: var(--ink); }

@media (max-width: 1080px) {
  .header-search input { width: 150px; }
  .site-nav a { padding: 8px 9px; }
}
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: grid; place-items: center; order: 3; }
  .saved-link { order: 2; margin-left: auto; }
  .header-search { order: 5; flex: 1 0 100%; margin: 0; }
  .header-search input { width: 100%; }
  .site-nav { order: 4; flex: 1 0 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 6px 0 4px; }
  .site-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .has-mega { flex-wrap: wrap; }
  .has-mega > a { flex: 1; }
  .mega-toggle { width: 44px; height: 44px; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; }
  .has-mega.is-open .mega { display: grid; }
  .mega { position: static; width: 100%; box-shadow: none; grid-template-columns: 1fr 1fr; padding: 12px 14px; margin-bottom: 8px; }
  .mega-feature { display: none; }
  .site-nav .mega .mega-all { grid-column: 1 / -1; }
}

/* ---------- hero ---------- */
.hero { background: var(--yolk); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero-tagline { font-weight: 600; font-size: 1.1rem; margin-bottom: .4em; }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: 1; letter-spacing: -0.025em; margin-bottom: .45em; max-width: 11ch; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 999px; max-width: 560px; box-shadow: 0 0 0 2px var(--ink); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 1.125rem; background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--ink); }
.hero-suggest-label { margin: 22px 0 8px; font-weight: 600; font-size: .95rem; }
.hero-suggest { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hero-suggest a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.65); color: var(--ink); text-decoration: none; font-weight: 500; border: 1.5px solid rgba(43,29,47,.15); }
.hero-suggest a:hover { background: #fff; border-color: var(--ink); }
.hero-plates { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: end; width: 100%; }
.plate { position: absolute; border-radius: 50%; object-fit: cover; aspect-ratio: 1; border: 6px solid #fff; }
.plate-1 { width: 66%; left: 4%; top: 6%; z-index: 2; }
.plate-2 { width: 46%; right: 0; top: 0; }
.plate-3 { width: 50%; right: 4%; bottom: 0; z-index: 3; }
.hero-copy { min-width: 0; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-plates { display: none; }
}
@media (max-width: 440px) {
  .hero-search .btn { padding: 10px 14px; }
  .hero-search .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-search input { padding: 0 10px; font-size: 1rem; }
}

/* ---------- sections ---------- */
.section { padding-top: clamp(48px, 7vw, 80px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: inherit; opacity: .85; max-width: 60ch; }
.page-head { padding-top: 28px; padding-bottom: 12px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-link { text-decoration: none; color: var(--ink); }
.card-link:hover { color: var(--ink); }
.card-media { border-radius: var(--radius); overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-link:hover .card-media img { transform: scale(1.03); }
.card-label { display: block; margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--tomato); }
.card-title { margin: 2px 0 6px; font-size: 1.3rem; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-meta { display: flex; gap: 14px; margin: 0 0 10px; color: var(--ink-soft); font-size: .92rem; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag-list li { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--basil-dark); }
.tag-list .tag:not(.tag-diet) { background: #fdf3d7; color: #6b4a00; }

/* ---------- categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .category-grid { grid-template-columns: 1fr; } }
.category { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.category:hover { border-color: var(--ink); color: var(--ink); }
.category-dot { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 6px rgba(255,255,255,.75); }
.category-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.category-count { font-size: .88rem; color: var(--ink-soft); }

/* ---------- cook by ingredient ---------- */
.section-head.center { justify-content: center; text-align: center; }
.ingredient-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) { .ingredient-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .ingredient-grid { grid-template-columns: repeat(2, 1fr); } }
.ingredient { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); text-align: center; }
.ingredient-photo { width: min(132px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--mist); display: block; }
.ingredient-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ingredient:hover .ingredient-photo img { transform: scale(1.06); }
.ingredient-name { font-weight: 600; }
.ingredient:hover .ingredient-name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- browse chips ---------- */
.browse { display: grid; gap: 28px; text-align: center; }
.chip-title { font-size: 1.5rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 10px 20px; border-radius: 999px; background: #fdf3d7; border: 1.5px solid #f3dc9a; color: var(--ink); text-decoration: none; font-weight: 600; }
.chips a:hover { background: var(--yolk); border-color: var(--yolk-deep); color: var(--ink); }

/* ---------- seasonal ---------- */
.seasonal { background: var(--basil-dark); color: #fff; margin-top: clamp(56px, 8vw, 96px); padding: clamp(48px, 7vw, 80px) 0; }
.seasonal :focus-visible { outline-color: var(--yolk); }
.seasonal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .seasonal-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .seasonal-list { grid-template-columns: 1fr; } }
.seasonal-item { display: flex; gap: 16px; align-items: center; padding: 10px; border-radius: var(--radius); background: rgba(255,255,255,.07); color: #fff; text-decoration: none; height: 100%; }
.seasonal-item:hover { background: rgba(255,255,255,.14); color: #fff; }
.seasonal-item img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.seasonal-text { display: flex; flex-direction: column; gap: 4px; }
.seasonal-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.seasonal-meta { font-size: .9rem; opacity: .85; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--ink); color: #fff; padding: clamp(44px, 6vw, 72px) 0; margin-top: clamp(56px, 8vw, 96px); }
.seasonal + .newsletter { margin-top: 0; }
.newsletter :focus-visible { outline-color: var(--yolk); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { margin-bottom: .3em; }
.newsletter p { margin: 0; opacity: .88; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input { flex: 1 1 220px; height: 50px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); }
.newsletter-form .btn-primary { background: var(--yolk); color: var(--ink); min-height: 50px; }
.newsletter-form .btn-primary:hover { background: #ffd76e; }
.newsletter-form .form-status { flex-basis: 100%; min-height: 1.4em; font-size: .95rem; }
@media (max-width: 760px) { .newsletter-inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--mist); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { margin-top: 10px; color: var(--ink-soft); }
.footer-heading { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); }
.social a, .social-soon { display: inline-flex; align-items: center; gap: 8px; }
.social-soon { color: var(--ink-soft); }
.social-soon small { font-size: .8rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; padding-bottom: 28px; font-size: .9rem; color: var(--ink-soft); }
.footer-bottom p { margin: 0; }

/* ---------- listing: search on top, filters on the left ---------- */
.listing { padding-top: 12px; }
.listing-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "top top" "side main"; gap: 20px 36px; }
.filter-top { grid-area: top; }
.filter-panel { grid-area: side; align-self: start; position: sticky; top: 90px; }
.listing-results { grid-area: main; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.search-field input { width: 100%; height: 54px; padding: 0 18px 0 48px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 1.05rem; }
.search-field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--ink); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.results-count { margin: 0; font-size: .95rem; color: var(--ink-soft); min-height: 1.5em; }
.filter-toggle { display: none; min-height: 42px; }
.filter-badge { background: var(--basil); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 20px; height: 20px; line-height: 20px; text-align: center; padding: 0 6px; }
.filter-badge[hidden] { display: none; }
.filter-group { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0 14px; }
.filter-group:first-child { border-top: 0; padding-top: 4px; }
.filter-group legend { font-family: var(--font-display); font-size: 1.15rem; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.filter-group legend + * { clear: both; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--basil); flex: none; }
.check:hover span { text-decoration: underline; }
.clear-btn { margin-top: 8px; width: 100%; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .listing-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "side" "main"; }
  .filter-toggle { display: inline-flex; }
  .filter-panel { position: static; display: none; background: var(--mist); border-radius: var(--radius); padding: 8px 18px 18px; }
  .filter-panel.is-open { display: block; }
}
@media (max-width: 560px) { .card-grid.cols-3 { grid-template-columns: 1fr; } }
.empty-state { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty-state[hidden] { display: none; }
[data-saved-page] .card { display: none; }
[data-saved-page] .card.is-saved { display: flex; }

/* ---------- recipe page ---------- */
.recipe-head { padding-top: 28px; max-width: 900px; margin-left: auto; margin-right: auto; }
.recipe-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.rating-summary { margin: -4px 0 14px; color: var(--ink-soft); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.rating-summary .stars-static { color: var(--yolk-deep); letter-spacing: 2px; font-size: 1.1rem; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.recipe-actions [aria-pressed="true"] { background: var(--tomato); --heart-fill: currentColor; }
.recipe-hero { margin-top: 28px; margin-bottom: 0; max-width: 900px; }
.recipe-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.recipe-hero figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.recipe-facts { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 900px; margin: 28px auto 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.recipe-facts div { padding: 14px 12px; }
.recipe-facts div + div { border-left: 1px solid var(--line); }
.recipe-facts dt { font-size: .85rem; color: var(--ink-soft); }
.recipe-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 640px) {
  .recipe-facts { grid-template-columns: repeat(2, 1fr); }
  .recipe-facts div + div { border-left: 0; }
  .recipe-facts div { border-bottom: 1px solid var(--line); }
  .recipe-facts div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
.recipe-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; max-width: 1100px; margin-top: 44px; }
@media (max-width: 860px) { .recipe-body { grid-template-columns: 1fr; gap: 36px; } }
.ingredients { align-self: start; position: sticky; top: 90px; background: var(--mist); border-radius: var(--radius); padding: 24px; }
@media (max-width: 860px) { .ingredients { position: static; } }
.hint { font-size: .9rem; color: var(--ink-soft); margin-top: -6px; }
.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li { border-bottom: 1px solid var(--line); }
.ingredient-list li:last-child { border-bottom: 0; }
.ingredient-list label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.ingredient-list input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--basil); flex: none; }
.ingredient-list input:checked + span { color: var(--ink-soft); text-decoration: line-through; }
.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step-list li::before { content: counter(step); font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--tomato); }
.step-list p { margin: 0; max-width: 64ch; }
.step-list li:target { background: #fff8e1; }
.recipe-extras { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; max-width: 1100px; margin-top: 48px; }
@media (max-width: 860px) { .recipe-extras { grid-template-columns: 1fr; } }
.tips { border-left: 4px solid var(--yolk); padding: 4px 0 4px 22px; }
.tips ul { margin: 0; padding-left: 1.1em; }
.tips li { margin-bottom: .7em; }
.nutrition { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.nutrition table { width: 100%; border-collapse: collapse; }
.nutrition th, .nutrition td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; }
.nutrition th { font-weight: 500; }
.nutrition td { text-align: right; font-weight: 700; }
.nutrition .fine-print { margin: 12px 0 0; }

/* ---------- reviews ---------- */
.reviews { max-width: 900px; margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--ink); }
.reviews-list { margin-bottom: 28px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-name { font-weight: 700; }
.review-stars { color: var(--yolk-deep); letter-spacing: 2px; }
.review-date { color: var(--ink-soft); font-size: .88rem; }
.review p { margin: 6px 0 0; }
.review-form { background: var(--mist); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; max-width: 620px; }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; padding: 2px; border-radius: 6px; }
.stars svg { fill: var(--star-off); transition: fill .1s; }
.stars input:checked ~ label svg,
.stars label:hover svg,
.stars label:hover ~ label svg { fill: var(--yolk-deep); }
.stars input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 1px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--ink); }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.review-form .btn, .contact-form .btn { justify-self: start; }
.more-recipes { margin-top: 64px; }

/* ---------- prose pages ---------- */
.prose { padding-bottom: 24px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.contact-form { display: grid; gap: 18px; background: var(--mist); padding: 26px; border-radius: var(--radius); }
.contact-alt { margin-top: 20px; }
.not-found { text-align: left; padding-bottom: 40px; }
.not-found .hero-search { margin: 24px 0; }

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

/* ---------- print: just the recipe ---------- */
@media print {
  .site-header, .site-footer, .newsletter, .recipe-actions, .reviews, .more-recipes, .breadcrumb, .skip-link, .hint, .rating-summary { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .wrap { max-width: none; padding: 0; }
  .recipe-hero { max-width: 3.2in; margin-top: 8pt; }
  .recipe-hero figcaption { display: none; }
  .recipe-facts { border-color: #000; }
  .recipe-body { grid-template-columns: 1fr 1.6fr; gap: 20pt; margin-top: 14pt; }
  .ingredients { position: static; background: none; padding: 0; }
  .ingredient-list input { display: none; }
  .ingredient-list input:checked + span { text-decoration: none; color: #000; }
  .step-list li { break-inside: avoid; padding: 6pt 0; }
  .recipe-extras { grid-template-columns: 1fr 1fr; margin-top: 14pt; }
  .nutrition, .tips { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
