/* Basis: reset, typografie, knoppen en gedeelde patronen. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button,
a,
summary,
label {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--sunset);
  color: var(--night-950);
}

.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;
}

.sr-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: var(--space-s);
  left: var(--space-s);
  z-index: var(--z-overlay);
  padding: var(--space-xs) var(--space-s);
  background: var(--amber);
  color: var(--night-950);
  font-weight: 700;
  border-radius: var(--radius-s);
  transform: translateY(-200%);
  transition: transform var(--duration-base) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- Secties ---------- */

.section {
  position: relative;
  padding: var(--space-2xl) var(--gutter);
}

.section > * {
  max-width: var(--content-max);
  margin-inline: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.section-head__freq {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.section-head__freq span {
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  font-size: 1.15em;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px var(--amber-glow);
}

.section-head__freq::after {
  content: '';
  flex: 0 0 4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.section-head__title {
  font-family: var(--font-display);
  font-stretch: 140%;
  font-weight: 850;
  font-style: italic;
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head__intro {
  max-width: 46ch;
  color: var(--paper-dim);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* Grote koppen: lange (Nederlandse) woorden mogen afbreken in plaats van uit beeld lopen,
   ook bij 200% tekstgrootte op een telefoon. */
.section-head__title,
.station__name,
.book__title,
.product__title,
.feature-tape__title,
.pictures__title,
.reader__title,
.reader__heading,
.lost__title,
.era__title,
.tape__title {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  min-width: 0;
}

/* ---------- Knoppen en links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--tap-min);
  padding: 0.7em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.1;
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--sunset);
  color: var(--night-950);
  box-shadow: 0 0 0 0 var(--sunset), 0 10px 30px -12px var(--sunset);
}

.button--primary:hover {
  background: var(--amber);
  box-shadow: 0 0 28px -4px var(--amber-glow), 0 10px 30px -12px var(--amber);
}

.button--ghost {
  border-color: var(--line-strong);
  color: var(--paper);
  background: oklch(0.24 0.075 280 / 0.4);
}

.button--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.button__price {
  padding-left: 0.7em;
  border-left: 1px solid oklch(0.13 0.04 278 / 0.35);
  font-variant-numeric: tabular-nums;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--night-800);
  color: var(--paper);
  transition: border-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}

.icon-button:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: var(--tap-min);
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: var(--paper);
}

.text-link .icon {
  width: 1em;
  height: 1em;
}

/* ---------- Scroll-onthulling (alleen met JS en zonder reduced motion) ---------- */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--night-950);
  padding: var(--space-l) var(--gutter) calc(var(--space-l) + var(--player-space, 0px) + env(safe-area-inset-bottom));
}

.site-footer__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-m) var(--space-l);
  color: var(--paper-faint);
  font-size: var(--step--1);
}

.site-footer__brand .wordmark {
  width: 7rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  text-decoration: none;
  color: var(--paper-dim);
}

.site-footer__links a:hover {
  color: var(--amber);
}

/* ---------- Vaste Mixcloud-speler ---------- */

.player-bar {
  position: fixed;
  inset: auto max(var(--space-s), env(safe-area-inset-right)) max(var(--space-s), env(safe-area-inset-bottom)) max(var(--space-s), env(safe-area-inset-left));
  z-index: var(--z-player);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-xs);
  max-width: 56rem;
  margin-inline: auto;
  padding: var(--space-2xs);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--night-950);
  box-shadow: 0 20px 60px -20px oklch(0.05 0.02 278 / 0.9), 0 0 0 1px oklch(0.85 0.15 78 / 0.08);
  animation: player-in var(--duration-slow) var(--ease-out);
}

.player-bar[hidden] {
  display: none;
}

.player-bar__frame iframe {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: var(--radius-s);
}

@keyframes player-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* ---------- Responsief ---------- */

@media (max-width: 980px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer__note {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--space-xl);
  }

  .section-head {
    margin-bottom: var(--space-l);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .player-bar {
    inset: auto max(var(--space-2xs), env(safe-area-inset-right)) max(var(--space-2xs), env(safe-area-inset-bottom)) max(var(--space-2xs), env(safe-area-inset-left));
  }
}

@media (max-width: 420px) {
  .button {
    width: 100%;
  }

  .section-head__title {
    font-stretch: 118%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
