/* ============================================================
   OFF-PEAK — weekend culture network
   A risograph transit poster: warm paper, ink hairlines,
   category lines as colour, condensed signage type.
   ============================================================ */

@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f1ebdc;
  --paper-2: #fbf7ec;
  --ink: #191b21;
  --ink-2: #3b3d44;
  --muted: #706d61;
  --hair: rgba(25, 27, 33, 0.16);
  --hair-strong: rgba(25, 27, 33, 0.42);
  --accent: #cc3411;
  --on-accent: #fff3ea;

  --line-art: #b5351f;
  --line-film: #3f32b0;
  --line-food: #8a5c00;
  --line-lit: #17624f;
  --line-music: #a1165c;
  --line-out: #2f7333;
  --line-walk: #21529f;

  --spine-x: 82px;
  --shell: min(1320px, calc(100% - 56px));
  --shadow: 10px 10px 0 var(--ink);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* thin multicolour network stripe across the very top */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 7px;
  z-index: 60;
  background: linear-gradient(
    90deg,
    var(--line-art) 0 14.28%,
    var(--line-film) 14.28% 28.56%,
    var(--line-food) 28.56% 42.84%,
    var(--line-lit) 42.84% 57.12%,
    var(--line-music) 57.12% 71.4%,
    var(--line-out) 71.4% 85.68%,
    var(--line-walk) 85.68% 100%
  );
}

/* faint print grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(var(--ink) 0.6px, transparent 0.7px);
  background-size: 5px 5px;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  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: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper-2);
  padding: 10px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus {
  top: 14px;
}

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

/* ============================ masthead ============================ */

.masthead {
  width: var(--shell);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 16px;
  border-bottom: 4px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.roundel {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 3.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.roundel span {
  width: 130%;
  height: 4.5px;
  background: var(--accent);
  display: block;
}
.roundel-small {
  width: 20px;
  height: 20px;
  border-width: 3px;
}
.roundel-small span {
  height: 3px;
}

.brand-name {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 22px;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
}

.topbar-dates {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--ink-2);
}
.topbar-dates time {
  font-weight: 500;
}
.topbar-kicker {
  color: var(--muted);
}

.route-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  padding: 7px 13px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.route-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.route-badge.has-route {
  background: var(--ink);
  color: var(--paper-2);
}
.route-badge.has-route .route-badge-dot {
  background: var(--accent);
}

.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: end;
  padding: 38px 0 44px;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 46px;
  height: 3px;
  background: var(--accent);
}

.masthead-title {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.masthead-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  background: var(--accent);
  margin-top: 20px;
}

.standfirst {
  margin: 20px 0 0;
  max-width: 44ch;
  font-size: 18px;
  color: var(--ink-2);
}

.masthead-art {
  margin: 0;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-1.4deg);
  background: var(--paper-2);
}
.masthead-art img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.masthead-art figcaption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px 14px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
  border-top: 2px solid var(--ink);
}
.art-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* ============================ controls ============================ */

main {
  width: var(--shell);
  margin: 0 auto;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px auto auto;
  align-items: end;
  gap: 16px;
  padding: 20px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  margin-top: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="search"],
select {
  width: 100%;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2.5px solid var(--ink);
  padding: 9px 2px;
  border-radius: 0;
}
input[type="search"]::placeholder {
  color: rgba(112, 109, 97, 0.75);
}
input[type="search"]:focus,
select:focus {
  border-bottom-color: var(--accent);
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "▼";
  position: absolute;
  right: 4px;
  bottom: 13px;
  font-size: 9px;
  color: var(--ink);
  pointer-events: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 24px;
}

.toggle,
.reset,
.empty-reset {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 2.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 11px 15px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.toggle-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
}
.toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper-2);
}
.toggle[aria-pressed="true"] .toggle-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.reset {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reset:hover {
  color: var(--accent);
}

/* ============================ legend ============================ */

.legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 2px 6px;
}
.legend-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.legend-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 5px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s var(--ease);
}
.legend-chip:hover {
  transform: translateY(-2px);
  background: var(--paper-2);
}
.legend-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper-2);
}
.legend-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}
.legend-chip[aria-pressed="true"] i {
  box-shadow: 0 0 0 2px var(--paper-2);
}

