/* Gedeelde basis: kleuren, typografie en kleine componenten. */
/* Kleuren uit het moodboard van De Hoeksteen:
   terracotta, vergrijsd blauw, zacht geel, olijfgroen, warm beige, zacht zwart. */
:root {
  --terracotta: #b5432a;
  --blue: #3f5b75;
  --yellow: #e2a83b;
  --olive: #5a6339;
  --beige: #e8dccb;
  --soft-black: #1f1d1b;

  --bg: #f4eee5;
  --surface: #fbf8f3;
  --surface-2: #ece3d5;
  --ink: var(--soft-black);
  --ink-2: #5a534a;
  --ink-3: #857c70;
  --line: #e2d8c8;
  --line-strong: #cbbda8;
  --accent: var(--terracotta);
  --accent-ink: #ffffff;
  --accent-soft: #f4e1d9;
  --blue-soft: #dfe6ec;
  --good: var(--olive);
  --good-soft: #e6e7d6;
  --warn: #8f630f;
  --warn-soft: #f6e8c9;
  --bad: #a3322a;
  --bad-soft: #f5ddd8;
  /* Hoeksteen: bewust overal rechte hoeken. */
  --radius: 0;
  --radius-sm: 0;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.04), 0 6px 24px rgba(28, 27, 25, 0.06);
  /* Archivo: strak, stevig en vierkant van vorm. Eén familie voor tekst en koppen. */
  --font: 'Archivo', 'Arial Narrow', Arial, system-ui, sans-serif;
  --font-display: 'Archivo', 'Arial Black', Arial, sans-serif;
  color-scheme: light;
}

/* Donker thema: alleen als de bezoeker er zelf voor kiest (js/theme.js), nooit automatisch.
   Kleuren afgeleid van het avondbeeld: nachtblauw met warm licht. */
:root[data-theme='dark'] {
  --terracotta: #e0705a;
  --blue: #8fb0cc;
  --yellow: #f0b64a;
  --olive: #a9b37e;

  --bg: #141e2b;
  --surface: #1b2838;
  --surface-2: #24344a;
  --ink: #f4edde;
  --ink-2: #c8c1b3;
  --ink-3: #8f99a6;
  --line: #2c3d55;
  --line-strong: #3f5573;
  --accent-ink: #1f1d1b;
  --accent-soft: #3a2a2c;
  --blue-soft: #22364d;
  --good-soft: #2a3326;
  --warn: #f0b64a;
  --warn-soft: #3b3018;
  --bad: #ec8a7f;
  --bad-soft: #40242a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
body, .card, .option, .topbar, .a-header { transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease; }
@media (prefers-reduced-motion: reduce) { body, .card, .option, .topbar, .a-header { transition: none; } }

/* Themaschakelaar: vierkantje dat half gevuld is. */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 34px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 500;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle i {
  width: 14px; height: 14px; border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

* { box-sizing: border-box; }
/* Geen rondingen, nergens: knoppen, pillen, balken en keuzerondjes zijn allemaal hoekig. */
*, *::before, *::after { border-radius: 0 !important; }

/* Merkteken: een hoek (L-vorm), afgeleid van "Hoeksteen". */
.hoek-mark {
  display: inline-block; flex: none; width: 14px; height: 14px;
  border-left: 3px solid var(--terracotta); border-bottom: 3px solid var(--terracotta);
  vertical-align: -1px; margin-right: 8px;
}
/* Woordmerk: extra dik, breed en in hoofdletters. */
.wordmark { font-family: var(--font-display); font-weight: 850; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.03em; }

/* Mondriaan-lijn (rood, blauw, geel op zwart), uit het moodboard. */
.mondrian-strip {
  height: 5px;
  background: linear-gradient(90deg,
    var(--terracotta) 0 58%, var(--soft-black) 58% calc(58% + 3px),
    var(--blue) calc(58% + 3px) 84%, var(--soft-black) 84% calc(84% + 3px),
    var(--yellow) calc(84% + 3px) 100%);
}
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; font-weight: 750; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); text-underline-offset: 2px; }
a.btn { text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-weight: 650; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-valid { background: var(--good-soft); color: var(--good); }
.pill-suspect { background: var(--warn-soft); color: var(--warn); }
.pill-excluded { background: var(--bad-soft); color: var(--bad); }

.muted { color: var(--ink-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
