:root {
  --paper: #e9eef0;
  --paper-deep: #dbe4e7;
  --ink: #153239;
  --ink-soft: #50686d;
  --line: #aebfc3;
  --signal: #e04b35;
  --water: #4d7f88;
  --white: #f8fbfb;
  color-scheme: light;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.identity { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 650; letter-spacing: -.02em; }
.identity-mark { display: grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 3px; height: 20px; }
.identity-mark i { display: block; width: 5px; background: var(--signal); }
.identity-mark i:nth-child(1) { height: 8px; }
.identity-mark i:nth-child(2) { height: 14px; }
.identity-mark i:nth-child(3) { height: 20px; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a, footer a { color: var(--ink-soft); text-decoration-thickness: 1px; text-underline-offset: .25em; }

main { overflow: hidden; }
.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  border-bottom: 1px solid var(--line);
}
.hero-copy { padding: clamp(4rem, 9vw, 8.5rem) clamp(1.25rem, 4vw, 4.5rem); align-self: center; }
.place, .section-index, .section-heading > p { color: var(--water); margin: 0 0 2rem; font-size: .88rem; font-weight: 650; }
h1, h2 { font-weight: 520; letter-spacing: -.045em; line-height: .99; margin: 0; text-wrap: balance; }
h1 { max-width: 11ch; font-size: clamp(3.3rem, 6.5vw, 6.6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.intro { max-width: 39rem; margin: 2.5rem 0 1.7rem; color: var(--ink-soft); font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.text-link { display: inline-block; color: var(--ink); text-underline-offset: .35em; text-decoration-color: var(--signal); }

.map { min-height: 560px; position: relative; display: grid; place-items: center; background: var(--paper-deep); border-left: 1px solid var(--line); }
.map::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(21,50,57,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(21,50,57,.055) 1px, transparent 1px); background-size: 44px 44px; }
.map svg { position: relative; z-index: 1; width: min(90%, 720px); height: auto; }
.contours path { stroke: #88a5aa; stroke-width: 1.4; }
.links path { stroke: var(--water); stroke-width: 1.5; stroke-dasharray: 4 6; }
.stations circle { fill: var(--signal); stroke: var(--paper-deep); stroke-width: 4; }
.map text { fill: var(--ink-soft); font-size: 12px; font-family: inherit; }
.map-caption { position: absolute; z-index: 2; left: 2rem; bottom: 2rem; display: flex; align-items: center; gap: .7rem; color: var(--ink-soft); font-size: .85rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(224,75,53,.15); }

.reading { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: clamp(3rem, 8vw, 9rem); padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 8vw, 9rem); border-bottom: 1px solid var(--line); }
.section-heading h2 { max-width: 13ch; font-size: clamp(2.3rem, 4.8vw, 5.1rem); }
.reading-body { max-width: 50rem; font-size: 1.15rem; }
.reading-body > p:first-child { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.45; margin-top: 0; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures div { padding: 1.5rem 1rem 1.7rem 0; }
.figures div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.figures dt { color: var(--ink-soft); font-size: .82rem; }
.figures dd { margin: .4rem 0 0; font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.05em; line-height: 1; }
.figures small { font-size: .4em; letter-spacing: 0; color: var(--ink-soft); }
.note { color: var(--ink-soft); font-size: .9rem; max-width: 60ch; }

.method { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem,8vw,10rem); padding: clamp(5rem,8vw,8rem) clamp(1.25rem,8vw,9rem); background: var(--ink); color: var(--white); }
.method h2 { max-width: 9ch; }
.method .section-index { color: #a9c2c7; }
.method ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid #496168; }
.method li { display: grid; grid-template-columns: .55fr 1fr; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid #496168; }
.method li span { color: #b9cacc; }

.contact { padding: clamp(5rem,9vw,9rem) clamp(1.25rem,8vw,9rem); }
.contact h2 { max-width: 13ch; }
.contact > p:not(.section-index) { max-width: 43rem; color: var(--ink-soft); font-size: 1.15rem; margin: 2rem 0; }
.contact > a { display: inline-block; font-size: clamp(1.5rem,3vw,3rem); text-decoration-color: var(--signal); text-underline-offset: .25em; }

footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--ink-soft); font-size: .8rem; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(4rem,9vw,8rem) 1.25rem; min-height: 70vh; }
.legal h1 { font-size: clamp(3rem,7vw,6rem); max-width: none; margin-bottom: 3rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; letter-spacing: -.02em; }
.legal p { color: var(--ink-soft); }

@media (max-width: 850px) {
  .site-header { align-items: flex-start; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 560px; }
  .map { border-left: 0; border-top: 1px solid var(--line); }
  .reading, .method { grid-template-columns: 1fr; }
  .section-heading h2 { max-width: 16ch; }
  footer { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 560px) {
  h1 { font-size: 3.45rem; }
  .hero-copy { min-height: 520px; }
  .map { min-height: 420px; }
  .map-caption { left: 1.25rem; bottom: 1.25rem; }
  .reading { gap: 3rem; }
  .figures { grid-template-columns: 1fr; }
  .figures div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .method li { grid-template-columns: 1fr; gap: .4rem; }
}

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