/* abeljagersma.com
   Palet gemeten uit de illustraties van Van Kerstgroet tot Kerstwens.
   Opzet: lavendelwit als papier, nachtlucht voor kop, gedichtenlezer en contact;
   de vijf hoofdkleuren staan voor de vijf bewegingen en keren terug als banen. */
:root {
  --sneeuw: #EEF0F7;
  --sneeuw-diep: #D4DAE8;
  --nacht: #26294B;
  --nacht-licht: #3D3E66;
  --inkt: #2C1E1C;
  --inkt-zacht: #5A4B50;
  --sterlicht: #F3E2B5;
  --raamlicht: #FDCB70;
  --rose: #914F52;
  --oker: #C07B49;
  --goud: #DBBB5C;
  --lei: #4C5C82;
  --pruim: #674669;
  --kop-font: "Fraunces", "Iowan Old Style", Georgia, serif;
  --tekst-font: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sneeuw);
  color: var(--inkt);
  font: 400 1.125rem/1.65 var(--tekst-font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lei); text-underline-offset: .18em; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--raamlicht); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--kop-font); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.45rem; margin: 2rem 0 .7rem; }
h3:first-child { margin-top: 0; }
p { margin: 0 0 1rem; max-width: 62ch; }

.label {
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rose); margin-bottom: .7rem;
}
.ster { width: 1em; height: 1em; fill: var(--sterlicht); flex: none; }

/* kop */
.kop {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 2rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: var(--nacht); color: var(--sneeuw);
}
.naam {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--kop-font); font-size: 1.35rem; color: var(--sneeuw); text-decoration: none;
}
.naam:hover { color: var(--sterlicht); }
.kop nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.kop nav a { color: var(--sneeuw-diep); text-decoration: none; font-size: 1rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.kop nav a:hover { color: var(--sterlicht); border-color: var(--goud); }

/* opening */
.opening {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--nacht) 0%, var(--nacht-licht) 62%, var(--pruim) 100%);
  color: var(--sneeuw);
}
.motto { font-family: var(--kop-font); font-style: italic; font-size: 1.4rem; color: var(--raamlicht); margin-bottom: .6rem; }
.lead { font-size: 1.3rem; line-height: 1.5; margin: 1.3rem 0 1.8rem; color: var(--sneeuw-diep); max-width: 34ch; }
.opening-beeld { margin: 0; justify-self: center; max-width: 340px; }
.opening-beeld img { border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }

.knoppen { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }
.knop {
  display: inline-block; padding: .75rem 1.3rem; border: 2px solid var(--raamlicht); border-radius: 999px;
  background: var(--raamlicht); color: var(--inkt); font: 600 1rem var(--tekst-font);
  text-decoration: none; cursor: pointer;
}
.knop:hover { background: var(--sterlicht); border-color: var(--sterlicht); color: var(--inkt); }
.knop.stil { background: transparent; color: var(--sterlicht); }
.knop.stil:hover { background: rgba(243,226,181,.14); color: var(--sterlicht); }

/* vijf banen: de vijf bewegingen van de bundel */
.banen { display: grid; }
.banen i { height: 7px; }
.banen i:nth-child(1) { background: var(--rose); }
.banen i:nth-child(2) { background: var(--oker); }
.banen i:nth-child(3) { background: var(--goud); }
.banen i:nth-child(4) { background: var(--lei); }
.banen i:nth-child(5) { background: var(--pruim); }

/* blokken */
.blok { padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 6vw, 5rem); }
.blok > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.blok > p.smal { max-width: 1180px; }
.tweeluik { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.nacht { background: var(--nacht); color: var(--sneeuw); }
.nacht .label { color: var(--raamlicht); }
.nacht a { color: var(--sterlicht); }

.brief {
  margin-top: 1.6rem; padding: 1.5rem 1.6rem; background: #fff8; border-left: 5px solid var(--goud);
  font-family: var(--kop-font); font-size: 1.12rem; line-height: 1.6;
}
.brief p:last-child { margin-bottom: 0; }
.groet { margin-top: 1.4rem; }

.bewegingen { list-style: none; margin: 0 0 1.8rem; padding: 0; counter-reset: b; display: grid; gap: .7rem; }
.bewegingen li {
  counter-increment: b; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .4rem;
  padding: .75rem 1rem .8rem .9rem; background: #fff8; border-left: 7px solid var(--k);
}
.bewegingen li::before { content: counter(b, upper-roman); grid-row: span 2; font-family: var(--kop-font); font-size: 1.3rem; color: var(--k); }
.bewegingen b { font-family: var(--kop-font); font-weight: 600; font-size: 1.15rem; }
.bewegingen span { font-size: .98rem; color: var(--inkt-zacht); }

.gegevens { margin: 1.4rem 0 1.6rem; display: grid; gap: .1rem; border-top: 1px solid var(--sneeuw-diep); }
.gegevens div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--sneeuw-diep); }
.gegevens dt { color: var(--inkt-zacht); font-size: .98rem; }
.gegevens dd { margin: 0; }
.cijfers { font-variant-numeric: tabular-nums; }

