/* Het magazine: een bladerblad. Twee bladzijden naast elkaar op een groot scherm, een per keer op de telefoon. */
:root { --inkt: #1b2150; --roze: #ff4f9a; --roze-l: #ffe1ee; --blauw: #2f6bff; --blauw-l: #dcebff; --geel: #ffd23f; --creme: #fffaf5;
  --schreef: 'Fraunces', Georgia, serif; --sans: 'Geist', system-ui, sans-serif; --k: var(--roze); --kl: var(--roze-l); }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: radial-gradient(120% 90% at 50% 0%, #3a2a66 0%, #1b2150 55%, #12163a 100%); color: var(--inkt); font: 400 16px/1.5 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
h1, h2, blockquote { font-family: var(--schreef); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; text-wrap: balance; }

.balk { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; color: #fff; }
.balk .terug { font: 500 14px var(--sans); opacity: .8; }
.balk .terug:hover { opacity: 1; }
.balk .titel { font: 400 19px var(--schreef); }
.balk .titel em { color: #ff9cc6; }
.balk .teller { font: 500 13px var(--sans); opacity: .75; min-width: 86px; text-align: right; font-variant-numeric: tabular-nums; }

.boek { position: relative; height: calc(100dvh - 52px - 26px); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 14px; }
.bladen { --h: min(calc(100dvh - 104px), calc((100vw - 150px) * .667)); height: var(--h); width: calc(var(--h) * 1.5); display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); background: var(--creme); overscroll-behavior-x: contain; }
.bladen::-webkit-scrollbar { display: none; }
.blad { position: relative; flex: 0 0 50%; height: 100%; overflow: hidden; background: var(--creme); container-type: inline-size; padding: 7cqw 7cqw 6cqw; display: flex; flex-direction: column; }
.blad:nth-child(odd) { scroll-snap-align: start; box-shadow: inset -26px 0 30px -26px rgba(27, 33, 80, .28); }
.blad:nth-child(even) { box-shadow: inset 26px 0 30px -26px rgba(27, 33, 80, .28); }
.pijl { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; cursor: pointer; transition: background .2s, scale .25s cubic-bezier(.34, 1.56, .64, 1); }
.pijl:hover { background: var(--roze); scale: 1.08; }
.pijl:disabled { opacity: .25; cursor: default; scale: 1; background: rgba(255, 255, 255, .14); }
.voortgang { height: 4px; margin: 10px auto 0; width: min(420px, 60vw); background: rgba(255, 255, 255, .16); border-radius: 4px; overflow: hidden; }
.voortgang i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--roze), var(--geel)); border-radius: 4px; transition: width .35s ease; }

.rubriek { font: 600 2.6cqw/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--k); }
.vol { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.waas { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 33, 80, .55) 0%, rgba(27, 33, 80, .05) 34%, rgba(27, 33, 80, .1) 55%, rgba(27, 33, 80, .9) 100%); }
.bol { position: absolute; border-radius: 50%; }

