:root {
  color-scheme: light;
  --ink: #273743;
  --paper: #eef2f4;
  --panel: #fbfaf6;
  --violet: #5e7485;
  --violet-dark: #d8e2e7;
  --pink: #c75f7a;
  --coral: #d86858;
  --gold: #e6c66f;
  --teal: #287a78;
  --blue: #3f718f;
  --line: rgba(39, 55, 67, 0.18);
  --shadow: 0 18px 55px rgba(39, 55, 67, 0.12);
  font-family: Inter, ui-rounded, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(230, 198, 111, 0.18), transparent 26rem),
    radial-gradient(circle at 94% 16%, rgba(63, 113, 143, 0.12), transparent 28rem),
    var(--paper);
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 99;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

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

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.wordmark span { font-size: 1.25rem; }
.wordmark small { margin-top: 0.2rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0; }

.series-mark {
  padding: 0.38rem 0.9rem 0.45rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 950;
  letter-spacing: -0.05em;
  transform: rotate(2deg);
  color: var(--ink);
  text-decoration: none;
}

main { overflow: clip; }

.hero {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 5rem);
  min-height: 68vh;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  border: 3px solid var(--ink);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.34) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--violet-dark);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--gold);
}

.hero::after {
  content: "01";
  position: absolute;
  right: 1rem;
  bottom: -2.6rem;
  font-size: clamp(5rem, 15vw, 11rem);
  line-height: 1;
  font-weight: 1000;
  color: rgba(39,55,67,0.055);
  pointer-events: none;
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 8ch;
  margin-bottom: 1rem;
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

h1 em {
  color: var(--blue);
  font-style: normal;
  text-shadow: 5px 5px 0 var(--pink);
}

.standfirst {
  max-width: 42rem;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.hero-tags span {
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(39,55,67,0.42);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-art {
  position: relative;
  margin: 0;
  padding: 1rem;
  border-radius: 50% 45% 52% 48%;
  background: var(--gold);
  transform: rotate(2deg);
}

.hero-art img { width: 100%; filter: drop-shadow(0 20px 25px rgba(0,0,0,0.24)); }

.reader-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(39,55,67,0.22);
  color: #4e6270;
  font-size: 0.84rem;
}

.reader-note p { margin-bottom: 0.4rem; }
.reader-note p:last-child { margin-bottom: 0; }

.chapter-nav {
  width: min(1180px, calc(100% - 2rem));
  margin: 3rem auto 5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
}

.chapter-nav a {
  min-height: 5rem;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.chapter-nav a:last-child { border-right: 0; }
.chapter-nav a:hover, .chapter-nav a:focus-visible { background: var(--gold); }
.chapter-nav span { color: var(--violet); font-size: 1.35rem; font-weight: 950; }

.story-part {
  scroll-margin-top: 1rem;
  padding: 5rem max(1rem, calc((100% - 1180px) / 2));
}

.part-two, .part-four { background: #e1e8ec; color: var(--ink); }
.part-three { background: #eaf2ef; }
.part-five { background: #f7f0d8; }

.part-heading {
  max-width: 780px;
  margin-bottom: 3.5rem;
}

.part-heading p {
  margin-bottom: 0;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.part-heading h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.part-heading span { font-size: 1.1rem; }

.panels { display: grid; gap: clamp(2.5rem, 7vw, 6rem); }

.panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(1.5rem, 7vw, 6rem);
}

.panel.reverse { grid-template-columns: minmax(0, 1.22fr) minmax(230px, 0.78fr); }
.panel.reverse figure { order: 2; }

.panel figure {
  position: relative;
  margin: 0;
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: 9px 9px 0 var(--pink);
  overflow: hidden;
}

.panel figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(63, 113, 143, 0.1) 1.4px, transparent 1.4px) 0 0 / 13px 13px;
}

.panel:nth-child(even) figure { box-shadow: -9px 9px 0 var(--gold); }
.panel img { position: relative; width: 100%; max-height: 460px; object-fit: contain; }

.panel-copy { max-width: 680px; }
.panel-number { margin-bottom: 0.25rem; color: var(--pink); font-size: 0.8rem; font-weight: 950; letter-spacing: 0.14em; }

.panel h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

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

blockquote {
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 7px solid var(--pink);
  color: var(--blue);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.soundtrack {
  width: min(1180px, calc(100% - 2rem));
  margin: 6rem auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  border: 3px solid var(--ink);
  border-radius: 1rem;
  background: var(--coral);
  box-shadow: 10px 10px 0 var(--ink);
}

.soundtrack h2, .handover h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.soundtrack .kicker { color: var(--ink); }

.tape {
  aspect-ratio: 1.45 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 20%;
  border: 8px solid var(--ink);
  border-radius: 1rem;
  background: var(--gold);
  box-shadow: inset 0 -1rem 0 rgba(23,18,39,0.1);
  transform: rotate(-4deg);
}

.tape::before {
  content: "SIDE A";
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(0.72rem, 2vw, 1.2rem);
  font-weight: 950;
  letter-spacing: 0.2em;
}

.tape::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 10%;
  height: 18%;
  border: 4px solid var(--ink);
  border-radius: 0.3rem;
  background: var(--paper);
}

.tape span {
  z-index: 1;
  width: 34%;
  aspect-ratio: 1;
  border: 7px solid var(--ink);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--paper) 0 9deg, var(--ink) 9deg 18deg);
}

.spotify-link {
  width: fit-content;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.5rem;
  background: #1ed760;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.spotify-link:hover,
.spotify-link:focus-visible {
  background: var(--panel);
}

.next-playlist {
  margin-top: 0.25rem;
  color: var(--ink);
}

.chapter-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.chapter-button {
  width: fit-content;
  padding: 0.8rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.chapter-button:hover,
.chapter-button:focus-visible { background: var(--panel); }

.handover {
  padding: clamp(3rem, 9vw, 8rem) max(1rem, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  background: #d4dfe5;
  color: var(--ink);
}

.handover .year {
  margin: 0;
  color: var(--blue);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 1000;
  line-height: 0.85;
  letter-spacing: -0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.handover > div { max-width: 800px; }

.next-chapter {
  margin-top: 2rem;
  padding: 1.2rem;
  border-left: 7px solid var(--gold);
  background: rgba(255,255,255,0.52);
  font-size: 1.12rem;
}

.coming-next { color: var(--blue); font-size: 1.05rem; }

footer {
  padding: 3rem max(1rem, calc((100% - 1180px) / 2));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  background: #24313d;
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
}

footer p { margin-bottom: 0; }
footer a { color: var(--gold); font-weight: 800; }

:focus-visible { outline: 4px solid #16bdb3; outline-offset: 4px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { width: min(360px, 85%); margin: 0 auto; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav a { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter-nav a:last-child { border-bottom: 0; }
  .panel, .panel.reverse { grid-template-columns: 1fr; }
  .panel.reverse figure { order: 0; }
  .panel figure { min-height: 240px; }
  .soundtrack { grid-template-columns: 1fr; }
  .tape { width: min(400px, 90%); margin: 0 auto; }
  .handover { grid-template-columns: 1fr; }
  .handover .year { writing-mode: initial; transform: none; }
}

@media (max-width: 520px) {
  :root { font-size: 16px; }
  .site-header { min-height: 4.7rem; }
  .wordmark small { display: none; }
  .hero { width: calc(100% - 1.2rem); margin-top: 1rem; padding: 1.25rem; box-shadow: 6px 6px 0 var(--gold); }
  h1 { font-size: clamp(3.5rem, 19vw, 5.5rem); }
  .story-part { padding-top: 4rem; padding-bottom: 4rem; }
  .panel figure { min-height: 190px; }
  .soundtrack { width: calc(100% - 1.2rem); }
}

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

@media print {
  body { background: white; }
  .site-header, .chapter-nav, footer { display: none; }
  .hero, .soundtrack { box-shadow: none; }
  .story-part { break-before: page; }
  .panel { break-inside: avoid; margin-bottom: 2rem; }
}
