@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

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

:root {
  --ink: #17170f;
  --paper: #f2efdf;
  --orange: #ff5b3d;
  --lime: #d4f45b;
  --blue: #4d62ff;
  --pink: #ffb4df;
  --line: rgba(23, 23, 15, 0.26);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Space Grotesk", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  height: 86px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.brand {
  width: max-content;
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: .9;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.brand-mark i { width: 3px; background: var(--ink); border-radius: 3px; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 11px; }

.broadcast-date,
.city-label,
.eyebrow,
.result-status,
.detail-topbar,
.detail-category,
.detail-date,
.fact-grid dt {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.broadcast-date { margin: 0; }
.broadcast-date strong { margin-left: 8px; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--orange); }
.city-label { margin: 0; justify-self: end; font-weight: 700; }
.city-label span { margin-left: 12px; font-size: 15px; }

.hero {
  min-height: 445px;
  padding: 55px 7vw 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  align-items: center;
  overflow: hidden;
}

.eyebrow { margin: 0 0 18px; font-weight: 700; }

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(58px, 7.3vw, 112px);
  line-height: .78;
  letter-spacing: -.075em;
  font-weight: 620;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  color: var(--paper);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px -16px -8px -12px;
  background: var(--blue);
  transform: rotate(-1.5deg);
  clip-path: polygon(2% 8%, 99% 0, 96% 94%, 0 100%);
}

.dial-art { position: relative; min-height: 330px; display: grid; place-items: center; }
.dial-ring {
  position: relative;
  width: 285px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, var(--ink) 0 1deg, transparent 1deg 10deg);
}

.dial-ring::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.dial-ring::after { content: ""; position: absolute; top: -8px; width: 17px; height: 53%; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 100%; transform: rotate(40deg); }
.dial-center { position: relative; z-index: 2; width: 138px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--ink); }
.dial-center b { font-size: 58px; line-height: .75; letter-spacing: -.08em; }
.dial-center small { margin-top: 12px; font: 9px/1.3 "IBM Plex Mono", monospace; letter-spacing: .14em; }
.dial-number { position: absolute; z-index: 3; font: 10px "IBM Plex Mono", monospace; background: var(--paper); padding: 2px; }
.dial-number.n1 { top: 38px; left: 58px; }
.dial-number.n2 { top: 62px; right: 41px; }
.dial-number.n3 { bottom: 42px; right: 58px; }
.dial-number.n4 { bottom: 48px; left: 50px; }
.spark { position: absolute; font-size: 35px; }
.spark-a { left: 5%; top: 23%; color: var(--orange); }
.spark-b { right: 3%; bottom: 8%; color: var(--blue); font-size: 21px; }

.scanner {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  min-height: 305px;
  border-block: 1px solid var(--ink);
  background: var(--lime);
}

.scanner-intro { position: relative; padding: 58px 7vw; display: flex; gap: 24px; align-items: flex-start; border-right: 1px solid var(--ink); }
.scanner-number { font: 10px "IBM Plex Mono", monospace; width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; }
.scanner-intro .eyebrow { margin: 4px 0 12px; }
.scanner h2, .board-heading h2 { margin: 0; font-size: clamp(35px, 3.4vw, 54px); line-height: .95; letter-spacing: -.055em; }

.controls { padding: 44px 6vw 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 18px; }
.field { display: grid; gap: 9px; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.input-shell { position: relative; display: flex; align-items: center; height: 54px; border-bottom: 2px solid var(--ink); }
.input-shell > svg:not(.chevron) { position: absolute; left: 2px; width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
input, select { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 600; text-transform: none; }
input { padding: 0 38px 0 34px; }
input::placeholder { color: rgba(23,23,15,.57); }
select { appearance: none; padding-right: 36px; cursor: pointer; }
.chevron { position: absolute; right: 2px; width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; pointer-events: none; }
.clear-search { position: absolute; right: 2px; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; line-height: 1; }

.saved-toggle { grid-column: 1 / -1; min-height: 65px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 10px 16px; border: 1px solid var(--ink); background: transparent; text-align: left; }
.record-icon { width: 27px; height: 27px; border: 1px solid var(--ink); border-radius: 50%; background: var(--orange); box-shadow: inset 0 0 0 7px var(--lime); }
.saved-toggle b { display: block; font-size: 14px; }
.saved-toggle small { display: block; margin-top: 2px; font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.toggle-track { width: 43px; height: 24px; padding: 3px; border: 1px solid var(--ink); border-radius: 20px; }
.toggle-track i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .2s ease; }
.saved-toggle[aria-pressed="true"] { color: white; background: var(--ink); }
.saved-toggle[aria-pressed="true"] .record-icon { box-shadow: inset 0 0 0 7px var(--ink); border-color: white; }
.saved-toggle[aria-pressed="true"] .toggle-track { border-color: white; }
.saved-toggle[aria-pressed="true"] .toggle-track i { background: var(--lime); transform: translateX(18px); }

.board-section { padding: 72px 4vw 92px; }
.board-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 2.5vw 42px; }
.board-heading > div { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; }
.board-heading .scanner-number { grid-row: span 2; margin-top: 2px; }
.board-heading .eyebrow { margin: 2px 0 10px; }
.result-status { margin: 0 0 6px; }
.result-status strong { font-size: 19px; color: var(--orange); }

.day-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.day-column:nth-child(2) { border-left: 1px solid var(--ink); }
.day-header { min-height: 103px; padding: 22px 2vw; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); }
.day-header h3 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.day-header h3 span { font-weight: 400; }
.day-header p { margin: 0; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 13px "IBM Plex Mono", monospace; }
.day-items { padding: 0 2vw; }

