/* Losse pagina's: leesmodus voor het hoofdstuk en de 404 "Geen signaal". */

/* ---------- Leesmodus ---------- */

.reader {
  max-width: 44rem;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-xl)) var(--gutter) var(--space-2xl);
}

.reader__progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-header) + 1);
  height: 3px;
  background: oklch(0.13 0.04 278 / 0.6);
}

.reader__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sunset), var(--amber));
  box-shadow: 0 0 10px var(--amber-glow);
  transform-origin: left;
  transform: scaleX(var(--reading-progress, 0));
}

.reader__head {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.reader__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 135%;
  font-size: var(--step-4);
  line-height: 0.95;
}

.reader__from {
  color: var(--paper-dim);
}

.reader__text {
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.8;
}

.reader__text p + p {
  margin-top: 1.1em;
}

.reader__heading {
  margin: var(--space-xl) 0 var(--space-s);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 850;
  font-stretch: 130%;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--sunset);
}

.reader__heading:first-child {
  margin-top: 0;
}

.reader__foot {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line);
  font-size: var(--step-1);
}

.reader__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ---------- 404 ---------- */

.lost {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--header-height) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.lost__static {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.lost__content {
  display: grid;
  justify-items: center;
  gap: var(--space-s);
  max-width: 34rem;
  text-align: center;
}

.lost__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--amber);
  text-shadow: 0 0 20px var(--amber-glow);
}

.lost__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 140%;
  font-size: var(--step-5);
  line-height: 0.9;
}

@media (max-width: 980px) {
  .reader {
    padding-top: calc(var(--header-height) + var(--space-l));
  }
}

@media (max-width: 640px) {
  .reader__text {
    line-height: 1.75;
  }
}

@media (max-width: 420px) {
  .lost__title {
    font-stretch: 110%;
  }
}
