/*
  Kern van Rafs eigen site: kleuren, letter, knoppen. Alles in de site bouwt hierop (basis.css, schets.css).
  Rafs kader is rustig (papier, inkt, groen). Geel betekent altijd "nu" of "jouw keuze". De kleur zit in de schets.
*/
:root {
  --papier: #F4F6F1;          /* achtergrond: koel lichtgroen wit, zoals de offertes */
  --wit: #FFFFFF;             /* velden en keuzeknopjes op papier */
  --inkt: #1C1E1B;            /* tekst */
  --zacht: #50544D;           /* tweede tekst, 7:1 op papier */
  --lijn: #D9DBD4;
  --groen: #24432F;           /* Rafs eigen kleur: donkere vlakken */
  --groen-2: #1B3324;
  --nu: #FFC93C;              /* alleen wat "nu" is: status, gekozen knopje, hoofdknop */
  --nu-donker: #F0B41E;
  --maas: #3E7C8C;            /* de lijn van de Maas en de streep onder links (nooit als tekstkleur op papier) */
  --maas-licht: #9CC7D2;      /* dezelfde lijn op groen */
  --focus: #1F5F70;
  --letter: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rand: 20px;               /* zijmarge */
  --breed: 1160px;
  --hoek: 10px;
  --ritme: clamp(56px, 4vw + 40px, 112px);   /* ruimte tussen blokken */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--papier); color: var(--inkt);
  font-family: var(--letter); font-size: 1.0625rem; line-height: 1.55; font-weight: 400;
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } :root { --rand: 32px; } }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.2; }
p { text-wrap: pretty; max-width: 62ch; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
strong, b { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--maas); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--rand), var(--breed)); margin-inline: auto; }
main > section { padding-block: var(--ritme); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sla-over { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--inkt); color: var(--papier); border-radius: var(--hoek); font-weight: 700; }
.sla-over:focus { top: 12px; }
.geen-breuk { white-space: nowrap; }

/* Knoppen: stevig, minstens 48 px hoog. Gevuld geel = de hoofdknop van dit scherm. */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border: 2px solid var(--inkt); border-radius: var(--hoek);
  background: transparent; color: var(--inkt); font-weight: 700; font-size: 1.0625rem; line-height: 1.15;
  text-align: center; text-decoration: none; touch-action: manipulation;
  transition: background-color .15s ease, transform .1s ease;
}
.knop:hover { background: rgba(28, 30, 27, .07); }
.knop:active { transform: translateY(1px); }
.knop-vol { background: var(--nu); }
.knop-vol:hover { background: var(--nu-donker); }
.knop svg { width: 22px; height: 22px; flex: none; }

/* Donkere vlakken in Rafs groen: lichte letters een tikje zwaarder */
.donker {
  --inkt-op: #F4F6F1; --zacht-op: #C9D3C8; --lijn-op: rgba(244, 246, 241, .22);
  background: var(--groen); color: var(--inkt-op); font-weight: 430;
}
.donker h2, .donker h3 { font-weight: 760; }
.donker a { text-decoration-color: var(--maas-licht); }
.donker :focus-visible { outline-color: var(--nu); }
.donker .knop { border-color: var(--inkt-op); color: var(--inkt-op); }
.donker .knop:hover { background: rgba(244, 246, 241, .12); }
.donker .knop-vol { border-color: var(--nu); color: var(--inkt); }
.donker .knop-vol:hover { background: var(--nu-donker); border-color: var(--nu-donker); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
