*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #1a1510;
  color: #e8dcc8;
  line-height: 1.65;
  min-height: 100vh;
  padding-right: 80px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --bg: #1a1510;
  --panel: #241e18;
  --ink: #f2e8d8;
  --muted: #a89880;
  --amber: #e8a838;
  --sand: #c4a882;
  --line: #3a3228;
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}

/* ——— MILE MARKERS on RIGHT (highway posts — not left constellation, not spine text) ——— */
.miles {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #120e0b;
  border-left: 1px solid var(--line);
}
.miles a {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: all 0.15s;
  position: relative;
}
.miles a .sub {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 2px;
}
.miles a:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.miles a.on {
  border-color: var(--amber);
  background: var(--amber);
  color: #1a1510;
}
.miles a.on .sub { color: #1a1510; }

.tagline {
  position: fixed;
  top: 18px;
  left: 24px;
  z-index: 90;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.tagline strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* ——— GATE: route board (NOT hero+3) ——— */
.gate {
  padding: 88px 32px 48px;
  max-width: 720px;
}
.gate h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 14px;
}
.gate .lede {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.routes {
  border: 1px solid var(--line);
  background: var(--panel);
}
.routes .row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.routes .row:last-child { border-bottom: none; }
.routes .code {
  color: var(--amber);
  font-weight: 700;
}
.routes .name { color: var(--ink); }
.routes .eta {
  color: var(--muted);
  font-size: 0.75rem;
}
.gate-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48ch;
}
.gate-note a {
  color: var(--amber);
  font-weight: 600;
  border-bottom: 1px solid rgba(232,168,56,0.4);
}

/* ——— LANE: stacked corridor strips ——— */
.lane {
  padding: 88px 28px 64px;
  max-width: 680px;
}
.lane .k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.lane h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
}
.strip {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.strip .bar {
  background: var(--amber);
}
.strip .body {
  padding: 20px 22px;
}
.strip h2 {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
}
.strip p {
  color: var(--muted);
  font-size: 0.92rem;
}
.lane-fig {
  margin-top: 32px;
  border: 1px solid var(--line);
}
.lane-fig img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

/* ——— BOOTH: stamp / permit card ——— */
.booth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 48px;
}
.permit {
  width: 100%;
  max-width: 420px;
  background: #f5ead6;
  color: #2a2218;
  padding: 32px 28px;
  border: 3px double #8a7050;
  box-shadow: 6px 8px 0 rgba(0,0,0,0.25);
  position: relative;
}
.permit::after {
  content: 'DGV';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(232,168,56,0.15);
  pointer-events: none;
  letter-spacing: 0.1em;
}
.permit .stamp {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a5030;
  border: 2px solid #8a5030;
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.permit h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.permit .addr {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}
.permit .addr a {
  color: #8a5030;
  font-weight: 700;
}
.permit label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a5848;
  margin-bottom: 3px;
  position: relative;
}
.permit input,
.permit textarea {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #c4b090;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #2a2218;
  position: relative;
}
.permit input:focus,
.permit textarea:focus {
  outline: none;
  border-bottom-color: #8a5030;
}
.permit textarea {
  min-height: 80px;
  border: 1px solid #c4b090;
  padding: 10px;
  resize: vertical;
}
.permit button {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  background: #2a2218;
  color: #f5ead6;
  border: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}
.permit button:hover { background: #8a5030; }

.ft {
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.ft strong { color: var(--ink); }

@media (max-width: 600px) {
  body { padding-right: 56px; }
  .miles { width: 52px; }
  .miles a { width: 40px; height: 40px; font-size: 0.6rem; }
  .miles a .sub { display: none; }
  .tagline { left: 14px; top: 12px; }
  .routes .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
