/* Vuzisme, stijl "nachthemel". Nachtblauw met het warme licht van een lamp; overdag licht als de lucht voor zonsopgang. */
:root {
  --bg: #eef0f3;
  --band: #e3e7ee;
  --fg: #132238;
  --muted: #56627a;
  --line: #cdd4de;
  --accent: #9a5b15;
  --sand: #e1e6ee;
  --gloed: rgba(168, 101, 27, .12);
  --display: "Cormorant", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}
/* Donker: vanzelf als het apparaat donker staat (tenzij je "licht" koos), of als je "donker" koos met de knop. */
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="licht"]) { --bg: #0b1626; --band: #102038; --fg: #e8e4d8; --muted: #9ba6b6; --line: #22324a; --accent: #e9b45a; --sand: #13223a; --gloed: rgba(233, 180, 90, .22); color-scheme: dark; }
  :root:not([data-thema="licht"]) body { background: radial-gradient(ellipse at 50% -10%, #1b2e4a 0, var(--bg) 60%) fixed, var(--bg); }
}
:root[data-thema="donker"] { --bg: #0b1626; --band: #102038; --fg: #e8e4d8; --muted: #9ba6b6; --line: #22324a; --accent: #e9b45a; --sand: #13223a; --gloed: rgba(233, 180, 90, .22); color-scheme: dark; }
:root[data-thema="donker"] body { background: radial-gradient(ellipse at 50% -10%, #1b2e4a 0, var(--bg) 60%) fixed, var(--bg); }

/* De knop licht / donker / automatisch in de kopregel */
.thema { flex: none; font: inherit; font-size: 1.05rem; line-height: 1; width: 2.1rem; height: 2.1rem; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.thema:hover { border-color: var(--accent); color: var(--accent); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 18.5px; line-height: 1.7; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.in { max-width: 48rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { background: var(--band); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-weight: 500; font-size: clamp(2.6rem, 7.5vw, 4.4rem); letter-spacing: .02em; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: .03em; }
h3 { font-weight: 700; font-size: 1.3rem; }
.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.lead { max-width: 36rem; font-size: 1.05rem; }
.small { font-family: var(--mono); font-size: .72rem; color: var(--muted); }

header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.bar .rechts { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.mark { font-family: var(--display); font-weight: 700; font-size: 1.55rem; color: var(--fg); text-decoration: none; letter-spacing: .1em; }
.mark span { color: var(--accent); }
header nav { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
header nav::-webkit-scrollbar { display: none; }
header nav a { font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; padding-block: .2rem; border-bottom: 2px solid transparent; }
header nav a[aria-current="page"] { color: var(--fg); border-color: var(--accent); }
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; gap: .3rem; padding-block: .6rem .4rem; }
  .bar .rechts { display: contents; }
  .bar .thema { order: 2; margin-left: auto; }
  header nav { width: 100%; gap: .7rem; order: 3; }
  header nav a { font-size: .8rem; }
}

main { padding-bottom: 2rem; }
.pad { padding-block: 2.4rem; display: grid; gap: 1.2rem; }

/* De beginpagina: één scherm. Bovenaan het motto, in het midden de rivier, onderaan de gekozen plek met één knop. */
.beginscherm { max-width: 72rem; min-height: calc(100svh - var(--kop, 3.4rem)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: clamp(.6rem, 2vh, 1.4rem); padding-block: clamp(1rem, 4vh, 2.6rem) 1.2rem; }
body:has(.beginscherm) header .in { max-width: 72rem; }
.beginscherm .motto { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4.8vw, 3.1rem); line-height: 1.08; letter-spacing: .01em; text-wrap: balance; max-width: 52rem; }
.beginscherm .motto span { color: var(--accent); }
.beginscherm .rivwrap { position: relative; min-height: 12rem; }
.beginscherm .river { position: absolute; inset: 0; width: 100%; height: 100%; }
.beginscherm .river .st circle { stroke-width: 2.5; transition: r .15s; }
.beginscherm .river .st text { font-size: 13px; }
.beginscherm .river .st:hover circle, .beginscherm .river .st:focus circle { fill: var(--accent); }
.beginscherm .river .st:focus { outline: none; }
.gekozen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.gekozen .t { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; }
.gekozen .k { color: var(--muted); }
.gekozen .btn.primary { font-size: 1.05rem; padding: .75rem 1.5rem; }
.onder { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .92rem; }
.onder > a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.onder > a:hover { border-color: var(--accent); }
.onder .zin { flex-basis: 100%; font-style: italic; color: var(--muted); }
.onder .zin a { color: inherit; text-decoration: none; }
.onder .zin b { font-family: var(--mono); font-style: normal; color: var(--accent); font-weight: 600; font-size: .78rem; margin-right: .5rem; }
@media (max-width: 639px) {
  .beginscherm .rivwrap { min-height: 9rem; }
  .beginscherm { padding-block: 1.2rem .8rem; gap: .7rem; }
  .gekozen .k { font-size: .95rem; line-height: 1.4; }
  .onder { font-size: .88rem; line-height: 1.5; }
  .beginscherm .river .st circle { r: 15; }
  .beginscherm .river .st text { font-size: 16px; }
  .gekozen .btn.primary { width: 100%; text-align: center; }
}

/* De rivier */
.river { width: 100%; height: auto; display: block; }
.river path.water { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; opacity: .28; }
.river path.flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.river .st circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.river .st.on circle { fill: var(--accent); }
.river .st text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.river .st.on text { fill: var(--fg); font-weight: 600; }
.river .st { cursor: pointer; }

/* Spreuken: de genummerde zinnen */
.spreuk { margin: 0; padding: 1rem 1.2rem; border-radius: 12px; background: var(--sand); display: grid; gap: .4rem; scroll-margin-top: 5rem; box-shadow: 0 0 36px -10px var(--gloed); }
.spreuk blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.45rem; line-height: 1.22; }
.spreuk .ref { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; color: var(--accent); font-weight: 600; text-decoration: none; justify-self: start; }
.spreuk.groot blockquote { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; }
.spreuk:target { outline: 2px solid var(--accent); }
.deel-knop { justify-self: start; font: inherit; font-family: var(--mono); font-size: .7rem; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.deel-knop[data-klaar] { color: var(--accent); text-decoration: none; }
.btn { display: inline-block; font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: .5rem 1rem; border-radius: 99px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn.small { font-size: .72rem; padding: .25rem .6rem; }

/* Lezen */
.lezen h1 { margin-bottom: .2rem; }
.hoofdstukken { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .88rem; }
.hoofdstukken a { color: var(--muted); }
.reader { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.05rem; }
.reader > p, .reader > ul, .reader > ol { max-width: 38rem; }
.reader > h2 { margin-top: 1.6rem; scroll-margin-top: 5rem; }
.reader ul, .reader ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.brk { text-align: center; color: var(--accent); letter-spacing: .5em; }
.plaat { margin: .4rem 0 .6rem; display: grid; gap: .35rem; }
.plaat img { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -24px rgba(0,0,0,.6); }
.plaat figcaption { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: right; }
.lezen > h1 { text-align: center; }
.lezen > .kicker { text-align: center; }
@media (min-width: 960px) {
  .lezen .reader { grid-template-columns: minmax(0, 1fr) 15rem; column-gap: 2.5rem; }
  .lezen .reader > * { grid-column: 1; }
  .lezen .reader > .spreuk { grid-column: 2; align-self: start; }
  .lezen .reader > .vuur, .lezen .reader > .tabel { grid-column: 1 / -1; }
}
.vuur { background: var(--band); border-radius: 14px; padding: 1.2rem 1.3rem; display: grid; gap: .8rem; margin-top: 1rem; }
.vuur h2 { font-size: 1.4rem; margin: 0; }
.buren { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .92rem; }
.rustig .reader { gap: 1.3rem; }
.rustig h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
a.zl { font-family: var(--mono); font-size: .85em; }
.tabel { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
tr.groep td { font-family: var(--display); font-weight: 700; background: var(--band); }
tr:last-child td { border-bottom: 0; }

/* Inhoud */
ol.inhoud { margin: 0; padding-left: 1.4rem; display: grid; gap: 1rem; }
ol.inhoud > li > a { font-family: var(--display); font-weight: 700; font-size: 1.45rem; text-decoration: none; color: var(--fg); }
ol.inhoud > li > span { display: block; color: var(--muted); font-size: .92rem; }
ol.inhoud ul { margin: .3rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .85rem; }
ul.achterin { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.zinpagina .voor { max-width: 36rem; font-style: italic; }

/* Wat zit je dwars */
.search { width: 100%; font: inherit; font-size: 1.1rem; padding: .9rem 1.1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--fg); }
.search:focus { border-color: var(--accent); outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { font: inherit; font-size: .82rem; border: 1px solid var(--line); background: none; color: var(--muted); padding: .3rem .75rem; border-radius: 99px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qlist { display: grid; gap: .6rem; }
details.q { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .2rem 1rem; }
details.q[open] { border-color: var(--accent); }
details.q summary { cursor: pointer; padding: .7rem 0; font-weight: 700; list-style: none; }
details.q summary::-webkit-details-marker { display: none; }
details.q .g { display: block; font-family: var(--mono); font-weight: 400; font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.answer { display: grid; gap: .7rem; padding-bottom: 1rem; }

/* De schaal */
.scalebox { display: grid; justify-items: center; gap: .6rem; padding-block: 1rem; }
.scale { width: min(100%, 26rem); height: auto; }
.scale .beam, .scale .post { stroke: var(--fg); stroke-width: 3; stroke-linecap: round; }
.scale .pan { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.scale .str { stroke: var(--muted); stroke-width: 1.5; }
.scale g.all { transition: transform 1.4s ease, opacity 1.4s ease; transform-origin: 160px 40px; }
.scale.closed g.all { transform: scaleX(.15); opacity: .25; }
.qs { display: grid; gap: 1rem; }
.qs label { font-family: var(--display); font-weight: 500; font-size: 1.15rem; display: block; margin-bottom: .3rem; }
textarea, .addrow input { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
textarea { min-height: 4rem; resize: vertical; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 3px; justify-self: start; }
.seg button { font: inherit; font-size: .85rem; border: 0; background: none; color: var(--muted); padding: .35rem .9rem; border-radius: 99px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--bg); font-weight: 700; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.col { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.col ul { margin: 0; padding-left: 1.1rem; }
.addrow { display: flex; gap: .4rem; }
.addrow input { padding: .45rem .7rem; min-width: 0; }
.dicht { display: grid; gap: .5rem; justify-items: center; text-align: center; }

/* Het jaar */
.wheelwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .wheelwrap { grid-template-columns: 20rem minmax(0, 1fr); } }
.wheel { width: min(100%, 20rem); height: auto; justify-self: center; }
.wheel .ring { fill: none; stroke: var(--line); stroke-width: 14; }
.wheel .done { fill: none; stroke: var(--accent); stroke-width: 14; opacity: .35; }
.wheel .mk circle { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.wheel .mk text { font-family: var(--mono); font-size: 10px; fill: var(--fg); }
.wheel .now { fill: var(--fg); }
.wheel .center { font-family: var(--display); font-weight: 700; font-size: 30px; fill: var(--fg); }
.wheel .center2 { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.days { display: grid; gap: .7rem; }
.dcard { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; display: grid; gap: .25rem; }
.dcard.next { border-color: var(--accent); }
.dcard .when { font-family: var(--mono); font-size: .75rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.dcard p.z { font-style: italic; color: var(--muted); font-size: .95rem; }

footer { padding-block: 1.6rem calc(1.6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
footer .in { display: flex; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
footer .hulp { flex-basis: 100%; font-size: .8rem; }
.hulpkader { border: 1px solid var(--accent); border-radius: 12px; padding: .9rem 1.1rem; background: var(--sand); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .scale g.all { transition: none; } .river path.flow { animation: none; } }
@media print { header, footer, .deel-knop, .buren, .hoofdstukken { display: none; } body { background: #fff; color: #000; } }
