/* Eat All Day — autumn editorial magazine look, mobile-first. */
:root {
  --cream: #faf5ec;
  --paper: #fffdf8;
  --ink: #2c241c;
  --muted: #6f6252;
  --orange: #c0601f;
  --orange-deep: #a34d15;
  --apple: #8e2f21;
  --evergreen: #2f5d3a;
  --gold: #d9a441;
  --rule: #e4d8c2;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--apple); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.1rem; }

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px double var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span { color: var(--orange); font-style: italic; }
.nav { display: flex; gap: 0.15rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: #f3e9d4; }
.nav a.active { color: var(--paper); background: var(--evergreen); }

/* ---------- hero ---------- */
.hero {
  background: var(--evergreen);
  color: #fdf8ee;
  background-size: cover;
  background-position: center;
  padding: 4.5rem 0 3.5rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,40,28,0.55), rgba(28,40,28,0.78));
}
.hero .wrap { position: relative; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: #fdf8ee;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.7);
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .sub { font-size: 1.1rem; max-width: 34rem; margin: 0; color: #f2e8d5; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

/* ---------- hero carousel ---------- */
.hero-carousel { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; }
.hero.hero-slide { padding-bottom: 5rem; } /* room for the controls overlay */
.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  z-index: 2;
}
.hero-arrow {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 2px solid rgba(253,248,238,0.7); background: rgba(28,40,28,0.45);
  color: #fdf8ee; font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover, .hero-arrow:focus-visible { background: rgba(28,40,28,0.8); outline: 2px solid var(--gold); }
.hero-dots { display: flex; gap: 0.55rem; }
.hero-dots button {
  width: 0.75rem; height: 0.75rem; border-radius: 50%; padding: 0;
  border: 1px solid rgba(253,248,238,0.75); background: transparent; cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }
.hero-dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- sections ---------- */
.section { padding: 2.75rem 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h2.dept {
  font-size: 1.7rem;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
h2.dept::after { content: ""; flex: 1; border-top: 2px solid var(--rule); }
.dept-sub { color: var(--muted); margin: 0 0 1.4rem; max-width: 40rem; }
.lede { font-size: 1.15rem; color: var(--muted); font-family: var(--serif); font-style: italic; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }
.breadcrumb a { color: var(--apple); }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.two { grid-template-columns: repeat(2, 1fr); }
  .card-grid.four { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.18rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--apple); }
.card .recipe-meta { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.go { font-weight: 700; text-decoration: none; color: var(--evergreen); }
.go:hover { text-decoration: underline; }

/* department tile */
.dept-tile { position: relative; color: #fff; text-decoration: none; }
.dept-tile img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.dept-tile .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(24,20,14,0.82));
}
.dept-tile .label h3 { color: #fff; margin: 0 0 0.15rem; font-size: 1.25rem; }
.dept-tile .label p { margin: 0; font-size: 0.88rem; color: #f0e4cd; }

/* ---------- recipe detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 1.25rem; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.5fr 1fr; } }
.detail-photo img { border-radius: 10px; border: 1px solid var(--rule); }
.detail-story { font-size: 1.05rem; }
.times {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin: 1rem 0; padding: 0.9rem 1.1rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
}
.times div span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.times div strong { font-family: var(--serif); font-size: 1.05rem; }
.ing-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ing-list li { padding: 0.45rem 0; border-bottom: 1px dotted var(--rule); }
.ing-list li strong { color: var(--apple); font-weight: 700; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.steps li { counter-increment: step; padding: 0.7rem 0 0.7rem 3rem; position: relative; border-bottom: 1px dotted var(--rule); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.7rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--evergreen); color: #fff;
  font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.tip-box {
  background: #f7efdc; border-left: 4px solid var(--gold);
  padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0;
}
.tip-box strong { font-family: var(--serif); }

/* ---------- scaler / tools ---------- */
.scaler, .calc, .result, .planner-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem;
}
.scaler h2, .calc h2 { margin-top: 0; }
.stepper { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
.stepper button {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 2px solid var(--evergreen); background: #fff; color: var(--evergreen);
  font-size: 1.4rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.stepper output { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; min-width: 2.5rem; text-align: center; }
.shop-list { width: 100%; border-collapse: collapse; margin: 0.5rem 0; }
.shop-list td { padding: 0.45rem 0.25rem; border-bottom: 1px dotted var(--rule); vertical-align: top; }
.shop-list td.qty { font-weight: 700; color: var(--apple); white-space: nowrap; padding-right: 0.75rem; font-family: var(--serif); }
.affil-note { font-size: 0.83rem; color: var(--muted); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-family: var(--serif); }
.hint { font-weight: 400; font-family: var(--sans); color: var(--muted); font-size: 0.85rem; }
input[type="text"], input[type="number"], select, textarea {
  font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--rule);
  border-radius: 8px; background: #fff; color: var(--ink); max-width: 100%;
}
input[type="number"] { width: 7rem; }
.btn {
  display: inline-block; background: var(--evergreen); color: #fff; border: none;
  padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; text-decoration: none; font-family: var(--sans);
}
.btn:hover { background: #24492d; }
.btn.small { padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn.ghost { background: transparent; color: var(--evergreen); border: 2px solid var(--evergreen); }
.btn.warn { background: var(--apple); }
.ing-row { display: grid; grid-template-columns: 1fr 4.5rem 5.5rem auto auto; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.ing-row .x { background: none; border: none; color: var(--apple); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 560px) { .ing-row { grid-template-columns: 1fr 3.8rem 4.8rem auto; } .ing-row .c-line { display: none; } }
.seg { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.seg button {
  border: 2px solid var(--rule); background: #fff; border-radius: 999px;
  padding: 0.4rem 0.9rem; font-weight: 600; cursor: pointer; color: var(--muted);
}
.seg button.on { border-color: var(--evergreen); color: var(--evergreen); background: #eef4ec; }
.big-number { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--apple); }

/* planner */
.dinner-pick { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 640px) { .dinner-pick { grid-template-columns: repeat(2, 1fr); } }
.dinner-pick label {
  display: flex; gap: 0.6rem; align-items: flex-start;
  border: 1px solid var(--rule); border-radius: 8px; padding: 0.6rem 0.75rem;
  background: #fff; cursor: pointer; font-size: 0.95rem;
}
.dinner-pick label.picked { border-color: var(--evergreen); background: #eef4ec; }
.dinner-pick input { margin-top: 0.25rem; }
.day-plan { border: 1px solid var(--rule); border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.8rem; background: #fff; }
.day-plan h4 { margin: 0 0 0.3rem; font-family: var(--serif); }
.day-plan .lunch { color: var(--evergreen); font-size: 0.95rem; }

/* ---------- share ---------- */
.share-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 1.5rem 0 0; }
.share-label { font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.share-btn {
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.share-btn:hover { border-color: var(--orange); color: var(--orange-deep); }
.ask-ai { margin-top: 0.75rem; }
hr.rule { border: none; border-top: 3px double var(--rule); margin: 2rem 0; }

/* ---------- page hero (tools) ---------- */
.page-hero {
  background-color: var(--apple);
  background-size: cover; background-position: center;
  color: #fdf8ee; padding: 3rem 0 2.25rem; position: relative;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(60,22,14,0.55); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 0 0 0.4rem; color: #fff; }
.page-hero .sub { margin: 0; color: #f4e6d2; font-size: 1.05rem; }

/* ---------- gear ---------- */
.gear-list { display: grid; gap: 0.55rem; }
.gear-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 600;
}
.gear-list a:hover { border-color: var(--orange); }
.gear-list .src { font-size: 0.82rem; color: var(--orange-deep); font-weight: 700; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: #241d14; color: #d9cbb2; padding: 2.5rem 0; margin-top: 2rem; }
.site-footer .responsible { color: #fff; font-size: 1.05rem; margin-bottom: 0.75rem; }
.site-footer p { margin: 0.4rem 0; font-size: 0.9rem; }
.site-footer .fine { font-size: 0.8rem; color: #a8977a; }
.site-footer a { color: var(--gold); }

/* ---------- misc ---------- */
.guide h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.guide p { margin-top: 0; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- planner shopping cart ---------- */
.cart { border: 1px solid #e7dcc4; border-radius: 10px; overflow: hidden; background: #fffdf8; }
.cart-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; border-bottom: 1px solid #f0e7d2; }
.cart-row:last-child { border-bottom: 0; }
.cart-row.is-off { opacity: 0.45; }
.cart-row.is-off .cart-name { text-decoration: line-through; }
.cart-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--evergreen); }
.cart-qty { font-weight: 700; min-width: 4.2rem; }
.cart-name { flex: 1; min-width: 0; }
.cart-stores { font-size: 0.8rem; white-space: nowrap; }
.cart-stores a { color: var(--apple); }
.cart-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
@media (max-width: 560px) {
  .cart-row { flex-wrap: wrap; }
  .cart-stores { width: 100%; padding-left: 2rem; }
}
/* ---------- print: clean cart printout ---------- */
@media print {
  .site-header, .page-hero, .site-footer, .calc, .cart-actions,
  .cart-stores, .cart-check, .day-plan .go, .affil-note { display: none !important; }
  .cart-row.is-off { display: none !important; }
  .cart-row { opacity: 1; border-bottom: 1px solid #bbb; }
  body { background: #fff; }
  .section { padding: 0; }
  .wrap { max-width: 100%; }
  a { color: #000; text-decoration: none; }
}
