/* Licht in het spookhuis — huisstijl overgenomen uit het boek */

:root {
  --papier: #ffffff;
  --inkt: #2c2738;
  --zacht: #6d6578;
  --koraal: #d9826b;
  --koraal-tekst: #b8573f;  /* donkerder koraal voor kleine tekst (beter contrast) */
  --blauw: #2a3f9e;
  --lijn: #e8d6cd;
  --tint: #fcf6f3;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --tekst: "Newsreader", Georgia, "Times New Roman", serif;

  --breed: 1080px;
  --smal: 660px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--tekst);
  font-variation-settings: "opsz" 12;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

a { color: var(--blauw); text-underline-offset: 0.15em; }

.wrap { max-width: var(--breed); margin: 0 auto; padding: 0 24px; }
.wrap-smal { max-width: var(--smal); margin: 0 auto; padding: 0 24px; }

/* Fraunces: zacht en een beetje eigenwijs */
h1, h2, h3, .kap, .ondertitel, .lead, .opening, .citaat, .knop, .nummer,
.slot, .binnenkort, .kop nav {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

h1, h2, h3 { font-weight: 340; margin: 0; }

/* Kleine labels in kapitalen */
.kap {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--koraal-tekst);
  margin: 0;
}

/* De koraalkleurige stip */
.stip::before,
.nummer::before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  background: var(--koraal);
  flex: none;
}
.stip { color: var(--inkt); text-decoration: none; display: inline-flex; align-items: center; gap: 0.8em; }
.stip::before { width: 0.6em; height: 0.6em; }

/* Kop */
.kop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.kop nav a {
  font-size: 0.98rem;
  color: var(--blauw);
  text-decoration: none;
  margin-left: 24px;
}
.kop nav a:hover { color: var(--koraal-tekst); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 96px;
}

h1 {
  color: var(--blauw);
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.ondertitel {
  color: var(--koraal-tekst);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 340;
  margin: 14px 0 32px;
}

.lead {
  color: var(--blauw);
  font-weight: 340;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 34em;
}

.flap { margin: 0 0 16px; max-width: 34em; }
.hero-tekst .knoppen { margin-top: 28px; }

.hero-beeld img { width: 100%; max-width: 460px; margin-left: auto; }

.knoppen { display: flex; flex-wrap: wrap; gap: 12px; }

.knop {
  display: inline-block;
  padding: 14px 26px;
  border: 1.5px solid var(--blauw);
  border-radius: 999px;
  background: var(--blauw);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.knop:hover, .knop:focus-visible { background: var(--koraal-tekst); border-color: var(--koraal-tekst); color: #fff; }
.knop-licht { background: transparent; color: var(--blauw); }

/* Secties */
section { padding: 96px 0; }
.lijn-boven { border-top: 1px solid var(--lijn); }

.sectiekop { margin-bottom: 24px; }
h2 {
  color: var(--blauw);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.12;
  margin: 14px 0 24px;
}
.sectiekop h2 { margin-bottom: 0; }

section p { margin: 0 0 18px; }

.opening {
  color: var(--blauw);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 340;
  line-height: 1.25;
  margin: 18px 0 28px !important;
}

.citaat {
  color: var(--koraal-tekst);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 340;
  line-height: 1.35;
  margin: 32px 0 !important;
  padding-left: 22px;
  border-left: 2px solid var(--koraal);
}

.ondertekening { font-style: italic; color: var(--koraal-tekst); }

/* Gedichten zoals in het boek */
.gedicht {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.gedicht + .gedicht { border-top: 1px solid var(--lijn); }
.gedicht-beeld img { width: 100%; max-width: 380px; margin: 0 auto; }

/* Nummer met groeiende stip (Stef die groeit) */
.nummer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--koraal-tekst);
  margin: 0 !important;
  min-height: 28px;
}
.nummer::before {
  --d: calc(7px + (var(--n) - 1) * 1.3px);
  width: var(--d);
  height: var(--d);
}

.gedicht h3 {
  color: var(--inkt);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 12px 0 24px;
}

.strofe { margin: 0 0 14px !important; font-size: 1.05rem; line-height: 1.55; }
.strofe span {
  display: block;
  padding-left: 1.6em;
  text-indent: -1.6em;  /* hangende inspringing voor lange regels */
}

/* Foto's: als afdrukje met witte rand, licht scheef */
.foto { margin: 40px 0; }
.foto img {
  width: 100%;
  background: #fff;
  padding: 10px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(44, 39, 56, 0.08), 0 12px 32px rgba(44, 39, 56, 0.12);
}
.foto figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--zacht);
  font-style: italic;
}
.foto-whiteboard img { transform: rotate(-0.8deg); }
.foto-rij {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  align-items: center;
  margin: 40px 0 8px;
}
.foto-rij .foto { margin: 0; }
.foto-papa img { transform: rotate(1.2deg); }