.event-card { --card-accent: var(--blue); min-height: 246px; display: grid; grid-template-columns: 58px 1fr; border-bottom: 1px solid var(--ink); transition: background-color .2s ease; }
.event-card:hover { background: rgba(255,255,255,.42); }
.card-code { padding-top: 28px; writing-mode: vertical-rl; transform: rotate(180deg); font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .15em; }
.card-code::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-bottom: 9px; border-radius: 50%; background: var(--card-accent); }
.card-copy { min-width: 0; padding: 27px 0 23px; display: flex; flex-direction: column; }
.card-meta { min-height: 20px; display: flex; justify-content: space-between; align-items: start; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.card-category { padding: 5px 8px; border: 1px solid var(--ink); border-radius: 20px; }
.saved-badge { padding-top: 5px; color: #e64125; font-weight: 700; }
.card-copy h3 { max-width: 490px; margin: 17px 0 9px; font-size: clamp(22px, 2vw, 29px); line-height: 1.02; letter-spacing: -.045em; }
.card-summary { max-width: 510px; margin: 0 0 24px; color: #46463d; font-size: 13px; line-height: 1.45; }
.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 15px; }
.card-footer p { margin: 0; font: 10px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; }
.card-footer p b, .card-footer p span { display: block; }
.card-footer p span { color: #67675e; }
.open-item { flex: 0 0 auto; min-width: 110px; padding: 10px 11px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--ink); background: transparent; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; font-weight: 700; transition: color .15s, background .15s; }
.open-item:hover { color: white; background: var(--ink); }

.empty-state { margin: 0 2vw; padding: 76px 20px; text-align: center; border-bottom: 1px solid var(--ink); }
.empty-static { color: var(--orange); font-size: 80px; line-height: .6; }
.empty-state .eyebrow { margin: 24px 0 8px; }
.empty-state h3 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.empty-state > p:not(.eyebrow) { margin: 10px 0 24px; }
.empty-state button { padding: 12px 18px; border: 1px solid var(--ink); color: white; background: var(--ink); font: 11px "IBM Plex Mono", monospace; text-transform: uppercase; }

.signoff { min-height: 260px; padding: 50px 5vw; display: grid; place-content: center; text-align: center; color: white; background: var(--blue); }
.signoff .eyebrow { margin-bottom: 12px; }
.signoff-logo { margin: 0; font-size: clamp(29px, 4vw, 54px); font-weight: 700; letter-spacing: -.05em; }
.signoff-logo span { color: var(--lime); }
.signoff > p:last-child { margin: 18px 0 0; font: 10px/1.5 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }

.detail-dialog { width: min(1040px, calc(100% - 42px)); max-height: calc(100dvh - 42px); padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 14px 14px 0 var(--ink); overflow: auto; }
.detail-dialog::backdrop { background: rgba(20, 20, 13, .7); backdrop-filter: blur(3px); }
.detail-card { min-height: 620px; }
.detail-topbar { min-height: 62px; padding-left: 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.detail-topbar p { margin: 0; font-weight: 700; }
.close-detail { align-self: stretch; min-width: 120px; display: flex; justify-content: space-around; align-items: center; border: 0; border-left: 1px solid var(--ink); background: transparent; text-transform: uppercase; font: 10px "IBM Plex Mono", monospace; }
.close-detail b { font: 26px/1 "Space Grotesk", sans-serif; }
.close-detail:hover { color: white; background: var(--ink); }
.detail-body { display: grid; grid-template-columns: 205px 1fr; }
.detail-station { min-height: 558px; padding: 34px 25px; border-right: 1px solid var(--ink); background: var(--detail-accent, var(--orange)); }
.station-code { margin: 0 0 280px; writing-mode: vertical-rl; transform: rotate(180deg); font: 12px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .15em; }
.detail-category { width: max-content; margin: 0; padding: 6px 9px; border: 1px solid var(--ink); border-radius: 20px; font-weight: 700; }
.detail-main { padding: 48px clamp(32px, 6vw, 78px) 52px; }
.detail-date { margin: 0 0 17px; font-weight: 700; }
.detail-main h2 { max-width: 690px; margin: 0; font-size: clamp(43px, 5vw, 68px); line-height: .91; letter-spacing: -.065em; }
.detail-description { max-width: 710px; margin: 26px 0 34px; font-size: 17px; line-height: 1.55; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact-grid > div { min-height: 82px; padding: 15px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-grid dt { margin-bottom: 8px; color: #6c6c62; }
.fact-grid dd { margin: 0; font-size: 14px; font-weight: 650; }
.access-note { display: grid; grid-template-columns: 31px 1fr; gap: 12px; margin: 0 0 28px; }
.access-note > span { font-size: 24px; color: var(--blue); }
.access-note h3 { margin: 1px 0 5px; font: 700 10px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.access-note p { margin: 0; font-size: 13px; line-height: 1.45; }
.save-button { width: 100%; min-height: 67px; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 10px 18px; border: 1px solid var(--ink); background: var(--lime); text-align: left; }
.save-button-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 11px; color: var(--orange); background: var(--paper); }
.save-button-copy b { display: block; font-size: 14px; }
.save-button-copy small { display: block; margin-top: 2px; font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; }
.save-button[aria-pressed="true"] { color: white; background: var(--ink); }
.save-button[aria-pressed="true"] .save-button-icon { color: var(--lime); background: var(--orange); border-color: white; }

@media (max-width: 800px) {
  .site-header { height: 68px; padding: 0 20px; grid-template-columns: 1fr auto; }
  .broadcast-date { display: none; }
  .city-label { font-size: 9px; }
  .hero { min-height: 485px; padding: 54px 23px 32px; display: block; position: relative; }
  .hero h1 { font-size: clamp(54px, 17vw, 76px); line-height: .82; }
  .hero h1 em::before { inset: 1px -7px -5px -6px; }
  .dial-art { position: absolute; z-index: -1; right: -83px; bottom: -82px; transform: scale(.62); }
  .spark { display: none; }
  .scanner { display: block; }
  .scanner-intro { padding: 40px 22px 32px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .scanner h2 { font-size: 38px; }
  .controls { padding: 31px 22px 36px; grid-template-columns: 1fr; gap: 22px; }
  .saved-toggle { grid-column: auto; margin-top: 2px; }
  .board-section { padding: 55px 0 72px; }
  .board-heading { margin: 0 22px 35px; align-items: start; }
  .board-heading > div { column-gap: 13px; }
  .board-heading .scanner-number { width: 27px; height: 27px; }
  .board-heading h2 { font-size: 37px; }
  .result-status { padding-top: 45px; font-size: 8px; text-align: right; }
  .day-grid { display: block; }
  .day-column:nth-child(2) { border-left: 0; }
  .day-column + .day-column { margin-top: 20px; border-top: 1px solid var(--ink); }
  .day-header { min-height: 82px; padding: 16px 22px; background: rgba(255,255,255,.33); }
  .day-header h3 { font-size: 25px; }
  .day-header p { width: 46px; height: 46px; font-size: 11px; }
  .day-items { padding: 0 22px; }
  .event-card { min-height: 255px; grid-template-columns: 32px 1fr; }
  .card-copy { padding: 24px 0 21px 8px; }
  .card-code { padding-top: 25px; font-size: 8px; }
  .card-copy h3 { font-size: 24px; }
  .card-summary { font-size: 12px; }
  .open-item { min-width: 99px; padding: 9px; }
  .empty-state { margin: 0 22px; }
  .empty-state h3 { font-size: 25px; }
  .signoff { min-height: 240px; }
  .detail-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; border: 0; box-shadow: none; }
  .detail-card { min-height: 100dvh; }
  .detail-topbar { position: sticky; z-index: 3; top: 0; min-height: 58px; padding-left: 18px; background: var(--paper); }
  .close-detail { min-width: 104px; }
  .detail-body { display: block; }
  .detail-station { min-height: 72px; padding: 18px; display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--ink); }
  .station-code { margin: 0; writing-mode: horizontal-tb; transform: none; font-size: 10px; }
  .detail-main { padding: 36px 22px 38px; }
  .detail-main h2 { font-size: 46px; }
  .detail-description { margin: 22px 0 28px; font-size: 15px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid > div { min-height: 70px; }
  .save-button { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
