/* NORTHMAST publieke site — kalm, premium, geen externe resources.
   Contrast: tekst ≥ 4,5:1 in beide kleurenschema's; zichtbare focus states. */

:root {
  color-scheme: light dark;
  --bg: #fafaf8;
  --fg: #1c2430;
  --muted: #4c5a6b;
  --accent: #1f3a5f;
  --rule: #d9dde3;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151c;
    --fg: #e8ecf1;
    --muted: #aab6c4;
    --accent: #9fc0e8;
    --rule: #2a3442;
    --card: #171e28;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.site-header,
main,
.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.brand {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}

h1 {
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 1.2rem 0 0.4rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.6rem;
}

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 0;
}

.doc-meta {
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.9rem;
}

.modules {
  margin: 0;
}

.module {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 0.7rem 0;
}

.module dt {
  font-weight: 600;
}

.module dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

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

a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

ul {
  padding-left: 1.3rem;
}

li {
  margin: 0.3rem 0;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }
}
