/* One appearance, no dark variant: the Line colours only resolve against one
   ground (docs/adr/0003). Paper and Ink are the whole palette. */
:root {
  --paper: #faf7f0;
  --paper-shade: #f0ebe0;
  --ink: #1a1a18;
  --ink-soft: #6b665c;
  --rule: #ded7c8;
}

* { box-sizing: border-box; }

html { color-scheme: only light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-text-size-adjust: 100%;
}

.masthead {
  padding: 1.6rem clamp(1rem, 3vw, 2.5rem) 0.9rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.clock {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 3vw, 2.5rem) 3rem;
  align-items: start;
}

@media (max-width: 62rem) {
  main { grid-template-columns: minmax(0, 1fr); }
}

/* The Schematic is drawn at a fixed aspect; below its comfortable width it
   scrolls sideways rather than shrinking the Station labels into illegibility. */
.schematic-frame {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  padding: 0.5rem;
}

#schematic {
  display: block;
  width: 100%;
  min-width: 46rem;
  height: auto;
}

.station-label {
  font: 500 13px/1 "Helvetica Neue", Arial, sans-serif;
  fill: var(--ink);
  paint-order: stroke fill;
  stroke: var(--paper);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

.side > * + * { margin-top: 1.6rem; }

.side h2 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.legend { display: grid; gap: 0.45rem; }

.legend-line {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.legend-swatch {
  height: 0.85rem;
  border-radius: 2px;
  border: 1.5px solid;
}

.legend-count {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.legend-line.disrupted .legend-count {
  color: var(--ink);
  font-weight: 700;
}

.disruptions ul { margin: 0; padding: 0; list-style: none; }

.disruptions li {
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
  font-size: 0.9rem;
}

.disruptions li:first-child { border-top: 0; }

.disruption-effect {
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font: 700 0.68rem/1.5 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.disruption-lines { color: var(--ink-soft); font-size: 0.85rem; }

.disruptions a { color: inherit; }

.caveat {
  border-top: 3px double var(--rule);
  padding-top: 0.9rem;
  font-size: 0.88rem;
}

.caveat p { margin: 0 0 0.6rem; }

.muted { color: var(--ink-soft); font-size: 0.82rem; }

.none { color: var(--ink-soft); font-style: italic; }
