:root {
  --night: #121212;
  --ink: #ede8dc;
  --mute: #9a958a;
  --hair: #2c2c2c;
  --marker: #ffd60a;
  --alarm: #ff2b4a;
  --display: "Merriweather", "Times New Roman", serif;
  --body: "PT Sans", "Helvetica Neue", sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 4;
  padding: 0.4rem 0.7rem;
  background: var(--marker);
  color: var(--night);
  font-size: 0.9rem;
}

.skip:focus {
  top: 1rem;
}

a {
  color: var(--marker);
  text-underline-offset: 0.18em;
}

a:focus-visible,
.tape__btn:focus-visible,
.fold:focus-visible,
.reel:focus-visible,
.reel__btn:focus-visible,
.skip:focus-visible {
  outline: 2px solid var(--marker);
  outline-offset: 3px;
}

mark {
  background: var(--marker);
  color: var(--night);
  padding: 0 0.12em;
  box-decoration-break: clone;
}

.mark--alarm {
  background: var(--alarm);
  color: #fff;
}

.tape {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(18, 18, 18, 0.92);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(8px);
}

.tape__kicker {
  margin: 0;
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.tape__list {
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.tape__list::-webkit-scrollbar {
  display: none;
}

.tape__btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  color: var(--mute);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.tape__btn:hover {
  color: var(--ink);
}

.tape__btn[aria-current="true"] {
  color: var(--night);
  background: var(--marker);
}

.tape__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.tape__btn[aria-current="true"] .tape__dot {
  background: var(--alarm);
}

.story {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0 0;
}

.lede {
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--hair);
}

.lede__kicker {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--alarm);
}

.lede__to {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: var(--mute);
}

.lede__to strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.lede__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3.35rem);
  font-weight: 900;
  font-optical-sizing: auto;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lede__title a {
  color: inherit;
}

.lede__dek {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  color: var(--mute);
  font-size: 1.05rem;
}

.chapter {
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--hair);
  scroll-margin-top: 4.2rem;
}

.chapter__title {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.chapter p {
  margin: 0 0 1rem;
}

.chapter p:last-child {
  margin-bottom: 0;
}

.mug {
  margin: 0 0 1.4rem;
}

.mug img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hair);
}

.mug figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--mute);
}

.dossier {
  display: grid;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hair);
}

.dossier div {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.dossier dt {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.dossier dd {
  margin: 0;
}

.fact {
  display: grid;
  gap: 0.45rem;
  margin: 1.4rem 0 0;
  padding: 1rem 0 1rem 1rem;
  border-left: 3px solid var(--alarm);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.fact__label {
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--alarm);
}

.said {
  position: relative;
  margin: 1.6rem 0;
  padding: 0.4rem 0 0.2rem 1.35rem;
  border: 0;
  background: transparent;
  border-left: 3px solid var(--marker);
}

.said::before {
  content: "«";
  position: absolute;
  top: -0.35rem;
  left: 0.7rem;
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--marker);
}

.said p {
  margin: 0;
  padding-top: 0.6rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
}

.said__empty {
  color: var(--mute);
  font-style: italic;
}

.said footer {
  margin-top: 0.75rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.vod {
  margin: 1.5rem 0 0;
}

.vod__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
  color: var(--mute);
  border: 1px solid var(--hair);
}

.vod__play {
  width: 0;
  height: 0;
  border-top: 0.7rem solid transparent;
  border-bottom: 0.7rem solid transparent;
  border-left: 1.15rem solid var(--marker);
}

.vod__stage video,
.vod__stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vod__stage:has(img),
.vod__stage:has(video) {
  aspect-ratio: auto;
}

.vod__stage:has(img) img {
  position: static;
  height: auto;
  max-height: 40rem;
}

.vod__stage:has(img) .vod__empty,
.vod__stage:has(img) .vod__play {
  display: none;
}

.vod__empty {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vod__chrome {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.vod__bar {
  height: 2px;
  background: #3a3a3a;
}

.vod__bar::after {
  content: "";
  display: block;
  width: 6%;
  height: 100%;
  background: var(--marker);
}

.vod__tag {
  color: var(--alarm);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.vod figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--mute);
}

.chapter .vod + .fact {
  margin-top: 1.15rem;
}

.reel {
  outline: none;
}

.reel .vod__stage {
  display: block;
  overflow: hidden;
}

.reel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.32s ease;
}

.reel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.reel__slide[aria-hidden="true"] {
  height: 0;
  overflow: hidden;
}

.reel .vod__stage img,
.reel .vod__stage video {
  position: static;
  width: 100%;
  height: auto;
  max-height: 40rem;
  object-fit: contain;
}

.reel:has(.reel__slide:not([aria-hidden="true"]) video) .vod__chrome {
  display: none;
}

.reel .vod__bar::after {
  width: var(--reel-progress, 6%);
}

.reel__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.45rem;
}

.reel__btn {
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--marker);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.reel__btn[data-reel-next] {
  justify-self: end;
}

.reel__btn:disabled {
  color: #3a3a3a;
  cursor: default;
}

.reel__count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

.chapter--log .chapter__title {
  margin: 0;
}

.fold {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fold__label {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.fold__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fold__count {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.fold__mark {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--marker);
  border-bottom: 2px solid var(--marker);
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 0.28s ease;
}

.fold[aria-expanded="true"] .fold__mark {
  transform: translateY(0.12rem) rotate(225deg);
}

.fold__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}

.fold__panel.is-open {
  grid-template-rows: 1fr;
}

.fold__panel > .log {
  min-height: 0;
  overflow: hidden;
}

.log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem 1.2rem;
  align-items: end;
  padding: 1rem 0;
  border-top: 1px solid var(--hair);
}

.log li:last-child {
  padding-bottom: 0;
}

.log p {
  margin: 0;
}

.log__end {
  justify-self: end;
  max-width: 16rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: italic;
  text-align: right;
  color: var(--alarm);
}

.colophon {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.4rem 0 3.4rem;
}

.colophon__row {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.7rem;
  align-items: baseline;
  padding: 1.15rem 0;
}

.colophon__row + .colophon__row {
  border-top: 1px solid var(--hair);
}

.colophon p {
  margin: 0;
}

.colophon__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.colophon__call {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .tape__kicker {
    display: none;
  }

  .story,
  .colophon {
    width: calc(100% - 1.4rem);
  }

  .story {
    padding-top: 1.5rem;
  }

  .dossier div,
  .log li,
  .colophon__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .log__end {
    justify-self: start;
    max-width: none;
    text-align: left;
  }
}

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

  .fold__mark,
  .fold__panel,
  .reel__track {
    transition: none;
  }
}