.tussenkop { margin-top: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.2rem; }
.platen { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
.platen figure, .plaat-los { margin: 0; }
.platen img, .plaat-los img { border-radius: 3px; box-shadow: 0 6px 16px rgba(38,41,75,.22); }
.platen figcaption { font-family: var(--kop-font); font-style: italic; font-size: 1rem; margin-top: .5rem; color: var(--inkt-zacht); }
.plaat-los { max-width: 330px; justify-self: center; }

.boekbeelden { display: grid; grid-template-columns: 2fr 3fr; gap: 1.2rem; align-items: end; margin-top: 1.6rem; max-width: 30rem; }
.boekbeelden figure, .portretje { margin: 0; }
.boekbeelden img, .portretje img { border-radius: 3px; box-shadow: 0 6px 16px rgba(38,41,75,.22); }
.boekbeelden figcaption { font-size: .9rem; color: var(--inkt-zacht); margin-top: .4rem; }
.portretje { max-width: 17rem; margin-bottom: 1rem; }

/* gedichtenlezer */
.lezer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin-top: 2rem; }
.titels { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.titels li { break-inside: avoid; }
.titels button {
  width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent;
  padding: .42rem .7rem; color: var(--sneeuw-diep); font: 400 1.08rem var(--kop-font); cursor: pointer;
}
.titels button:hover { color: var(--sterlicht); border-color: var(--lei); }
.titels button[aria-current="true"] { color: var(--inkt); background: var(--raamlicht); border-color: var(--goud); }
.gedicht {
  position: sticky; top: 5.5rem; min-height: 22rem;
  padding: clamp(1.5rem, 4vw, 2.8rem); background: var(--sneeuw); color: var(--inkt); border-radius: 3px;
  border-top: 7px solid var(--goud);
}
.gedicht h3 { font-size: 1.9rem; font-style: italic; margin-bottom: 1.3rem; }
.gedicht .tekst { font-family: var(--kop-font); font-size: 1.2rem; line-height: 1.6; white-space: pre-line; margin: 0 0 1.4rem; max-width: none; }
.gedicht h3:has(+ .ondertitel) { margin-bottom: .4rem; }
.gedicht .ondertitel { font-family: var(--kop-font); font-style: italic; color: var(--inkt-zacht); margin-bottom: 1.3rem; }
.gedicht .inhoud { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: flex-start; }
.gedicht .inhoud > div { flex: 1 1 14rem; }
.gedicht .beeld { flex: 0 1 190px; margin: 0; }
.gedicht .beeld img { border-radius: 3px; box-shadow: 0 6px 16px rgba(38,41,75,.22); }
.gedicht .beeld figcaption { font-size: .85rem; color: var(--inkt-zacht); margin-top: .4rem; }
.gedicht .onder { font-family: var(--kop-font); font-style: italic; color: var(--inkt-zacht); }
.gedicht a { color: var(--lei); }
.gedicht .stap { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--sneeuw-diep); }
.gedicht .stap button { background: none; border: 0; padding: .3rem 0; color: var(--lei); font: 500 1rem var(--tekst-font); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.gedicht .stap button:hover { color: var(--rose); }

/* contact */
form { display: grid; gap: .45rem; }
label { font-size: .98rem; font-weight: 500; margin-top: .6rem; }
input, select, textarea {
  width: 100%; padding: .7rem .8rem; border: 2px solid var(--nacht-licht); border-radius: 4px;
  background: var(--sneeuw); color: var(--inkt); font: 400 1.05rem var(--tekst-font);
}
form .knop { justify-self: start; margin-top: 1rem; }
.melding { min-height: 1.6rem; margin: .4rem 0 0; color: var(--raamlicht); }
.adres { font-weight: 600; color: var(--sterlicht); overflow-wrap: anywhere; }

/* voet */
.voet {
  padding: 2rem clamp(1rem, 6vw, 5rem) 2.4rem; background: var(--inkt); color: var(--sneeuw-diep);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .98rem;
}
.voet p { margin: 0; max-width: none; }
.voet p:first-child { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--kop-font); font-style: italic; font-size: 1.15rem; color: var(--sterlicht); }

@media (max-width: 820px) {
  .opening, .tweeluik, .lezer { grid-template-columns: minmax(0, 1fr); }
  .opening-beeld { max-width: 240px; order: -1; }
  .gedicht { position: static; order: -1; min-height: 0; }
  .kop { position: static; }
  .gegevens div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 460px) { .titels { columns: 1; } }
