/* ------------------------------------------------------------------
   Behnaz kök – styles
   Warm cream, deep burgundy, saffron accent. Persian red, olive and
   turquoise are used sparingly as secondary accents.
------------------------------------------------------------------ */

:root {
  --cream: #FFF7E6;
  --paper: #FFFDF7;
  --burgundy: #3B1F2B;
  --burgundy-2: #5A2F40;
  --ink: #2A1620;
  --muted: #7A5F69;
  --line: #E8D9C4;
  --saffron: #F5B700;
  --saffron-soft: #FCE9A8;
  --red: #B8323F;
  --olive: #7A8B3A;
  --turquoise: #1FA5A0;
  --shadow: 0 10px 30px rgba(59, 31, 43, 0.08);
  --radius: 18px;
  --max: 1160px;
  --accent: #F5B700;
  --accent-soft: #FCE9A8;
  --accent-ink: #3B1F2B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-variation-settings: "SOFT" 100; line-height: 1.08; margin: 0; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); font-weight: 600; }
.center { text-align: center; margin-top: 32px; }

.wrap { max-width: var(--max); margin: 0 auto; }
.wrap.narrow { max-width: 820px; }
section { padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 800; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; min-height: 48px;
  border: 3px solid var(--burgundy); background: var(--paper); color: var(--ink);
  box-shadow: 4px 4px 0 var(--burgundy);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--burgundy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--burgundy); }
.btn.saffron { background: var(--saffron); }
.btn.ghost { background: transparent; }
.btn.small { padding: 9px 18px; font-size: .9rem; min-height: 40px; box-shadow: 3px 3px 0 var(--burgundy); }
.btn.small:hover { box-shadow: 4px 4px 0 var(--burgundy); }
.btn.link { border-color: transparent; box-shadow: none; background: transparent; text-decoration: underline; text-underline-offset: 4px; padding-left: 8px; padding-right: 8px; }
.btn.link:hover { transform: none; box-shadow: none; color: var(--red); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.btns.left { justify-content: flex-start; }

/* ---------- Chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip-label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip {
  border: 2px solid var(--burgundy); background: var(--paper); border-radius: 999px;
  padding: 9px 16px; font-weight: 700; font-size: .95rem; min-height: 42px;
  transition: background .15s, transform .15s, color .15s;
}
.chip:hover { background: var(--saffron-soft); transform: rotate(-1.5deg); }
.chip[aria-pressed="true"] { background: var(--burgundy); color: var(--cream); }

/* ---------- Section titles ---------- */
.title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin-bottom: 18px; }
.title h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; color: var(--burgundy); letter-spacing: -.02em; }
.title .tag { margin-left: auto; background: var(--accent); color: var(--accent-ink); padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; transform: rotate(2deg); }
.section-lead { max-width: 60ch; font-size: 1.1rem; font-weight: 600; color: var(--muted); margin: 0 0 36px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(255, 247, 230, .9); backdrop-filter: blur(10px);
  border-bottom: 3px dashed var(--saffron);
}
.brand { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.25rem; text-decoration: none; display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 999px; display: inline-block; transition: background .2s, transform .2s; }
.nav-links a:hover { background: var(--saffron-soft); transform: rotate(-2deg); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--burgundy); border-radius: 12px; background: var(--paper); flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; }
.nav-toggle span { display: block; width: 20px; height: 3px; background: var(--burgundy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 110px); }
.tiles {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--accent) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--accent) 1.5px, transparent 1.5px),
    radial-gradient(circle at 50% 50%, var(--accent) 0 5px, transparent 5.5px);
  background-size: 48px 48px, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 24px 24px;
  opacity: .09;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.eyebrow {
  display: inline-flex; gap: 12px; align-items: center;
  background: var(--burgundy); color: var(--cream);
  padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  transform: rotate(-2deg);
}
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); font-weight: 900; color: var(--burgundy); letter-spacing: -.03em; margin: 24px 0 16px; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--red); }
.hero .lead { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; color: var(--burgundy-2); margin: 0 0 28px; }
.hero-chips { margin-top: 26px; }

/* ---------- Cuisine picker (one place: the card over the hero photo) ---------- */
.cuisine-bar { gap: 8px; }
.cuisine-chip { min-height: 38px; padding: 6px 14px; }
.cuisine-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cuisine-intro { margin: 10px 0 0; font-weight: 600; color: var(--burgundy-2); max-width: 80ch; }
.card-cuisine { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.flag { font-size: 1rem; line-height: 1; }
.card .card-cuisine { margin: 2px 0 10px; }
.card .magnet { background: var(--card-accent, var(--saffron)) !important; }
.collection-head .card-cuisine { display: inline-flex; margin-top: 4px; }
.flavor .card-cuisine { margin-bottom: 2px; }
.match h3 .card-cuisine { margin-left: 8px; font-size: .7rem; }
.kit-cuisines { margin: 6px 0 14px; }
.kit-cuisines .chip { min-height: 34px; padding: 4px 12px; font-size: .85rem; }

/* ---------- Tonight / meal selector ---------- */
.tonight { background: var(--paper); border-top: 3px dashed var(--saffron); border-bottom: 3px dashed var(--saffron); }
.selector { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-items: start; margin-top: 12px; }
.question { display: grid; gap: 12px; }
.q-label { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.25rem; color: var(--burgundy); }
.suggestion { grid-column: 2; grid-row: 1 / span 3; }
.suggestion-card {
  background: var(--cream); border: 3px solid var(--burgundy); border-radius: var(--radius);
  padding: 28px; box-shadow: 8px 8px 0 var(--saffron); transform: rotate(-1deg);
}
.suggestion-label { display: inline-flex; gap: 10px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.suggestion-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--burgundy); margin: 8px 0 4px; }
.plus-list { list-style: none; padding: 0; margin: 0 0 16px; font-weight: 700; font-size: 1.1rem; color: var(--burgundy-2); }
.suggestion-card .meta { margin-bottom: 20px; }

