:root {
    color-scheme: dark;
    --canvas: #090a0b;
    --surface: #111315;
    --surface-raised: #181b1e;
    --text: #f4f1eb;
    --muted: #9ca0a6;
    --dim: #666b72;
    --border: #34383d;
    --accent: #ff5a1f;
    --warning: #ffb52e;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
    width: min(calc(100% - 40px), 1120px);
    min-height: 100vh;
    margin: 0 auto;
    background:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        var(--canvas);
    background-size: 100% 64px;
    color: var(--text);
    font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

a { color: inherit; }

a:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: 5px;
}

.masthead {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 6px solid var(--accent);
}

.brand { text-decoration: none; }
.brand-kicker, .brand-name { display: block; }

.brand-kicker,
.eyebrow,
.document-code,
.status,
.section-number,
.safety-note span {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.brand-kicker { color: var(--accent); }

.brand-name {
    margin-top: 2px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 2rem;
    letter-spacing: .015em;
    line-height: 1;
    text-transform: uppercase;
}

.status,
.document-code {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.status i {
    width: 8px;
    height: 8px;
    background: var(--warning);
}

.hero {
    position: relative;
    padding: clamp(72px, 10vw, 130px) 0 88px;
}

.hero-index {
    position: absolute;
    top: 44px;
    right: 0;
    color: var(--accent);
    font-weight: 900;
    letter-spacing: .14em;
}

.eyebrow { color: var(--muted); }

h1 {
    max-width: 900px;
    margin: 18px 0 30px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(5rem, 15vw, 11rem);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: .82;
    text-transform: uppercase;
}

.hero-copy,
.lede {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.route-grid { border-top: 1px solid var(--border); }

.route {
    min-height: 150px;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background-color 150ms ease, padding 150ms ease;
}

.route:hover {
    padding: 0 24px;
    background: var(--surface-raised);
}

.route-number,
.route-mark { color: var(--accent); font-weight: 900; }

.route-copy strong,
.route-copy small { display: block; }

.route-copy strong {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 2.5rem;
    letter-spacing: .025em;
    line-height: 1;
    text-transform: uppercase;
}

.route-copy small { margin-top: 8px; color: var(--muted); }
.route-mark { font-size: 2rem; }

.safety-note {
    margin: 80px 0;
    padding: 24px 28px;
    border-top: 2px solid var(--warning);
    background: var(--surface);
}

.safety-note span { color: var(--warning); }
.safety-note p { margin: 8px 0 0; font-size: 1.25rem; font-weight: 700; }
.safety-note.compact { margin-top: 64px; }

.document { padding-top: clamp(70px, 10vw, 120px); }
.document-header { padding-bottom: 72px; }
.document-header h1 { font-size: clamp(4.5rem, 13vw, 9rem); }
.document-header a, .document-body a { color: var(--accent); }

.document-body { border-top: 1px solid var(--border); }

.document-body section {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    padding: 42px 0 48px;
    border-bottom: 1px solid var(--border);
}

.section-number { padding-top: 7px; color: var(--accent); }

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
    text-transform: uppercase;
}

.document-body p { max-width: 760px; margin: 0; color: var(--muted); }

footer {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--border);
    color: var(--dim);
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

footer a { color: var(--muted); }

@media (max-width: 640px) {
    body { width: min(calc(100% - 28px), 1120px); }
    .masthead { min-height: 110px; }
    .brand-kicker { font-size: .58rem; }
    .brand-name { font-size: 1.6rem; }
    .status { font-size: .6rem; }
    .hero { padding-top: 86px; }
    .hero h1, .document-header h1 { font-size: clamp(3.8rem, 20vw, 5rem); }
    .hero-copy, .lede { font-size: 1.05rem; }
    .route { grid-template-columns: 44px 1fr auto; gap: 12px; }
    .route-copy strong { font-size: 2rem; }
    .route-copy small { font-size: .84rem; }
    .document-body section { grid-template-columns: 42px 1fr; gap: 14px; }
    footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
