/* De site van Fiveline, in de kleuren van de app (app/.../ui/Thema.kt en res/values/kleuren.xml):
   papier #FAF7F0, inkt #1D1B18, diep blauw #24507A als accent en het goud van de noot in het icoon
   #E2B84F. Licht en donker volgen het toestel (prefers-color-scheme), net als de app. Geen
   lettertypen van buiten: de letters van het toestel. Geen style-attributen (CSP). Richtingen met
   logische eigenschappen (inline-start en inline-end), zodat dir="rtl" (ar, he) vanzelf goed staat.
   De voorbeelden op de beginpagina (notenbalk, ritme, ventielen) zijn svg en html van
   tools/site-build.py (aria-hidden); muziek leest altijd van links naar rechts, dus die staan vast
   op ltr. */

:root {
  --papier: #faf7f0;
  --vlak: #f0ebe0;
  --kaart: #fffdf8;
  --rand: #e1dacb;
  --lijn: #d9d1c2;
  --inkt: #1d1b18;
  --inkt-zacht: #5e584e;
  --blauw: #24507a;
  --blauw-diep: #173754;
  --goud: #9a6a00;
  --goud-licht: #e2b84f;
  --goud-vlak: #f6e7c1;
  --goed: #1e7b45;
  --fout: #b2441c;
  --link: #24507a;
  --diep: #ebe5d8;
  --schaduw: 0 1px 2px rgba(36, 80, 122, .08), 0 10px 28px rgba(36, 80, 122, .10);
  --zonder: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #16150f;
    --vlak: #232119;
    --kaart: #1d1c15;
    --rand: #34312a;
    --lijn: #3a372e;
    --inkt: #ede8dc;
    --inkt-zacht: #b2aa9a;
    --blauw: #8db8e6;
    --blauw-diep: #0d2236;
    --goud: #e2b84f;
    --goud-licht: #e2b84f;
    --goud-vlak: #3a2e0c;
    --goed: #6bcb8d;
    --fout: #f08b63;
    --link: #8db8e6;
    --diep: #100f0b;
    --schaduw: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:lang(ko) { word-break: keep-all; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--zonder);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, .merk, .voet-merk {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); margin: 0 0 .5em; letter-spacing: -.02em; color: var(--blauw); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin: 0 0 .6em; color: var(--blauw); }
h3 { font-size: 1.15rem; margin: 0 0 .4em; font-weight: 700; }
html:lang(th) h1, html:lang(th) h2, html:lang(ja) h1, html:lang(ko) h1 { text-wrap: wrap; }

p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-color: var(--goud-licht); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .knop:focus-visible {
  outline: 3px solid var(--goud-licht);
  outline-offset: 2px;
  border-radius: 4px;
}
abbr[title] { text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; }
ul, ol { padding-inline-start: 1.3em; }
li { margin: .25em 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.smal { max-width: 46rem; }
.lead { font-size: 1.2rem; }
.klein { font-size: .875rem; color: var(--inkt-zacht); }

.overslaan {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--blauw); color: var(--papier); font-weight: 700;
  padding: .5rem 1rem; border-radius: 0 0 8px 8px; z-index: 10;
}
.overslaan:focus { top: 0; }

/* ---------------------------------------------------------------- kop */

.kop { border-bottom: 1px solid var(--lijn); background: var(--papier); }
.kop-rij { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-top: .75rem; padding-bottom: .75rem; }
.merk { display: inline-flex; align-items: center; gap: .55rem; color: var(--blauw); text-decoration: none; font-size: 1.35rem; }
.merk .logo { width: 38px; height: 38px; flex: none; border-radius: 50%; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-inline-start: auto; }
.menu a { color: var(--inkt); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--goud-licht); }

.taalkeuze { position: relative; }
.taalkeuze summary {
  list-style: none; cursor: pointer; padding: .3rem .7rem; border: 1px solid var(--lijn);
  border-radius: 999px; font-size: .95rem; white-space: nowrap;
}
.taalkeuze summary::-webkit-details-marker { display: none; }
.taalkeuze summary::after { content: " \25BE"; color: var(--inkt-zacht); }
.taalkeuze[open] summary { background: var(--vlak); }
.talen {
  position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 5;
  list-style: none; margin: 0; padding: .4rem; min-width: 15rem; max-height: 70vh; overflow: auto;
  background: var(--kaart); border: 1px solid var(--lijn); border-radius: 12px; box-shadow: var(--schaduw);
  columns: 2; column-gap: .25rem;
}
.talen li { margin: 0; break-inside: avoid; }
.talen a { display: block; padding: .3rem .55rem; border-radius: 8px; color: var(--inkt); text-decoration: none; }
.talen a:hover { background: var(--vlak); }
.talen a[aria-current] { background: var(--goud-vlak); font-weight: 600; }

/* ---------------------------------------------------------------- beginpagina */

.held { padding: 3rem 0 3.5rem; }
.held-rij { display: grid; gap: 2.5rem; align-items: center; }
.held-klein { color: var(--inkt-zacht); font-size: .95rem; }
.held-beeld { display: flex; justify-content: center; }

.knop {
  display: inline-block; background: var(--blauw); color: var(--papier); text-decoration: none;
  padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700;
}
.knop-stil { background: transparent; color: var(--blauw); border: 1px solid var(--blauw); }

