:root {
  --bg: #FAFAFA;
  --ink: #141414;
  --muted: #6B6B6B;
  --accent: #141414;
  --accent-contrast: #FFFFFF;
  --accent-soft: #EFEFEF;
  --line: #E4E4E4;
  --card: #FFFFFF;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0D0D; --ink: #F2F2F2; --muted: #9C9C9C;
    --accent: #F2F2F2; --accent-contrast: #0D0D0D; --accent-soft: #1C1C1C; --line: #2A2A2A; --card: #161616;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0D0D; --ink: #F2F2F2; --muted: #9C9C9C;
  --accent: #F2F2F2; --accent-contrast: #0D0D0D; --accent-soft: #1C1C1C; --line: #2A2A2A; --card: #161616;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 800px; margin: 0 auto; padding: clamp(48px, 9vw, 96px) 24px 56px; }

/* Hero */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; letter-spacing: .01em; color: var(--muted); margin-bottom: 28px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 11vw, 76px); line-height: .98; letter-spacing: -.02em; margin: 0 0 22px; }
h1 .by { font-weight: 300; font-style: italic; }
.lead { font-size: clamp(18px, 2.6vw, 21px); max-width: 60ch; margin: 0 0 14px; }
.intro { color: var(--muted); max-width: 68ch; margin: 0; }

/* Secties */
section { margin-top: 64px; }
.kop { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--accent); margin: 0 0 22px; display: flex; align-items: baseline; gap: 12px; }
.kop::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-4px); }

/* Projecten */
.projects { display: grid; gap: 14px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; text-decoration: none; color: inherit; transition: border-color .18s ease, transform .18s ease; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0; letter-spacing: -.01em; }
.chip { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.leeg { color: var(--muted); }

/* Contact */
.contact p { color: var(--muted); margin: 0 0 20px; }
.mail { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 5vw, 30px); letter-spacing: -.01em; text-decoration: none; border-bottom: 2px solid var(--accent-soft); transition: border-color .18s ease; }
.mail:hover { border-color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-weight: 500; }
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--accent); }

footer { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }

/* Formulieren & beheer */
.form { display: grid; gap: 18px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form input, .form textarea, .form select { font-family: var(--body); font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form input[type="file"] { font-size: 15px; color: var(--muted); border-style: dashed; }
.hint { color: var(--muted); font-weight: 400; }
.knop { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--accent-contrast); background: var(--accent); border: none; border-radius: 10px; padding: 12px 20px; cursor: pointer; }
.knop:hover { opacity: .88; }
.knop-tekst { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; }
.knop-tekst.gevaar { color: var(--ink); text-decoration: underline; }
.form-acties { display: flex; align-items: center; gap: 18px; }
.fout { color: var(--ink); font-weight: 600; }

.beheer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; font-size: 14px; }
.beheer-top a { color: var(--muted); text-decoration: none; }
.beheer-top a:hover { color: var(--accent); }
.beheer-lijst { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.beheer-lijst li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.beheer-oms { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.beheer-knoppen { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.beheer-knoppen form { margin: 0; }

/* Logo/foto op kaarten */
.titelrij { display: flex; align-items: center; gap: 12px; min-width: 0; }
.titelrij h3 { overflow-wrap: anywhere; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--card); flex: none; }

/* Beheerlijst met logo en type-badge */
.beheer-item { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.type-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; vertical-align: middle; }

/* Huidige afbeelding bij bewerken */
.huidige-afb { display: flex; align-items: center; gap: 14px; }
.checkbox-rij { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: var(--muted); }

/* Entrance — één rustig moment, respecteert reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
  .reveal:nth-child(2) { animation-delay: .06s; }
  .reveal:nth-child(3) { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Contactblok gecentreerd */
.contact { text-align: center; }
.contact .kop { justify-content: center; }
.contact .kop::after { display: none; }
.contact .socials { justify-content: center; }

/* Navigatie bovenaan */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 60px; }
.topbar .brand { margin-bottom: 0; text-decoration: none; }
.nav { display: flex; gap: 26px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav a.actief { color: var(--ink); border-bottom-color: var(--ink); }

/* Over mij-pagina */
.prose { max-width: 64ch; }
.prose p { margin: 0 0 18px; font-size: 18px; line-height: 1.7; }
.prose p.groot { font-size: clamp(19px, 2.4vw, 22px); color: var(--ink); }
.terug { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; color: var(--accent); }
.terug:hover { text-decoration: underline; }
