/* alexandermooij.com — sober, typografisch, één kolom */

/* Thema: volgt het systeem, tenzij de bezoeker kiest (data-theme op <html>) */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #1b1b1b;
  --muted: #5e5e5e;
  --line: #e6e6e6;
  --focus: #1b1b1b;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --ink: #ececec;
  --muted: #a0a0a0;
  --line: #2d2d2d;
  --focus: #ececec;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141414;
    --ink: #ececec;
    --muted: #a0a0a0;
    --line: #2d2d2d;
    --focus: #ececec;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(5vw, 20px, env(safe-area-inset-left, 0px));
  padding-right: max(5vw, 20px, env(safe-area-inset-right, 0px));
}

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

/* instellingen: taal en thema */
.balk { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding-top: 20px; font-size: 14px; }
.taal { display: flex; align-items: center; gap: 6px; }
.taal a { color: var(--muted); text-decoration: none; padding: 4px 2px; }
.taal a:hover { color: var(--ink); text-decoration: underline; }
.taal [aria-current] { color: var(--ink); font-weight: 600; padding: 4px 2px; }
.taal .streep { color: var(--line); }
.thema { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; }
.thema:hover { border-color: var(--muted); }
.thema svg { width: 16px; height: 16px; }
.thema[hidden] { display: none; }
.thema .zon { display: none; }
:root[data-theme="dark"] .thema .zon { display: block; }
:root[data-theme="dark"] .thema .maan { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thema .zon { display: block; }
  :root:not([data-theme="light"]) .thema .maan { display: none; }
}

/* kop */
.kop { padding: clamp(28px, 6vw, 64px) 0 36px; }
.portret { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }
h1 { font-size: clamp(26px, 4vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.rol { color: var(--muted); margin: 8px 0 0; max-width: 56ch; }
.kop nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 24px; font-size: 15px; }

/* secties */
section { border-top: 1px solid var(--line); padding: 36px 0 40px; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 18px; }
h3 { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.4; }
p { margin: 0 0 14px; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
.details { color: var(--muted); font-size: 15px; }

/* feitenlijst */
.feiten { margin: 26px 0 0; font-size: 15px; }
.feiten div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.feiten dt { color: var(--muted); }
.feiten dd { margin: 0; }

/* projecten */
.project { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 4px; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.adres { color: var(--muted); font-size: 15px; margin: 2px 0 10px; }
.project .details { margin-top: 10px; }
.beeld { display: block; align-self: start; margin-top: 4px; }
.beeld img { width: 100%; border: 1px solid var(--line); border-radius: 4px; }

/* lijst in ontwikkeling */
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst li { padding: 14px 0; border-top: 1px solid var(--line); }
.lijst li:first-child { border-top: 0; padding-top: 0; }
.lijst p { margin: 4px 0 0; }

/* voet */
.voet { border-top: 1px solid var(--line); padding: 24px 0 48px; color: var(--muted); font-size: 14px; }

/* losse pagina's (sjabloon, 404) */
.terug { font-size: 15px; }
.status { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; margin-left: 8px; vertical-align: 2px; }

@media (max-width: 640px) {
  .feiten div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .beeld { max-width: 360px; }
}
