/* ==========================================================================
   THE CROSSTOWN — a night transit map of everyday city life
   ========================================================================== */

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/dm-serif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 400 700;
  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;
}

:root {
  --bg: #0c0a1a;
  --bg-2: #14112c;
  --bg-3: #1d1941;
  --ink: #f4f0e6;
  --muted: #a8a2c9;
  --faint: #6f699a;
  --hair: rgba(244, 240, 230, 0.14);
  --hair-soft: rgba(244, 240, 230, 0.07);
  --pink: #ff5470;
  --orange: #ff9f1c;
  --teal: #2ec4b6;
  --yellow: #ffd23f;
  --green: #7bd389;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Literata", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1100px 760px at 82% -12%, rgba(46, 196, 182, 0.10), transparent 60%),
    radial-gradient(980px 720px at 8% 112%, rgba(255, 84, 112, 0.09), transparent 62%),
    radial-gradient(820px 620px at 50% 50%, rgba(255, 210, 63, 0.04), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(12, 10, 26, 0.96), rgba(12, 10, 26, 0.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.masthead__bar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark {
  width: 42px;
  height: 42px;
  color: var(--yellow);
  flex: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: 0.005em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}
.field input,
.field select {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 40px;
}
.field--search input { width: 230px; }
.field select { min-width: 132px; cursor: pointer; }
.field input::placeholder { color: var(--faint); }

.field input:focus-visible,
.field select:focus-visible,
.toggle:focus-visible,
.empty__reset:focus-visible,
.legend__item:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 40px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.toggle:hover { border-color: rgba(244, 240, 230, 0.4); }
.toggle__star { color: var(--yellow); font-size: 14px; }
.toggle__count {
  font-size: 11px;
  background: var(--bg-3);
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 21px;
  text-align: center;
}
.toggle.is-on {
  background: var(--yellow);
  color: #161200;
  border-color: var(--yellow);
}
.toggle.is-on .toggle__star { color: #161200; }
.toggle.is-on .toggle__count { background: rgba(0, 0, 0, 0.16); }
.toggle--ghost { color: var(--muted); }

.masthead__strip {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.masthead__issue {
  margin: 0;
  color: var(--yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.masthead__lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink);
  opacity: 0.85;
  max-width: 620px;
}
.masthead__count { margin: 0 0 0 auto; }

/* --------------------------------------------------------------------------
   Legend
   -------------------------------------------------------------------------- */

.legend {
  max-width: 1360px;
  margin: 22px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.legend__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
}
.legend__list { display: flex; gap: 8px; flex-wrap: wrap; }
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 6px 12px 6px 9px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}
.legend__item:hover { background: rgba(244, 240, 230, 0.06); }
.legend__swatch {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: var(--line, var(--muted));
  box-shadow: 0 0 10px color-mix(in srgb, var(--line, #fff) 55%, transparent);
}
.legend__swatch--all {
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--teal), var(--green));
  box-shadow: none;
}
.legend__item.is-active {
  border-color: var(--ink);
  background: rgba(244, 240, 230, 0.1);
}
.legend__item.is-dim { opacity: 0.34; }

/* --------------------------------------------------------------------------
   The board / map
   -------------------------------------------------------------------------- */

.board-wrap {
  max-width: 1360px;
  margin: 16px auto 0;
  padding: 0 24px 30px;
}

.board {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 1000 / 700;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background-color: rgba(20, 17, 44, 0.62);
  background-image:
    radial-gradient(rgba(244, 240, 230, 0.10) 1px, transparent 1.4px);
  background-size: 28px 28px;
  background-position: -6px -6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 120px rgba(12, 10, 26, 0.85);
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.line-casing {
  fill: none;
  stroke: rgba(12, 10, 26, 0.95);
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.25s ease;
}
.line {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 60%, transparent));
}
.saved-line {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 10;
  opacity: 0.92;
  filter: drop-shadow(0 0 6px rgba(244, 240, 230, 0.8));
  animation: crawl 2.2s linear infinite;
}
@keyframes crawl { to { stroke-dashoffset: -24; } }

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 168px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--bg);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(255, 210, 63, 0.22);
  z-index: 3;
  pointer-events: none;
}
.hub__name {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
  color: var(--ink);
}
.hub__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 4px;
}

.stations {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.station { position: absolute; width: 0; height: 0; z-index: 5; }
.station.is-entering { animation: station-in 480ms var(--delay, 0ms) both; }

@keyframes station-in {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.station__btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.station__btn:focus { outline: none; }

.station__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--line, var(--ink));
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px color-mix(in srgb, var(--line, #fff) 70%, transparent);
  z-index: 2;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.station__btn:hover .station__dot,
.station__btn:focus-visible .station__dot {
  transform: scale(1.28);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px rgba(244, 240, 230, 0.28), 0 0 20px color-mix(in srgb, var(--line, #fff) 85%, transparent);
}
.station.is-saved .station__dot {
  background: var(--yellow);
  border-color: var(--ink);
}
.station.is-saved .station__dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px dashed var(--yellow);
  opacity: 0.85;
}

.station__label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 178px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(12, 10, 26, 0.86);
  border: 1px solid var(--hair);
  backdrop-filter: blur(3px);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.station__btn:hover .station__label {
  border-color: var(--line, var(--ink));
  background: rgba(12, 10, 26, 0.97);
}
.station__btn:focus-visible .station__label {
  border-color: var(--ink);
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.pos-bottom .station__label { top: 17px; left: 50%; transform: translateX(-50%); align-items: center; text-align: center; }
.pos-top .station__label { bottom: 17px; left: 50%; transform: translateX(-50%); align-items: center; text-align: center; }
.pos-right .station__label { left: 17px; top: 50%; transform: translateY(-50%); }
.pos-left .station__label { right: 17px; top: 50%; transform: translateY(-50%); align-items: flex-end; text-align: right; }

.station__name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.station__name--full { display: none; }
.station__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--line, var(--muted));
}
.station__summary { display: none; }
.station__saved {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 2px;
}
[hidden] { display: none !important; }

/* Empty / service notice */
.empty {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 30px;
  background: rgba(12, 10, 26, 0.72);
  backdrop-filter: blur(2px);
}
.board.is-empty { min-height: 340px; }
.empty__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}
.empty__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
}
.empty__body { margin: 0; color: var(--muted); max-width: 420px; }
.empty__reset {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bg);
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
}
.empty__reset:hover { background: var(--ink); }

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */

