/* =========================================================================
   Eric Gobeyn, herontwerp · shell
   Reset, zelfgehoste fonts en cross-versie utilities. Niets hier schildert de
   compositie zelf: die woont in v1.css, gescopet onder #version-v1 zodat geen
   token kan lekken zodra er een tweede versie bij komt.
   ========================================================================= */

/* Zelfgehost, nul verzoeken naar derden (bewezen patroon 9). De twee faces
   boven de vouw (Oswald 700 voor de kop, Inter 400 voor de lead) worden in de
   head gepreload. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/oswald-700.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../font/oswald-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../font/inter-600.woff2") format("woff2");
}

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

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

body {
  margin: 0;
  background: #ffffff;
  color: #101211;
  font-family: "Inter", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video { display: block; max-width: 100%; }

/* De width/height attributen staan er voor de beeldverhouding en dus voor een
   stabiele lay-out. Zonder deze regel blijft het height-attribuut de baas
   zodra CSS alleen de breedte zet, en rekt het beeld uit. */
img { height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

/* Eén focusring voor het hele document, en bewust een dubbele: een enkele
   currentColor-ring verdwijnt juist op een gevulde knop, want daar is de
   ringkleur de tekstkleur van die knop (LESSONS regel 19). Donkere kern plus
   lichte halo overleeft geel, zwart en wit. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #101211;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  background: #dbd10d;
  color: #101211;
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.22s ease;
}

.skip-link:focus-visible { transform: translateY(0); }

.version-root[hidden] { display: none !important; }

/* ---------- versiewisselaar ---------------------------------------------
   Gereedschap van het voorstel, geen onderdeel van het ontwerp dat de klant
   krijgt. Staat rechtsonder in plaats van gecentreerd, zodat hij op 320 px
   niet over de primaire actie valt.
   ----------------------------------------------------------------------- */

.vswitch {
  position: fixed;
  z-index: 900;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(16, 18, 17, 0.92);
  border: 1px solid rgba(242, 243, 239, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.vswitch__label {
  padding: 0 8px 0 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 243, 239, 0.62);
}

.vswitch__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 9px 16px;
  background: transparent;
  color: #f2f3ef;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.vswitch__btn:hover { background: rgba(242, 243, 239, 0.14); }

.vswitch__btn[aria-pressed="true"] { background: #dbd10d; color: #101211; }

.vswitch__btn:focus-visible {
  outline: 3px solid #dbd10d;
  outline-offset: 2px;
  box-shadow: none;
}

@media (max-width: 560px) {
  .vswitch { right: 10px; bottom: 10px; padding: 4px; }
  .vswitch__label { display: none; }
  .vswitch__btn { padding: 8px 13px; font-size: 11px; }
}

/* Bewegingsveiligheid. De reveals in v1.css zitten achter .js, en die klasse
   wordt alleen gezet als beweging gewenst is, zodat er bij motion-uit nooit
   een opacity:0 blijft hangen (LESSONS regel 8). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- hamburger op smal scherm --------------------------------------
   Het menu zit in een <details class="burger-nav"> die op `open` staat; het
   script klapt hem dicht onder 901px. Zo werkt hij ook zonder JavaScript en
   blijft hij op desktop met het toetsenbord bereikbaar.
   -------------------------------------------------------------------------- */

.burger-nav { position: relative; }

.burger-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.burger-toggle::-webkit-details-marker { display: none; }
.burger-toggle span { display: inline-flex; flex-direction: column; gap: 3px; }
.burger-toggle span i { display: block; width: 16px; height: 2px; background: currentColor; }

@media (max-width: 900px) {
  .burger-toggle { display: inline-flex; }
  .burger-nav { margin-left: auto; }
  .burger-nav:not([open]) > nav { display: none !important; }

  .burger-nav[open] > nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 60;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    min-width: 226px;
    padding: 6px 0;
    background: #101211;
    border: 1px solid rgba(242,243,239,0.22);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  }

  .burger-nav[open] > nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 17px;
    white-space: nowrap;
  }
}
