/* Raar — website. Tokens uit het designsysteem "Raar". */

@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --papier: #ffffff;
  --papier-grijs: #f4f2ea;
  --inkt: #141414;
  --inkt-zacht: #4d4d4d;
  --rood: #e52222;
  --rood-donker: #a81515;
  --op-rood: #ffffff;
  --geel: #f2e500;
  --focus: #141414;
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-tekst: "Source Serif 4", Georgia, serif;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px; --space-7: 104px;
  --stang: 8px;
  --lijn: 2px;
  --marge: clamp(16px, 4vw, 40px);
  --sectie: clamp(64px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--inkt); font-family: var(--font-tekst); font-size: 18px; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--inkt); }
a:hover { color: var(--rood-donker); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 3px var(--geel); }
p { margin: 0; }

.d { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--marge); top: -100px; z-index: 10; background: var(--geel); color: var(--inkt); padding: 8px 16px; font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; text-decoration: none; }
.skip:focus { top: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.sectie { padding: var(--sectie) var(--marge); }
.twee { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: start; }
.stapel { display: flex; flex-direction: column; gap: var(--space-4); }
.intro { font-size: 22px; line-height: 1.5; max-width: 32em; }
.tekst { max-width: 36em; }
.klein { font-size: 15px; line-height: 1.5; color: var(--inkt-zacht); }

/* Kop */
.kop-label { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--inkt-zacht); margin-bottom: var(--space-1); }
.kop { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4vw, 48px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.kop-rood .kop { color: var(--rood); }

/* Knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; line-height: 1; text-transform: uppercase; text-decoration: none; padding: 14px var(--space-4) 12px; border: var(--lijn) solid transparent; border-radius: 0; cursor: pointer; }
.knop-koop { background: var(--rood); color: var(--op-rood); }
.knop-koop:hover { background: var(--rood-donker); color: var(--op-rood); }
.knop-rand { background: transparent; color: var(--inkt); border-color: var(--inkt); }
.knop-rand:hover { background: var(--inkt); color: var(--papier); }
.knop-groot { font-size: 28px; padding: 18px 32px 16px; }
.link { display: inline-block; padding: 6px 0; font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--inkt); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--geel); text-underline-offset: 4px; }
.link:hover { color: var(--rood-donker); }
.sectie-geel .link { text-decoration-color: var(--inkt); }

/* Kopregel */
.top { position: sticky; top: 0; z-index: 5; background: var(--papier); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 16px var(--marge); border-bottom: var(--lijn) solid var(--inkt); }
.top-logo { font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: .02em; color: var(--rood); text-decoration: none; }
.top-logo:hover { color: var(--rood-donker); }
.top-rechts { display: flex; align-items: center; gap: 12px 28px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.menu a { font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 10px 0; }
.top .knop { min-height: 44px; padding: 12px 20px 10px; font-size: 20px; }
.menu-knop { display: none; width: 44px; height: 44px; padding: 0; border: var(--lijn) solid var(--inkt); background: var(--papier); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-knop span { display: block; width: 22px; height: 3px; background: var(--inkt); transition: transform .2s, opacity .2s; }
.is-open .menu-knop span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.is-open .menu-knop span:nth-child(2) { opacity: 0; }
.is-open .menu-knop span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 720px) {
  /* Telefoon: een smalle balk met logo, Bestel en hamburger. De links staan altijd achter de hamburger. */
  .top { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .top-logo { font-size: 28px; }
  .top-rechts { gap: 10px; }
  .top .knop { min-height: 40px; padding: 10px 14px 8px; font-size: 18px; }
  .menu-knop { display: flex; width: 40px; height: 40px; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--papier); border-bottom: var(--lijn) solid var(--inkt); padding: 0 var(--marge) 4px; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .is-open .menu, html:not(.js) .menu-knop:focus + .menu, html:not(.js) .menu:focus-within { display: flex; }
  .menu-knop { order: 3; }
  .menu a { font-size: 20px; padding: 10px 0 8px; border-top: 1px solid #e3e3e3; }
  .menu a:first-child { border-top: 0; }
}

/* Hero */
.hero { text-align: center; padding-top: clamp(48px, 7vw, 88px); }
.hero-auteur { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin: 8px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 10vw, 136px); line-height: .9; letter-spacing: .01em; text-transform: uppercase; color: var(--rood); }
.hero-knoppen { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 32px; margin: 32px var(--marge) 48px; }
.stang { position: relative; z-index: 1; }
.stang-lijn { height: var(--stang); background: var(--inkt); }
.stang-aap { width: min(372px, 80vw); margin: calc(-1 * var(--stang)) auto 0; }
.hero-woord { height: clamp(150px, 26vw, 380px); overflow: hidden; margin-top: -24px; }
.hero-woord img { width: 100%; }

/* Boek */
.sectie-geel { background: var(--geel); }
.boek-beeld { justify-self: center; width: 100%; max-width: 460px; }
.boek { width: 100%; transform: rotate(-2.5deg); }
@media (max-width: 720px) {
  /* Op de telefoon eerst de tekst, dan het boek: zo staat het niet direct onder het aapje uit de kop. */
  #boek .boek-beeld { order: 2; max-width: 300px; }
}
.uitroep { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; color: var(--rood); }
.feiten { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0; font-size: 15px; line-height: 1.5; }
.feiten dt { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--inkt-zacht); }
.sectie-geel .feiten dt { color: var(--inkt); }
.feiten dd { margin: 0; }

/* Citaat */
.sectie-citaat { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.citaat { margin: 0; max-width: 34em; }
.citaat p { font-style: italic; font-size: 26px; line-height: 1.35; }
.citaat p::before { content: "\201C"; font-family: var(--font-display); font-style: normal; color: var(--rood); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: .08em; }
.citaat p::after { content: "\201D"; font-family: var(--font-display); font-style: normal; color: var(--rood); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-left: .08em; }
.citaat footer { margin-top: var(--space-2); font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--inkt-zacht); }

/* Auteur */
.sectie-auteur { padding-top: 0; }
.auteur { margin-top: clamp(48px, 6vw, 88px); align-items: center; }
.auteur-foto { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; object-fit: cover; justify-self: center; }

/* Interviews */
.sectie-grijs { background: var(--papier-grijs); }
.media-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 760px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
.media { display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-3); }
@supports (grid-template-rows: subgrid) {
  .media { grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--space-3); }
  .media-grid { row-gap: var(--space-5); }
}
.media .links { align-self: end; }
.iv { background: var(--papier); border: var(--lijn) solid var(--inkt); }
.iv-speler { position: relative; aspect-ratio: 16 / 9; background: var(--inkt); display: flex; align-items: center; justify-content: center; }
.iv-speler.is-audio.is-actief { background: #282828; }
.iv-speler iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.iv-play { width: 72px; height: 72px; border-radius: 9999px; background: var(--rood); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.iv-play:hover { background: var(--rood-donker); }
.iv-play::after { content: ""; border-left: 22px solid var(--op-rood); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.iv-speler-tekst { position: absolute; left: 0; right: 0; bottom: 12px; padding: 0 16px; font-size: 13px; line-height: 1.4; color: #d9d9d9; text-align: center; }
.iv-tekst { padding: var(--space-3) var(--space-4) var(--space-4); }
.iv-soort { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--inkt-zacht); }
.iv-titel { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.iv-bron { margin-top: var(--space-2); font-size: 15px; color: var(--inkt-zacht); }
.links { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* Bestellen */
.bestel { display: grid; gap: var(--space-4); max-width: 560px; }
.bestel-prijs { font-family: var(--font-display); font-size: 72px; line-height: .95; color: var(--rood); }
.bestel-prijs small { display: block; margin-top: 6px; font-family: var(--font-tekst); font-size: 15px; line-height: 1.5; color: var(--inkt-zacht); }
.bestel-knop { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }

/* Voet */
.voet { background: var(--inkt); color: var(--papier); padding: var(--space-5) var(--marge); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.voet-naam { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.voet-logo { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--rood); }
.voet p { font-size: 15px; line-height: 1.5; }
.voet a { color: var(--papier); }
.voet .link { color: var(--papier); }
.voet :focus-visible { outline-color: var(--papier); }

/* Tweede citaat: lezer */
.sectie-lezer { background: var(--geel); }
.sectie-lezer .citaat p::before, .sectie-lezer .citaat p::after { color: var(--inkt); }
.sectie-lezer .citaat footer { color: var(--inkt); }
.sectie-lezer .link { text-decoration-color: var(--inkt); }
.sterren { color: var(--rood); letter-spacing: .1em; margin-right: .4em; }

/* Beweging: het aapje schommelt licht en RAAR schuift wat trager mee bij het scrollen. Alleen als de browser dit kan en de bezoeker beweging niet heeft uitgezet. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .stang-aap { transform-origin: 50% 0; animation: schommel linear both; animation-timeline: scroll(root); animation-range: 0 600px; }
    .hero-woord img { animation: zakken linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    @keyframes schommel { 0% { transform: rotate(0deg); } 35% { transform: rotate(4deg); } 70% { transform: rotate(-3deg); } 100% { transform: rotate(1deg); } }
    @keyframes zakken { from { transform: translateY(0); } to { transform: translateY(18%); } }
  }
}
