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

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-display: swap;
}

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

:root {
  --bg: #f0eee8;
  --surface: #faf9f5;
  --ink: #18231f;
  --muted: #5e6964;
  --accent: #ff5c35;
  --accent-ink: #171914;
  --dark: #15241f;
  --line: #aeb4ad;
  --radius: 0px;
  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --motion: 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-150%);
  transition: transform var(--motion);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--surface);
  outline-offset: 2px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  min-height: 72px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-inline: clamp(20px, 4vw, 64px);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color var(--motion), background-color var(--motion);
}

.wordmark-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 21px;
  height: 21px;
}

.wordmark-mark i {
  display: block;
  background: var(--accent);
  animation: signal-bars 1.8s steps(3, end) infinite;
}

.wordmark-mark i:nth-child(1) { height: 45%; }
.wordmark-mark i:nth-child(2) { height: 100%; animation-delay: 200ms; }
.wordmark-mark i:nth-child(3) { height: 70%; animation-delay: 400ms; }

.site-nav {
  display: flex;
  align-items: stretch;
  border-left: 2px solid var(--ink);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 24px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--motion), background-color var(--motion), transform var(--motion);
}

.site-nav .nav-cta {
  gap: 24px;
  border-right: 0;
  background: var(--accent);
  color: var(--accent-ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
  min-height: calc(100svh - 72px);
  overflow: clip;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 96px;
  padding-inline: clamp(24px, 5vw, 80px);
  animation: hero-settle 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow,
.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero .eyebrow span {
  padding: 5px 8px;
  background: var(--ink);
  color: var(--surface);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 850px;
  margin: 40px 0 32px;
  font-family: var(--display);
  font-size: clamp(66px, 9.4vw, 152px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .82;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-intro {
  max-width: 590px;
  margin: 0 0 32px;
  color: #46534e;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  min-height: 52px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--motion), box-shadow var(--motion), background-color var(--motion);
}

.dispatch {
  --route-progress: 0%;
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr 1fr auto auto;
  min-width: 0;
  padding-block: 40px;
  padding-inline: clamp(24px, 3.5vw, 56px);
  border-left: 2px solid #50605a;
  background: var(--dark);
  color: #f2f0e9;
  animation: panel-in 720ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dispatch-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #68766f;
  color: #c5cec9;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-blink 1.6s steps(2, end) infinite;
}

.day {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  border-bottom: 1px solid #68766f;
}

.day-number {
  font-family: var(--display);
  font-size: clamp(72px, 8vw, 122px);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: 1;
}

.day strong,
.day div span {
  display: block;
}

.day strong {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.1;
}

.day div span {
  margin-top: 8px;
  color: #bdc7c1;
  font-family: var(--mono);
  font-size: 11px;
}

.signal {
  position: relative;
  height: 72px;
  margin-top: 24px;
}

.signal::before,
.signal::after {
  content: "";
  position: absolute;
  top: 31px;
  width: 8px;
  height: 8px;
  border: 1px solid #829088;
  border-radius: 50%;
}

.signal::before { left: 0; }
.signal::after { right: 0; }

.signal-line {
  position: absolute;
  top: 35px;
  left: 8px;
  right: 8px;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(to right, var(--accent) 0 var(--route-progress), #68766f var(--route-progress) 100%);
  transition: background var(--motion);
}

.signal-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: left;
  animation: signal-sweep 4s cubic-bezier(.65, 0, .35, 1) infinite alternate;
}

.signal-dot {
  position: absolute;
  top: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f2f0e9;
}

.dot-one { left: 26%; }
.dot-two { left: 57%; }
.dot-three { left: 82%; }

.dispatch-note {
  max-width: 34ch;
  margin: 0;
  color: #c5cec9;
  font-size: 15px;
}

.hero-index {
  position: absolute;
  z-index: 1;
  left: -2vw;
  bottom: -11vw;
  color: #e5e2da;
  font-family: var(--display);
  font-size: 34vw;
  font-weight: 700;
  letter-spacing: -.1em;
  line-height: .7;
  pointer-events: none;
  user-select: none;
}

.browse-section {
  padding-block: 128px 160px;
  padding-inline: clamp(24px, 5vw, 80px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.section-heading h2,
.field-notes h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .96;
}

.section-heading > p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(220px, .75fr) minmax(220px, .65fr);
  border: 2px solid var(--ink);
  background: var(--surface);
}

.control {
  min-width: 0;
  padding-block: 16px 14px;
  padding-inline: 20px;
  border-right: 2px solid var(--ink);
}

.control label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.input-shell,
.select-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.select-shell {
  grid-template-columns: 1fr auto;
}

.input-shell > span,
.select-shell > span {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.control input,
.control select {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 2px solid transparent;
  outline-offset: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  transition: outline-color var(--motion), color var(--motion);
}

.control select {
  appearance: none;
  cursor: pointer;
}

.control input::placeholder {
  color: #7a837f;
  opacity: 1;
}

.control input:focus,
.control select:focus,
.control input:focus-visible,
.control select:focus-visible {
  outline-color: var(--accent);
}

.saved-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border: 0;
  background: var(--dark);
  color: #f2f0e9;
  cursor: pointer;
  text-align: left;
  transition: transform var(--motion), background-color var(--motion), color var(--motion);
}

.saved-toggle .saved-symbol {
  color: var(--accent);
  font-size: 24px;
  transition: transform var(--motion);
}

.saved-toggle small,
.saved-toggle strong {
  display: block;
}

.saved-toggle small {
  color: #bdc7c1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.saved-toggle strong {
  font-family: var(--display);
  font-size: 16px;
}

.saved-count {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #738079;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
}

.saved-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.saved-toggle[aria-pressed="true"] small,
.saved-toggle[aria-pressed="true"] .saved-symbol {
  color: var(--accent-ink);
}

.results-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.results-meta p { margin: 0; }
.results-meta p:last-child { color: var(--muted); text-align: right; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-left: 2px solid var(--ink);
}

.event-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
  transition: background-color var(--motion), color var(--motion), transform var(--motion);
}

.event-card:nth-child(1),
.event-card:nth-child(6) {
  grid-column: span 8;
}

.event-card:nth-child(4),
.event-card:nth-child(9) {
  grid-column: span 5;
}

.event-card:nth-child(5),
.event-card:nth-child(10) {
  grid-column: span 7;
}

.event-card:nth-child(1) {
  min-height: 430px;
  background: var(--dark);
  color: #f2f0e9;
}

.event-card.is-saved::after {
  content: "Saved ✳";
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  padding-inline: 20px;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-card.is-saved .card-top { padding-right: 92px; }

.card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-block: 24px;
  padding-inline: clamp(20px, 2.5vw, 36px);
}

.card-date {
  margin: 0 0 32px;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .9;
}

.event-card h3 {
  max-width: 18ch;
  margin: auto 0 16px;
  font-family: var(--display);
  font-size: clamp(25px, 2.5vw, 38px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.event-card:nth-child(1) h3,
.event-card:nth-child(6) h3 {
  max-width: 22ch;
  font-size: clamp(36px, 4vw, 64px);
}

.card-summary {
  max-width: 56ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.event-card:nth-child(1) .card-summary {
  color: #bdc7c1;
}

.open-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  transition: padding-left var(--motion), padding-right var(--motion), color var(--motion), background-color var(--motion), transform var(--motion);
}

.open-item span:last-child {
  font-size: 21px;
  transition: transform var(--motion);
}

.empty-state {
  display: grid;
  grid-template-columns: minmax(160px, .5fr) 1fr;
  min-height: 420px;
  border: 2px solid var(--ink);
  border-top: 0;
  background: var(--surface);
}

.empty-state[hidden] { display: none; }

.empty-state > span {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  color: #d9d7d0;
  font-family: var(--display);
  font-size: clamp(100px, 17vw, 250px);
  font-weight: 700;
  letter-spacing: -.08em;
}

.empty-state > div {
  align-self: center;
  max-width: 600px;
  padding-block: 64px;
  padding-inline: clamp(24px, 5vw, 72px);
}

.empty-state h3 {
  margin: 12px 0 16px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -.04em;
  line-height: 1;
}

.empty-state p:not(.eyebrow) { color: var(--muted); }

.empty-state button {
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 20px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--motion), box-shadow var(--motion), background-color var(--motion);
}

.field-notes {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(400px, 1.1fr);
  gap: 96px;
  padding-block: 128px;
  padding-inline: clamp(24px, 5vw, 80px);
  overflow: clip;
  background: var(--dark);
  color: #f2f0e9;
}

.note-intro {
  position: sticky;
  top: 96px;
  align-self: start;
}

.field-notes h2 {
  max-width: 10ch;
}

.note-ledger {
  border-top: 1px solid #75817b;
}

.note-ledger article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid #75817b;
  transition: background-color var(--motion), padding-left var(--motion);
}

.note-ledger article > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.note-ledger h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -.02em;
}

.note-ledger p {
  max-width: 48ch;
  margin: 0;
  color: #bdc7c1;
}

.fiction-note {
  grid-column: 2;
  max-width: 62ch;
  margin: 0;
  color: #aab5af;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}

body > footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 112px;
  padding-inline: clamp(24px, 5vw, 80px);
  border-top: 2px solid var(--ink);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body > footer p { margin: 0; text-align: center; }

body > footer > a:last-child {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  transition: transform var(--motion), color var(--motion);
}

.footer-mark {
  padding-inline: 0;
}

.detail-dialog {
  width: min(920px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.detail-dialog::backdrop {
  background: rgb(15 24 21 / 78%);
  backdrop-filter: blur(3px);
}

.detail-dialog[open] {
  animation: dialog-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-panel {
  border: 2px solid var(--ink);
  background: var(--surface);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding-left: 24px;
  border-bottom: 2px solid var(--ink);
}

.detail-figure {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.close-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding-inline: 20px;
  border: 0;
  border-left: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color var(--motion), color var(--motion), transform var(--motion);
}

.close-detail i,
.close-detail i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.close-detail i::after {
  content: "";
  transform: rotate(90deg);
}

.detail-body {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
}

.detail-title-block {
  padding-block: 48px;
  padding-inline: clamp(24px, 5vw, 56px);
  border-right: 2px solid var(--ink);
}

.detail-title-block h2 {
  margin: 20px 0 24px;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .95;
}

.detail-summary {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
}

.detail-ledger {
  margin: 0;
}

.detail-ledger div {
  padding-block: 18px;
  padding-inline: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-ledger div:last-child { border-bottom: 0; }

.detail-ledger dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-ledger dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.detail-practical {
  grid-column: 1 / -1;
  padding-block: 32px;
  padding-inline: clamp(24px, 5vw, 56px);
  border-top: 2px solid var(--ink);
  background: var(--bg);
}

.detail-practical .label { color: var(--muted); }

#detail-content {
  max-width: 68ch;
  margin-top: 12px;
}

#detail-content p {
  margin: 0 0 12px;
}

#detail-content p:last-child { margin-bottom: 0; }

.detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 20px;
  padding-inline: clamp(24px, 5vw, 56px);
  border-top: 2px solid var(--ink);
  background: var(--dark);
  color: #f2f0e9;
}

.detail-footer p {
  margin: 0;
  color: #bdc7c1;
  font-size: 15px;
}

.save-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform var(--motion), box-shadow var(--motion), background-color var(--motion), color var(--motion);
}

.save-button[aria-pressed="true"] {
  background: transparent;
  color: #f2f0e9;
}

.noscript {
  margin: 0;
  padding: 20px;
  background: #fff2b8;
  color: #2b2617;
}

.noscript h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -.03em;
}

.noscript a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.wordmark:focus,
.site-nav a:focus,
.primary-action:focus,
body > footer a:focus,
.wordmark:focus-visible,
.site-nav a:focus-visible,
.primary-action:focus-visible,
body > footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.saved-toggle:focus,
.empty-state button:focus,
.close-detail:focus,
.save-button:focus,
.saved-toggle:focus-visible,
.empty-state button:focus-visible,
.close-detail:focus-visible,
.save-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.open-item:focus,
.open-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  padding-inline: 10px;
}

.event-card:focus-within {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.site-nav a:active,
.wordmark:active,
.primary-action:active,
.saved-toggle:active,
.open-item:active,
.empty-state button:active,
.close-detail:active,
.save-button:active,
body > footer a:active {
  transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  .wordmark:hover { background: var(--ink); color: var(--surface); }
  .site-nav a:hover { background: var(--ink); color: var(--surface); }
  .site-nav .nav-cta:hover { background: #ff7656; color: var(--accent-ink); }
  .primary-action:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
  .saved-toggle:hover { background: #263a33; }
  .saved-toggle[aria-pressed="true"]:hover { background: #ff7656; }
  .saved-toggle:hover .saved-symbol { transform: rotate(45deg); }
  .event-card:hover { background: #e4e1d9; }
  .event-card:nth-child(1):hover { background: #243831; }
  .event-card:hover .open-item { padding-inline: 10px; background: var(--accent); color: var(--accent-ink); }
  .event-card:hover .open-item span:last-child { transform: translateX(4px); }
  .empty-state button:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
  .note-ledger article:hover { padding-left: 12px; background: #1d3029; }
  body > footer > a:last-child:hover { transform: translateY(-2px); }
  .close-detail:hover { background: var(--ink); color: var(--surface); }
  .save-button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #f2f0e9; }
  .save-button[aria-pressed="true"]:hover { background: #f2f0e9; color: var(--ink); }
}

@keyframes hero-settle {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes signal-bars {
  0%, 100% { transform: scaleY(.65); }
  50% { transform: scaleY(1); }
}

@keyframes live-blink {
  0%, 40% { opacity: 1; }
  41%, 100% { opacity: .3; }
}

@keyframes signal-sweep {
  from { transform: translateX(-85%) scaleX(.18); }
  to { transform: translateX(85%) scaleX(.18); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr; }
  .wordmark { min-height: 60px; }
  .site-nav { overflow-x: auto; border-top: 2px solid var(--ink); border-left: 0; scrollbar-width: thin; }
  .site-nav a { flex: 0 0 auto; min-height: 52px; }
  .site-nav::after { content: ""; flex: 0 0 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 650px; }
  .dispatch { min-height: 520px; border-top: 2px solid var(--ink); border-left: 0; }
  .hero-index { top: 340px; bottom: auto; font-size: 50vw; }
  .controls { grid-template-columns: 1fr 1fr; }
  .filter-control { border-right: 0; }
  .saved-toggle { grid-column: 1 / -1; border-top: 2px solid var(--ink); }
  .event-card,
  .event-card:nth-child(4),
  .event-card:nth-child(5),
  .event-card:nth-child(9),
  .event-card:nth-child(10) { grid-column: span 6; }
  .event-card:nth-child(1),
  .event-card:nth-child(6) { grid-column: span 12; }
  .field-notes { grid-template-columns: 1fr; gap: 64px; }
  .note-intro { position: static; }
  .fiction-note { grid-column: 1; }
  body > footer { grid-template-columns: 1fr auto; }
  body > footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; padding-bottom: 20px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 24px; }
  body { font-size: 16px; }
  .site-header { min-height: 0; }
  .wordmark { padding-inline: 20px; }
  .site-nav a { padding-inline: 20px; }
  .hero-copy { min-height: 620px; padding-block: 64px; padding-inline: 20px; }
  .hero .eyebrow { max-width: 250px; }
  h1 { margin-block: 32px 24px; font-size: clamp(62px, 19vw, 78px); line-height: .87; }
  .hero-intro { margin-bottom: 24px; }
  .primary-action { width: 100%; gap: 24px; }
  .hero-index { top: 380px; left: -6vw; font-size: 76vw; }
  .dispatch { min-height: 480px; padding-block: 28px; padding-inline: 20px; }
  .dispatch-top { padding-bottom: 16px; }
  .day { gap: 20px; }
  .day-number { font-size: 72px; }
  .browse-section { padding-block: 96px 112px; padding-inline: 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .section-heading h2, .field-notes h2 { font-size: clamp(46px, 14vw, 60px); }
  .controls { grid-template-columns: 1fr; }
  .control { border-right: 0; border-bottom: 2px solid var(--ink); }
  .saved-toggle { grid-column: auto; border-top: 0; }
  .results-meta { align-items: flex-end; }
  .results-meta p:last-child { max-width: 18ch; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card,
  .event-card:nth-child(1),
  .event-card:nth-child(4),
  .event-card:nth-child(5),
  .event-card:nth-child(6),
  .event-card:nth-child(9),
  .event-card:nth-child(10) { grid-column: 1; min-height: 330px; }
  .event-card h3,
  .event-card:nth-child(1) h3,
  .event-card:nth-child(6) h3 { font-size: 32px; }
  .card-date { font-size: 52px; margin-bottom: 28px; }
  .empty-state { grid-template-columns: 1fr; }
  .empty-state > span { min-height: 160px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .empty-state > div { padding-block: 48px; padding-inline: 20px; }
  .field-notes { gap: 48px; padding-block: 96px; padding-inline: 20px; }
  .note-ledger article { grid-template-columns: 40px 1fr; gap: 16px; }
  body > footer { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; padding-inline: 20px; }
  body > footer p, body > footer > a:last-child { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
  body > footer p { padding-bottom: 0; }
  .detail-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .detail-header { min-height: 56px; padding-left: 16px; }
  .close-detail { min-height: 54px; padding-inline: 16px; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-title-block { padding-block: 32px; padding-inline: 20px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .detail-title-block h2 { font-size: clamp(40px, 12vw, 52px); }
  .detail-practical { grid-column: 1; padding-inline: 20px; }
  .detail-footer { align-items: stretch; flex-direction: column; padding-inline: 20px; }
  .save-button { justify-content: center; width: 100%; }
}

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