.colophon {
  max-width: 1360px;
  margin: 10px auto 0;
  padding: 30px 24px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--hair-soft);
}
.colophon h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 400;
  margin: 0 0 10px;
}
.colophon p { margin: 0 0 10px; color: var(--muted); font-size: 14px; max-width: 60ch; }
.colophon a { color: var(--teal); }

/* --------------------------------------------------------------------------
   Detail — arriving at a stop
   -------------------------------------------------------------------------- */

.detail {
  width: min(820px, calc(100vw - 32px));
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail::backdrop {
  background: rgba(5, 3, 14, 0.7);
  backdrop-filter: blur(5px);
}
.detail__scroll {
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: color-mix(in srgb, var(--line, var(--yellow)) 16%, var(--bg-2) 84%);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(8px);
}
.detail__line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--line, var(--yellow));
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.detail__line::before {
  content: "";
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: var(--line, var(--yellow));
  box-shadow: 0 0 12px color-mix(in srgb, var(--line, #fff) 70%, transparent);
}
.detail__close {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: rgba(12, 10, 26, 0.4);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  min-height: 38px;
}
.detail__close:hover { background: var(--ink); color: var(--bg); }
.detail__close:focus-visible,
.detail__nav button:focus-visible,
.save:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.detail__figure { margin: 0; position: relative; }
.detail__figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.detail__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-2) 4%, transparent 55%);
  pointer-events: none;
}
.detail__figcap {
  position: absolute;
  left: 16px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.detail__article { padding: 4px 40px 44px; }
.detail__kicker {
  margin: 18px 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--line, var(--yellow));
}
.detail__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.06;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.detail__byline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}
.detail__body { font-size: 17.5px; line-height: 1.75; }
.detail__body p { margin: 0 0 18px; }
.detail__body p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 60px;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: var(--line, var(--yellow));
}

.save {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg-3);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  min-height: 46px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.save:hover { border-color: var(--ink); }
.save.is-on {
  background: var(--yellow);
  color: #161200;
  border-color: var(--yellow);
}

.detail__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}
.detail__nav button {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
}
.detail__nav button:last-child { text-align: right; }
.detail__nav button:hover { color: var(--ink); background: rgba(244, 240, 230, 0.07); }
.detail__nav button:disabled { opacity: 0.3; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 899px) {
  .masthead { position: static; }
  .masthead__bar { padding: 12px 16px; gap: 14px; }
  .brand__mark { width: 34px; height: 34px; }
  .controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: end;
  }
  .field--search { grid-column: 1 / -1; }
  .field--search input { width: 100%; }
  .field select { width: 100%; min-width: 0; }
  .toggle { justify-content: center; }
  .toggle--ghost { display: none; }
  .masthead__strip { padding: 0 16px 12px; gap: 6px; }
  .masthead__count { margin-left: 0; }

  .legend { padding: 0 16px; margin-top: 16px; gap: 10px; }
  .legend__list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
  .legend__item { flex: none; }

  .board-wrap { padding: 0 16px 24px; }
  .board {
    border: 0;
    aspect-ratio: auto;
    background-image: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .board::after { display: none; }
  .map-lines, .hub { display: none; }

  .stations {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .station {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto;
    height: auto;
  }
  .station__btn {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    text-align: left;
    padding: 15px 16px;
    border: 1px solid var(--hair);
    border-left: 5px solid var(--line, var(--ink));
    border-radius: 14px;
    background: rgba(20, 17, 44, 0.75);
  }
  .station__btn:hover { background: rgba(29, 25, 65, 0.9); }
  .station__btn:focus-visible .station__label { outline: none; }
  .station__btn:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
  }
  .station__dot {
    position: relative;
    left: auto;
    top: auto;
    margin: 5px 0 0;
    width: 14px;
    height: 14px;
  }
  .station.is-saved .station__dot::after { inset: -7px; }
  .station__label {
    position: static;
    transform: none !important;
    max-width: none;
    border: 0;
    background: none;
    backdrop-filter: none;
    padding: 0;
    gap: 5px;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .station__name--short { display: none; }
  .station__name--full {
    display: block;
    white-space: normal;
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.15;
  }
  .station__meta { font-size: 10.5px; }
  .station__summary {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
  }
  .station__saved { display: inline-block; }

  .empty { position: static; background: none; backdrop-filter: none; padding: 50px 10px; }
  .board.is-empty { min-height: 0; }

  .colophon {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px 16px 60px;
  }

  .detail {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    margin: 0;
  }
  .detail__scroll { max-height: 100dvh; }
  .detail__figure img { height: 220px; }
  .detail__article { padding: 4px 20px 40px; }
  .detail__body { font-size: 16.5px; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@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;
  }
  .saved-line { animation: none; }
}