/* ---------- Meta pills ---------- */
.meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta span { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--cream); border: 2px solid var(--burgundy); }
.meta .hot { background: var(--saffron); }

/* ---------- Fridge recipe cards ---------- */
.recipe-filters { margin: 4px 0 6px; }
.chip-count { font-size: .78em; font-weight: 800; opacity: .65; margin-left: 2px; }
.chip[aria-pressed="true"] .chip-count { opacity: .8; }
.fridge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; margin-top: 30px; }
.fridge .empty { grid-column: 1 / -1; background: var(--paper); border: 3px dashed var(--burgundy); border-radius: var(--radius); padding: 20px 24px; font-weight: 700; margin: 0; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 20px 24px 22px;
  border: 3px solid var(--burgundy); box-shadow: 6px 6px 0 var(--burgundy);
  position: relative; display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.card:nth-child(3n+1) { transform: rotate(-1.4deg); }
.card:nth-child(3n+2) { transform: rotate(.9deg); }
.card:nth-child(3n+3) { transform: rotate(-.6deg) translateY(4px); }
.card:hover { transform: rotate(0) scale(1.02); z-index: 2; }
.magnet { position: absolute; top: -16px; left: 50%; translate: -50% 0; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--burgundy); box-shadow: 2px 2px 0 var(--burgundy); }
.card:nth-child(4n+1) .magnet { background: var(--red); }
.card:nth-child(4n+2) .magnet { background: var(--saffron); }
.card:nth-child(4n+3) .magnet { background: var(--turquoise); }
.card:nth-child(4n+4) .magnet { background: var(--olive); }
.recipe-photo-button { display: block; width: 100%; padding: 0; margin: 0 0 18px; border: 0; border-radius: 15px; background: none; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.recipe-photo { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.recipe-photo-button:hover .recipe-photo { transform: scale(1.035); }
.card h3 { font-size: 1.5rem; font-weight: 800; color: var(--burgundy); }
.card p { margin: 0 0 14px; font-size: .98rem; flex: 1; }
.card .meta { margin-bottom: 16px; }
.card .btn { align-self: flex-start; }

/* ---------- What do you have at home ---------- */
.home { background: var(--paper); border-top: 3px dashed var(--saffron); border-bottom: 3px dashed var(--saffron); }
.match-form { display: flex; gap: 12px; }
.match-form input {
  flex: 1; min-width: 0; font: inherit; font-weight: 600; font-size: 1.05rem;
  padding: 14px 20px; border-radius: 999px; border: 3px solid var(--burgundy); background: var(--cream); color: var(--ink);
  box-shadow: inset 3px 3px 0 rgba(59, 31, 43, .08);
}
.match-form input::placeholder { color: var(--muted); }
.examples { margin-top: 14px; }
.match-results { margin-top: 28px; }
.match-results .empty { background: var(--cream); border: 3px dashed var(--burgundy); border-radius: var(--radius); padding: 20px 24px; font-weight: 700; color: var(--burgundy-2); margin: 0; }
.match-grid { display: grid; gap: 14px; }
.match { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--cream); border: 3px solid var(--burgundy); border-radius: var(--radius); padding: 16px 20px; }
.match .emoji { font-size: 2.2rem; }
.match-photo-button { padding: 0; border: 0; background: transparent; border-radius: 12px; overflow: hidden; cursor: pointer; }
.match-photo { display: block; width: 128px; height: 104px; object-fit: cover; }
.match h3 { font-size: 1.25rem; font-weight: 800; color: var(--burgundy); }
.match .matched { margin: 2px 0 8px; font-weight: 700; color: var(--olive); font-size: .95rem; }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.collection {
  background: var(--paper); border: 3px solid var(--burgundy); border-radius: var(--radius);
  padding: 30px 30px 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
}
.collection::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--tone, var(--saffron)); }
.collection-head h3 { font-size: 1.8rem; font-weight: 800; color: var(--burgundy); }
.collection p { margin: 0; color: var(--burgundy-2); font-weight: 600; }
.dish-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; font-weight: 700; }
.dish-list li { display: flex; align-items: center; gap: 10px; }
.dish-emoji { font-size: 1.3rem; }
.collection .btns { margin-top: 6px; }
.dinner-library { width: min(1120px, 94vw); }
.home-dialog { width: min(960px, 94vw); }
.nutrition { margin: 20px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); font-size: .92rem; }
.nutrition p { margin: 10px 0; }
.nutrition-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.nutrition-heading strong { font-size: 1.25rem; }
.nutrition-heading small { font-size: .85rem; font-weight: 500; }
.meta .calorie-badge { background: #edf2e8; color: #294534; border-color: transparent; font-weight: 500; }
.nutrition-notes { padding-left: 20px; }
.nutrition-notes li { margin: 6px 0; }
.nutrition-table td, .nutrition-table th { font-size: .8rem; }
.nutrition-table tbody th { font-weight: 500; min-width: 125px; }
.nutrition summary { cursor: pointer; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; }
.nutrition-table { overflow-x: auto; }
.nutrition table { width: 100%; border-collapse: collapse; text-align: left; }
.nutrition th, .nutrition td { padding: 7px; border-bottom: 1px solid var(--line); }
.nutrition caption { text-align: left; margin: 12px 0; font-weight: 600; }
.home-dialog .title { clear: both; }
.home-dialog .match { border: 1px solid var(--line); }
.tonight-dialog { width: min(1000px, 94vw); }
.tonight-dialog .title { clear: both; }
.tonight-dialog .dinner-close { color: white; border-color: rgba(255,255,255,.4); background: transparent; }
.dinner-close { float: right; margin-bottom: 16px; }
.dinner-library .title { clear: both; }
.dinner-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; }
.dinner-slide { flex: 0 0 85%; scroll-snap-align: start; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--cream); color: var(--ink); text-align: left; cursor: pointer; }
.dinner-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dinner-slide span { display: block; padding: 10px 12px; font-weight: 600; }
.dinner-library .collection .dish-list { display: none; }
.dinner-library .collection .btns { margin-top: auto; }
@media (max-width: 600px) {
  .match-photo { width: 88px; height: 96px; }
  .match { padding: 12px; gap: 12px; }
  .dinner-library .collection { padding: 16px; }
  .dinner-library .modal-inner { padding: 20px; }
}

