:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #24211c;
  --muted: #5e584e;
  --border: #e2dccf;
  --accent: #8a5a12;
  --accent-text: #ffffff;
  --accent-soft: #f3e7d1;
  --shadow: 0 1px 2px rgba(36, 33, 28, 0.06), 0 4px 16px rgba(36, 33, 28, 0.06);
  --radius: 12px;
  --heading: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161a;
    --surface: #211f24;
    --text: #ece8e1;
    --muted: #a9a297;
    --border: #36333a;
    --accent: #d9a54e;
    --accent-text: #1b1a1d;
    --accent-soft: #2e2820;
    --shadow: none;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--body);
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--heading); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li + li { margin-top: 0.35rem; }
code { font-size: 0.92em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { font-family: var(--heading); font-size: 1.35rem; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding: 2.5rem 0 3.5rem; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.flavor { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem 1.5rem; align-items: start; margin-top: 2rem; }
.flavor img { width: 96px; height: 96px; border-radius: 16px; background: #1b1d21; }
.flavor h2 { margin: 0 0 0.25rem; }
.flavor p { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
@media (max-width: 34rem) {
  .flavor { grid-template-columns: 1fr; }
}

.button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; text-decoration: none; line-height: 1.2;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button.disabled { color: var(--muted); border-style: dashed; pointer-events: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.grid .card h3 { margin-top: 0; }
.grid .card p:last-child { margin-bottom: 0; }

.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 0.85rem 1rem; border-radius: 0 8px 8px 0; }
.meta { color: var(--muted); font-size: 0.95rem; }

.site-footer { border-top: 1px solid var(--border); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 0.75rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; max-width: 44rem; }
.spaced { margin-top: 1rem; }
