:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --rule: #e5e5e5;
  --accent: #4f46e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --muted: #a0a0a0;
    --rule: #2a2a2a;
    --accent: #818cf8;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

p.effective {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

article p.intro {
  font-size: 1.0625rem;
  color: var(--fg);
  margin: 0 0 1.75rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.005em;
}

p, li { margin: 0 0 0.875rem; }

ul { padding-left: 1.25rem; margin: 0 0 1rem; }

li { margin-bottom: 0.375rem; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-nav {
  background: #406325;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

.site-nav-logo {
  height: 40px;
  width: auto;
}

@media print {
  :root { --bg: #ffffff; --fg: #000000; --muted: #333333; --rule: #cccccc; --accent: #000000; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  main { max-width: none; padding: 0; }
  .site-nav { display: none; }
}