/* ---------- Pantry ---------- */
.pantry { background: var(--burgundy); color: var(--cream); }
.pantry .title h2 { color: var(--saffron); }
.pantry .section-lead { color: #D9C3CB; }
/* group chips on the dark band */
.flavor-filters { margin: 0 0 24px; }
.pantry .chip { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.pantry .chip:hover { background: var(--saffron-soft); }
.pantry .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* flavour tiles */
.flavors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.flavor {
  position: relative; background: var(--cream); color: var(--ink); border: 3px solid var(--burgundy); border-radius: var(--radius);
  padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 6px; text-align: left;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .28); transition: transform .2s;
}
.flavor:nth-child(3n+1) { transform: rotate(-.8deg); }
.flavor:nth-child(3n+2) { transform: rotate(.6deg); }
.flavor:hover, .flavor:focus-within { transform: rotate(0) translateY(-4px); z-index: 2; }
.flavor h3 { font-size: 1.15rem; font-weight: 800; color: var(--burgundy); line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.flavor-link { all: unset; cursor: pointer; font: inherit; color: inherit; }
.flavor-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.flavor-link:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; border-radius: 4px; }
.flavor .hook { margin: 2px 0 4px; font-size: .9rem; font-weight: 600; color: var(--burgundy-2); flex: 1; }
.taste { display: flex; gap: 6px; flex-wrap: wrap; }
.taste span { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--saffron-soft); color: #7A5200; }
.flavor-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.flavor-foot .tag-special { margin-left: 0; }
.flavor .illo { margin: 0 auto 10px; }
.pantry-photo {
  display: block; width: calc(100% + 32px); max-width: none; aspect-ratio: 4 / 3;
  margin: -18px -16px 12px; object-fit: cover;
  border-radius: 14px 14px 0 0; background: #ebe4d8;
}

/* detail modal */
.flavor-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 12px; }
.flavor-head .illo { flex: none; }
.pantry-photo-large {
  flex: 0 0 240px; width: 240px; max-width: 42%; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); background: #ebe4d8;
}
.flavor-head h2 { margin: 4px 0 2px; }
.translit { margin: 0 0 8px; color: var(--muted); font-weight: 600; font-style: italic; }
.fact { display: grid; gap: 14px; margin: 18px 0 20px; }
.fact > div { background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.fact h4 { margin: 0 0 4px; font-size: .95rem; }
.fact p { margin: 0; font-weight: 600; }
.store-mini-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.store-mini-list li { background: var(--cream); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.modal .buy-all { margin: 12px 0 0; }

/* CSS illustrations: 84 x 96 box, coloured via --c, burgundy outlines */
.illo { position: relative; display: block; width: 84px; height: 96px; --line: var(--burgundy); }
.illo i { position: absolute; display: block; box-sizing: border-box; }
.illo.big { width: 110px; height: 126px; transform: scale(1.3); transform-origin: top left; margin: 0 26px 30px 0; }

.form-jar i:nth-child(1) { left: 14px; top: 2px; width: 56px; height: 14px; border-radius: 6px 6px 0 0; background: #e8dcc8; border: 3px solid var(--line); border-bottom: 0; }
.form-jar i:nth-child(2) { left: 6px; top: 14px; width: 72px; height: 80px; border-radius: 14px; border: 3px solid var(--line); background: linear-gradient(to top, var(--c) 0 68%, rgba(255, 255, 255, .55) 68%); }
.form-jar i:nth-child(3) { left: 16px; top: 28px; width: 8px; height: 50px; border-radius: 8px; background: rgba(255, 255, 255, .45); }
.form-jar i:nth-child(4) { left: 24px; top: 48px; width: 36px; height: 22px; border-radius: 4px; background: var(--paper); border: 2px solid var(--line); opacity: .9; }

.form-bottle i:nth-child(1) { left: 31px; top: 0; width: 22px; height: 13px; border-radius: 4px; background: var(--line); }
.form-bottle i:nth-child(2) { left: 34px; top: 10px; width: 16px; height: 18px; border: 3px solid var(--line); border-bottom: 0; background: rgba(255, 255, 255, .7); }
.form-bottle i:nth-child(3) { left: 19px; top: 26px; width: 46px; height: 68px; border-radius: 12px 12px 14px 14px; border: 3px solid var(--line); background: linear-gradient(to top, var(--c) 0 74%, rgba(255, 255, 255, .55) 74%); }
.form-bottle i:nth-child(4) { left: 27px; top: 54px; width: 30px; height: 20px; border-radius: 3px; background: var(--paper); border: 2px solid var(--line); }

.form-bunch i { width: 30px; height: 46px; border-radius: 100% 0; background: var(--c); border: 3px solid var(--line); transform-origin: 50% 100%; }
.form-bunch i:nth-child(4) { left: 37px; top: 40px; width: 10px; height: 54px; border-radius: 4px; background: #8A6B3A; transform: none; filter: none; }
.form-bunch i:nth-child(1) { left: 17px; top: 22px; transform: rotate(-40deg); filter: brightness(.88); z-index: 1; }
.form-bunch i:nth-child(2) { left: 27px; top: 8px; border-radius: 100% 100% 0 100%; z-index: 2; }
.form-bunch i:nth-child(3) { left: 37px; top: 22px; transform: rotate(40deg) scaleX(-1); filter: brightness(1.1); z-index: 1; }
.form-bunch::after { content: ""; position: absolute; left: 28px; top: 66px; width: 28px; height: 11px; border-radius: 5px; background: var(--saffron); border: 3px solid var(--line); z-index: 3; }

.form-sack i:nth-child(1) { left: 8px; top: 24px; width: 68px; height: 70px; border-radius: 12px 12px 24px 24px; border: 3px solid var(--line); background-color: var(--c); background-image: radial-gradient(circle, rgba(255, 255, 255, .45) 2px, transparent 2.6px); background-size: 12px 12px; }
.form-sack i:nth-child(2) { left: 12px; top: 14px; width: 60px; height: 20px; border-radius: 8px; border: 3px solid var(--line); background: #e8dcc8; }
.form-sack i:nth-child(3) { left: 26px; top: 3px; width: 32px; height: 15px; border-radius: 6px; background: var(--saffron); border: 3px solid var(--line); }
.form-sack i:nth-child(4) { left: 24px; top: 52px; width: 36px; height: 22px; border-radius: 4px; background: var(--paper); border: 2px solid var(--line); }

.form-bowl i:nth-child(1) { left: 6px; top: 40px; width: 72px; height: 50px; border-radius: 0 0 40px 40px; border: 3px solid var(--line); background: var(--paper); }
.form-bowl i:nth-child(2) { left: 6px; top: 30px; width: 72px; height: 22px; border-radius: 50%; border: 3px solid var(--line); background: var(--c); }
.form-bowl i:nth-child(3) { left: 22px; top: 36px; width: 26px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .8); }
.form-bowl i:nth-child(4) { left: 50px; top: 6px; width: 10px; height: 40px; border-radius: 6px; background: #e8dcc8; border: 3px solid var(--line); transform: rotate(18deg); }

.form-cup i:nth-child(1) { left: 24px; top: 16px; width: 36px; height: 58px; border-radius: 6px 6px 16px 16px; border: 3px solid var(--line); background: linear-gradient(to top, var(--c) 0 72%, rgba(255, 255, 255, .55) 72%); }
.form-cup i:nth-child(2) { left: 6px; top: 72px; width: 72px; height: 16px; border-radius: 50%; border: 3px solid var(--line); background: var(--cream); }
.form-cup i:nth-child(3) { left: 30px; top: 24px; width: 6px; height: 34px; border-radius: 6px; background: rgba(255, 255, 255, .5); }
.form-cup i:nth-child(4) { left: 36px; top: 0; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--line); border-bottom-color: transparent; border-left-color: transparent; transform: rotate(-30deg); opacity: .6; }
.kit {
  margin-top: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 28px 32px;
  border: 3px solid var(--saffron); box-shadow: 8px 8px 0 var(--saffron);
}
.kit h3 { font-size: 1.7rem; font-weight: 800; color: var(--burgundy); }
.kit p { margin: 4px 0 0; font-weight: 600; color: var(--muted); }

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.guide {
  background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.guide:hover { border-color: var(--burgundy); transform: translateY(-4px); }
.guide-emoji { font-size: 2.2rem; }
.guide-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.guide h3 { font-size: 1.35rem; font-weight: 800; color: var(--burgundy); }
.guide p { margin: 0; flex: 1; font-size: .95rem; }
.guide .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.about h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--burgundy); margin-bottom: 12px; letter-spacing: -.02em; }
.about h2 em { color: var(--red); font-style: italic; font-weight: 600; }
.about p { max-width: 56ch; font-size: 1.05rem; margin: 0 0 10px; }
.plate {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--paper) 0 58%, var(--saffron) 58% 66%, var(--red) 66% 74%, var(--turquoise) 74% 82%, var(--olive) 82% 90%, var(--burgundy) 90% 100%);
  display: grid; place-items: center; font-size: 4.5rem; box-shadow: 8px 8px 0 var(--burgundy); transform: rotate(-4deg);
}

/* ---------- Footer ---------- */
footer { padding: 40px clamp(20px, 5vw, 64px); text-align: center; border-top: 3px dashed var(--saffron); font-weight: 600; }
footer small { display: block; margin-top: 10px; color: var(--muted); }

/* ---------- Modals ---------- */
.modal {
  border: 3px solid var(--burgundy); border-radius: 22px; padding: 0; background: var(--paper); color: var(--ink);
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 10px 10px 0 var(--saffron);
}
.modal::backdrop { background: rgba(59, 31, 43, .55); backdrop-filter: blur(3px); }
.modal-inner { padding: clamp(24px, 4vw, 40px); }
.modal h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--burgundy); margin: 6px 0 8px; }
.modal h4 { font-size: 1.05rem; font-weight: 800; color: var(--burgundy); margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; }
.modal h4 .muted { font-family: 'Nunito', sans-serif; font-size: .8rem; }
.modal .btns { margin-top: 22px; }
.modal-emoji { font-size: 2.6rem; display: block; }
.recipe-hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 3px solid var(--burgundy); margin-bottom: 22px; }
.suggestion-photo { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 16px; border: 3px solid var(--burgundy); margin-bottom: 20px; }
.menu-dish-photo { width: 58px; height: 48px; display: block; object-fit: cover; border-radius: 9px; border: 2px solid var(--line); }
.lead-small { font-weight: 600; color: var(--burgundy-2); margin: 0 0 14px; }
.recipe-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-top: 22px; }
.ing-list { list-style: none; padding: 0; margin: 0; }
.ing-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 2px dashed var(--line); font-weight: 600; }
.ing-list li span:last-child { color: var(--muted); white-space: nowrap; }
.steps { padding-left: 22px; margin: 0; display: grid; gap: 10px; font-weight: 600; }
.steps li::marker { font-family: 'Fraunces', serif; font-weight: 800; color: var(--red); }
.menu-dishes { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.menu-dishes li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.menu-dishes .emoji { font-size: 1.8rem; }
.chip-row .chip { min-height: 38px; padding: 6px 14px; }
.kit-note { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: var(--saffron-soft); display: grid; gap: 2px; }
.kit-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-weight: 700; }
.kit-list li { display: flex; align-items: center; gap: 10px; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 2px solid var(--burgundy); flex: none; }

