@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --warm-paper: #eeebe3;
  --ink: #202018;
  --muted: #535246;
  --line: #d2cec0;
  --night: #171812;
  --night-line: #414234;
  --night-muted: #c7c3ac;
  --amber: #f2d480;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
}

img, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #ae641b; outline-offset: 4px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

.shell { width: min(100% - 7vw, 1392px); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 1;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  color: white;
  background: var(--ink);
  padding: .5rem .8rem;
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.project-home {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 650;
  letter-spacing: -.025em;
  text-decoration: none;
}
.project-home img { border-radius: 7px; width: 28px; }
.site-header nav { display: flex; gap: clamp(.8rem, 3.1vw, 2.4rem); font-size: .9rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.4rem);
  padding-block: clamp(2.8rem, 6vw, 6rem) clamp(3.6rem, 7vw, 7rem);
}
.partner {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -.045em;
}
.partner-mark {
  display: inline-block;
  width: 13px;
  height: 16px;
  border-inline: 4px solid currentColor;
}
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 {
  font-size: clamp(4.3rem, 7.9vw, 8rem);
  line-height: .85;
  letter-spacing: -.053em;
  margin-block: clamp(1.45rem, 2.9vw, 2.3rem) 1.45rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.summary {
  font-size: clamp(1.15rem, 1.75vw, 1.5rem);
  font-weight: 550;
  line-height: 1.27;
  letter-spacing: -.025em;
  max-width: 24ch;
}
.introduction {
  margin-top: .9rem;
  max-width: 43ch;
  color: var(--muted);
}
.primary {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1.15rem;
  margin-top: 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: .93rem;
  font-weight: 620;
}
.primary:hover { background: #403828; }
.play-symbol {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.is-playing .play-symbol { width: 8px; height: 10px; border: 0; border-inline: 2.5px solid currentColor; }
.credits { margin-top: .85rem; font-size: .82rem; color: var(--muted); }

.studio {
  --monitor-gutter: clamp(.5rem, 1vw, .9rem);
  padding: var(--monitor-gutter);
  border: 1px solid var(--night-line);
  border-radius: 17px;
  background: var(--night);
  color: var(--paper);
  box-shadow: 0 22px 44px #2b251423, inset 0 1px 0 #fff2;
}
.scene + .scene { margin-top: 1rem; }
.scene[hidden] + .scene { margin-top: 0; }
.screen { background: #0c0c08; border-radius: 8px; overflow: hidden; }
.screen video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.scene-caption {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(8rem, .32fr) 1fr;
  gap: .85rem;
  min-height: 89px;
  padding: .8rem .55rem;
}
.scene-info { display: grid; line-height: 1.25; gap: .3rem; }
.scene-info b { font-size: .95rem; font-weight: 640; }
.scene-kind, .track-label {
  font: 600 .69rem/1.35 "Instrument Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.scene-kind { color: var(--amber); }
.scene-caption blockquote { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 2.05rem); line-height: 1.05; }
.scene-chooser {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  border-top: 1px solid var(--night-line);
  padding-top: .75rem;
}
.scene-select {
  background: transparent;
  color: var(--night-muted);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .3rem;
  cursor: pointer;
  text-align: left;
}
.scene-select img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; opacity: .72; }
.scene-select span { display: block; padding: .34rem .09rem .08rem; font-size: clamp(.66rem, 1.03vw, .88rem); line-height: 1.18; }
.scene-select[aria-pressed="true"] { color: var(--paper); background: #2b2b20; border-color: #e8c473; }
.scene-select:hover { background: #2b2b20; }
.scene-select:hover img, .scene-select[aria-pressed="true"] img { opacity: 1; }
.studio :focus-visible, .take-desk :focus-visible { outline-color: var(--amber); outline-offset: 2px; }

.timing {
  border-block: 1px solid var(--line);
  background: var(--warm-paper);
  padding-block: clamp(2.8rem, 6vw, 6rem);
}
.timing-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.5rem, 7vw, 7rem); align-items: center; }
.timing-copy p { max-width: 56ch; margin: 1.05rem 0 1.3rem; color: var(--muted); }
.boots-detail img, .game-frame img { width: 100%; border-radius: 6px; }
.boots-detail figcaption, .game-frame figcaption { color: var(--muted); font-size: .82rem; margin-top: .55rem; }
.take-desk { padding: clamp(1.3rem, 3vw, 3rem); border-radius: 10px; background: var(--night); color: var(--paper); }
.take-desk .track-label { color: var(--amber); }
.take-desk blockquote { margin: .65rem 0 .85rem; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.55rem); line-height: 1.04; max-width: 19ch; }
.take-desk > p:not(.track-label) { color: var(--night-muted); max-width: 43ch; margin-bottom: 1.5rem; }
.take { border-top: 1px solid var(--night-line); padding-block: .8rem; }
.take:last-child { padding-bottom: 0; }
.take-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.take-heading h3, .cue h3 { font-size: 1rem; font-weight: 650; }
.take-heading span { color: var(--night-muted); font-size: .86rem; font-variant-numeric: tabular-nums; }

.audio-player { min-width: 0; padding: .28rem 0; }
.audio-player audio { width: 100%; display: block; max-width: 390px; }
.audio-player .wave { display: none; }
.audio-player.enhanced { display: flex; align-items: center; gap: .68rem; min-height: 48px; }
.audio-player.enhanced audio { display: none; }
.audio-player.enhanced .wave { display: flex; }
.audio-button {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.audio-button:hover, .audio-button.is-playing { background: var(--ink); color: var(--paper); }
.take-desk .audio-button { color: var(--amber); }
.take-desk .audio-button:hover, .take-desk .audio-button.is-playing { background: var(--amber); color: var(--night); }
.wave { align-items: center; justify-content: space-between; flex: 1; height: 29px; gap: 2px; }
.wave i { height: var(--amp); min-height: 2px; flex: 1; max-width: 5px; background: #a6a18e; border-radius: 1px; }
.wave i.heard { background: #8e4a21; }
.take-desk .wave i { background: #6c674f; }
.take-desk .wave i.heard { background: var(--amber); }

.effects { padding-block: clamp(3.4rem, 7vw, 7rem); }
.effects-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.effects-intro p { max-width: 51ch; color: var(--muted); padding-bottom: .2rem; }
.effects-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); align-items: start; }
.cue-desk { border-top: 1px solid var(--ink); }
.cue-desk > .track-label { padding-top: .9rem; color: #6b4b2a; }
.cue-list { list-style: none; margin: 0; padding: 0; }
.cue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(115px, .7fr); gap: .65rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.cue p { font-size: .86rem; color: var(--muted); line-height: 1.33; }
.cue .wave i:nth-child(even) { display: none; }
.mix-credit { color: var(--muted); font-size: .92rem; margin-top: 1.7rem; max-width: 60ch; }

footer { border-top: 1px solid var(--line); background: var(--warm-paper); }
.footer-inner { padding-block: 1.55rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.8rem; }
.footer-home { text-decoration: none; font-weight: 660; }
.footer-inner p { color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .88rem; }

@media (max-width: 950px) {
  .hero { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 1.8rem; }
  h1 { font-size: clamp(3.65rem, 8vw, 5rem); }
  .scene-caption { grid-template-columns: 1fr; gap: .5rem; }
  .scene-info { display: flex; align-items: center; gap: .6rem; }
  .effects-grid { gap: 1.6rem; }
  .cue { grid-template-columns: minmax(0, 1fr) minmax(74px, .65fr); }
  .cue .wave i:nth-child(3n) { display: none; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 57px; }
  .hero, .timing-grid, .effects-intro, .effects-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.6rem; padding-block-start: 2.25rem; }
  .hero h1 { font-size: clamp(4rem, 13vw, 6.3rem); text-wrap: wrap; max-width: 13ch; margin-block: 1rem 1.2rem; }
  .studio { border-radius: 11px; }
  .scene-caption { min-height: 100px; }
  .scene-caption blockquote { font-size: 1.55rem; }
  .scene-select span { font-size: .75rem; }
  .effects-intro { gap: 1rem; }
  .cue { grid-template-columns: minmax(0, 1fr) minmax(112px, .7fr); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 1rem; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 1.5rem); }
  .site-header nav { gap: .65rem; font-size: .8rem; }
  .project-home { font-size: .9rem; gap: .35rem; }
  .hero h1 { font-size: 3.65rem; }
  .scene-select span { font-size: .69rem; }
}

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