:root {
  --ink: #1a2333;
  --ink-soft: #4a5568;
  --paper: #f3efe6;
  --paper-2: #e6e0d2;
  --card: #faf7f1;
  --spruce: #132e2a;
  --spruce-2: #1b3f39;
  --line: rgba(26, 35, 51, 0.12);
  --line-strong: rgba(26, 35, 51, 0.22);
  --copper: #8a4520;
  --copper-2: #e4c09a;
  --teal: #0e5e54;
  --white: #fffcf7;
  --header: 76px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(to right, rgba(26, 35, 51, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 35, 51, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px, 48px 48px, auto;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--teal); }

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 252, 247, 0.9);
}

::selection { background: var(--spruce); color: var(--paper); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
}

.skip:focus { top: 0.7rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow { width: min(740px, calc(100% - 2.5rem)); }

.kicker {
  margin: 0 0 0.75rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  color: var(--paper);
  height: var(--header);
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.bar, .header-tools, .nav, .langs, .actions, .link-row {
  display: flex;
  align-items: center;
}

.bar {
  height: var(--header);
  justify-content: space-between;
  gap: 1rem;
}

.header-tools { gap: 1.25rem; }

.logo, .logo:hover {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.mark-svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.word { display: grid; line-height: 1.1; }

.word strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.word small {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.nav { gap: 1.15rem; }

.nav a {
  color: inherit;
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.45em;
  text-decoration-color: var(--copper-2);
}

.site-header.scrolled .nav a[aria-current="page"],
.site-header.open .nav a[aria-current="page"] {
  text-decoration-color: var(--copper);
}

.langs {
  gap: 0.35rem;
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.langs a { color: inherit; text-decoration: none; }

.langs a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.35em; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0;
}

.bars, .bars::before, .bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.bars::before, .bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before { top: -6px; }
.bars::after { top: 6px; }

.site-header.open .bars { background: transparent; }
.site-header.open .bars::before { top: 0; transform: rotate(45deg); }
.site-header.open .bars::after { top: 0; transform: rotate(-45deg); }

.hero, .page-hero, .site-footer { position: relative; overflow: hidden; }

.hero, .page-hero {
  background: var(--spruce);
  color: var(--paper);
  padding: calc(var(--header) + 3.2rem) 0 6.2rem;
}

.hero::before, .page-hero::before, .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(243, 239, 230, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 239, 230, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero::after {
  content: "1981";
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: 0.75;
  color: rgba(243, 239, 230, 0.045);
  pointer-events: none;
}

.hero .wrap, .page-hero .wrap, .site-footer .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1, .page-hero h1 {
  margin: 0 0 1rem;
  color: var(--paper);
  font-size: clamp(3rem, 6.2vw, 5.35rem);
}

.hero h1 .name {
  display: block;
  margin-bottom: 0.85rem;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-2);
}

.hero h1 em {
  display: block;
  margin-top: 0.15em;
  font-style: italic;
  font-weight: 500;
  color: var(--copper-2);
}

.hero .kicker, .page-hero .kicker { color: var(--copper-2); }

.hero .lede, .page-hero .lede { color: rgba(243, 239, 230, 0.8); }

.page-hero { padding-bottom: 4.2rem; }

.page-hero h1 { font-size: clamp(2.7rem, 5.5vw, 4.6rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.2rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.72);
}

.crumbs a { color: var(--paper); }

.actions { gap: 0.75rem; flex-wrap: wrap; margin-top: 1.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--copper-2); color: var(--spruce); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { color: var(--paper); border-color: rgba(243, 239, 230, 0.4); }
.btn-ghost:hover { color: var(--copper-2); border-color: var(--copper-2); }
.btn-ink { background: var(--spruce); color: var(--paper); }
.btn-ink:hover { background: var(--teal); }

.schematic {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.ring, .orbit { position: absolute; border-radius: 50%; }

.ring-a { inset: 8%; border: 1px solid rgba(243, 239, 230, 0.2); }
.ring-b { inset: 20%; border: 1px dashed rgba(228, 192, 154, 0.7); }
.ring-c { inset: 34%; border: 1px solid rgba(243, 239, 230, 0.14); }

.orbit { inset: 8%; }

.node {
  position: absolute;
  width: 72px;
  height: 72px;
  margin: -36px;
}

.n1 { top: 0; left: 50%; }
.n2 { top: 50%; left: 100%; }
.n3 { top: 100%; left: 50%; }
.n4 { top: 50%; left: 0; }

.node-up {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(19, 46, 42, 0.85);
  border: 1px solid rgba(228, 192, 154, 0.65);
}

.core {
  position: absolute;
  inset: 37%;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  background: var(--spruce-2);
  color: var(--paper);
  text-align: center;
}

.core strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.core span {
  margin-top: 0.25rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.coord, .coord:hover {
  display: block;
  width: fit-content;
  margin: 0.8rem auto 0;
  color: var(--copper-2);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.coord:hover { text-decoration: underline; }

.ico {
  width: 34px;
  height: 34px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-up .ico { width: 30px; height: 30px; }

.facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -3rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(19, 46, 42, 0.06);
}

.facts div { padding: 1.25rem 1.2rem 1.35rem; }

.facts div + div { border-left: 1px solid var(--line); }

.facts dt {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.facts dd {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section { padding: 5.2rem 0; }
.section-tight { padding-top: 1rem; }
.section-gap { margin-top: 3rem; }

.section-head { max-width: 40rem; margin-bottom: 2rem; }

.section-head h2, .prose h2, .split h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.cards, .principles, .routes, .notes, .steps {
  display: grid;
  gap: 1rem;
}

.cards, .principles, .notes { grid-template-columns: 1fr 1fr; }
.steps, .routes { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.35rem;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
}

.card:hover { border-color: var(--teal); transform: translateY(-3px); }

.card-top, .route-top, .band-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card h3, .step h3, .route h3, .notes h3, .principles h3 {
  margin: 0;
  font-size: 1.85rem;
}

.card p, .step p, .route p, .notes p, .principles p { margin: 0; color: var(--ink-soft); }

.more { margin-top: auto; color: var(--teal); font-weight: 600; }

.idx, .num {
  font-family: "DM Mono", monospace;
  color: var(--copper);
  letter-spacing: 0.14em;
}

.icon-frame {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--teal);
  background: #eef5f3;
  border: 1px solid rgba(14, 94, 84, 0.22);
}

.step, .route, .notes article, .principles article, .side-card, .visit-bar {
  background: var(--card);
  border: 1px solid var(--line);
}

.step, .route, .notes article, .principles article { padding: 1.3rem 1.25rem 1.45rem; }

.step { border-top: 2px solid var(--spruce); }

.num { display: block; margin-bottom: 0.8rem; }

.visit-bar {
  display: grid;
  grid-template-columns: 1.4fr auto auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.4rem 1.4rem;
  margin-bottom: 1rem;
}

.visit-title {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.visit-meta {
  display: grid;
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--spruce);
  color: var(--paper);
}

.cta h2 {
  margin: 0 0 0.55rem;
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta p { margin: 0; color: rgba(243, 239, 230, 0.8); max-width: 40rem; }

.prose-grid, .split, .dir-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.prose p, .split p { font-size: 1.08rem; }

.side-card {
  position: sticky;
  top: calc(var(--header) + 1rem);
  display: grid;
  gap: 0.75rem;
  padding: 1.3rem;
}

.side-card p, .side-card address { margin: 0; }

.side-links { list-style: none; padding: 0; margin: 0 0 0.4rem; }

.side-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.side-links a:hover { color: var(--teal); }

.registry { width: 100%; border-collapse: collapse; background: var(--card); }

.registry th, .registry td {
  padding: 0.95rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.registry th {
  width: 32%;
  color: var(--ink-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principles { margin-top: 0.4rem; }

.bands { display: grid; }

.band {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line-strong);
}

.band h2 { margin: 0 0 0.7rem; font-size: clamp(2.1rem, 4vw, 3rem); }

.band .lede { margin-bottom: 0.4rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.3rem; }

.ticks li {
  position: relative;
  margin: 0.7rem 0;
  padding-left: 1.4rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--teal);
}

.steps-compact { margin-top: 0.6rem; }

.service-mark { margin-bottom: 1rem; }

.map-frame {
  min-height: 480px;
  background: #d5e0db;
  border: 1px solid var(--line);
}

.map-frame iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

.coord-line {
  margin: 0;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.04em;
}

.link-row { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

.route-top { justify-content: flex-start; margin-bottom: 0.8rem; }

.route-meta {
  margin: 0.15rem 0 0;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.route h3, .notes h3 { margin-bottom: 0.35rem; }

.notes article { border-top: 2px solid var(--copper); }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.form { display: grid; gap: 1rem; position: relative; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.field label span { color: var(--ink-soft); font-weight: 400; }

input, select, textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: inherit;
}

textarea { min-height: 160px; resize: vertical; }

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #8d2f2f; }

.field-error { margin: 0.35rem 0 0; color: #8d2f2f; font-size: 0.92rem; }

.banner {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #e5f2ef;
  border: 1px solid #b7d8d1;
}

.banner h2 { margin: 0 0 0.35rem; font-size: 1.7rem; }

.banner p { margin: 0; }

.banner-error { background: #f8ece8; border-color: #e3c2b8; }

.fine { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--spruce);
  color: rgba(243, 239, 230, 0.82);
  padding: 4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.95fr 0.7fr;
  gap: 2rem;
}

.logo-foot {
  margin: 0 0 0.55rem;
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
}

.site-footer a { color: var(--paper); }
.site-footer .kicker { color: var(--copper-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }

.registry-list span {
  display: inline-block;
  min-width: 2.2rem;
  color: var(--copper-2);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 239, 230, 0.16);
  font-size: 0.92rem;
}

.spine {
  position: fixed;
  left: 0.8rem;
  bottom: 1.2rem;
  z-index: 5;
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 35, 51, 0.45);
}

.prose h2 { margin-top: 2rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js .ico *,
  .js .mark-svg * {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
  }

  .js .mark-svg *,
  .js .schematic .ico *,
  .js .reveal.in .ico * {
    animation: draw 1.35s ease forwards;
  }

  .n2 .ico * { animation-delay: 0.15s; }
  .n3 .ico * { animation-delay: 0.3s; }
  .n4 .ico * { animation-delay: 0.45s; }

  .orbit { animation: spin 56s linear infinite; }
  .node-up { animation: spin 56s linear infinite reverse; }
  .ring-b { animation: spin 40s linear infinite; }

  .card, .btn, .nav-toggle, .bars::before, .bars::after {
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }

  .nav {
    display: none;
    position: fixed;
    top: calc(var(--header) + 0.6rem);
    left: 1rem;
    right: 1rem;
    z-index: 50;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.8rem 1rem 1rem;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(19, 46, 42, 0.14);
  }

  .site-header.open .nav { display: flex; }
  .nav a { font-size: 0.95rem; padding: 0.45rem 0; }
  .hero-grid, .prose-grid, .split, .dir-grid, .footer-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .steps, .routes { grid-template-columns: 1fr; }
  .schematic { max-width: 380px; }
}

@media (max-width: 720px) {
  .wrap, .narrow { width: min(1120px, calc(100% - 1.5rem)); }
  .facts, .cards, .principles, .notes, .field-row, .visit-bar { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .band { grid-template-columns: 1fr; }
  .cta, .legal { align-items: flex-start; flex-direction: column; }
  .hero, .page-hero { padding-top: calc(var(--header) + 2.2rem); }
  .map-frame, .map-frame iframe { min-height: 320px; }
  .registry, .registry tbody, .registry tr, .registry th, .registry td { display: block; width: 100%; }
  .registry th { padding-bottom: 0.1rem; }
  .spine { display: none; }
}

@media (min-width: 1280px) {
  .spine { display: block; }
}

@media (max-width: 1279px) {
  .spine { display: none; }
}

@media print {
  .site-header, .spine, .nav-toggle, .form, .btn { display: none !important; }
  .hero, .page-hero, .site-footer, .cta { background: white; color: black; }
  body { background: white; }
  a { text-decoration: underline; }
}
