@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-latin-900-italic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("assets/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("assets/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("assets/barlow-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #160e22;
  --black: #100a19;
  --panel: #21152f;
  --cream: #fff5e2;
  --muted: #d1bfd7;
  --pink: #ff71ab;
  --yellow: #faed68;
  --mint: #b7f69d;
  --line: #4b3659;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); background: var(--ink); font-family: Barlow, Arial, sans-serif; font-size: 1rem; line-height: 1.5; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 7rem, 83rem); margin-inline: auto; }
.skip { position: fixed; z-index: 3; inset: .5rem auto auto .5rem; transform: translateY(-160%); padding: .5rem 1rem; background: var(--yellow); color: var(--ink); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: var(--black); }
.masthead-inner { display: flex; min-height: 5.25rem; align-items: center; justify-content: space-between; gap: 1.75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  transform: skewX(-7deg);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--pink);
  font: 1.62rem/1 sans-serif;
}
.wordmark { font: italic 900 1.25rem/.85 var(--display); text-transform: uppercase; letter-spacing: .035em; }
.wordmark > span { display: block; margin-top: .14rem; }
.dot-com { color: var(--pink); margin-left: .09em; }
nav { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.6rem); }
nav a { color: var(--cream); font: 500 .875rem/1.3 var(--mono); text-transform: uppercase; text-decoration: none; }
nav a:hover { color: var(--yellow); }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid transparent;
  padding: .65rem 1rem;
  background: transparent;
  color: inherit;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  font: 500 .875rem/1.2 var(--mono);
  transition: box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.button-primary, .button-eject:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.button-primary { box-shadow: 3px 3px 0 var(--pink); }
