/* De site van Rosebead. De kleuren zijn die van de app (app/.../ui/Thema.kt): rozenrood, room en
   goud op papier, en 's avonds donker. Koppen in een schreefletter, zoals de gebeden in de app.
   Geen lettertypen van buiten: de letters van het toestel. Geen style-attributen (CSP). */

:root {
  --papier: #fbf7f2;
  --vlak: #f5eee7;
  --vlak-hoog: #efe6de;
  --inkt: #231c1a;
  --inkt-zacht: #5a4d49;
  --lijn: #d9ccc5;
  --roos: #7a2e4a;
  --roos-zacht: #f6dde5;
  --roos-inkt: #3b0f20;
  --goud: #b08d57;
  --goud-licht: #d9b26f;
  --goud-zacht: #f3e6d0;
  --room: #f6e8da;
  --link: #7a2e4a;
  --schaduw: 0 1px 2px rgba(35, 28, 26, .06), 0 6px 18px rgba(35, 28, 26, .06);
  --schreef: "Noto Serif", "Source Serif Pro", Georgia, Cambria, "Times New Roman", serif;
  --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: #15110f;
    --vlak: #1e1916;
    --vlak-hoog: #29221f;
    --inkt: #ede4de;
    --inkt-zacht: #cdbfb8;
    --lijn: #4a3f3b;
    --roos: #e8a9be;
    --roos-zacht: #5e2139;
    --roos-inkt: #ffd9e3;
    --goud: #d9b26f;
    --goud-zacht: #4a3a1e;
    --link: #f0bccd;
    --schaduw: none;
  }
}

[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, .lijst-kop {
  font-family: var(--schreef);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
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-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .knop:focus-visible {
  outline: 3px solid var(--goud);
  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; color: var(--inkt); }
.klein { font-size: .875rem; color: var(--inkt-zacht); }

.overslaan {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--roos); color: #fff; 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(--inkt); text-decoration: none; font-size: 1.35rem; }
.merk .logo { width: 38px; height: 38px; flex: none; }
.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); }

.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: 14rem; max-height: 70vh; overflow: auto;
  background: var(--papier); 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(--roos-zacht); color: var(--roos-inkt); font-weight: 600; }

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

.held { padding: 3rem 0 2.5rem; }
.held-rij { display: grid; gap: 2rem; align-items: center; }
.held-klein { color: var(--inkt-zacht); font-size: .95rem; }
.held-beeld {
  background: #7a2e4a; border-radius: 28px; padding: 1.5rem; display: flex; justify-content: center;
  box-shadow: var(--schaduw);
}
.rozenkrans { width: 100%; max-width: 22rem; height: auto; }
.rk-snoer { fill: none; stroke: #d9b26f; stroke-opacity: .55; stroke-width: 1.2; }
.rk-kraal { fill: #f6e8da; }
.rk-groot { fill: #f6e8da; stroke: #d9b26f; stroke-width: 1.4; }
.rk-medaille { fill: #d9b26f; }
.rk-medaille-rand { fill: none; stroke: #f6e8da; stroke-width: 1.2; }
.rk-kruis { fill: #f6e8da; }

.knop {
  display: inline-block; background: var(--roos); color: #fff; text-decoration: none;
  padding: .75rem 1.3rem; border-radius: 999px; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .knop { color: #3b0f20; } }
.knop-stil { background: var(--goud-zacht); color: var(--inkt); border: 1px solid var(--goud); }

.blok { padding: 3rem 0; }
.blok-zacht { background: var(--vlak); }
.blok-roos { background: #7a2e4a; color: #fbf7f2; }
.blok-roos a { color: #fbf7f2; }
.blok-roos h2 { color: #fbf7f2; }

.kaarten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.kaart {
  background: var(--papier); border: 1px solid var(--lijn); border-radius: 16px; padding: 1.25rem 1.25rem .5rem;
}
.blok-zacht .kaart { background: var(--papier); }
.kaart h3 { color: var(--roos); }
.kaart-plus { border-color: var(--goud); background: var(--goud-zacht); }

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

.vinkjes { list-style: none; padding: 0; }
.vinkjes li { position: relative; padding-inline-start: 1.5rem; }
.vinkjes li::before {
  content: ""; position: absolute; inset-inline-start: .2rem; top: .55em;
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--goud);
}

.lijst-kop { font-size: 1.1rem; margin-bottom: .6rem; }
.talenlijst { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.talenlijst li { margin: 0; }
.talenlijst a, .talenlijst span.chip {
  display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--papier);
  border: 1px solid var(--lijn); color: var(--inkt); text-decoration: none; font-size: .95rem;
}
.talenlijst a:hover { border-color: var(--goud); }

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

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

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

.tekst { max-width: 46rem; padding: 2.5rem 0 3rem; }
.tekst-breed { max-width: 60rem; }
.tekst h2 { margin-top: 2rem; }
.bijgewerkt { color: var(--inkt-zacht); font-size: .95rem; }

/* gebeden.html: per gebedstaal de bron van elk gebed */
.taalnav { margin: 1.5rem 0 2rem; }
.gebedstaal { border-top: 2px solid var(--goud); padding-top: 1.25rem; margin-top: 2.25rem; scroll-margin-top: 1rem; }
.gebedstaal h2 { margin-top: 0; }
.gebedstaal h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.gebeden { list-style: none; padding: 0; margin: 0; }
.gebed { border: 1px solid var(--lijn); border-radius: 12px; padding: .85rem 1rem .25rem; margin: .65rem 0; background: var(--papier); }
.gebed-kop { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; margin-bottom: .4rem; }
.gebed-naam { font-family: var(--schreef); font-weight: 700; font-size: 1.1rem; }
.status { font-size: .8rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--lijn); white-space: nowrap; }
.status-vrij { background: var(--goud-zacht); border-color: var(--goud); }
.status-woorden { background: var(--roos-zacht); color: var(--roos-inkt); border-color: transparent; }
.status-ouder { background: var(--vlak-hoog); }
.gebed p { margin-bottom: .5rem; }
.label { color: var(--inkt-zacht); }
cite.citaat { font-style: italic; }
q.citaat { font-style: italic; }
.bronlink { font-size: .9rem; white-space: nowrap; }
.korte-lijst li { margin: .4rem 0; }
.nog-niet li { margin: .3rem 0; }

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

.voet { border-top: 1px solid var(--lijn); background: var(--vlak); padding: 2.5rem 0 2rem; margin-top: 0; 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; }
.voet-merk .logo { width: 29px; height: 29px; }
.voet-kop { font-weight: 600; 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 { display: none; }
  body { background: #fff; color: #000; }
}
