@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --paper: #efe7d5;
  --paper-hi: #faf5e8;
  --paper-dim: #e3d9c4;
  --ink: #14201a;
  --ink-2: #26352c;
  --ink-soft: #586158;
  --blue: #2142a0;
  --blue-deep: #172f78;
  --orange: #f1542a;
  --orange-soft: #ff7a4d;
  --orange-ink: #b53512;
  --rule: rgba(20, 32, 26, 0.28);
  --rule-strong: rgba(20, 32, 26, 0.72);
  --paper-rule: rgba(239, 231, 213, 0.24);
  --cat-places: #2f6b4f;
  --cat-movement: #2142a0;
  --cat-people: #7a3b84;
  --cat-food: #b94a1e;
  --cat-culture: #a77a10;
  --shadow-hard: 8px 8px 0 rgba(20, 32, 26, 0.13);
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Literata", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% -10%, rgba(255, 255, 255, 0.58), transparent 42rem),
    radial-gradient(rgba(20, 32, 26, 0.07) 0.65px, transparent 0.75px),
    var(--paper);
  background-size: auto, 8px 8px, auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.detail-open {
  overflow: hidden;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid var(--orange);
}

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

.mono,
.eyebrow,
.field-label,
.ticker,
a.back-to-top,
.footer-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.page {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 34px;
}

/* ——— Masthead ——————————————————————————————————— */

.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -34px;
  padding: 9px 34px;
  overflow: hidden;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.ticker > span:not(.ticker-sep):not(.ticker-dot) {
  flex: 0 0 auto;
}

.ticker-sep {
  color: var(--orange);
}

.ticker-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.ticker-dot--end {
  margin-left: auto;
  background: var(--paper);
}

.masthead-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: end;
  gap: 32px;
  padding: 26px 0 14px;
}

.brand {
  position: relative;
  min-width: 0;
}

.route-id {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 12px;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
}

.route-number {
  display: grid;
  place-items: center;
  min-width: 44px;
  padding: 5px 8px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.route-name {
  padding: 4px 10px 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(76px, 12vw, 168px);
  font-weight: 600;
  line-height: 0.76;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.tagline::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--orange);
}

.issue-block {
  position: relative;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.issue-kicker {
  margin: 0 0 10px;
  font-size: 10px;
}

.issue-line {
  max-width: 29ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.45;
}

.stamp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin: 24px 0 0 auto;
  transform: rotate(-7deg);
  border: 3px double var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-align: center;
}

.stamp strong {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  position: relative;
  margin: 2px 0 26px;
  padding-top: 17px;
}

.route-strip::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
}

.strip-stop {
  position: relative;
  min-width: 0;
}

.strip-stop::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--paper);
}

.strip-stop:first-child::before {
  background: var(--orange);
  border-color: var(--orange);
}

.strip-stop span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* ——— Board and control panel ————————————————————— */

.board {
  display: grid;
  grid-template-columns: 348px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  padding-bottom: 88px;
}

.control-panel {
  position: sticky;
  top: 22px;
  padding: 24px 24px 28px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 9px 9px 0 var(--orange);
}

.control-panel::before,
.control-panel::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  height: 1px;
  background-image: linear-gradient(90deg, var(--paper-rule) 50%, transparent 50%);
  background-size: 8px 1px;
}

.control-panel::before {
  top: 73px;
}

.control-panel::after {
  bottom: 11px;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-soft);
}

.panel-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 84, 42, 0.18);
}