/* Bestellen */
.bestel { background: var(--tint); }

.bestel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}

.prijs {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 340;
  color: var(--blauw);
  font-size: 2.6rem;
  line-height: 1;
  margin: 0 0 24px !important;
}

.bestel-lijst { list-style: none; padding: 0; margin: 0 0 32px; }
.bestel-lijst li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lijn);
}
.bestel-lijst li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--koraal);
}

.prijs-uitleg { color: var(--zacht); margin: 0 0 24px !important; max-width: 30em; }

.post-info {
  display: flex;
  gap: 14px;
  font-size: 0.98rem;
  margin: 0 !important;
  padding: 16px 0;
  border-top: 1px solid var(--lijn);
  border-bottom: 1px solid var(--lijn);
  margin-bottom: 28px !important;
}
.post-info::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--koraal);
}
.post-info strong { font-weight: 500; color: var(--blauw); }

.stappen {
  counter-reset: stap;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.stappen li {
  counter-increment: stap;
  display: flex;
  gap: 14px;
  padding: 6px 0;
}
.stappen li::before {
  content: counter(stap);
  flex: none;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--koraal);
  color: #fff;
  font-family: var(--display);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  margin-top: 0.15em;
}

.formulier {
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px 4px;
}
.formulier iframe { display: block; }

.knop-groot { padding: 16px 40px; font-size: 1.15rem; }

.kleine-tekst { font-size: 0.92rem; color: var(--zacht); margin-top: 18px !important; max-width: 34em; }

.bestel-boek { position: sticky; top: 32px; }
.bestel-boek img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(42, 63, 158, 0.18);
}

/* Doneren */
.doneer { max-width: var(--smal); }
.binnenkort {
  display: inline-block;
  margin-top: 0 !important;
  padding: 10px 18px;
  border: 1.5px dashed var(--koraal);
  border-radius: 999px;
  color: var(--koraal-tekst);
  font-size: 1rem;
}

/* Voet */
.voet { text-align: center; padding: 80px 0 48px; }
.voet img { width: 120px; margin: 0 auto 16px; }
.voet .slot { color: var(--blauw); font-size: 1.6rem; font-weight: 340; margin: 0 0 24px; }
.voet p { margin: 0 0 12px; }
.privacy {
  max-width: 560px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--lijn);
  font-size: 0.92rem;
  color: var(--zacht);
}
.privacy h3 { margin-bottom: 10px; }
.voet small { display: block; color: var(--zacht); font-size: 0.85rem; margin-top: 28px; }

/* Bevestigingspagina */
.bedankt { padding: 32px 0 96px; }
.bedankt h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 18px 0 24px; }
.fout { color: #a3402b; }

/* Tablet en mobiel */
@media (max-width: 860px) {
  .hero, .gedicht, .bestel-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 8px; padding-bottom: 72px; }
  .hero-beeld { order: -1; }
  .hero-beeld img { max-width: 280px; margin: 0 auto; }
  .bestel-boek { order: -1; position: static; }
  .bestel-boek img { max-width: 200px; }
  .gedicht { padding: 48px 0; }
  .gedicht-beeld img { max-width: 260px; }
  section { padding: 72px 0; }
}

@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .wrap, .wrap-smal { padding: 0 16px; }
  .kop nav a:not(:last-child) { display: none; }
  .knoppen .knop { flex: 1 1 auto; text-align: center; }
  .strofe { font-size: 1rem; }
  .foto-rij { grid-template-columns: 1fr; gap: 28px; }
  .foto-papa img { max-width: 260px; margin: 0 auto; }
}

/* Badge die Netlify zelf toevoegt op gratis projecten: verbergen */
#nl-badge-frame { display: none !important; }