.board-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 2px 12px;
}
.board-status strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================ board ============================ */

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  background-image: linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
}

.day {
  padding: 24px 28px 30px;
  min-width: 0;
}
.day + .day {
  border-left: 3px solid var(--ink);
}
.day:only-child {
  grid-column: 1 / -1;
  border-left: 0;
}

.day-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-bottom: 14px;
  border-bottom: 4px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper-2);
  z-index: 5;
}
.day-head h2 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.day-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.day-count {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stops {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.stops::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: var(--spine-x);
  width: 3px;
  margin-left: -1.5px;
  background: var(--ink);
}

.stop {
  display: grid;
  grid-template-columns: 56px 24px minmax(0, 1fr);
  gap: 0 14px;
  padding: 18px 0 20px;
  position: relative;
  border-bottom: 1px dashed var(--hair-strong);
  transition: background 0.16s var(--ease);
}
.stop:last-child {
  border-bottom: 0;
}
.stop:hover {
  background: rgba(255, 255, 255, 0.55);
}

[data-category="Art"] { --line: var(--line-art); }
[data-category="Film"] { --line: var(--line-film); }
[data-category="Food"] { --line: var(--line-food); }
[data-category="Literature"] { --line: var(--line-lit); }
[data-category="Music"] { --line: var(--line-music); }
[data-category="Outdoors"] { --line: var(--line-out); }
[data-category="Walks"] { --line: var(--line-walk); }

.stop-node {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: start;
  margin-top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 4.5px solid var(--line);
  z-index: 2;
}

.stop-time {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  padding-top: 1px;
}
.stop-start {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.stop-end {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.stop-content {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}
.stop-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--line);
}
.stop-cat::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--line);
  border-radius: 50%;
}

.stop-title {
  margin: 6px 0 7px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0.005em;
}
.open-item {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.open-item:hover {
  text-decoration: underline;
}
.open-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.stop-summary {
  margin: 0 0 10px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.stop-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stop-meta span::before {
  content: "·";
  margin-right: 8px;
  color: var(--hair-strong);
}
.stop-meta span:first-child::before {
  display: none;
}

.stop-route-flag {
  margin: 10px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.stop.is-saved .stop-node {
  background: var(--line);
  box-shadow: inset 0 0 0 2.5px var(--paper-2);
}

/* ============================ empty ============================ */

.empty-state {
  border: 3px dashed var(--ink);
  background: var(--paper-2);
  padding: 54px 28px 58px;
  text-align: center;
}
.empty-code {
  margin: 0 0 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.empty-title {
  margin: 0 0 12px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 54px);
  text-transform: uppercase;
}
.empty-body {
  margin: 0 auto 24px;
  max-width: 44ch;
  color: var(--ink-2);
}
.empty-reset {
  border: 2.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  padding: 12px 18px;
}
.empty-reset:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================ footer ============================ */

.site-foot {
  width: var(--shell);
  margin: 64px auto 0;
  padding: 26px 0 46px;
  border-top: 4px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 34px;
  align-items: center;
}
.foot-brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.14em;
  font-size: 16px;
}
.foot-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 62ch;
}
.foot-meta {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ============================ detail ticket ============================ */

.detail {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.detail:not([open]) {
  display: none;
}
.detail[open] {
  display: grid;
  place-items: center;
}
.detail::backdrop {
  background: rgba(20, 22, 27, 0.72);
}

.ticket {
  width: min(1020px, calc(100% - 44px));
  max-height: calc(100dvh - 44px);
  overflow: auto;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
}
.ticket-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--ink);
  border-top: 10px solid var(--line);
  color: var(--paper-2);
  padding: 13px 26px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticket-band .ticket-stamp {
  display: none;
  border: 2px solid currentColor;
  padding: 4px 10px;
  transform: rotate(-3deg);
  letter-spacing: 0.18em;
}
.ticket.is-saved .ticket-band .ticket-stamp {
  display: inline-block;
}

.ticket-head {
  padding: 24px 26px 22px;
  border-bottom: 4px solid var(--ink);
}
.ticket-kicker {
  margin: 0 0 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-title {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}
.ticket-when {
  margin: 16px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}

.ticket-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 30px;
  padding: 26px;
}
.ticket-photo {
  margin: 0;
}
.ticket-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--line);
}
.ticket-photo figcaption {
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-body p {
  margin: 0 0 14px;
  color: var(--ink-2);
  max-width: 62ch;
}
.ticket-body p:first-child {
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
}
.ticket-body p.is-access {
  border-left: 5px solid var(--line);
  background: rgba(25, 27, 33, 0.045);
  padding: 12px 14px;
  margin-bottom: 0;
}

.facts {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--hair-strong);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  font-size: 14.5px;
}
.facts dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.facts dd {
  margin: 0;
  color: var(--ink);
}

.ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 26px;
  border-top: 4px solid var(--ink);
  background: var(--paper);
}
.save-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2.5px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  padding: 14px 20px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.save-btn .save-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
}
.save-btn:hover {
  background: var(--ink);
  color: var(--paper-2);
}
.save-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.save-btn[aria-pressed="true"] .save-dot {
  background: currentColor;
}
.close-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px 4px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.close-btn:hover {
  color: var(--accent);
}

/* ============================ responsive ============================ */

@media (max-width: 1080px) {
  .masthead-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }
  .masthead-art {
    max-width: 520px;
  }
  .controls {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: end;
  }
  .controls .toggle {
    grid-column: 1;
    justify-self: start;
  }
  .controls .reset {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 32px);
    --spine-x: 67px;
  }
  body {
    font-size: 16px;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
  }
  .topbar-kicker {
    display: none;
  }
  .topbar-dates {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .masthead-inner {
    padding: 30px 0 36px;
  }
  .masthead-title {
    font-size: clamp(40px, 12vw, 60px);
  }
  .standfirst {
    font-size: 16.5px;
  }
  .masthead-art {
    transform: rotate(-1deg);
  }
  .masthead-art img {
    aspect-ratio: 16 / 10;
  }

  .controls {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }
  .controls .toggle,
  .controls .reset {
    grid-column: 1;
    width: 100%;
    justify-content: center;
  }
  .controls .reset {
    text-align: center;
  }

  .board {
    grid-template-columns: 1fr;
    background-size: 34px 34px;
  }
  .day {
    padding: 20px 18px 26px;
  }
  .day + .day {
    border-left: 0;
    border-top: 3px solid var(--ink);
  }
  .day-head {
    position: static;
  }
  .stop {
    grid-template-columns: 46px 22px minmax(0, 1fr);
    gap: 0 10px;
    padding: 16px 0 18px;
  }
  .stops::before {
    top: 10px;
    bottom: 10px;
  }
  .stop-title {
    font-size: 21px;
  }
  .stop-summary {
    font-size: 14.5px;
  }

  .site-foot {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .foot-meta {
    text-align: left;
  }

  .detail[open] {
    place-items: stretch;
  }
  .ticket {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    box-shadow: none;
  }
  .ticket-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
  }
  .ticket-head {
    padding: 20px 18px 18px;
  }
  .ticket-band {
    padding: 12px 18px;
  }
  .ticket-photo img {
    aspect-ratio: 16 / 10;
    box-shadow: 6px 6px 0 var(--line);
  }
  .ticket-foot {
    padding: 18px;
    position: sticky;
    bottom: 0;
  }
  .save-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .legend-list {
    gap: 6px;
  }
  .legend-chip {
    font-size: 10px;
    padding: 4px 8px;
  }
}

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