:root {
  --bg: #fffdfb;
  --surface: #ffffff;
  --text: #1f1b1a;
  --muted: #6b625f;
  --line: #ece4e1;
  --accent: #b3261e;
  --accent-soft: #fbeeec;
  --radius: 10px;
  --max: 1080px;
  --narrow: 740px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161312;
    --surface: #1e1a19;
    --text: #ece6e4;
    --muted: #a69c99;
    --line: #322b29;
    --accent: #ff8a80;
    --accent-soft: #2a1d1b;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: var(--narrow); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none;
}
.brand-mark {
  width: 14px; height: 14px; border-radius: 50% 50% 50% 0;
  background: var(--accent); transform: rotate(-45deg);
}
.site-header nav { display: flex; gap: 18px; overflow-x: auto; padding: 6px 0; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.site-header nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent); }
.eyebrow {
  margin: 0 0 8px; color: var(--accent); font-weight: 600;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
}
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); line-height: 1.25; margin: 0 0 16px; }
.lede { font-size: 1.12rem; color: var(--text); margin: 0 0 12px; }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }

/* Content */
.prose { padding: 32px 16px 48px; }
.prose section { margin-top: 44px; scroll-margin-top: 80px; }
.prose h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.toc-title { font-weight: 700; margin: 0 0 6px; }
.toc ol { margin: 0; }
.toc li { margin-bottom: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
caption { text-align: left; padding: 12px 14px 0; color: var(--muted); font-size: .85rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 600; }

.dish-list { list-style: none; padding: 0; }
.dish-list li {
  padding: 12px 16px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}

.note {
  font-size: .92rem; color: var(--muted);
  border-top: 1px dashed var(--line); padding-top: 12px;
}

details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 0 16px; margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

.photo { margin: 8px 0 20px; }
.photo img {
  display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover;
  border-radius: var(--radius); background: var(--line);
}
.photo figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.photo .credit { display: block; font-size: .78rem; opacity: .85; }
.photo .credit a { color: inherit; }

.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

.related {
  margin-top: 44px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.related ul { margin: 0; }

.site-header nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 0 0 8px; }
.small { font-size: .85rem; }

/* 404 */
.notfound { text-align: center; padding: 96px 16px; }
.notfound h1 { margin-bottom: 12px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 24px; }
  .site-header .wrap { min-height: 52px; }
}
