/* ===========================================================
   Ronald Martin Heldoorn — PWA stylesheet (v1.0.0)
   Palet: koraal + zachtgeel + turquoise · warm & levendig
   Typo: Fraunces (display) + Nunito (body) + Caveat (accent)
   =========================================================== */

/* -------- Reset & tokens -------- */
:root {
  /* Kleuren */
  --koraal:        #ff7f6e;
  --koraal-diep:   #e55a48;
  --zachtgeel:     #fff7e6;
  --zachtgeel-diep:#ffd97a;
  --mint:          #e0f7f5;
  --turquoise:     #4ecdc4;
  --turquoise-diep:#2ea89f;

  --tekst:         #3d3a3a;
  --subtekst:      #7a7470;
  --wit:           #ffffff;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Schaduwen */
  --schaduw-1: 0 2px 8px rgba(255,127,110,0.10);
  --schaduw-2: 0 6px 20px rgba(255,127,110,0.18);
  --schaduw-3: 0 16px 40px rgba(61,58,58,0.10);

  /* Layout */
  --max-breedte: 880px;
  --padding-x: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--tekst);
  background: var(--zachtgeel);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--koraal-diep);
  text-decoration: underline;
  text-decoration-color: rgba(229,90,72,0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover, a:focus { color: var(--turquoise-diep); text-decoration-color: var(--turquoise); }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--koraal); color: var(--wit);
  padding: 8px 16px; border-radius: 0 0 var(--r-sm) 0;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* -------- Containers -------- */
.container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section { padding: clamp(48px, 9vw, 96px) 0; }
.section--prose { background: var(--zachtgeel); }
.section--cards { background: var(--mint); }
.section--timeline { background: var(--zachtgeel); }
.section--kranten { background: linear-gradient(180deg, var(--zachtgeel) 0%, var(--mint) 100%); }
.section--gallery { background: var(--mint); }
.section--refs { background: var(--zachtgeel); }
.section--outro { background: var(--koraal); color: var(--wit); padding: 64px 0; }

.section__title {
  font-family: 'Fraunces', 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--tekst);
  margin: 0 0 16px;
  font-variation-settings: "opsz" 80;
}

.section__lede {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-style: italic;
  color: var(--subtekst);
  margin: 0 0 40px;
  max-width: 56ch;
}

/* -------- Hero -------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--zachtgeel) 0%, #ffe5d4 60%, var(--koraal) 130%);
  padding: clamp(48px, 10vw, 120px) var(--padding-x) 96px;
  text-align: center;
  overflow: hidden;
}

.hero__inner { max-width: var(--max-breedte); margin: 0 auto; }

.hero__eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 700;
  color: var(--koraal-diep);
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}

.hero__name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--tekst);
  font-variation-settings: "opsz" 144;
}
.hero__name strong { color: var(--koraal-diep); font-weight: 700; }

.hero__dates {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--tekst);
  margin: 0 0 8px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__dash { color: var(--koraal); font-weight: 700; }
.hero__here { color: var(--subtekst); }
.hero__here--now {
  background: var(--turquoise);
  color: var(--wit);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95em;
  box-shadow: var(--schaduw-1);
}

.hero__age {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--koraal-diep);
  margin: 12px 0 32px;
  font-weight: 700;
}

.hero__monogram {
  margin: 0 auto 24px;
  width: clamp(180px, 32vw, 240px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 38%, var(--zachtgeel-diep) 0%, var(--koraal) 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--schaduw-2), inset 0 0 0 6px rgba(255,255,255,0.5);
  position: relative;
}
.hero__monogram::before {
  content: "";
  position: absolute; inset: 8px;
  border: 2px dashed rgba(255,255,255,0.5);
  border-radius: 50%;
}

.monogram {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(72px, 14vw, 110px);
  color: var(--tekst);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}
.monogram__sep {
  font-style: italic;
  font-weight: 500;
  color: var(--wit);
  margin: 0 -4px;
  font-size: 1.1em;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wit);
  color: var(--tekst);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--schaduw-1);
  margin: 0 0 36px;
}
.status-dot {
  width: 12px; height: 12px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.25); }
  50%      { box-shadow: 0 0 0 9px rgba(74,222,128,0.05); }
}

.hero__scroll {
  display: inline-block;
  font-size: 28px;
  color: var(--koraal-diep);
  text-decoration: none;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  width: 100%; height: 60px;
  display: block;
}

/* -------- Prose -------- */
.prose p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
}
.prose p:last-child { margin-bottom: 0; }