.button-primary:hover { background: var(--cream); border-color: var(--cream); box-shadow: 5px 5px 0 var(--pink); }
.button-outline { border-color: #9877a5; color: var(--cream); }
.button-outline:hover { background: var(--cream); color: var(--ink); }
.button-eject { min-height: 2.5rem; border-color: var(--pink); color: var(--pink); padding-inline: .85rem; }
.button-eject span { font: 1rem/1 sans-serif; }

.hero { position: relative; isolation: isolate; background: var(--black); overflow: hidden; }
.hero-inner { display: flex; align-items: center; min-height: 34rem; }
.hero-copy { position: relative; padding-block: 3.15rem 3.35rem; width: min(56%, 46rem); }
.hero-picture { position: absolute; inset: 0 0 0 40%; z-index: -1; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 61% 45%; }
.hero-picture::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(0deg, #100a191e 0 1px, transparent 1px 4px),
    linear-gradient(90deg, var(--black), #100a19dc 9%, #100a1952 27%, transparent 52%),
    linear-gradient(0deg, #100a1970, transparent 30%);
}
.viewfinder { position: absolute; z-index: 1; inset: 1.35rem max(1.35rem, calc((100vw - 83rem) / 2)) 1.35rem auto; display: flex; flex-direction: column; align-items: end; justify-content: space-between; pointer-events: none; }
.play-label, .sp-label { color: #fff; font: 500 .875rem/1.1 var(--mono); text-shadow: 1px 2px 1px #000; letter-spacing: .08em; }
.eyebrow { color: var(--pink); font: 500 .875rem/1.35 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.eyebrow span[aria-hidden] { margin-right: .32em; }
.hero h1 {
  margin: .65rem 0 1rem;
  font: italic 900 clamp(4.3rem, 8.8vw, 8.5rem)/.81 var(--display);
  letter-spacing: -.024em;
  text-transform: uppercase;
  text-shadow: 3px 4px 0 #772650;
}
.hero h1 em { font-style: inherit; color: var(--yellow); white-space: nowrap; }
.hero-deck { max-width: 24rem; font-size: clamp(1.12rem, 1.5vw, 1.35rem); line-height: 1.35; font-weight: 600; }
.hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-aside { margin-top: 1.15rem; font: 500 .81rem/1.35 var(--mono); color: var(--muted); }

.ticker {
  display: flex;
  gap: 1rem clamp(.8rem, 2.3vw, 2.2rem);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem .62rem;
  color: var(--ink);
  background: var(--yellow);
  text-transform: uppercase;
  font: italic 900 clamp(1rem, 1.6vw, 1.35rem)/1.05 var(--display);
  letter-spacing: .045em;
  border-block: 2px solid #0c0812;
}
.ticker b { font: 500 .8rem/1 var(--mono); }

.section { padding-block: 3.4rem 3.2rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.5rem; }
.section-head > p { max-width: 17.5rem; color: var(--muted); font-size: 1.05rem; line-height: 1.35; }
h2 { margin-top: .3rem; font: italic 900 clamp(3.25rem, 6vw, 5rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.015em; }
.car-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.4vw, 1.25rem); }
.car { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.car-picture { position: relative; overflow: hidden; background: #342931; }
.car-picture img { width: 100%; height: auto; aspect-ratio: 1.56; object-fit: cover; }
.car-sticker {
  position: absolute;
  inset: .6rem auto auto .55rem;
  display: inline-block;
  transform: rotate(-3deg);
  background: var(--yellow);
  box-shadow: 2px 2px 0 #191025b8;
  color: var(--ink);
  padding: .22rem .38rem .28rem;
  font: italic 900 1rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .035em;
}
.sticker-pink { background: var(--pink); }
.car-info { display: flex; flex: 1; flex-direction: column; padding: .9rem .85rem 0; }
.stock { color: var(--pink); font: 500 .8125rem/1.2 var(--mono); letter-spacing: .04em; }
.car h3 { margin: .12rem 0 .4rem; font: 800 clamp(2rem, 3vw, 2.55rem)/1 var(--display); text-transform: uppercase; }
.car-blurb { margin-bottom: 1rem; color: var(--muted); line-height: 1.33; }
.car-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: .625rem;
  margin: auto 0 0;
  padding: .69rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--yellow);
  text-align: left;
  font: 500 .875rem/1.3 var(--mono);
}
.car-action:hover { color: var(--cream); }
.detail-icon { display: grid; flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; place-content: center; border: 1px solid currentColor; }
.source-note { margin-top: 1rem; color: var(--muted); }
.source-note a { text-underline-offset: 3px; }
.source-note a:hover { color: var(--cream); }

.channel { border-block: 1px solid #384635; background: #121515; }
.channel-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5.5rem); align-items: center; padding-block: 3.5rem; }
.terminal-picture { position: relative; border: 1px solid #465743; box-shadow: 6px 6px 0 #080b0a; min-width: 0; }
.terminal-picture img { width: 100%; height: auto; }
.terminal-picture figcaption {
  padding: .55rem .75rem;
  color: var(--mint);
  background: #080f0a;
  font: 500 .8125rem/1.3 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.channel-kicker, .channel h2 { color: var(--mint); }
.channel-intro { margin: .65rem 0 1.2rem; font-size: 1.13rem; color: #e1ebdc; font-weight: 600; }
.incident-list { border-top: 1px solid #40543e; }
details { border-bottom: 1px solid #40543e; }
summary { display: flex; gap: .75rem; align-items: center; padding: .7rem 0; color: var(--cream); font-size: 1.05rem; font-weight: 700; cursor: pointer; }
summary::marker { content: ""; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--mint); font: 500 1.125rem/1 var(--mono); }
details[open] summary::after { content: "−"; }
summary:hover { color: var(--mint); }
.incident-year { color: var(--mint); font: 500 .875rem/1 var(--mono); }
.incident-copy { padding: 0 1rem .85rem 0; color: #e1ebdc; }
.incident-copy a { display: inline-block; margin-top: .48rem; color: var(--mint); text-underline-offset: 3px; }

.desk { background: var(--pink); color: var(--ink); }
.desk-inner { padding-block: 2.15rem 2.4rem; display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.desk .eyebrow { color: var(--ink); }
.desk h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.desk p:last-child { margin-top: .48rem; font-size: 1.05rem; font-weight: 600; }
.button-ink { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--cream); }
.button-ink:hover { color: var(--yellow); box-shadow: 5px 5px 0 var(--cream); }
.desk :focus-visible { outline-color: #342036; }
footer { background: var(--black); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-block: 1.25rem; gap: .6rem 1.5rem; color: var(--muted); }
.footer-brand { color: var(--cream); font: italic 900 1.35rem/1.2 var(--display); text-transform: uppercase; text-decoration: none; }
.footer-brand span { color: var(--pink); }
.footer-inner p { font: 500 .81rem/1.35 var(--mono); }
.footer-inner a:last-child { text-underline-offset: 3px; }

.dialog {
  width: min(100% - 2rem, 34rem);
  max-height: calc(100% - 2rem);
  padding: 2rem;
  border: 1px solid var(--pink);
  color: var(--cream);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--pink);
}
.dialog::backdrop { background: rgb(11 6 16 / .87); }
.dialog .eyebrow { padding-right: 2rem; }
.dialog h2 { margin-right: 1.1rem; font-size: clamp(2.5rem, 6vw, 3.7rem); }
.dialog p:not(.eyebrow) { margin-top: .8rem; font-size: 1.1rem; }
.dialog .record-link { display: inline-block; margin-top: 1rem; color: var(--yellow); text-underline-offset: 3px; }
.dialog-close { position: absolute; z-index: 1; inset: .6rem .6rem auto auto; width: 2.5rem; height: 2.5rem; background: var(--black); border: 1px solid var(--line); color: var(--cream); font-size: 1.65rem; line-height: 1; }
.dialog-close:hover { border-color: var(--pink); }
.dialog .button-primary { margin-top: 1rem; }
.tape-dialog { width: min(100% - 2rem, 44rem); padding: .6rem; }
.tape-screen { position: relative; background: #100a19; }
.tape-screen img { width: 100%; height: auto; }
.tape-screen .play-label { position: absolute; inset: .8rem auto auto 1rem; }
.dialog #tape-caption { position: absolute; inset: auto .6rem .6rem; padding: .4rem .65rem; color: var(--yellow); background: #100a19ed; font-weight: 700; }
.tape-controls { display: flex; gap: .7rem; margin-top: .6rem; }
.eject-dialog { text-align: center; }
.eject-dialog h2 { margin-inline: 0; }
.eject-symbol { display: block; color: var(--yellow); font: 2.5rem/1 sans-serif; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 68rem) {
  .wrap { width: min(100% - 4rem, 83rem); }
  .hero-inner { min-height: 31rem; }
  .hero-copy { width: 58%; }
  .section { padding-block: 2.75rem; }
}

@media (max-width: 50rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero-picture { inset-inline-start: 34%; }
  .hero-copy { width: 68%; }
  .hero h1 { font-size: clamp(4.2rem, 9.5vw, 5.5rem); }
  .ticker span:last-child, .ticker b:last-of-type { display: none; }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .channel-inner { gap: 1.5rem; }
  .desk-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 37rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .9rem 1rem; padding-block: 1rem .85rem; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .55rem; padding-top: .65rem; border-top: 1px solid var(--line); }
  nav a { font-size: .8125rem; }
  .hero-inner { min-height: auto; }
  .hero-copy { width: 100%; padding: 12.5rem 0 1.65rem; }
  .hero-picture { inset: 0 0 auto; height: 16.5rem; }
  .hero-picture img { object-position: 60% 32%; }
  .hero-picture::after { background: repeating-linear-gradient(0deg, #100a1922 0 1px, transparent 1px 4px), linear-gradient(0deg, var(--black) 5%, #100a197f 28%, transparent 63%); }
  .viewfinder { inset: .75rem .75rem auto; flex-direction: row; gap: 1rem; }
  .hero h1 { font-size: clamp(3.4rem, 12vw, 4.85rem); }
  .hero h1 em { white-space: normal; }
  .hero .eyebrow { font-size: .8125rem; letter-spacing: .03em; }
  .hero-actions { margin-top: 1rem; gap: .68rem; }
  .hero-actions .button { padding-inline: .63rem; font-size: .78125rem; }
  .ticker { gap: .45rem .75rem; }
  .ticker span:nth-of-type(3), .ticker b:nth-of-type(2) { display: none; }
  .section-head { flex-direction: column; align-items: start; gap: .55rem; }
  .section-head > p { max-width: 20rem; }
  .channel-inner { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .terminal-picture { order: 2; }
  .desk-inner { padding-block: 1.8rem 2rem; }
  .desk .eyebrow { font-size: .8125rem; }
  .dialog { padding: 1.4rem; }
  .tape-dialog { padding: .5rem; }
}

@media (max-width: 24rem) {
  .car-grid { grid-template-columns: 1fr; }
  .car-info { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