.panel-title {
  margin: 0 0 12px;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.panel-intro {
  margin: 0 0 24px;
  color: rgba(239, 231, 213, 0.78);
  font-size: 13.5px;
  line-height: 1.5;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field-label {
  display: block;
  margin: 0 0 7px;
  color: rgba(239, 231, 213, 0.78);
  font-size: 10px;
  font-weight: 400;
}

.input-wrap,
.select-wrap {
  position: relative;
  margin-bottom: 16px;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  pointer-events: none;
}

.input-wrap input,
.select-wrap select {
  width: 100%;
  height: 50px;
  border: 2px solid var(--paper);
  border-radius: 0;
  background: var(--paper-hi);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

.input-wrap input {
  padding: 0 14px 0 42px;
  appearance: none;
}

.input-wrap input::placeholder {
  color: #737b70;
  font-weight: 400;
}

.input-wrap input::-webkit-search-cancel-button {
  cursor: pointer;
}

.select-wrap select {
  padding: 0 44px 0 14px;
  appearance: none;
  cursor: pointer;
}

.select-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  pointer-events: none;
}

.input-wrap input:focus-visible,
.select-wrap select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.saved-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  padding: 0 13px;
  border: 2px solid rgba(239, 231, 213, 0.45);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ticket-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.saved-filter-label {
  flex: 1;
}

.saved-count {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.saved-filter:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
}

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

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

.board-readout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--paper-rule);
}

.readout-number {
  font-family: var(--font-display);
  font-size: 59px;
  font-weight: 400;
  line-height: 0.78;
  color: var(--orange-soft);
}

.readout-copy {
  margin: 0;
  color: rgba(239, 231, 213, 0.82);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.conductor-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--paper-rule);
  color: rgba(239, 231, 213, 0.9);
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

.conductor-note cite {
  display: block;
  margin-top: 4px;
  color: rgba(239, 231, 213, 0.55);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.open-item:focus-visible,
.save-item:focus-visible,
.reset-button:focus-visible,
.close-detail--paper:focus-visible {
  outline-color: var(--blue);
}

/* ——— Route list ————————————————————————————————— */

.line {
  min-width: 0;
}

.line:focus-visible {
  outline-color: var(--blue);
}

.line-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding: 0 0 16px;
  border-bottom: 3px solid var(--ink);
}

.line-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(45px, 5vw, 64px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.line-meta {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.stops {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stops::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 26px;
  left: 26px;
  width: 3px;
  background: var(--blue);
}

.stop {
  position: relative;
  margin: 0 0 28px;
  padding-left: 76px;
}

.cat-places {
  --cat: var(--cat-places);
}

.cat-movement {
  --cat: var(--cat-movement);
}

.cat-people {
  --cat: var(--cat-people);
}

.cat-food {
  --cat: var(--cat-food);
}

.cat-culture {
  --cat: var(--cat-culture);
}

.stop:last-child {
  margin-bottom: 0;
}

.stop-dot {
  position: absolute;
  top: 6px;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.stop:first-child .stop-dot {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.stop-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(182px, 24%, 238px);
  min-height: 208px;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.stop-card:hover,
.stop-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--blue);
}

.stop-media {
  position: relative;
  order: 2;
  min-height: 208px;
  overflow: hidden;
  border-left: 2px dashed rgba(20, 32, 26, 0.38);
  background: var(--cat, var(--blue));
  isolation: isolate;
}

.stop-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.96;
  transition: transform 500ms ease;
}

.stop-card:hover .stop-media img {
  transform: scale(1.025);
}

.stop-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cat, var(--blue));
  mix-blend-mode: color;
  opacity: 0.58;
  pointer-events: none;
}

.illustration-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 4px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stop-copy {
  display: flex;
  flex-direction: column;
  padding: 20px 23px 18px;
  min-width: 0;
}

.stop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-tag::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--cat, var(--blue));
}

.stop-time {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stop-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -0.005em;
}

.stop-summary {
  max-width: 54ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.stop-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--rule);
}

.stop-byline {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.open-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}

.open-item span[aria-hidden] {
  font-size: 13px;
  line-height: 1;
  transition: transform 150ms ease;
}

.open-item:hover {
  background: var(--ink);
  color: var(--paper);
}

.open-item:hover span[aria-hidden] {
  transform: translateX(3px);
}

