/* peil.nu - the PEIL portal, web estate v2 (VW-666 P3 slice S1, 2026-08-18).
   The law this file may not leave: sites/DESIGN-RULES-WEB.md v2. Colour
   literals live in :root and nowhere else; mono is set ONLY on the register
   selectors (law section 2); red is spent on the dot of the wordmark, ONE
   primary action and one red reading per page. Seeded from the P1 mockup
   stylesheet initiatives/platform/2026-08-18-web-estate-v2-mockups/v2.css. */

/* IBM Plex, self-hosted latin subsets (OFL, assets/fonts). Three registers,
   one family: serif = headings and the one hero sentence, sans = every
   sentence, mono = a value, a unit, a date and the fixed lines. The fallback
   stack is part of the design: the page reads fully before a font arrives. */
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-serif-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-serif-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/plex-sans-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-mono-400-latin.woff2") format("woff2");
}

:root {
  --navy: #0d2b45; --navy-soft: #3a5570; --red: #e1251b;
  --paper: #f5f3ef; --paper-deep: #edeae2; --white: #ffffff;
  --line: rgba(13, 43, 69, .18); --line-strong: rgba(13, 43, 69, .4);
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --size-ui: .9375rem; --size-body: 1.0625rem; --size-lead: 1.375rem;
  --size-h2: 1.875rem; --size-h1: clamp(2.5rem, 5.5vw, 3.75rem);
  --measure: 68ch; --section: 4.5rem; --radius: 10px;
  --label: 9rem; --label-wide: 13rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 var(--size-body)/1.55 var(--sans); }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--white); }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; padding: .7rem 1rem; border: 1px solid var(--line-strong); background: var(--white); font: 600 var(--size-ui) var(--sans); }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1080px, calc(100% - 2.5rem)); margin: 0 auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: var(--size-h1); line-height: 1.05; max-width: 16ch; }
h2 { font-size: var(--size-h2); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
.lead { max-width: 36rem; margin-top: 1.2rem; color: var(--navy-soft); font-size: var(--size-lead); line-height: 1.45; }
.kicker { margin: 0 0 .5rem; color: var(--navy-soft); font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.textlink { font: 600 var(--size-ui) var(--sans); }
.button { display: inline-block; padding: .85rem 1.5rem; border-radius: 8px; background: var(--red); color: var(--white); font: 600 var(--size-ui) var(--sans); text-decoration: none; }
.button:hover { background: var(--navy); }
section { padding: var(--section) 0 0; }
code { font-family: var(--mono); font-size: .92em; }

/* --- registers: mono ONLY on these selectors (law section 2) ---------- */
.bronregel, .standregel, .colofon, .impressum, .val, .waarde, .stand, .crumb, .eenheid, .code, .brand-url { font-family: var(--mono); }
.bronregel, .standregel, .colofon, .impressum, .crumb { font-size: var(--size-ui); line-height: 1.5; color: var(--navy-soft); font-weight: 400; }
.stand { font-size: var(--size-ui); color: var(--navy-soft); }
.row .stand { white-space: nowrap; }
.chip { display: inline-block; padding: .05rem .45rem; border: 1px solid var(--line-strong); border-radius: 4px; font: 500 .78rem var(--sans); color: var(--navy); vertical-align: middle; }
.betekent { color: var(--navy); }

/* --- header ------------------------------------------------------------ */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 700 1.35rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; }
.brand .dot { color: var(--red); }
.brand .je { font-weight: 400; }
.brand svg { display: block; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.site-nav a { font: 600 var(--size-ui) var(--sans); text-decoration: none; }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
.lang { display: inline-flex; gap: .15rem; margin-left: .6rem; padding-left: .9rem; border-left: 1px solid var(--line-strong); }
.lang a { padding: .15rem .35rem; font: 600 .78rem var(--sans); letter-spacing: .06em; text-decoration: none; color: var(--navy-soft); }
.lang a[aria-current] { color: var(--navy); text-decoration: underline; text-underline-offset: .3em; }

/* --- hero -------------------------------------------------------------- */
.hero { padding: 3.2rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.8rem; }
.hero .standregel { margin-top: 1rem; }

/* --- peilstand tiles (component, law section 3) ------------------------ */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 2.4rem; background: var(--line); border: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 10rem; padding: 1rem 1.1rem .9rem; background: var(--white); color: var(--navy); text-decoration: none; }
.tile .lbl { font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-soft); }
.tile .val { display: block; margin: .5rem 0 .3rem; font-size: 1.9rem; line-height: 1.05; }
.tile .val .eenheid { font-size: 1rem; color: var(--navy-soft); }
.tile .betekent { font-size: .93rem; }
.tile .bronregel { margin-top: .6rem; font-size: .76rem; }