/* shopping list */
.list-body { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.list-group h4 { border-bottom: 3px solid var(--saffron); padding-bottom: 4px; }
.check { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 2px dashed var(--line); font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--burgundy); margin: 0; }
.check input:checked ~ .check-name { text-decoration: line-through; color: var(--muted); }
.check-amount { color: var(--muted); white-space: nowrap; font-size: .92rem; }
.copy-status { font-weight: 700; color: var(--olive); }

.form-tin i:nth-child(1) { left: 12px; top: 10px; width: 60px; height: 78px; border-radius: 8px; border: 3px solid var(--line); background: linear-gradient(90deg, rgba(255,255,255,.35), transparent 40%, rgba(0,0,0,.08)), var(--c); }
.form-tin i:nth-child(2) { left: 8px; top: 4px; width: 68px; height: 16px; border-radius: 50%; border: 3px solid var(--line); background: #d9d3c4; }
.form-tin i:nth-child(3) { left: 8px; top: 82px; width: 68px; height: 12px; border-radius: 50%; border: 3px solid var(--line); background: #d9d3c4; z-index: -1; }
.form-tin i:nth-child(4) { left: 22px; top: 36px; width: 40px; height: 26px; border-radius: 4px; background: var(--paper); border: 2px solid var(--line); }
.form-block i:nth-child(1) { left: 10px; top: 30px; width: 64px; height: 50px; border-radius: 6px; border: 3px solid var(--line); background: var(--c); }
.form-block i:nth-child(2) { left: 22px; top: 16px; width: 64px; height: 50px; border-radius: 6px; border: 3px solid var(--line); background: var(--c); filter: brightness(1.12); z-index: -1; }
.form-block i:nth-child(3) { left: 18px; top: 42px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.form-block i:nth-child(4) { left: 40px; top: 58px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45); }

/* ---------- Where to buy (recipe modal) ---------- */
.buy { margin-top: 26px; padding-top: 22px; border-top: 3px dashed var(--line); display: grid; gap: 14px; }
.buy > h4 { font-size: 1.25rem; }
.buy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.buy-group { background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.buy-group.attention { border-color: var(--saffron); }
.buy-label { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: .9rem; margin-bottom: 8px; }
.st-neutral, .st-ok, .st-attention { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.st-neutral i, .st-ok i, .st-attention i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: .8rem; font-weight: 900; flex: none; border: 2px solid currentColor;
}
.st-neutral { color: var(--muted); }
.st-ok { color: var(--olive); }
.st-ok i { background: var(--olive); color: #fff; border-color: var(--olive); }
.st-attention { color: #7A5200; }
.st-attention i { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.buy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.buy-list small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; }
.buy-all { margin: 0; font-weight: 600; }
.buy-stores { display: grid; gap: 14px; }
.store { background: var(--paper); border: 3px solid var(--burgundy); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.store-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.store-head h5 { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 800; color: var(--burgundy); margin: 0; }
.tag-demo, .tag-special {
  font-family: 'Nunito', sans-serif; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 2px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: middle; white-space: nowrap;
}
.tag-special { border-color: var(--saffron); background: var(--saffron-soft); color: #7A5200; }
.store-ings { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-weight: 600; font-size: .92rem; }
.store-ings li { display: flex; gap: 8px; align-items: center; }
.store-ings li span { margin-left: auto; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.store p { margin: 0; font-size: .95rem; }
.store-note { color: var(--burgundy-2); font-weight: 600; font-size: .92rem; }
.store-links a, .store-mini-list .store-links a { font-weight: 800; color: var(--turquoise); text-decoration: underline; text-underline-offset: 3px; }
.store-mini-list .store-links { margin: 4px 0 0; font-size: .9rem; }
.store-code strong { background: var(--saffron-soft); padding: 2px 8px; border-radius: 6px; font-family: ui-monospace, monospace; }
.store .btns { margin-top: 4px; }
.stock table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stock th, .stock td { text-align: left; padding: 6px 8px; border-bottom: 2px dashed var(--line); }
.stock th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stock td:last-child, .stock th:last-child { text-align: right; white-space: nowrap; }
.buy-note { font-size: .88rem; }

/* request form */
.request-form { display: grid; gap: 12px; margin-top: 10px; }
.field { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.field input, .field textarea {
  font: inherit; font-weight: 600; padding: 11px 14px; border-radius: 12px;
  border: 2px solid var(--burgundy); background: var(--cream); color: var(--ink); width: 100%;
}
.field input[readonly] { background: var(--paper); border-color: var(--line); color: var(--muted); }
.field textarea { resize: vertical; }
.request-success { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 800; color: var(--olive); margin: 8px 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .fridge { grid-template-columns: repeat(2, 1fr); }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .flavors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .selector { grid-template-columns: 1fr; }
  .suggestion { grid-column: auto; grid-row: auto; }
  .suggestion-card { transform: none; }
}
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; order: 1; }
  .nav-links { order: 2; display: none; width: 100%; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 2px dashed var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { background: var(--saffron); }
}
@media (max-width: 760px) {
  .fridge, .collections, .guides, .list-body, .recipe-cols, .kit-list, .buy-cols, .store-ings { grid-template-columns: 1fr; }
  .card, .card:nth-child(n) { transform: none; }
  .flavors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .flavor { padding: 14px 12px 12px; }
  .flavor h3 { font-size: 1.02rem; }
  .flavor-foot { flex-wrap: wrap; }
  .flavor-head { flex-direction: column; gap: 8px; }
  .pantry-photo-large { width: 100%; max-width: none; }
  .illo.big { transform: none; width: 84px; height: 96px; margin: 0 0 8px; }
  .match-form { flex-direction: column; }
  .match-form .btn { width: 100%; }
  .match { grid-template-columns: auto 1fr; }
  .match .btn { grid-column: 1 / -1; }
  .menu-dishes li { grid-template-columns: auto 1fr; }
  .menu-dishes .btn { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .plate { max-width: 180px; }
  .collection { padding: 26px 22px 22px 26px; }
  .btns .btn { flex: 1 1 auto; }
  .title .tag { margin-left: 0; }
  .modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
}

/* ---------- Print: only the shopping list ---------- */
@media print {
  body > *:not(#list-dialog) { display: none !important; }
  #list-dialog { display: block; position: static; border: 0; box-shadow: none; width: auto; max-height: none; }
  .list-actions { display: none; }
  .modal-inner { padding: 0; }
  .list-body { grid-template-columns: 1fr 1fr; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .jar, .chip, .guide, .nav-links a { transition: none; }
}

/* ---------- Photo fallback (recipes without an image yet) ---------- */
.photo-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--cream)); color: var(--ink); font-size: 3.2rem; line-height: 1; }
.menu-dish-photo.photo-fallback { font-size: 1.6rem; }
.recipe-hero-photo.photo-fallback { font-size: 5rem; }
.suggestion-photo.photo-fallback { font-size: 4rem; }
.recipe-photo.photo-fallback { width: 100%; height: 100%; }

/* ---------- 2026 editorial redesign ---------- */
:root {
  --cream: #f7f4ed;
  --paper: #fffefa;
  --burgundy: #293c32;
  --burgundy-2: #4d5e54;
  --ink: #17251e;
  --muted: #69756e;
  --line: #dddcd2;
  --saffron: #dca82b;
  --saffron-soft: #f3e8c9;
  --red: #a75a43;
  --olive: #71825f;
  --turquoise: #477b6b;
  --shadow: 0 18px 50px rgba(31, 49, 40, .08);
  --radius: 16px;
  --max: 1240px;
}

body { background: var(--cream); line-height: 1.55; }
.wrap { width: min(var(--max), calc(100% - 48px)); }
section { padding: clamp(72px, 8vw, 112px) 0; }
h1, h2, h3, h4 { font-variation-settings: "SOFT" 50; }

.nav {
  min-height: 76px; padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 244, 237, .92); border: 0; border-bottom: 1px solid rgba(41, 60, 50, .1);
  box-shadow: 0 8px 30px rgba(31, 49, 40, .04);
}
.brand { font-size: 1.2rem; line-height: 1; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  color: var(--paper); background: var(--burgundy); font-style: italic; font-size: 1.35rem;
}
.brand-logo { display: block; width: auto; height: 52px; }
.brand small { display: block; margin-top: 5px; font: 700 .58rem/1 'Nunito', sans-serif; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { gap: 20px; }
.nav-links a { padding: 10px 4px; border-radius: 0; font-size: .88rem; color: var(--burgundy-2); }
.nav-links a:hover { color: var(--ink); background: transparent; transform: none; }

.btn {
  min-height: 46px; padding: 12px 22px; border: 1px solid var(--burgundy); border-radius: 10px;
  box-shadow: none; font-size: .92rem; letter-spacing: .01em;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,49,40,.12); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.saffron { color: #17251e; background: var(--saffron); border-color: var(--saffron); }
.btn.ghost { background: transparent; }
.btn.small, .btn.small:hover { box-shadow: none; }

.chip-row { gap: 8px; }
.chip {
  min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.62); font-size: .86rem; color: var(--burgundy-2);
}
.chip:hover { background: var(--paper); border-color: var(--accent); transform: none; }
.chip[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

.hero { padding: clamp(20px, 3vw, 36px) 0 40px; background: var(--paper); }
.tiles { display: none; }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: var(--saffron-soft); left: -260px; top: -270px; opacity: .7; }
.hero-stack { position: relative; z-index: 1; }
/* the table photo fills the hero; the copy sits over its left half where the table is, Behnaz stays clear on the right */
.hero-stage { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 520px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--saffron-soft); }
.hero-table { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; }
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,254,250,.97) 0%, rgba(255,254,250,.93) 30%, rgba(255,254,250,.62) 48%, rgba(255,254,250,0) 66%); }
.hero-text { position: relative; max-width: 660px; margin: 0; padding: clamp(28px, 3.5vw, 44px) clamp(28px, 4vw, 56px) clamp(92px, 8vw, 108px); text-align: left; }
.eyebrow { padding: 0; border: 0; background: transparent; color: var(--olive); font-size: .72rem; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero h1 { max-width: 780px; margin: 14px 0 14px; font-size: clamp(2.7rem, 4.2vw, 4.3rem); line-height: .95; color: var(--ink); letter-spacing: -.045em; }
.hero h1 em { color: var(--red); }
.hero .lead { max-width: 54ch; margin: 0 0 22px; color: var(--burgundy-2); font-size: 1.04rem; font-weight: 500; }
.hero .btns { justify-content: flex-start; }
.hero-chips { margin-top: 20px; justify-content: flex-start; }

.hero-signature { position: absolute; right: 28px; top: 28px; margin: 0; padding: 15px 20px; border-radius: 12px; background: rgba(255,254,250,.94); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-signature span { display: block; color: var(--muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.hero-signature strong { font: italic 700 1.35rem/1.1 'Fraunces', serif; color: var(--red); }
.cuisine-card {
  position: relative; z-index: 2; width: max-content; max-width: 100%; margin: -74px 0 0 clamp(20px, 3vw, 44px); padding: 18px 24px 20px;
  background: rgba(255,254,250,.97); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 18px 50px rgba(23,37,30,.16); backdrop-filter: blur(10px); text-align: left;
}
.cuisine-card-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cuisine-card .cuisine-bar { justify-content: flex-start; }
.cuisine-intro { max-width: 64ch; margin: 12px 0 0; font-size: .92rem; color: var(--burgundy-2); }

.title { margin-bottom: 16px; }
.title h2 { color: var(--ink); font-size: clamp(2.3rem, 4vw, 3.7rem); font-weight: 700; letter-spacing: -.035em; }
.title .tag { padding: 5px 12px; color: var(--burgundy-2); background: var(--accent-soft); transform: none; }
.section-lead { font-size: 1rem; font-weight: 500; line-height: 1.7; }

.tonight, .home { border: 0; background: var(--paper); }
.tonight { background: var(--burgundy); color: #fff; }
.tonight .suggestion-card { color: var(--ink); }
.tonight .suggestion-card .meta span { color: var(--burgundy); }
.tonight .suggestion-card .muted { color: var(--muted); }
.tonight .title h2 { color: #fff; }
.selector { gap: 14px; margin-top: 30px; }
.question { padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.06); }
.tonight .q-label { color: #fff; }
.tonight .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.tonight .chip:hover { background: rgba(255,255,255,.15); }
.tonight .chip[aria-pressed="true"] { color: var(--ink); background: var(--saffron); border-color: var(--saffron); }

.recipe-filters { margin-top: 30px; }
.fridge { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.card, .card:nth-child(n) {
  padding: 12px 12px 20px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; transform: none; background: var(--paper);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .magnet { display: none; }
.recipe-photo-button { margin-bottom: 18px; border-radius: 11px; }
.card h3 { padding: 0 8px; color: var(--ink); font-size: 1.35rem; }
.card .card-cuisine, .card p, .card .meta, .card > .btn { margin-left: 8px; margin-right: 8px; }
.card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.meta-item { border: 0; background: var(--cream); box-shadow: none; font-size: .75rem; }

.match-form input { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: none; }
.match-form input:focus { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(113,130,95,.12); }
.collections { gap: 20px; }
.collection { padding: 30px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; background: var(--paper); }
.collection::before { width: 4px; }
.collection:hover { box-shadow: var(--shadow); }

.pantry { background: #22362d; }
.pantry .title h2 { color: #fff; }
.pantry .section-lead { color: #bcc8c1; }
.flavor { border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.kit { border: 0; box-shadow: none; background: #fff; }

.guide { border: 1px solid var(--line); box-shadow: none; }
.guide:hover { border-color: transparent; box-shadow: var(--shadow); }

.about { color: #fff; background: var(--red); }
.about-grid { grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 9vw, 120px); }
.about-kicker { padding-right: 48px; border-right: 1px solid rgba(255,255,255,.3); }
.about-kicker span { display: block; margin-bottom: 18px; color: #f2d7ce; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.about-kicker strong { font: italic 600 clamp(2rem,4vw,3.7rem)/1.08 'Fraunces',serif; }
.about h2 { color: #fff; }
.about h2 em { color: #f7dba0; }
.about p { max-width: 60ch; font-weight: 500; line-height: 1.75; color: #f8eee9; }
.text-link { display: inline-flex; gap: 12px; margin-top: 18px; color: #fff; font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 4px; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

/* Local flag miniatures keep their detail on every platform. */
.cuisine-bar { gap: 12px; }
.cuisine-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; width: 78px; min-height: 82px; aspect-ratio: auto; padding: 12px 8px;
  border: 1px solid transparent; border-radius: 14px; background: transparent;
  color: var(--burgundy-2); box-shadow: none; transform: none;
  font: 700 .76rem/1.2 'Nunito', sans-serif;
  transition: background .2s, border-color .2s, transform .2s;
}
.cuisine-flag { display: block; width: 44px; height: 30px; object-fit: cover; border-radius: 5px; box-shadow: 0 3px 9px rgba(23,37,30,.12); outline: 1px solid rgba(23,37,30,.07); }
.cuisine-tile:hover { background: #f0eee6; transform: translateY(-2px); box-shadow: none; }
.cuisine-tile[aria-pressed="true"] {
  background: #eaf0e8; border-color: #b4c6b0; color: #293c32; transform: none; box-shadow: none;
}
.cuisine-tile[aria-pressed="true"]::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: #486943;
}
.cuisine-globe { display: grid; place-items: center; height: 30px; width: 44px; font: 400 36px/1 Georgia,serif; color: #486943; }
@media (max-width: 760px) {
  .cuisine-bar { flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .cuisine-card .cuisine-bar { flex-wrap: wrap; justify-content: center; overflow: visible; gap: 2px 4px; padding-bottom: 0; }
  .cuisine-card { width: min(100%, 940px); text-align: center; }
  .cuisine-intro { margin-inline: auto; }
  .cuisine-tile { flex: 0 0 66px; min-height: 76px; }
}

footer { color: #dce5df; background: #17251e; border: 0; }
footer small { color: #95a39b; }
.modal { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 28px 90px rgba(0,0,0,.2); }
.recipe-hero-photo, .suggestion-photo { border: 0; }

@media (max-width: 1000px) {
  .hero-stage { min-height: 480px; }
  .hero-text { max-width: 60%; padding-bottom: 96px; }
  .hero-signature { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  section { padding: 64px 0; }
  .nav { min-height: 66px; }
  .brand small { display: none; }
  .brand-logo { height: 40px; }
  .hero { padding: 46px 0 64px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .hero-stage { display: flex; flex-direction: column; min-height: 0; border-radius: 0; overflow: visible; box-shadow: none; background: transparent; }
  .hero-table { order: 2; }
  .hero-stage::after { display: none; }
  .hero-table { position: static; z-index: auto; height: auto; aspect-ratio: 4 / 3; object-position: 74% 50%; border-radius: 18px; box-shadow: var(--shadow); }
  .hero-text { max-width: none; padding: 0 0 26px; }
  .hero .lead { max-width: none; }
  .cuisine-card { margin: -30px auto 0; padding: 14px 10px 16px; border-radius: 16px; }
  .fridge { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-kicker { padding: 0 0 34px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.3); }
}

/* ---------- Launch: skip link, footer links, consent bar, static pages ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--burgundy); color: #fff; font-weight: 800; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; outline: 3px solid var(--saffron); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 14px 0 4px; }
.footer-links a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.footer-links a:hover, .footer-links a:focus-visible { border-bottom-color: var(--saffron); }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; padding: 16px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(23,37,30,.22); }
.consent p { margin: 0; flex: 1 1 320px; font-size: .92rem; font-weight: 600; color: var(--burgundy-2); }
.consent a { color: var(--red); }
.consent-actions { display: flex; gap: 8px; }
/* Static recipe / privacy / 404 pages share the app's CSS */
.recipe-page .nav-links-static { display: flex; gap: 22px; list-style: none; margin: 0 auto; padding: 0; }
.recipe-page .nav-links-static a { color: var(--burgundy-2); font-weight: 700; text-decoration: none; }
.recipe-article { padding: 34px 0 72px; }
.recipe-article h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink); letter-spacing: -.035em; margin: 10px 0 12px; }
.recipe-article .h4 { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.recipe-article .meta { margin: 0 0 6px; }
.recipe-kcal { margin-top: 18px; font-size: .9rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.crumbs a { color: var(--burgundy-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.recipe-cta { margin-top: 34px; padding: 24px 26px; border-radius: 18px; background: var(--accent-soft); }
.recipe-cta p { margin: 0 0 16px; font-weight: 600; color: var(--burgundy-2); }
.recipe-related { margin-top: 34px; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.related-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 800; text-decoration: none; }
.related-list a:hover { border-color: var(--accent); }
.related-list small { font-weight: 600; color: var(--muted); }
.prose h2 { font-size: 1.45rem; margin: 30px 0 10px; color: var(--ink); }
.prose p, .prose li { font-weight: 500; line-height: 1.7; }
.prose code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.not-found { padding: 40px 0; }
@media (max-width: 760px) {
  .recipe-page .nav-links-static { display: none; }
  .recipe-article .recipe-cols { grid-template-columns: 1fr; }
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
}
