/* PCklaar — gedeelde stijl voor alle pagina's */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #14213d;
  --muted: #535d75;
  --line: #d4dae4;
  --signal: #f2b705;
  --on-signal: #14213d;
  --good: #1d7a47;
  --mid: #a85c00;
  --bad: #b1302a;
  --focus: #2f6feb;
  --radius: 6px;
  --measure: 42rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1424;
    --surface: #151d31;
    --ink: #e8ecf4;
    --muted: #9aa4b9;
    --line: #2a3550;
    --signal: #f2b705;
    --on-signal: #14213d;
    --good: #4cc08a;
    --mid: #f0a04b;
    --bad: #f07467;
    --focus: #7aa7ff;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }

/* Kop en navigatie */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.5rem; flex-wrap: wrap; padding-top: 0.4rem; padding-bottom: 0.4rem;
}
.wordmark {
  font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -0.01em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.wordmark .pip {
  width: 0.9rem; height: 0.9rem; border-radius: 3px; background: var(--signal);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 0.3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; }

/* Typografie */
main.wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 {
  font-size: clamp(2.1rem, 7.5vw, 3.4rem);
  font-weight: 800; font-stretch: 125%; letter-spacing: -0.015em;
  margin-bottom: 1rem; text-wrap: balance;
}
h2 { font-size: 1.45rem; font-weight: 750; font-stretch: 112%; margin: 2.75rem 0 0.75rem; text-wrap: balance; }
h3 { font-size: 1.1rem; font-weight: 700; font-stretch: 106%; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink); max-width: 38rem; }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.small { font-size: 0.9rem; color: var(--muted); }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 700; }

/* Opslagmeter: het herkenbare element van de site */
.meter-block { margin: 2rem 0 0.5rem; }
.meter-caption { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; margin-bottom: 0.45rem; }
.meter-caption strong { font-stretch: 112%; }
.meter {
  display: flex; height: 3rem; border: 2px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.meter .seg { display: flex; align-items: center; padding: 0 0.7rem; font-weight: 700; font-stretch: 112%; white-space: nowrap; overflow: hidden; }
.meter .seg-game { background: var(--signal); color: var(--on-signal); border-right: 2px solid var(--ink); }
.meter .seg-free { color: var(--muted); font-weight: 500; justify-content: flex-end; flex: 1; }
.meter-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.45rem; }
@media (max-width: 30rem) {
  .meter .seg-long { display: none; }
  .meter .seg { padding: 0 0.5rem; }
}

/* Twee routes */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2.5rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.route { padding: 1.4rem 1.25rem 1.5rem 0; }
.route + .route { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.route h2 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.route p { color: var(--muted); }
@media (max-width: 34rem) {
  .routes { grid-template-columns: 1fr; }
  .route { padding-right: 0; }
  .route + .route { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.55rem 1.1rem; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-stretch: 106%; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.shop-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0 0; }
.shop-row .btn { min-height: 2.5rem; padding: 0.4rem 0.9rem; font-size: 0.95rem; }

/* Aanmelden voor de mail */
.signup {
  margin: 3rem 0 0; padding: 1.5rem 1.4rem; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius);
}
.signup h2 { margin-top: 0; }
.signup p { color: var(--muted); }
.signup .btn { margin-top: 0.25rem; }

/* Lijsten met producten */
.picks { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--line); }
.picks li { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); margin: 0; }
.picks h3 { margin: 0 0 0.25rem; }
.picks p { margin: 0 0 0.35rem; color: var(--muted); }

/* Tabellen */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; font-stretch: 106%; border-bottom: 2px solid var(--ink); }
td.num, th.num { text-align: right; padding-right: 0; }

/* Meldingen */
.note {
  border-left: 4px solid var(--signal); background: var(--surface);
  padding: 0.85rem 1rem; margin: 1.25rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.note p:last-child { margin-bottom: 0; }

/* Checker */
.checker { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-stretch: 106%; margin-bottom: 0.3rem; }
.field .hint { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.35rem; }
select {
  width: 100%; min-height: 2.75rem; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--muted); border-radius: var(--radius); padding: 0.45rem 0.6rem;
}
.result { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.result[hidden] { display: none; }
.verdict { font-size: 1.5rem; font-weight: 800; font-stretch: 118%; line-height: 1.15; margin: 0 0 0.5rem; }
.verdict.t0 { color: var(--bad); }
.verdict.t1 { color: var(--mid); }
.verdict.t2, .verdict.t3, .verdict.t4 { color: var(--good); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 0.6rem 0 1rem; }
.scale span { height: 0.55rem; background: var(--line); border-radius: 2px; }
.scale span.on { background: var(--signal); }
.parts { list-style: none; padding: 0; margin: 0 0 1rem; }
.parts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.parts li span:last-child { color: var(--muted); text-align: right; }
.parts li.weak span:first-child { font-weight: 700; }
.parts li.weak span:last-child { color: var(--ink); font-weight: 700; }

/* Voettekst */
.site-foot { border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.88rem; }
.site-foot p { margin-bottom: 0.6rem; }
.site-foot nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