.blok { padding: 3.25rem 0; }
.blok-zacht { background: var(--vlak); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.blok-accent { background: #24507a; color: #f2f5f9; }
.blok-accent h2 { color: #e2b84f; }
.blok-accent a { color: #fff; text-decoration-color: #e2b84f; }

.kaarten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.kaart {
  background: var(--kaart); border: 1px solid var(--rand); border-radius: 16px; padding: 1.25rem 1.25rem .5rem;
}
.kaart h3 { color: var(--blauw); }
.kaart-plus { border-color: var(--goud-licht); border-width: 2px; }
.kaart-plus h3 { color: var(--goud); }

.twee { display: grid; gap: 2rem; }
.twee-midden { align-items: center; }
.prijs { margin-top: 1.5rem; gap: 1rem; }

/* Opsommingen met een kleine hele noot ervoor, zoals in het icoon. */
.vinkjes { list-style: none; padding: 0; }
.vinkjes li { position: relative; padding-inline-start: 1.9rem; }
.vinkjes li::before {
  content: ""; position: absolute; inset-inline-start: .1rem; top: .5em;
  width: 1rem; height: .62rem; border-radius: 50%;
  border: .2rem solid var(--goud-licht); transform: rotate(-20deg);
}

.vraag { border-bottom: 1px solid var(--lijn); padding: .75rem 0; }
.vraag summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.vraag summary::marker { color: var(--goud-licht); }
.vraag .antwoord { padding-top: .5rem; }

@media (min-width: 52rem) {
  .held-rij { grid-template-columns: 1.15fr 1fr; }
  .twee { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- voorbeelden (aria-hidden)
   De notenbalk met klavier en de maat ritme komen als svg uit tools/site-beelden.py, met vormen uit
   Bravura. Het vlak is in licht en donker hetzelfde blauw als het icoon. */

.voorbeeld { direction: ltr; display: block; width: 100%; max-width: 24rem; height: auto; border-radius: 24px; box-shadow: var(--schaduw); }
.nb-vlak { fill: #24507a; }
.nb-lijn { stroke: #faf7f0; stroke-width: 1.4; }
.nb-teken { fill: #faf7f0; }
.nb-oud { fill: #faf7f0; opacity: .45; }
.nb-goud { fill: #e2b84f; }
.nb-wit { fill: #faf7f0; }
.nb-zwart { fill: #16150f; }
.nb-goed { fill: #6bcb8d; }
.nb-tijdlijn { stroke: #faf7f0; stroke-width: 1; opacity: .35; }
.nb-tel { stroke: #faf7f0; stroke-width: 1.4; opacity: .6; }

/* Drie ventielen, de eerste en de derde ingedrukt (aria-hidden). */
.ventielen {
  direction: ltr; display: flex; justify-content: center; gap: 1.25rem; padding: 2rem 1.5rem;
  background: #24507a; border-radius: 24px; box-shadow: var(--schaduw); max-width: 24rem; margin: 0 auto;
}
.ventiel {
  width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.6rem; color: #24507a; background: #faf7f0;
  box-shadow: 0 .45rem 0 0 #b9b2a3;
}
.ventiel.in { background: #e2b84f; box-shadow: 0 .12rem 0 0 #9a6a00; transform: translateY(.33rem); }
.ventiel-plek { display: flex; justify-content: center; }

/* ---------------------------------------------------------------- tekstpagina's */

.tekst { max-width: 46rem; padding: 2.5rem 0 3rem; }
.tekst h2 { margin-top: 2rem; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.bijgewerkt { color: var(--inkt-zacht); font-size: .95rem; }
.tekst ol > li { margin: .6em 0; }

.bronnen { padding-inline-start: 1.1em; }
.bronnen li { margin: .45em 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- oefenset (set/) */

.setkaart {
  background: var(--kaart); border: 2px solid var(--goud-licht); border-radius: 16px;
  padding: 1.25rem 1.25rem .5rem; margin: 1.5rem 0;
}
.set-label { font-weight: 700; color: var(--inkt-zacht); margin-bottom: .25rem; }
.setcode {
  direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.25rem, 4.6vw, 1.75rem); font-weight: 700; letter-spacing: .06em; color: var(--blauw);
  overflow-wrap: anywhere; word-spacing: .3em;
}
.set-wat { font-weight: 700; }
.set-titel { font-style: italic; }
.melding {
  border-inline-start: 4px solid var(--fout); background: var(--vlak); padding: .75rem 1rem; border-start-end-radius: 8px; border-end-end-radius: 8px;
}

/* ---------------------------------------------------------------- voet */

.voet { border-top: 1px solid var(--lijn); background: var(--diep); padding: 2.5rem 0 2rem; font-size: .95rem; }
.voet-rij { display: grid; gap: 1.5rem; }
.voet-merk { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin-bottom: .5rem; color: var(--blauw); }
.voet-merk .logo { width: 29px; height: 29px; border-radius: 50%; }
.voet-kop { font-weight: 700; margin-bottom: .25rem; }
.impressum { line-height: 1.5; }
.voet-links { list-style: none; padding: 0; margin: 0; }
.voet-links a { color: var(--inkt); }
@media (min-width: 46rem) { .voet-rij { grid-template-columns: 2fr 1fr; } }

/* 404 */
.terug { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

@media print {
  .kop, .voet, .taalkeuze, .overslaan { display: none; }
  body { background: #fff; color: #000; }
}
