@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "DM Sans", system-ui, sans-serif;
  --page: #1a1118;
  --ink: #fff5ed;
  --muted: #cab7bf;
  --peach: #ffae96;
  --line: #ffffff23;
  background: var(--page);
  color: var(--ink);
  font-synthesis: none;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.24em; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid #ffcbab;
  outline-offset: 5px;
}

.wrap {
  width: min(1320px, calc(100% - clamp(38px, 9.5vw, 152px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: 10px auto auto 10px;
  transform: translateY(-180%);
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--page);
}
.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: #171016;
}
.header-inner, .footer-inner {
  display: flex;
  gap: 18px 40px;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}
.project-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.project-title img { border-radius: 5px; }
.header-nav, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px clamp(14px, 2.3vw, 34px);
}
.header-nav a {
  color: var(--muted);
  font-size: 0.87rem;
  text-decoration: none;
}
.header-nav a:hover, .header-nav a[aria-current] { color: var(--ink); }
.header-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--peach);
  text-underline-offset: 0.5em;
}

.score-stage {
  background:
    radial-gradient(ellipse at 12% 20%, #5b2e47 0%, transparent 59%),
    radial-gradient(ellipse at 80% 28%, #50243b 0%, transparent 59%),
    linear-gradient(180deg, #25151e 0%, #1a1118 100%);
  padding-block: clamp(33px, 4.6vw, 70px) clamp(60px, 8vw, 115px);
}
.score-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px 42px;
  margin-bottom: clamp(22px, 3.4vw, 45px);
}
.eyebrow {
  color: var(--peach);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-inline: 0.45em;
  vertical-align: 0.2em;
  border-radius: 50%;
  background: currentColor;
}
h1 {
  margin-top: 0.12em;
  font-size: clamp(2.7rem, 6.1vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.077em;
  line-height: 0.98;
  text-wrap: balance;
}
h1 em {
  color: var(--peach);
  font-style: normal;
}
.score-intro {
  flex: 0 0 min(24%, 15rem);
  color: #ecdde1;
  font-size: clamp(0.95rem, 1.3vw, 1.18rem);
  line-height: 1.45;
  padding-bottom: 0.23rem;
}
.album-deck {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(19px, 3.5vw, 50px);
  align-items: start;
}
.album-cover {
  overflow: hidden;
  border: 1px solid #fff3;
  border-radius: 14px;
  box-shadow: 0 28px 60px #110b1377;
  background: #27191e;
}
.album-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1260 / 1000;
}
.album-cover figcaption {
  padding: 13px 17px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3px 14px;
  color: var(--muted);
  font-size: 0.78rem;
}
.album-cover figcaption span:first-child { font-weight: 700; color: var(--ink); }

.deck {
  --cue-accent: #ffae96;
  min-width: 0;
}
.transport {
  display: none;
  padding: clamp(14px, 2.1vw, 28px);
  border: 1px solid #fff3;
  border-radius: 15px;
  background: linear-gradient(150deg, #381f30, #251820 66%);
  box-shadow: 0 15px 42px #0f09134a;
}
.enhanced .transport { display: block; }
.now-playing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px clamp(12px, 1.6vw, 23px);
}
.record {
  width: clamp(42px, 5vw, 69px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #fff3;
  background:
    conic-gradient(from 18deg, #24181f, #54434f, #1b1219, #493340, #24181f);
  box-shadow: inset 0 0 0 4px #1d161c80, 0 4px 11px #160f16a3;
}
.record span {
  display: block;
  width: 37%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #24151d 0 11%, var(--cue-accent) 12% 100%);
}
.record.is-playing { animation: record-spin 7s linear infinite; }
@keyframes record-spin { to { transform: rotate(1turn); } }
.now-role {
  color: var(--cue-accent);
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.current-track h2 {
  font-size: clamp(1.15rem, 2.25vw, 2.06rem);
  line-height: 1.08;
  letter-spacing: -0.042em;
  margin-top: 0.18em;
  text-wrap: pretty;
}
.play-pause {
  border: 0;
  width: clamp(46px, 4.5vw, 60px);
  height: clamp(46px, 4.5vw, 60px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cue-accent);
  color: #251820;
  cursor: pointer;
}
.play-pause:hover { filter: brightness(1.13); }
.play-pause span, .track-play, .trailer-play::after {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 10px solid transparent;
  border-left: 15px solid currentColor;
  border-right: none;
}
.play-pause[aria-label^="Pause"] span,
.track-button[aria-label^="Pause"] .track-play {
  width: 0.76em;
  height: 0.9em;
  margin-left: 0;
  border: solid currentColor;
  border-width: 0 0.23em;
}
.seek-area {
  position: relative;
  height: 44px;
  margin-top: 14px;
}
.waveform {
  height: 100%;
  overflow: hidden;
  display: flex;
  gap: clamp(1px, 0.18vw, 2.5px);
  align-items: center;
}
.waveform span {
  flex: 1;
  min-width: 1px;
  height: var(--level);
  border-radius: 2px;
  background: #987483;
}
.waveform span.is-played { background: var(--cue-accent); }
#seek {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
#seek:disabled { cursor: default; }
.seek-area:focus-within {
  outline: 2px solid var(--cue-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.transport-meta, .track-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}
.transport-meta { margin-top: 6px; }
.transport-meta a { color: var(--ink); }
.track-note, .player-status {
  margin-top: 14px;
  font-size: 0.87rem;
  line-height: 1.4;
  color: #e2ced7;
}
.player-status { color: #ffceb6; }
.track-heading {
  padding: 17px 9px 6px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.track-item { border-top: 1px solid var(--line); }
.track-item:last-child { border-bottom: 1px solid var(--line); }
.track-button {
  display: none;
  align-items: center;
  grid-template-columns: 1.35em 48px minmax(0, 1fr) auto 14px;
  gap: 12px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  background: transparent;
}
.enhanced .track-button { display: grid; }
.track-button:hover, .track-button[aria-current] {
  background: #fff1;
}
.track-button[aria-current] .track-play,
.track-button[aria-current] .track-number { color: var(--cue-accent); }
.track-number, .track-length, #time-display {
  font-variant-numeric: tabular-nums;
}
.track-number, .track-length { color: var(--muted); font-size: 0.76rem; }
.track-play {
  border-width: 5px 0 5px 8px;
  margin-left: 0;
  font-size: 0.72rem;
}
.track-button img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}
.track-name strong, .track-name small { display: block; line-height: 1.28; }
.track-name strong { font-size: 0.91rem; font-weight: 750; }
.track-name small { margin-top: 0.14rem; color: var(--muted); font-size: 0.72rem; }
.native-track { padding: 12px; }
.enhanced .native-track { display: none; }
.native-track audio { display: block; width: min(100%, 400px); margin-block: 8px; }
.native-track a { font-size: 0.84rem; }

.cue-story {
  padding-block: 0 clamp(65px, 8.6vw, 125px);
}
.cue-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 15px 50px;
  align-items: end;
  margin-bottom: 29px;
}
.cue-heading h2, .trailer-copy h2 {
  margin-top: 0.12em;
  font-size: clamp(2rem, 4.5vw, 4.7rem);
  letter-spacing: -0.07em;
  line-height: 1;
  text-wrap: balance;
  font-weight: 800;
}
.cue-heading > p, .trailer-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.13rem);
}
.cue-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px 12px;
  padding-block: 9px;
  border-block: 1px solid var(--line);
}
.cue-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.cue-frame figcaption { padding: 12px 7px 13px 2px; }
.cue-frame strong { font-size: 0.98rem; }
.cue-frame p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.48;
  margin-top: 0.34rem;
}

.trailer-section {
  padding-block: clamp(34px, 6.4vw, 94px);
  border-block: 1px solid var(--line);
  background: linear-gradient(130deg, #2a1726, #23151f);
}
.trailer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  align-items: center;
  gap: 25px clamp(30px, 6.5vw, 96px);
}
.trailer-media { aspect-ratio: 16 / 9; }
.trailer-cover, .trailer-media iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid #ffffff33;
  box-shadow: 0 15px 35px #110b1366;
}
.trailer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trailer-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 62px;
  aspect-ratio: 1;
  background: #fff3e9;
  color: #211620;
  border-radius: 50%;
  box-shadow: 0 4px 30px #24132094;
}
.trailer-cover:hover .trailer-play { background: var(--peach); }
.trailer-play::after { content: ""; }
.trailer-duration {
  position: absolute;
  right: 9px;
  bottom: 9px;
  background: #1f1220;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}
.trailer-copy > p:not(.eyebrow) { margin-block: 17px; }
.plain-link { color: var(--peach); font-weight: 750; }
.site-footer { background: #171016; padding-block: 27px 32px; }
.site-footer p {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 7px;
}
.site-footer nav a { font-size: 0.88rem; }

@media (max-width: 900px) {
  .score-head { align-items: start; }
  .score-intro { flex-basis: 26%; }
  .album-deck { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .cue-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .header-inner, .footer-inner, .score-head {
    display: grid;
    justify-content: stretch;
  }
  .header-inner { padding-block: 12px 15px; gap: 11px; }
  .header-nav { gap: 8px 17px; }
  .header-nav a { font-size: 0.8rem; }
  .score-intro { max-width: 26ch; }
  .album-deck, .cue-heading, .trailer-inner { grid-template-columns: minmax(0, 1fr); }
  .album-cover { max-width: 520px; margin-inline: auto; }
  .transport { padding: 15px; }
  .track-button { gap: 9px; }
}

@media (max-width: 360px) {
  .header-nav { gap: 8px 12px; }
  .track-button { grid-template-columns: 1.25em 40px minmax(0, 1fr) 12px; }
  .track-length { display: none; }
  .cue-strip { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .record.is-playing { animation: none; }
}