.kept-flag {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 3;
  padding: 5px 8px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Featured first stop */

.stop:first-child .stop-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.stop:first-child .stop-media {
  order: -1;
  min-height: 0;
  aspect-ratio: 2.65 / 1;
  border-left: 0;
  border-bottom: 2px dashed rgba(20, 32, 26, 0.38);
}

.stop:first-child .stop-copy {
  padding: 24px 28px 22px;
}

.stop:first-child .stop-title {
  max-width: 22ch;
  font-size: clamp(33px, 3.8vw, 47px);
  line-height: 0.98;
}

.stop:first-child .stop-summary {
  max-width: 66ch;
  font-size: 15.5px;
}

/* End of line */

.line-end {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 34px 0 0 76px;
  padding: 17px 0 0;
}

.terminus {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

.terminus::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 48px;
  height: 3px;
  background: var(--ink);
}

.line-end p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.line-end .mono {
  color: var(--ink);
  font-size: 9px;
}

/* Empty state */

.empty-state {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding: 30px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(20, 32, 26, 0.06) 49.6%, rgba(20, 32, 26, 0.06) 50.4%, transparent 50.4%),
    var(--paper-hi);
}

.empty-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 3px double var(--ink);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  transform: rotate(-4deg);
}

.empty-sign-top {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.empty-sign-arrow {
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 1;
}

.empty-copy .eyebrow {
  color: var(--orange-ink);
}

.empty-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1;
}

.empty-copy p:not(.eyebrow) {
  max-width: 46ch;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}

.reset-button:hover {
  background: var(--orange);
  color: var(--ink);
}

/* ——— Footer ————————————————————————————————————— */

.site-footer {
  margin: 0 -34px;
  padding: 26px 34px 30px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-rule);
}

.footer-kicker {
  margin: 0;
  color: rgba(239, 231, 213, 0.72);
  font-size: 9px;
}

.back-to-top {
  font-size: 9px;
  text-decoration: none;
  color: var(--orange-soft);
}

.back-to-top:hover {
  color: var(--paper);
}

.footer-wordmark {
  margin: 8px 0 -12px;
  font-family: var(--font-display);
  font-size: clamp(90px, 18vw, 255px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: rgba(239, 231, 213, 0.1);
  -webkit-text-stroke: 2px rgba(239, 231, 213, 0.55);
  user-select: none;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-rule);
}

.footer-bottom p {
  max-width: 56ch;
  margin: 0;
  color: rgba(239, 231, 213, 0.62);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Detail view ——————————————————————————————— */

.detail {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 15% 5%, rgba(241, 84, 42, 0.16), transparent 36rem),
    var(--ink);
  animation: detail-enter 260ms ease-out both;
}

@keyframes detail-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-scroll {
  min-height: 100%;
}

.detail-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 26px;
  background: rgba(20, 32, 26, 0.96);
  border-bottom: 1px solid var(--paper-rule);
  backdrop-filter: blur(8px);
}

.detail-bar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.detail-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-stop-id {
  padding-left: 14px;
  border-left: 1px solid var(--paper-rule);
  color: rgba(239, 231, 213, 0.68);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid var(--paper);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.close-detail:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.detail-shell {
  max-width: 904px;
  margin: 0 auto;
  padding: 38px 28px 72px;
}

.article-sheet {
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  box-shadow: 11px 11px 0 var(--orange);
}

.article-route {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-stop-number {
  padding-right: 12px;
  border-right: 1px solid rgba(239, 231, 213, 0.45);
  font-size: 11px;
}

.article-route-line {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(239, 231, 213, 0.55) 50%, transparent 50%);
  background-size: 8px 1px;
}

.article-category {
  color: var(--paper);
}

.article-route-meta {
  color: rgba(239, 231, 213, 0.78);
}

.article-pad {
  padding: 34px clamp(24px, 6vw, 62px);
}

.article-kicker {
  margin: 0 0 12px;
  color: var(--orange-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-title {
  max-width: 17ch;
  margin: 0 0 17px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.8vw, 74px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.015em;
}

.article-dek {
  max-width: 54ch;
  margin: 0 0 18px;
  padding-left: 15px;
  border-left: 3px solid var(--orange);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
}

.article-byline {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-figure {
  margin: 4px 0 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.article-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  background: var(--blue);
  isolation: isolate;
}

.article-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.96;
}

.article-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  mix-blend-mode: color;
  opacity: 0.5;
  pointer-events: none;
}

.article-figure figcaption {
  padding: 9px clamp(24px, 6vw, 62px);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.save-stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
  padding: 16px 18px;
  border-top: 2px dashed var(--rule-strong);
  border-bottom: 2px dashed var(--rule-strong);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at left center, var(--paper-hi) 6px, transparent 6.5px),
    radial-gradient(circle at right center, var(--paper-hi) 6px, transparent 6.5px);
}

.save-stub-copy {
  min-width: 0;
}

.save-stub-copy .mono {
  margin: 0 0 3px;
  color: var(--orange-ink);
  font-size: 8.5px;
}

.save-stub-copy p:last-child {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
}

.save-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 17px 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--orange);
  color: var(--ink);
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.save-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 1.5px dashed currentColor;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
}

