:root {
  --accent: #7F1D1D;
  --accent-dark: #5E1414;
  --accent-soft: #F3E4E1;
  --bg: #F6F2EC;
  --card: #FFFFFF;
  --text: #1E1A17;
  --muted: #6B625A;
  --line: #E3D9CE;
  --ok: #3F6B45;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Kop */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; letter-spacing: .01em; }
.brand small { font-weight: 500; color: var(--muted); font-size: .7rem; margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { background: var(--bg); }
.nav a.active { background: var(--accent-soft); color: var(--accent-dark); }
.topbar .right { display: flex; align-items: center; gap: 10px; }
.lang a { text-decoration: none; font-size: .85rem; color: var(--muted); padding: 2px 4px; }
.lang a.on { color: var(--text); font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }

/* Opbouw */
.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.narrow { max-width: 720px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.status { background: #EAF2EA; border: 1px solid #C7DCC8; color: #24452A; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.errors { background: var(--accent-soft); border: 1px solid #E4C3BD; color: var(--accent-dark); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }

/* Formulieren */
label { display: block; font-weight: 600; margin: 14px 0 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: .875rem; }
input[type=text], input[type=email], input[type=url], select, textarea { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid #CDBFB1; border-radius: 8px; background: #fff; color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.inline { display: inline; }

/* Tabs en filters */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 500; }
.tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters label { margin-top: 12px; font-size: .9rem; }
.filters select { font-size: .95rem; }

/* Berichten */
.post .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post .meta a { color: var(--text); font-weight: 600; text-decoration: none; }
.post h2 { font-size: 1.15rem; margin-bottom: 6px; }
.post h2 a { color: var(--text); text-decoration: none; }
.post h2 a:hover { color: var(--accent); }
.post .lead { white-space: pre-line; }
.fold { border-top: 1px dashed #C9B9A8; margin-top: 8px; padding-top: 8px; }
.fold summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold[open] summary { margin-bottom: 8px; }
.fold .body { white-space: pre-line; }
.post .foot { display: flex; gap: 16px; margin-top: 12px; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.post .foot a { color: var(--muted); }
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.comment .who { font-weight: 600; }
.comment .text { white-space: pre-line; }
.foldline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.foldline::before, .foldline::after { content: ""; flex: 1; border-top: 1px dashed #C9B9A8; }

/* Mensen */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; object-fit: cover; }
.avatar.big { width: 96px; height: 96px; font-size: 1.8rem; }
.person { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.person:first-of-type { border-top: 0; }
.person .info { flex: 1; min-width: 0; }
.person .info a { font-weight: 600; color: var(--text); text-decoration: none; }
.chip { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.profilehead { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* Uitnodigingen */
.code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .08em; font-weight: 600; }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { text-align: left; padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
table.list th { border-top: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Gastpagina's */
.guest { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.guest .box { width: 100%; max-width: 440px; }
.guest .brand { display: block; text-align: center; font-size: 1.6rem; margin-bottom: 6px; }
.guest .tag { text-align: center; color: var(--muted); margin-bottom: 20px; }
.story { font-size: 1.05rem; }
.story p { margin-bottom: 1em; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

/* Lees verder / minder */
.fold .less { display: none; }
.fold[open] .more { display: none; }
.fold[open] .less { display: inline; }
details.filterbox > summary { list-style: none; cursor: pointer; }
details.filterbox > summary::-webkit-details-marker { display: none; }
details.filterbox > summary h3 { margin: 0; display: inline; }
details.filterbox[open] > summary { margin-bottom: 4px; }

/* Mobiel */
@media (max-width: 820px) {
  .topbar .inner { gap: 0 12px; padding-top: 8px; }
  .topbar .right { margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 4px -8px 0; padding-bottom: 6px; }
  .nav a { white-space: nowrap; }
  .page { padding-top: 16px; }
  .card { padding: 16px; }
  details.filterbox > summary h3::after { content: " ▾"; color: var(--muted); font-weight: 400; }
}
