/* Kleuren uit Ria's favoriete terrasfoto: koper (stoelen), roze (bloemen),
   lavendel (sjaal), donkerblauw (broek) en warm crème. */
:root {
  --bg: #f8f3ec;
  --kaart: #fffcf7;
  --tekst: #1f2a44;
  --zacht: #5d6478;
  --lijn: #e8ddd0;
  --koper: #a8622f;
  --roze: #e59ab0;
  --lavendel: #a9a6e6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161b2b;
    --kaart: #1e2438;
    --tekst: #f3ece2;
    --zacht: #b4b6c6;
    --lijn: #2f3650;
    --koper: #d9965f;
    --roze: #e9a7ba;
    --lavendel: #b4b1ee;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tekst);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
}
main { max-width: 660px; margin: 0 auto; padding: 0 20px 24px; }
h1 { font-weight: normal; font-size: 2.3rem; line-height: 1.2; margin: 0; }
h2 {
  font-weight: normal; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--koper); margin: 64px 0 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--lijn);
}
h3 { font-weight: normal; font-style: italic; font-size: 1.3rem; margin: 36px 0 8px; }
a { color: var(--koper); }
img { max-width: 100%; display: block; }
blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--roze); font-style: italic; }

/* Kop */
.kop {
  text-align: center; padding: 56px 0 8px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--roze) 22%, transparent), transparent 70%);
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.portret {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 28px; border: 5px solid var(--kaart);
  box-shadow: 0 0 0 2px var(--lavendel), 0 8px 24px rgba(31,42,68,.12);
}
.portret.leeg { display: flex; align-items: center; justify-content: center; background: var(--kaart); color: var(--koper); font-size: 3rem; }
.data { color: var(--zacht); margin: 12px 0 0; letter-spacing: .04em; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.spreuk { font-style: italic; font-size: 1.15rem; color: var(--tekst); margin: 28px auto 0; max-width: 26em; line-height: 1.6; }
.intro-tekst { font-size: 1.15rem; text-align: center; color: var(--zacht); margin: 40px auto 0; max-width: 30em; }

/* Inhoudsopgave */
.inhoud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 36px 0 0; }
.inhoud a {
  font-size: .9rem; text-decoration: none; color: var(--tekst);
  padding: 6px 14px; border: 1px solid var(--lijn); border-radius: 999px; background: var(--kaart);
}

/* Verhaal */
.verhaal p:first-of-type::first-letter { font-size: 3.2em; float: left; line-height: .9; margin: 6px 8px 0 0; color: var(--koper); }
.bron { font-size: .9rem; color: var(--zacht); font-style: italic; margin-top: 32px; }

/* Tijdlijn */
.tijdlijn { list-style: none; padding: 0; margin: 0; position: relative; }
.tijdlijn::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--lijn); }
.tijdlijn li { position: relative; padding: 0 0 22px 32px; }
.tijdlijn li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--koper);
}
.tijdlijn .wanneer { display: block; color: var(--koper); font-size: .95rem; letter-spacing: .03em; }

/* Brieven */
.brief { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 10px; padding: 8px 24px 20px; margin-bottom: 20px; text-align: center; }
.brief h3 { margin-top: 20px; }
.brief .van { font-style: italic; color: var(--koper); margin-top: 12px; }
.brief .van span { color: var(--roze); }

.plaats { font-size: 1.15rem; }
.gedenk { list-style: none; padding: 0; }
.gedenk li { margin-bottom: 16px; padding-left: 16px; border-left: 3px solid var(--lavendel); }

/* Foto's en archief */
.galerij { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.galerij figure { margin: 0; }
.galerij img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.galerij figcaption { font-size: .85rem; color: var(--zacht); margin-top: 6px; }

.uitleg { color: var(--zacht); font-size: .95rem; margin-top: -8px; }
.stuk { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.stuk img { width: 110px; border-radius: 6px; border: 1px solid var(--lijn); flex-shrink: 0; }
.stuk h3 { margin: 0 0 4px; font-size: 1.1rem; }
.stuk p { margin: 4px 0; }
.stuk .meta { color: var(--zacht); font-size: .9rem; }

.herinnering { margin: 0 0 16px; padding: 16px 20px; background: var(--kaart); border-left: 3px solid var(--roze); border-radius: 4px; font-style: normal; }
.herinnering p { margin: 0 0 8px; }
.herinnering cite { font-style: normal; color: var(--zacht); font-size: .9rem; }

/* Startpagina */
.start { text-align: center; padding-top: 56px; }
.intro { color: var(--zacht); margin: 8px 0 40px; }
.lijst { list-style: none; padding: 0; margin: 0; text-align: left; }
.lijst a {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 10px; color: var(--tekst);
  background: var(--kaart); border: 1px solid var(--lijn); border-radius: 10px; text-decoration: none;
}
.lijst img, .mini { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mini { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--koper); }
.lijst small { color: var(--zacht); }

.voet { text-align: center; color: var(--zacht); font-size: .85rem; padding: 48px 20px 56px; }
.voet a { color: inherit; text-decoration: none; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  .stuk { flex-direction: column; }
  .stuk img { width: 100%; max-width: 260px; }
}
