:root {
  color-scheme: light dark;
  --background: #f7f3ea;
  --surface: #fffdf8;
  --text: #24231f;
  --muted: #666257;
  --accent: #8f3429;
  --border: #ded5c5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #181714;
    --surface: #22201c;
    --text: #f4efe5;
    --muted: #beb6a8;
    --accent: #ef9a8d;
    --border: #423e36;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
header, main, footer { width: min(880px, calc(100% - 40px)); margin-inline: auto; }
header { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 18px; border-bottom: 1px solid var(--border); }
.brand { color: var(--text); font-weight: 750; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 550; }
nav { display: flex; flex-wrap: wrap; gap: 16px; }
main { margin-top: 28px; margin-bottom: 56px; padding: 30px clamp(22px, 5vw, 54px); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
h1 { margin-top: 0; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.16; }
h2 { margin-top: 2.2rem; font-size: 1.35rem; line-height: 1.35; }
a { color: var(--accent); text-underline-offset: 3px; }
li + li { margin-top: .45rem; }
footer { padding: 0 0 40px; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { header { align-items: flex-start; flex-direction: column; } main { padding: 24px 20px; } }