.save-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.save-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.save-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  opacity: 0.75;
}

.save-item:hover {
  background: var(--ink);
  color: var(--paper);
}

.save-item[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.save-item[aria-pressed="true"] .save-mark {
  border-style: solid;
  background: var(--orange);
  color: var(--ink);
}

.article-body {
  max-width: 64ch;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
}

.article-body p {
  margin: 0 0 1.25em;
}

.article-body p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.09em 0 0;
  font-family: var(--font-display);
  font-size: 4.1em;
  font-weight: 500;
  line-height: 0.72;
  color: var(--blue);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-end {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.article-end-mark {
  color: var(--orange);
  font-size: 14px;
}

.article-end .mono {
  margin: 0;
  color: var(--ink-soft);
  font-size: 8.5px;
}

.close-detail--paper {
  margin-left: auto;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.close-detail--paper:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.detail-footnote {
  max-width: 62ch;
  margin: 26px auto 0;
  color: rgba(239, 231, 213, 0.5);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

/* ——— Intermediate widths ————————————————————————— */

@media (max-width: 1180px) {
  .board {
    grid-template-columns: 314px minmax(0, 1fr);
    gap: 38px;
  }

  .control-panel {
    padding: 22px 20px 26px;
  }

  .panel-title {
    font-size: 34px;
  }

  .stop {
    padding-left: 68px;
  }

  .stops::before {
    left: 24px;
  }

  .stop-dot {
    width: 50px;
    height: 50px;
  }

  .line-end {
    margin-left: 68px;
  }
}

@media (max-width: 980px) {
  .masthead-main {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .board {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .control-panel {
    position: relative;
    top: 0;
    max-width: none;
    box-shadow: 8px 8px 0 var(--orange);
  }

  .panel-title,
  .panel-intro {
    max-width: 30ch;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    align-items: start;
  }

  .filters > .field-label[for="search"] {
    grid-column: 1;
    grid-row: 1;
  }

  .filters > .input-wrap {
    grid-column: 1;
    grid-row: 2;
  }

  .filters > .field-label[for="filter"] {
    grid-column: 2;
    grid-row: 1;
  }

  .filters > .select-wrap {
    grid-column: 2;
    grid-row: 2;
  }

  .filters > #search-hint {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .filters > .saved-filter {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .board-readout {
    display: inline-flex;
    margin-right: 30px;
  }

  .conductor-note {
    display: inline-block;
    max-width: 39ch;
    margin-left: 34px;
    vertical-align: middle;
  }
}

@media (max-width: 880px) {
  .masthead-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .issue-block {
    display: none;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 0 20px;
  }

  .ticker {
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 10px;
  }

  .ticker > span:nth-of-type(3),
  .ticker > span:nth-of-type(4),
  .ticker > span:nth-of-type(5) {
    display: none;
  }

  .masthead-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 0 14px;
  }

  .issue-block {
    display: none;
  }

  .wordmark {
    font-size: clamp(58px, 19vw, 94px);
    line-height: 0.78;
  }

  .route-id {
    margin-bottom: 9px;
  }

  .route-number {
    min-width: 38px;
    font-size: 21px;
  }

  .tagline {
    margin-top: 15px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .tagline::before {
    width: 23px;
  }

  .route-strip {
    margin-bottom: 28px;
  }

  .strip-stop span {
    font-size: 8px;
  }

  .line-head {
    margin-bottom: 24px;
  }

  .line-meta {
    display: none;
  }

  .stop {
    padding-left: 59px;
    margin-bottom: 22px;
  }

  .stops::before {
    left: 18px;
  }

  .stop-dot {
    top: 3px;
    width: 38px;
    height: 38px;
    border-width: 2px;
    font-size: 9.5px;
  }

  .stop-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .stop-media,
  .stop:first-child .stop-media {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 8.4;
    border-left: 0;
    border-bottom: 2px dashed rgba(20, 32, 26, 0.38);
  }

  .stop-copy,
  .stop:first-child .stop-copy {
    padding: 17px 18px 16px;
  }

  .stop-title,
  .stop:first-child .stop-title {
    max-width: none;
    font-size: clamp(27px, 8.2vw, 36px);
  }

  .stop-summary,
  .stop:first-child .stop-summary {
    font-size: 13.5px;
  }

  .stop-bottom {
    gap: 10px;
  }

  .stop-byline {
    max-width: 17ch;
  }

  .line-end {
    margin-left: 59px;
  }

  .empty-state {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
  }

  .empty-sign {
    width: 126px;
  }

  .site-footer {
    margin: 0 -20px;
    padding: 22px 20px 26px;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .footer-wordmark {
    -webkit-text-stroke-width: 1.4px;
  }

  .detail-bar {
    padding: 10px 14px;
    gap: 10px;
  }

  .detail-stop-id {
    display: none;
  }

  .detail-logo {
    font-size: 19px;
  }

  .close-detail {
    min-height: 42px;
    padding: 8px 11px;
    font-size: 9px;
  }

  .detail-shell {
    padding: 20px 12px 48px;
  }

  .article-sheet {
    box-shadow: 6px 6px 0 var(--orange);
  }

  .article-route {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    font-size: 8px;
  }

  .article-route-line {
    display: none;
  }

  .article-route-meta {
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(239, 231, 213, 0.3);
  }

  .article-pad {
    padding: 26px 20px;
  }

  .article-title {
    font-size: clamp(38px, 11.5vw, 55px);
  }

  .article-dek {
    font-size: 16.5px;
  }

  .article-image-wrap {
    aspect-ratio: 16 / 10;
  }

  .article-figure figcaption {
    padding: 8px 20px;
  }

  .save-stub {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 16px 14px;
  }

  .save-item {
    justify-content: flex-start;
    width: 100%;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.68;
  }

  .article-end {
    flex-wrap: wrap;
  }

  .close-detail--paper {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .panel-intro,
  .conductor-note {
    display: none;
  }

  .panel-title {
    margin-bottom: 18px;
  }

  .board-readout {
    display: flex;
    margin-right: 0;
  }

  .board {
    gap: 32px;
  }
}

@media (max-width: 430px) {
  .ticker {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .panel-title {
    font-size: 31px;
  }

  .stop {
    padding-left: 52px;
  }

  .stops::before {
    left: 15px;
  }

  .stop-dot {
    width: 32px;
    height: 32px;
    font-size: 8.5px;
  }

  .line-end {
    margin-left: 52px;
  }

  .stop-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .open-item {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .control-panel::before {
    top: 58px;
  }

  .panel-topline {
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .panel-title {
    margin-bottom: 14px;
    font-size: 25px;
  }

  .board-readout {
    margin-top: 16px;
    padding-top: 12px;
  }

  .readout-number {
    font-size: 45px;
  }

  .board {
    gap: 28px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
