/* Gedeelde basis voor alle wesselsmit.com-sites: fonts, kleuren, reset, navigatie en footer.
   Elke site laadt dit bestand vanaf https://wesselsmit.com/kit/kit.css, dus een wijziging hier
   geldt na een deploy van de portfolio meteen overal. Site-specifieke stijl hoort in de site zelf. */

/* ---------- Fonts (zelf gehost; Archivo is vastgezet op font-stretch 125%) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 125%;
  font-display: swap;
  src: url("fonts/archivo-expanded-latin.woff2") format("woff2");
  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-weight: 100 900;
  font-stretch: 125%;
  font-display: swap;
  src: url("fonts/archivo-expanded-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@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"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400-italic-latin.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400-italic-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-500-latin.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-500-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-mono-600-latin.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-mono-600-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plex-mono-700-latin.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plex-mono-700-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Kleuren en maten ---------- */
:root {
  --bg: #0b0c0e;
  --panel: #111316;
  --panel-2: #16191d;
  --line: #23272d;
  --line-2: #33383f;
  --text: #e7e9ec;
  --muted: #7c838d;
  --dim: #4a5059;
  --steel: #aab2bd;
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --ok: #3ddc97;
  --warn: #ffb020;
  --bad: #ff4d5e;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--mono);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body > main { flex: 1 0 auto; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Knoppen met een schuine hoek (clip-path) knippen een rand buiten de knop weg: daarom binnenin */
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }

[hidden] { display: none !important; }

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

/* ---------- Navigatie: W-merk met klikbaar kruimelpad, rechts taal en terug ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  font-family: var(--mono);
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wrap);
  height: 52px;
  margin: 0 auto;
  padding: 0 1rem;
}

.crumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 900;
  font-stretch: 125%;
  color: var(--bg);
  background: var(--accent);
}

.crumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
}

.crumb::before { content: "/"; margin: 0 0.7ch; color: var(--dim); }
a.crumb { flex: none; transition: color 0.15s; }
a.crumb:hover { color: var(--accent); }
.crumb[aria-current="page"] { color: var(--steel); }

.nav-right { display: flex; flex: none; }

.nav-right > a, .nav-right > button {
  display: flex;
  align-items: center;
  gap: 0.6ch;
  padding: 0 1.1rem;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.nav-right > a:hover, .nav-right > button:hover { color: var(--text); background: var(--panel); }
.nav-right .num { color: var(--dim); }
.nav-right > a:hover .num { color: var(--accent); }

.nav-right > .lang-toggle { color: var(--dim); }
.nav-right > .lang-toggle:hover { color: var(--muted); }
.lang-toggle span.on { color: var(--accent); }

@media (max-width: 640px) {
  .brand-name { display: none; }
  /* Op smalle schermen alleen de laatste twee stappen van het kruimelpad */
  .crumb:not(:nth-last-child(-n + 2)) { display: none; }
  .nav-right > a, .nav-right > button { padding: 0 0.7rem; font-size: 0.6875rem; }
  .nav-right .num { display: none; }
  .nav-right > .back { display: none; }
}

/* ---------- Footer ---------- */
.site-foot {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.foot-inner .acc { color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.foot-links a:hover { color: var(--accent); }

/* ---------- 404-pagina (zelfde opbouw op elke site) ---------- */
.lost { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 5rem 1rem 6rem; }

.lost .code {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lost .code::before { content: "■ "; color: var(--accent); }

.lost h1 {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(4.5rem, 24vw, 11rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

.lost h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.lost p { margin-top: 1.75rem; max-width: 48ch; color: var(--muted); }
.lost ul { display: flex; flex-wrap: wrap; margin-top: 1.5rem; list-style: none; }

.lost li a {
  display: block;
  margin: 0 -1px -1px 0;
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}

.lost li a:hover { position: relative; color: var(--accent); border-color: var(--accent); }

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