/* Styles for the static landing and calorie pages (scripts/seo/generate-pages.mjs). */
:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5a54;
  --accent: #1f8a5e;
  --accent-strong: #176b49;
  --accent-soft: #d9f3e8;
  --border: #ddd9cf;
  --protein: #2f6fb3;
  --carbs: #b3662f;
  --fat: #8a4fb0;
  --alcohol: #7a7a7a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --surface: #1e1e22;
    --text: #e8e7e2;
    --muted: #a3a097;
    --accent: #3dd493;
    --accent-strong: #6ee3b0;
    --accent-soft: #1a3a2b;
    --border: #34343a;
    --protein: #6fa8e6;
    --carbs: #e0a06d;
    --fat: #c08be0;
    --alcohol: #a0a0a0;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
main, .site-header, .site-footer { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.brand img { border-radius: 8px; }
.site-header nav a { font-weight: 600; text-decoration: none; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.2; margin: 16px 0 12px; text-wrap: balance; }
h2 { font-size: 1.3rem; margin: 32px 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 4px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.note, .source { font-size: 0.9rem; color: var(--muted); }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.hero { padding: 24px 0 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px;
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600;
}
.store-icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.store:hover { color: var(--bg); opacity: 0.9; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); }
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.features li, .card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.features p { margin: 0; color: var(--muted); }
.card { margin: 32px 0; }
.card h2 { margin-top: 0; }
.cta { background: var(--accent-soft); border-color: transparent; }
.chips, .similar { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .similar li { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.similar span { color: var(--muted); font-size: 0.85rem; }
.kcal-hero { font-size: 1.2rem; margin: 0; }
.kcal-hero strong { font-size: 2.6rem; color: var(--accent); }
.kcal-hero span { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
td { white-space: nowrap; }
.calorie-table th[scope="row"] { font-weight: 500; }
.nutrition th { font-weight: 600; }
.nutrition .sub th { font-weight: 400; padding-left: 28px; color: var(--muted); }
.split { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.split li { display: grid; grid-template-columns: 9rem 1fr 3.5rem; align-items: center; gap: 12px; }
.split svg { width: 100%; height: 10px; }
.split .track { fill: var(--border); }
.split-protein .fill { fill: var(--protein); }
.split-carbs .fill { fill: var(--carbs); }
.split-fat .fill { fill: var(--fat); }
.split-alcohol .fill { fill: var(--alcohol); }
.split strong { text-align: right; font-variant-numeric: tabular-nums; }
.site-footer { margin-top: 48px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; }
.languages [aria-current] { font-weight: 700; color: var(--text); }
@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .shots img { scroll-snap-align: start; }
  .split li { grid-template-columns: 6.5rem 1fr 3rem; }
  th, td { padding: 8px 10px; }
}
