/* Zonnewaarde — ontwerptokens
   Richting: statistiekbureau, niet webshop. Koel papier, nachtblauwe inkt,
   amber uitsluitend voor zon, teal uitsluitend voor negatieve prijzen. */

:root {
  --paper: #F7F8F4;
  --card: #FFFFFF;
  --ink: #17233B;
  --ink-soft: #55617A;
  --sun: #DE9B00;
  --neg: #0E8A6D;
  --gridline: #E3E6DD;
  --rule: #C7CCBF;
  --maxw: 46rem;
}

* { box-sizing: border-box; }

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

h1, h2, h3, .brand {
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

main, header.site > *, footer.site > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

/* kop en navigatie */
header.site { border-bottom: 3px double var(--rule); padding: 1.6rem 0 0; }
.brand { font-size: 1.9rem; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-block; }
.brand-punt { color: var(--sun); }
.tagline { color: var(--ink-soft); margin: .35rem auto 1rem; font-size: .95rem; max-width: var(--maxw); }
header.site nav { display: flex; flex-wrap: wrap; gap: 1.4rem; padding-bottom: .8rem; font-size: .92rem; }
header.site nav a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
header.site nav a:hover, header.site nav a:focus-visible { border-bottom-color: var(--sun); }

main { padding-top: 2.2rem; padding-bottom: 3rem; }
h1 { font-size: 2rem; margin: 0 0 .3rem; }
.subtitel { color: var(--ink-soft); margin-top: 0; }
h2 { font-size: 1.35rem; margin-top: 2.4rem; border-bottom: 1px solid var(--rule); padding-bottom: .3rem; }
a { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

/* signatuur: de meetstrook — kerncijfer als instrumentaflezing */
.meetstrook {
  display: flex; flex-wrap: wrap; gap: 0 2.2rem;
  border-top: 3px double var(--rule); border-bottom: 3px double var(--rule);
  padding: 1.1rem 0; margin: 1.6rem 0;
}
.meetwaarde { min-width: 9rem; }
.meetwaarde .cijfer {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 2.6rem; font-weight: 600; line-height: 1.1; display: block;
}
.meetwaarde .cijfer.zon { color: var(--sun); }
.meetwaarde .cijfer.negatief { color: var(--neg); }
.meetwaarde .label { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

/* grafieken */
figure { margin: 1.4rem 0; }
figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; }
svg.chart { width: 100%; height: auto; display: block; background: var(--card); border: 1px solid var(--gridline); border-radius: 4px; }
svg.chart .grid { stroke: var(--gridline); stroke-width: 1; }
svg.chart .zero { stroke: var(--rule); stroke-width: 1.4; }
svg.chart .line { stroke: var(--ink); stroke-width: 2; }
svg.chart .tick { font: 11px ui-monospace, Consolas, monospace; fill: var(--ink-soft); }

/* tabellen */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
th, td { text-align: right; padding: .45rem .6rem; border-bottom: 1px solid var(--gridline); }
th:first-child, td:first-child { text-align: left; }
thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
tbody tr:hover { background: var(--card); }
td.neg { color: var(--neg); font-weight: 600; }

/* archieflijsten */
ul.archief { list-style: none; padding: 0; }
ul.archief li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--gridline); padding: .5rem 0; font-variant-numeric: tabular-nums; }

footer.site { border-top: 3px double var(--rule); margin-top: 2rem; padding: 1.2rem 0 2rem; color: var(--ink-soft); font-size: .85rem; }

.notitie { background: var(--card); border-left: 3px solid var(--sun); padding: .8rem 1rem; font-size: .92rem; }

@media (max-width: 540px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .meetwaarde .cijfer { font-size: 2.1rem; }
  .meetstrook { gap: .8rem 1.6rem; }
}
@media (prefers-reduced-motion: no-preference) {
  header.site nav a { transition: border-color .15s ease; }
}
