:root {
  --bg: #0c0b09;
  --bg-raised: #16140f;
  --ink: #f1ead9;
  --muted: #a39a89;
  --faint: rgba(241, 234, 217, 0.14);
  --accent: #f0a63a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain over everything; purely decorative. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.label {
  font-family: var(--sans);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Opening titles ---------- */

.titles {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px var(--gutter) 28px;
  text-align: center;
}

.titles-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.titles-main {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 48px 0;
}

.portrait {
  width: 132px;
  height: 132px;
  margin: 0 0 10px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--faint), 0 0 0 7px var(--bg), 0 0 0 8px var(--faint);
  filter: grayscale(0.25) contrast(1.05);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(76px, 17vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34em;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
}
.lede strong { color: var(--ink); font-weight: 500; }

.titles-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 12px/1 var(--sans);
  font-stretch: 75%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.rolling .button .dot { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 12vw, 140px) var(--gutter);
  border-top: 1px solid var(--faint);
}
.section-head {
  max-width: 1100px;
  margin: 0 auto clamp(40px, 7vw, 72px);
  text-align: center;
}
.section-head h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.95;
}
.section-head p { max-width: 36em; margin: 18px auto 0; color: var(--muted); }

/* ---------- The credits ---------- */

.credits {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
}

.credit + .credit { margin-top: clamp(22px, 3.4vw, 34px); }

.credit summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 4vw, 56px);
  align-items: baseline;
  cursor: pointer;
  padding: 6px 0;
}
.credit summary::-webkit-details-marker { display: none; }

.credit-role {
  text-align: right;
  font-stretch: 75%;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.credit-role .work {
  display: block;
  font-family: var(--serif);
  font-stretch: normal;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  opacity: 0.8;
}

.credit-name {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1;
  transition: color 0.2s;
}
.credit-name::after {
  content: "+";
  display: inline-block;
  margin-left: 0.35em;
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 300;
  vertical-align: 0.5em;
  color: var(--muted);
  transition: transform 0.25s;
}
.credit summary:hover .credit-name { color: var(--accent); }
.credit details[open] .credit-name { color: var(--accent); }
.credit details[open] .credit-name::after { transform: rotate(45deg); }

.credit-card {
  margin: 22px auto 10px;
  max-width: 860px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-raised);
  border: 1px solid var(--faint);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
}
.credit-card.no-image { grid-template-columns: 1fr; }

.credit-photo {
  width: 148px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.credit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.credit-meta { margin: 0 0 8px; }
.credit-bio { margin: 0; }
.credit-backed { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.credit-backed b { color: var(--ink); font-weight: 600; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}
.links a:hover { border-color: var(--accent); }

.embed { grid-column: 1 / -1; }
.embed iframe { display: block; width: 100%; border: 0; border-radius: 6px; background: var(--bg); }
.embed .yt { aspect-ratio: 16 / 9; }
/* Bandcamp's player stops at 700px and paints white beyond it. */
.embed .bc { max-width: 700px; }

.yt-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000 center / cover no-repeat;
  cursor: pointer;
  color: var(--ink);
}
.yt-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%230c0b09'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}
.yt-poster:hover span { transform: scale(1.08); }

/* Floating preview that follows the pointer over a name (pointer devices only). */
.peek {
  position: fixed;
  z-index: 40;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -115%) rotate(-3deg);
  transition: opacity 0.15s;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
.peek.on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Liner notes ---------- */

.notes {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.notes-text p { margin: 0 0 1.1em; font-size: 18px; }
.notes-text p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.6em;
  line-height: 0.8;
  margin: 0.08em 0.1em 0 0;
  color: var(--accent);
}

.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--faint); }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--faint); }
.facts dt { padding-top: 3px; }
.facts dd { margin: 0; }

.quote {
  max-width: 900px;
  margin: clamp(56px, 9vw, 110px) auto 0;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.04;
}
.quote blockquote::before { content: "\201C"; color: var(--accent); }
.quote blockquote::after { content: "\201D"; color: var(--accent); }
.quote figcaption { margin-top: 18px; }

/* ---------- Interviews ---------- */

.reels {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.reel { margin: 0; }
.reel h3 { margin: 14px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.reel p { margin: 0; color: var(--muted); font-size: 15px; }
.reel-link {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--faint);
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 30px;
}

/* ---------- End card ---------- */

.end {
  min-height: 70svh;
  display: grid;
  place-content: center;
  gap: 22px;
  padding: 90px var(--gutter);
  text-align: center;
  border-top: 1px solid var(--faint);
}
.end h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 140px);
  line-height: 0.9;
}
.end .links { justify-content: center; margin: 0; }
.colophon { margin: 28px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .roll-button { display: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .credit summary { grid-template-columns: 1fr; text-align: center; row-gap: 6px; }
  .credit-role { text-align: center; }
  .credit-card { grid-template-columns: 1fr; }
  .credit-photo { width: 120px; }
  .notes { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .titles-top .label:last-child { display: none; }
  .titles-top { justify-content: center; }
}
