:root {
  color-scheme: light dark;
  --bg: #faf6f0;
  --paper: #fffdf9;
  --text: #2c2421;
  --muted: #695c55;
  --accent: #a45132;
  --border: #ddcec3;
  --shadow: rgba(58, 39, 29, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --paper: #24201c;
    --text: #f7eee7;
    --muted: #c9bcb3;
    --accent: #e9a080;
    --border: #4b4039;
    --shadow: rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; }

header {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand { margin-right: auto; color: var(--text); font-weight: 750; text-decoration: none; }
nav a:not(.brand) { font-size: 0.9rem; }

main { padding: 56px 0 72px; }

.hero, section {
  margin-bottom: 22px;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 36px var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.2; }
h1 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 3.5rem); }
h2 { margin: 0 0 12px; font-size: 1.2rem; }
p, ul, ol { margin-top: 0; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
li + li { margin-top: 7px; }
.muted { color: var(--muted); }
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

footer { padding: 28px 0 44px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }

@media (max-width: 560px) {
  nav { align-items: flex-start; padding: 16px 0; }
  .brand { width: 100%; }
  main { padding-top: 30px; }
}
