:root {
  color-scheme: light dark;
  --bg: #f7f3e9;
  --ink: #071a33;
  --muted: #536273;
  --accent: #008f83;
  --accent-strong: #006d64;
  --card: #fffdf8;
  --line: #d9cfbd;
  --focus: #c36f34;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

header, main, footer {
  width: min(100% - 32px, 820px);
  margin-inline: auto;
}

header { padding: 40px 0 20px; }
main { padding-bottom: 56px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); }

nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
nav .brand { margin-right: auto; color: var(--ink); font-weight: 850; text-decoration: none; }
nav a[aria-current="page"] { font-weight: 800; text-decoration-thickness: 3px; }

h1 { margin: 48px 0 12px; font-size: clamp(2.4rem, 8vw, 4.9rem); line-height: 1.02; letter-spacing: -0.045em; }
h2 { margin: 2.1em 0 .45em; font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.2; }
p, li { max-width: 72ch; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .5em; }
a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }

.eyebrow { margin: 42px 0 0; color: var(--accent-strong); font-size: .85rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 1.15rem; }
.card { margin: 26px 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.note { padding-left: 16px; border-left: 4px solid var(--accent); }
.small { color: var(--muted); font-size: .92rem; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07131f;
    --ink: #f7f1e5;
    --muted: #b7c2ca;
    --accent: #50d5c7;
    --accent-strong: #79e4d9;
    --card: #0e2234;
    --line: #30475a;
    --focus: #f3a56f;
  }
}