/* Kaft */
.kaft { color: #fff; justify-content: space-between; }
.kaft > * { position: relative; }
.kaft .vol, .kaft .waas { position: absolute; }
.kaft header { text-align: center; }
.kaft .nr { font: 600 2.5cqw var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.kaft h1 { font-size: 17.5cqw; line-height: .9; margin-top: 2cqw; font-weight: 300; }
.kaft h1 em { display: block; color: #ffb3d4; font-weight: 300; }
.kaft .onderkop { display: inline-block; margin-top: 2.4cqw; font: 400 italic 3.6cqw var(--schreef); }
.kaftregels { list-style: none; padding: 0; display: grid; gap: 2.2cqw; margin-bottom: 7cqw; }
.kaftregels li { font: 400 4cqw/1.15 var(--schreef); max-width: 78%; }
.kaftregels b { display: block; font: 700 2.3cqw var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--geel); margin-bottom: .6cqw; }
.veeg { position: absolute !important; right: 7cqw; bottom: 6cqw; font: 600 2.8cqw var(--sans); background: var(--roze); padding: 1.6cqw 3cqw; border-radius: 99px; }

/* Brief en inhoud */
.brief h2 { font-size: 11cqw; margin: 3cqw 0 4cqw; }
.brief h2 em, .pronk h2 em, .achter h2 em { color: var(--roze); }
.brief p { font: 400 3.5cqw/1.5 var(--schreef); margin-bottom: 2.4cqw; }
.brief .groet em { font-size: 4.6cqw; color: var(--roze); }
.inhoud { list-style: none; padding: 3cqw 0 0; margin-top: auto; border-top: 2px solid var(--inkt); display: grid; gap: 1.3cqw; }
.inhoud .kop { font: 700 2.3cqw var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.inhoud li { display: grid; grid-template-columns: 6cqw 21cqw 1fr; align-items: baseline; font-size: 2.7cqw; }
.inhoud li.kop { display: block; margin-bottom: 1cqw; }
.inhoud span { font: 500 2.6cqw var(--schreef); color: var(--roze); }
.inhoud b { font-weight: 600; }
.inhoud em { color: #5b6189; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Product */
.mp { display: flex; flex-direction: column; gap: 1.2cqw; background: #fff; border-radius: 3.5cqw; padding: 2.4cqw; border: 2px solid var(--kl); transition: translate .3s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, box-shadow .2s; min-height: 0; }
.mp:hover { translate: 0 -1cqw; border-color: var(--k); box-shadow: 1.2cqw 1.2cqw 0 var(--k); }
.mp-foto { position: relative; flex: 1; min-height: 0; aspect-ratio: 1.25; }
.mp-foto img { position: absolute; inset: 0; margin: auto; width: 92%; height: 92%; object-fit: contain; }
.mp-naam { font: 600 2.9cqw/1.2 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-waarom { font: 400 italic 2.6cqw/1.3 var(--schreef); color: #5b6189; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-onder { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; }
.mp-onder b { font: 600 3.8cqw var(--schreef); }
.mp-onder i { font: 600 2.3cqw var(--sans); font-style: normal; color: #fff; background: var(--k); padding: 1.2cqw 2.2cqw; border-radius: 99px; white-space: nowrap; }
.mp-raster { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2.4cqw; margin: 3cqw 0; }
.shop { background: linear-gradient(160deg, var(--kl), var(--creme) 60%); }
.shop .meer { align-self: center; font: 600 2.7cqw var(--sans); border-bottom: 2px solid var(--k); padding-bottom: .4cqw; }

/* Pronkstuk */
.pronk { background: linear-gradient(160deg, var(--roze-l), var(--creme) 55%, var(--blauw-l)); }
.pronk h2 { font-size: 9.5cqw; margin: 3cqw 0 4cqw; }
.mp.groot { flex: 1; padding: 3.4cqw; gap: 1.8cqw; }
.mp.groot .mp-naam { font-size: 4.4cqw; }
.mp.groot .mp-waarom { font-size: 3.6cqw; }
.mp.groot .mp-onder b { font-size: 6cqw; }
.mp.groot .mp-onder i { font-size: 3cqw; padding: 1.8cqw 3.4cqw; }

/* Quote, opening, achterkant */
.quote { background: var(--inkt); color: #fff; justify-content: center; align-items: center; text-align: center; }
.quote blockquote { position: relative; font-size: 7.4cqw; font-weight: 300; line-height: 1.14; }
.quote em { color: #ff9cc6; }
.quote .hartje { position: relative; margin-top: 5cqw; font-size: 7cqw; color: var(--roze); }
.quote .b1, .achter .b1 { width: 46cqw; height: 46cqw; background: var(--roze); opacity: .22; right: -14cqw; top: -14cqw; }
.quote .b2, .achter .b2 { width: 30cqw; height: 30cqw; background: var(--geel); opacity: .25; left: -9cqw; bottom: -8cqw; }
.opening { color: #fff; justify-content: flex-end; }
.opening .waas { background: linear-gradient(180deg, rgba(27, 33, 80, .08) 30%, rgba(27, 33, 80, .92) 100%); }
.opening-tekst { position: relative; }
.opening .rubriek { display: inline-block; background: var(--geel); color: var(--inkt); padding: 1.5cqw 2.8cqw; border-radius: 99px; }
.opening h2 { font-size: 10.5cqw; margin: 3.4cqw 0 3cqw; }
.opening h2 em { color: #ffb3d4; }
.opening p { font: 400 3.3cqw/1.45 var(--schreef); max-width: 92%; opacity: .95; }
.achter { background: linear-gradient(160deg, var(--blauw-l), var(--creme) 55%, var(--roze-l)); justify-content: center; }
.achter > * { position: relative; }
.achter h2 { font-size: 9.5cqw; margin: 3cqw 0; }
.achter p { font: 400 3.6cqw/1.45 var(--schreef); }
.achter .knop { align-self: flex-start; margin: 5cqw 0; background: var(--roze); color: #fff; font: 600 3.3cqw var(--sans); padding: 2.6cqw 5cqw; border-radius: 99px; box-shadow: 0 1cqw 0 #e63584; }
.achter small { font-size: 2.2cqw; line-height: 1.5; color: #5b6189; }

/* Telefoon: een bladzijde per keer, schermvullend */
@media (max-width: 760px) {
  .boek { padding: 0; gap: 0; height: calc(100dvh - 46px - 14px); }
  .balk { height: 46px; padding: 0 14px; }
  .balk .terug span { display: none; }
  .bladen { --h: calc(100dvh - 60px); width: 100vw; height: var(--h); border-radius: 0; box-shadow: none; }
  .blad { flex-basis: 100%; scroll-snap-align: start; box-shadow: none !important; padding: 8cqw 7cqw 7cqw; }
  .pijl { position: absolute; bottom: 14px; z-index: 5; width: 42px; height: 42px; background: rgba(27, 33, 80, .55); backdrop-filter: blur(6px); }
  .pijl.vorige { left: 12px; } .pijl.volgende { right: 12px; }
  .voortgang { margin-top: 5px; width: 70vw; }
  .mp-raster { margin-bottom: 14cqw; }
  .shop .meer { position: absolute; left: 0; right: 0; bottom: 5.5cqw; text-align: center; border: 0; }
  .veeg { bottom: 18cqw; }
}

/* Kaft beter leesbaar */
.kaft .waas { background: linear-gradient(180deg, rgba(27, 33, 80, .78) 0%, rgba(27, 33, 80, .25) 40%, rgba(27, 33, 80, .2) 55%, rgba(27, 33, 80, .92) 100%); }

/* Telefoon: omslaan als een bladzijde. De bladzijde die je wegveegt draait om zijn rug weg, de volgende ligt eronder. */
@media (max-width: 760px) {
  .bladen { perspective: 1400px; }
  @supports (animation-timeline: view()) {
    .blad { transform-origin: left center; animation: omslaan linear both; animation-timeline: view(inline); animation-range: exit 0% exit 100%; }
    @keyframes omslaan {
      0% { transform: translateX(0) rotateY(0); filter: brightness(1); }
      100% { transform: translateX(100%) rotateY(-88deg); filter: brightness(.55); }
    }
  }
}
@media (max-width: 760px) {
  .balk .titel { font-size: 17px; white-space: nowrap; }
  .blad { padding-bottom: 19cqw; }
  .brief .inhoud { margin-bottom: 0; }
  .kaftregels { margin-bottom: 4cqw; }
  .veeg { bottom: 21cqw; }
}

/* Raster nooit breder dan de bladzijde (Safari rekende de tegels soms te breed; bladzijde 8) */
.mp-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp { min-width: 0; overflow: hidden; }
.mp-onder { min-width: 0; }
.mp-onder i { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .bladen { width: 100%; } .blad { scroll-snap-stop: always; } }

/* Computer: groter boek, minder rand, grotere letters (25 nov) */
@media (min-width: 761px) {
  .balk { height: 44px; }
  .boek { height: calc(100dvh - 44px - 18px); padding: 4px 10px; gap: 10px; }
  .voortgang { margin-top: 6px; }
  .bladen { --h: min(calc(100dvh - 72px), calc((100vw - 130px) * .667)); }
  .blad { padding: 2.6% 3% 2.4%; }   /* % rekent hier op de breedte van het boek (2 pagina's); cqw rekende op het hele scherm */
  .rubriek { font-size: 2.9cqw; }
  .mp { padding: 2cqw; gap: 1cqw; }
  .mp-naam { font-size: 3.5cqw; }
  .mp-waarom { font-size: 3.1cqw; }
  .mp-onder b { font-size: 4.4cqw; }
  .mp-onder i { font-size: 2.7cqw; padding: 1.2cqw 2.4cqw; }
  .mp-raster { gap: 2cqw; margin: 2.4cqw 0; }
  .shop .meer { font-size: 3cqw; }
  .brief p { font-size: 3.8cqw; }
  .opening p, .achter p { font-size: 3.9cqw; }
  .inhoud li { font-size: 2.9cqw; }
  .kaftregels li { font-size: 4.4cqw; }
}

/* Rubrieken handgeschreven in roze (Caveat, zoals de Yasmine-demo), geen gele blokletters meer (25 nov) */
:root { --hand: 'Caveat', cursive; }
.rubriek { font: 700 4.6cqw/1 var(--hand) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--roze) !important; }
.kaftregels b { font: 700 4.4cqw/1 var(--hand) !important; letter-spacing: 0 !important; text-transform: none !important; color: #ffb3d4 !important; margin-bottom: .2cqw !important; }
.opening .rubriek { background: none !important; padding: 0 !important; color: #ffb3d4 !important; font-size: 5.4cqw !important; }
.inhoud .kop { font: 700 4cqw/1 var(--hand) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--roze); }
.kaft .nr { font: 700 4.2cqw/1 var(--hand) !important; letter-spacing: 0 !important; text-transform: none !important; color: #ffb3d4; }
@media (min-width: 761px) { .rubriek { font-size: 4.8cqw !important; } }