/* --- productledger (law section 3: dense ruled rows, no cards) --------- */
.rows { margin-top: 1.2rem; border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: var(--label-wide) 1fr auto auto; gap: 1.4rem; align-items: baseline; padding: 1.1rem .4rem; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; }
a.row:hover { background: var(--white); }
.row .wat { color: var(--navy-soft); }
.row .pijl { align-self: center; font: 600 1.1rem var(--sans); }
.row h3 { font-size: 1.15rem; }
.dekking { margin-top: .8rem; max-width: 60rem; color: var(--navy-soft); font-size: var(--size-ui); }
.dekking .val { color: var(--navy); }

/* --- label grids (formal pages, law section 3: fixed label column) ----- */
.feiten { margin-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.feit { display: grid; grid-template-columns: var(--label) 11rem 1fr; gap: .8rem 1.2rem; align-items: baseline; padding: .8rem .3rem; border-bottom: 1px solid var(--line); }
.feit .lbl { color: var(--navy-soft); }
.feit .waarde { color: var(--navy); }
.feit .bronregel { margin-top: .3rem; }
.feiten.breed .feit { grid-template-columns: var(--label-wide) 1fr; }
.feiten.breed .waarde { font-family: var(--serif); }

/* --- the one navy band per page (law section 1) ------------------------ */
.band { margin-top: 2.4rem; padding: 2rem clamp(1.4rem, 4vw, 2.6rem); border-radius: var(--radius); background: var(--navy); color: var(--white); }
.band h2, .band h3 { color: var(--white); }
.band .cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.2rem; }
.band .term { display: block; margin-bottom: .25rem; font: 400 .9rem var(--mono); color: var(--white); }
.band p { color: var(--white); opacity: .85; font-size: var(--size-ui); }

/* --- folds (law section 3: native details, no script) ------------------ */
.folds { margin-top: 1rem; }
details { border-top: 1px solid var(--line); padding: .7rem .2rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font: 600 1rem var(--sans); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.1rem var(--mono); color: var(--navy-soft); }
details[open] summary::after { content: "\2212"; }
details > *:not(summary) { margin-top: .6rem; max-width: 64ch; }
details p + p { margin-top: .5rem; }

/* --- ruled lists (verantwoording, formal pages) ------------------------ */
.lijst { margin: 1rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); max-width: 40rem; }
.lijst.breed { max-width: var(--measure); }
.lijst li { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
.lijst li::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .8rem; background: var(--navy); }

/* --- footer (sign-off · nav · impressum · colofon-regel) --------------- */
footer.site { margin-top: var(--section); padding: 2rem 0 3rem; border-top: 1px solid var(--line-strong); }
footer.site .cols { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
footer.site .merk { font: 600 1.05rem var(--serif); }
footer.site .merk .dot { color: var(--red); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
footer.site nav a { font: 600 var(--size-ui) var(--sans); text-decoration: none; }
footer.site .impressum { margin-top: 1.4rem; }
footer.site .colofon { margin-top: .45rem; }

/* --- responsive: nothing hides, rows stack ----------------------------- */
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: .25rem; }
  .row .pijl { display: none; }
  .row .stand { white-space: normal; }
  .feit, .feiten.breed .feit { grid-template-columns: 1fr; gap: .2rem; }
  .band .cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* --- utilities (no inline styles: the served CSP drops them) ----------- */
.mt-06 { margin-top: .6rem; } .mt-08 { margin-top: .8rem; } .mt-1 { margin-top: 1rem; } .mt-14 { margin-top: 1.4rem; }
.measure { max-width: var(--measure); }
.note { font-size: var(--size-ui); color: var(--navy-soft); }
