
@font-face {
  font-family: "CME Display";
  src: url("/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CME Reading";
  src: url("/fonts/Newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root { color-scheme: light dark; }

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

html {
  background: var(--cme-surface-page);
  color: var(--cme-text-body);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: var(--cme-space-4);
  padding: var(--cme-space-4) var(--cme-space-3);
  font-family: "CME Display", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--cme-text-300);
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

header, main, footer {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--cme-space-4);
}

p { margin: 0; }

.wordmark {
  font-size: var(--cme-text-500);
  font-weight: 700;
  color: var(--cme-action-primary);
}

h1 {
  margin: 0;
  font-size: var(--cme-text-700);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.subline {
  max-width: var(--cme-measure-prose);
  font-family: "CME Reading", Georgia, "Times New Roman", serif;
  font-size: var(--cme-text-400);
  line-height: 1.6;
  color: var(--cme-text-muted);
}

.small, footer { color: var(--cme-text-muted); }

a {
  color: var(--cme-action-primary);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--cme-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}


main.home,
body:has(> main.home) > header,
body:has(> main.home) > footer { max-width: 72rem; }

main.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: var(--cme-space-6);
}

body:has(> main.home) > footer {
  padding-top: var(--cme-space-4);
  border-top: 1px solid var(--cme-border-subtle);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: var(--cme-space-4);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--cme-space-2);
  font-size: var(--cme-text-300);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cme-text-muted);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: var(--cme-space-5);
  border-top: 3px dashed var(--cme-border-strong);
}

.h1-lead { display: block; }

.home h1 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home .subline {
  font-size: var(--cme-text-500);
  line-height: 1.5;
  color: var(--cme-text-body);
}

.home .small { font-weight: 500; }

.map {
  padding: var(--cme-space-3);
  background: var(--cme-surface-raised);
  border: 1px solid var(--cme-border-subtle);
  border-radius: 1rem;
}
.map-canvas {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  container-type: inline-size;
}
.map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.line, .route-plan, .seg {
  fill: none;
  stroke-width: 8;
  stroke-linejoin: round;
  stroke-linecap: butt;
}
.line-strong { stroke: var(--cme-border-strong); }
.line-decor { stroke: var(--cme-decor-solid); }
.line-plan { stroke-dasharray: 10 8; }

.seg { stroke: var(--cme-action-primary); }
.route-plan {
  stroke: var(--cme-action-primary);
  stroke-width: 6;
  stroke-dasharray: 10 8;
}

.station, .interchange, .terminal {
  fill: var(--cme-surface-raised);
  stroke-width: 4;
}
.station-strong { stroke: var(--cme-border-strong); }
.station-decor { stroke: var(--cme-decor-solid); }
.station-route { stroke: var(--cme-action-primary); }
.interchange { stroke: var(--cme-text-body); }
.terminal {
  stroke: var(--cme-action-primary);
  stroke-dasharray: 6 5;
}

.here-halo {
  fill: none;
  stroke: var(--cme-action-primary);
  stroke-width: 3;
}
.here-dot { fill: var(--cme-action-primary); }

.map-label {
  position: absolute;
  left: 2%;
  bottom: 44.4%;
  bottom: calc(50% - 3.75cqw);
  padding: 0 var(--cme-space-2);
  border-radius: 999px;
  background: var(--cme-text-body);
  color: var(--cme-surface-page);
  font-size: var(--cme-text-300);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.quote {
  margin: 0;
  padding-top: var(--cme-space-5);
  border-top: 1px solid var(--cme-border-subtle);
  display: grid;
  gap: var(--cme-space-3);
  max-width: 48rem;
}
.quote blockquote { margin: 0; }
.quote blockquote::before {
  content: "“";
  content: "“" / "";
  display: block;
  height: 0.5em;
  font-family: "CME Reading", Georgia, "Times New Roman", serif;
  font-size: calc(var(--cme-text-900) * 1.6);
  font-weight: 700;
  line-height: 1;
  color: var(--cme-decor-solid);
}
.quote blockquote p {
  font-family: "CME Reading", Georgia, "Times New Roman", serif;
  font-size: var(--cme-text-600);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.quote figcaption { color: var(--cme-text-muted); }
.quote figcaption::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: var(--cme-space-4);
  margin-right: var(--cme-space-2);
  border-top: 2px solid var(--cme-border-strong);
}
.quote-name {
  font-weight: 600;
  color: var(--cme-text-body);
}
.quote cite { font-style: normal; }

@media (max-width: 63.99rem) {
  .map { display: none; }
}
@media (max-width: 47.99rem) {
  body:has(> main.home) {
    padding: var(--cme-space-3);
    gap: var(--cme-space-3);
  }
  body:has(> main.home) .wordmark { line-height: 1.25; }
  main.home { gap: var(--cme-space-3); }
  .intro { gap: var(--cme-space-2); }
  .home h1 { font-size: var(--cme-text-600); }
  .h1-lead { display: inline; }
  .home .subline {
    font-size: var(--cme-text-400);
    line-height: 1.4;
  }
  .home .small { line-height: 1.4; }


  .quote {
    padding-top: var(--cme-space-3);
    gap: var(--cme-space-2);
  }
  .quote blockquote {
    position: relative;
    padding-left: var(--cme-space-5);
  }
  .quote blockquote::before {
    position: absolute;
    left: 0;
    top: 0;
    height: auto;
    font-size: var(--cme-text-800);
    line-height: 1;
  }
  .quote blockquote p {
    font-size: var(--cme-text-400);
    line-height: 1.35;
  }
  body:has(> main.home) > footer { padding-top: var(--cme-space-2); }
}

@media (min-width: 48rem) {
  body { padding-inline: var(--cme-space-4); gap: var(--cme-space-5); }
  main { gap: var(--cme-space-5); }
  h1 { font-size: var(--cme-text-800); }
  .map { padding: var(--cme-space-4); }
}
@media (min-width: 64rem) {
  main.home {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--cme-space-7);
    row-gap: var(--cme-space-6);
    align-items: center;
  }
  .home .quote { grid-column: 1 / -1; }
}
@media (min-width: 80rem) {
  body { gap: var(--cme-space-6); }
  main { gap: var(--cme-space-6); }
  h1 { font-size: var(--cme-text-900); }
}