.prose__quote {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  line-height: 1.4;
  color: var(--koraal-diep);
  margin: 32px 0 0 !important;
  padding: 24px 32px;
  background: var(--wit);
  border-radius: var(--r-md);
  box-shadow: var(--schaduw-1);
  position: relative;
  border-left: 6px solid var(--turquoise);
}
.quote-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5em;
  color: var(--turquoise);
  font-weight: 700;
}
.quote-mark--end { color: var(--koraal); }

/* -------- Cards (komaf) -------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--wit);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--schaduw-2);
  text-align: center;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-4px); }

.card__portrait {
  width: 120px; height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--schaduw-1);
  position: relative;
}
.card__portrait--albert {
  background: radial-gradient(circle at 50% 38%, #e6ecf5 0%, #1a2b4a 100%);
  color: var(--wit);
}
.card__portrait--anny {
  background: radial-gradient(circle at 50% 38%, #f9e8e2 0%, #c47883 100%);
  color: var(--wit);
}
.monogram-monogram {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  display: flex; gap: 1px;
}
.monogram-monogram span { font-style: italic; font-weight: 500; opacity: 0.85; }

.card__name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--tekst);
}
.card__dates {
  font-size: 14px;
  color: var(--subtekst);
  margin: 0 0 4px;
  letter-spacing: 0.05em;
}
.card__role {
  font-family: 'Caveat', cursive;
  font-size: 19px;
  color: var(--koraal-diep);
  margin: 0 0 16px;
  font-weight: 700;
}
.card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--tekst);
  margin: 0;
}

/* -------- Tijdlijn -------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--koraal) 0%, var(--turquoise) 100%);
  border-radius: 3px;
}

.timeline__item {
  position: relative;
  padding: 0 0 36px 44px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: 0; top: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--koraal);
  box-shadow: 0 0 0 6px var(--zachtgeel), 0 0 0 8px var(--koraal);
}
.timeline__item--open .timeline__dot {
  background: var(--turquoise);
  box-shadow: 0 0 0 6px var(--zachtgeel), 0 0 0 8px var(--turquoise);
  animation: pulse 2.4s ease-in-out infinite;
}

.timeline__year {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--koraal-diep);
  margin: 0 0 4px;
}
.timeline__item--open .timeline__year { color: var(--turquoise-diep); }

.timeline__body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--tekst);
}
.timeline__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tekst);
}

/* -------- Kranten -------- */
.krant-card {
  background: var(--wit);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--schaduw-2);
  border-top: 6px solid var(--koraal);
  margin: 0 0 32px;
}
.krant-card__eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--koraal-diep);
  margin: 0 0 4px;
  font-weight: 700;
}
.krant-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--tekst);
}
.krant-card__quote {
  margin: 0 0 16px;
  padding: 24px;
  background: var(--zachtgeel);
  border-radius: var(--r-md);
  border-left: 5px solid var(--turquoise);
}
.krant-card__quote p {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
}
.krant-card__cite {
  display: block;
  margin-top: 12px;
  font-family: 'Nunito', sans-serif;
  font-style: normal;
  font-size: 14px;
  color: var(--subtekst);
}
.krant-card__note {
  font-size: 15px;
  color: var(--subtekst);
  margin: 0;
}

