:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1c2027;
  --muted: #5b6270;
  --rule: #d8dbe0;
  --accent: #2b5d6b;
  --accent-soft: #e3edef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --surface: #1a1e24;
    --text: #e4e6ea;
    --muted: #9aa1ad;
    --rule: #2a2f38;
    --accent: #6fb3c4;
    --accent-soft: #1e2b2e;
  }
}

:root[data-theme="dark"] {
  --bg: #14171c;
  --surface: #1a1e24;
  --text: #e4e6ea;
  --muted: #9aa1ad;
  --rule: #2a2f38;
  --accent: #6fb3c4;
  --accent-soft: #1e2b2e;
}

:root[data-theme="light"] {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1c2027;
  --muted: #5b6270;
  --rule: #d8dbe0;
  --accent: #2b5d6b;
  --accent-soft: #e3edef;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 16px max(20px, calc((100vw - 700px) / 2));
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.topbar .brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.topbar a.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.topbar a.nav-link:hover,
.topbar a.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 20px 96px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 8px;
}

.updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 40px;
}

.draft-notice {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 44px;
}

.draft-notice strong {
  color: var(--accent);
}

article section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}

article section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0 0 14px;
  text-wrap: balance;
}

p {
  margin: 0 0 14px;
  max-width: 65ch;
}

ul {
  margin: 0 0 14px;
  padding-left: 1.3em;
  max-width: 65ch;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--accent);
}

strong {
  color: var(--text);
}

footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 60px;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
}