.krant-onderzoek {
  background: var(--wit);
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--schaduw-1);
}
.krant-onderzoek summary {
  cursor: pointer;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: 700;
  color: var(--koraal-diep);
  list-style: none;
}
.krant-onderzoek summary::before { content: "🔎  "; }
.krant-onderzoek summary::-webkit-details-marker { display: none; }
.krant-onderzoek[open] summary { margin-bottom: 12px; }
.krant-onderzoek ul {
  margin: 12px 0;
  padding-left: 20px;
}
.krant-onderzoek li {
  margin: 6px 0;
  font-size: 15px;
}
.krant-onderzoek code {
  background: var(--zachtgeel);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.onderzoek-tabel {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 6px;
}
.onderzoek-tabel li {
  background: var(--zachtgeel);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 3px solid var(--turquoise);
}
.onderzoek-tabel strong {
  color: var(--koraal-diep);
  font-family: 'Nunito', sans-serif;
}

/* -------- Gallery -------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 32px 0 16px;
}
.gallery__item {
  display: block;
  background: var(--wit);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--schaduw-1);
  transition: transform 0.3s, box-shadow 0.3s;
  color: var(--tekst);
}
.gallery__item:hover, .gallery__item:focus {
  transform: translateY(-3px);
  box-shadow: var(--schaduw-2);
}
.gallery__item img { width: 100%; height: 200px; object-fit: cover; }

.gallery__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--zachtgeel-diep) 100%);
  font-size: 64px;
}

.gallery__caption {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tekst);
}

.gallery__item--empty {
  cursor: default;
  opacity: 0.85;
  border: 2px dashed var(--koraal);
  background: transparent;
  box-shadow: none;
}
.gallery__item--empty:hover { transform: none; }

.gallery__note {
  font-size: 14px;
  color: var(--subtekst);
  font-style: italic;
  margin: 16px 0 0;
}

/* -------- Refs -------- */
.refs {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.refs__item { margin: 0; }
.refs__link {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: var(--wit);
  border-radius: var(--r-md);
  text-decoration: none;
  box-shadow: var(--schaduw-1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 6px solid var(--koraal);
}
.refs__link:hover, .refs__link:focus {
  transform: translateX(4px);
  box-shadow: var(--schaduw-2);
  text-decoration: none;
}
.refs__link--self {
  border-left-color: var(--turquoise);
  background: linear-gradient(135deg, var(--wit) 0%, var(--mint) 100%);
  cursor: default;
}
.refs__link--self:hover { transform: none; }
.refs__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--tekst);
  margin-bottom: 4px;
}
.refs__sub {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--subtekst);
  font-weight: 700;
}

/* -------- Outro -------- */
.outro {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.3;
}
.outro__emoji {
  display: inline-block;
  font-size: 1.3em;
  margin-right: 8px;
  animation: wiggle 1.6s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}
.outro__sub {
  text-align: center;
  font-size: 15px;
  opacity: 0.85;
  margin: 0;
}
.section--outro a, .section--outro a:visited {
  color: var(--wit);
  text-decoration-color: rgba(255,255,255,0.6);
}

/* -------- Footer -------- */
.footer {
  text-align: center;
  padding: 28px var(--padding-x);
  background: var(--tekst);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}
.footer a { color: var(--zachtgeel-diep); }

/* -------- Lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(61,58,58,0.92);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 24px;
  animation: fadein 0.2s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: var(--koraal);
  color: var(--wit);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  box-shadow: var(--schaduw-1);
}
.lightbox__close:hover { background: var(--koraal-diep); }

.lightbox__figure {
  margin: 0;
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.lightbox__caption {
  color: var(--wit);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  text-align: center;
  max-width: 700px;
}

/* -------- Responsive -------- */
@media (max-width: 640px) {
  .hero { padding-bottom: 80px; }
  .hero__dates { gap: 8px; }
  .hero__here--now { font-size: 0.85em; padding: 3px 10px; }
  .timeline__item { padding-left: 36px; }
  .timeline::before { left: 8px; }
  .timeline__dot { width: 18px; height: 18px; }
  .card { padding: 24px 20px; }
  .krant-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------- Print -------- */
@media print {
  .hero__wave, .hero__scroll, .lightbox, .status-dot { display: none; }
  body { background: white; color: black; }
  .section { padding: 24px 0; }
}