@font-face {
    font-family: "Big Shoulders Display";
    src: url("/fonts/big-shoulders-display-800.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --paper: #fbfaf7;
    --ink: #191817;
    --muted: #57544e;
    --line: #d7d3cb;
    --red: #a43125;
    --wash: #f1eee7;
    --on-red: #fff8f4;
    --focus: #225ca2;
    --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #171615;
        --ink: #f5f1e9;
        --muted: #c6bdb1;
        --line: #48423c;
        --red: #ff8c7f;
        --wash: #22201e;
        --on-red: #2a100b;
        --focus: #8bbfff;
    }
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.6 system-ui, sans-serif;
}

h1, h2, p, figure, dl, dd, ul { margin: 0; }

h1, h2 {
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;
    text-wrap: balance;
    line-height: .96;
}

h2 { font-size: clamp(2.4rem, 4.1vw, 4rem); }
p { max-width: 66ch; }
p + p { margin-block-start: .75rem; }

a {
    color: inherit;
    text-decoration-color: var(--line);
    text-underline-offset: .2em;
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: .25rem;
}

::selection { color: var(--on-red); background: var(--red); }

.skip-link {
    position: fixed;
    z-index: 1;
    inset: .5rem auto auto .5rem;
    padding: .5rem 1rem;
    color: var(--paper);
    background: var(--ink);
    transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: none; }

.shell {
    width: min(80rem, calc(100% - 2 * clamp(1rem, 4vw, 4.5rem)));
    margin-inline: auto;
}

.masthead, .footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 1rem;
    font-size: .9rem;
}

.masthead { border-block-end: 1px solid var(--line); }
.masthead a { display: inline-block; padding-block: .85rem; }
.home { font-weight: 700; }

.masthead nav {
    display: flex;
    column-gap: clamp(.75rem, 2.4vw, 2.25rem);
    color: var(--muted);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 4.5rem);
    padding-block: clamp(2rem, 5.6vw, 5.25rem) clamp(2.5rem, 5.2vw, 4.5rem);
}

.hero h1 {
    font-size: clamp(3.25rem, 6.25vw, 5.45rem);
    letter-spacing: -.015em;
    line-height: .9;
    text-wrap: wrap;
}

.hero h1 em { color: var(--red); font-style: normal; }

.hero-copy p {
    margin-block-start: 1.25rem;
    color: var(--muted);
    font-size: clamp(1.04rem, 1.55vw, 1.25rem);
    line-height: 1.52;
}

.ride { min-width: 0; }

.ride video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: .25rem;
}

.ride figcaption { padding-block: .85rem .7rem; }

.ride-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem .85rem;
}

.ride-label h2 {
    font: 700 1.05rem/1.35 system-ui, sans-serif;
    text-transform: none;
}

.ride-label span, #ride-note, .street-plan figcaption, .source, .footer {
    color: var(--muted);
    font-size: .9rem;
}

#ride-note { margin-block-start: .3rem; }

.disclosure {
    border-block-start: 1px solid var(--line);
    margin-block-start: 1rem;
}

.disclosure summary {
    width: fit-content;
    padding-block: .65rem;
    cursor: pointer;
    font-weight: 650;
    text-underline-offset: .2em;
}

.disclosure summary:hover { text-decoration: underline; }
.disclosure summary::marker { color: var(--red); }
.disclosure p:last-child { margin-block-end: .65rem; }
.ride-details { margin-block-start: 0; }

.section {
    border-block-start: 1px solid var(--line);
    padding-block: clamp(2.75rem, 6vw, 5.25rem);
}

.section h2 + p, .action h2 + p { margin-block-start: 1rem; }
.section p, .treatments dd { color: var(--muted); }
.section strong { color: var(--ink); }
.section .source { margin-block-start: .65rem; }
.source a { text-decoration-color: currentColor; }

.baseline, .design-layout, .status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(1.5rem, 5vw, 5.5rem);
}

.baseline { align-items: baseline; }
.baseline h2 { color: var(--red); }
.design-layout { align-items: center; }

.road {
    background: #373535;
    color: #fff8ec;
    overflow: hidden;
    text-align: center;
    font-size: .875rem;
    line-height: 1.2;
}

.sidewalk { background: #e3dbcd; color: #39332c; padding: .4rem .5rem; }
.traffic { background: #393838; padding: .5rem; }

.bus-lane {
    background: #a43125;
    border-block: 1px solid #fff8ec;
    padding: .65rem .5rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bus-lane + .bus-lane { border-block-start: 3px double #f3cb62; }

.island-band {
    display: flex;
    padding-inline: 6%;
    background: linear-gradient(to top, #b7ad9e .28rem, transparent .28rem);
}

.island-band-opposite {
    justify-content: flex-end;
    background: linear-gradient(to bottom, #b7ad9e .28rem, transparent .28rem);
}

.island {
    background: #e3dbcd;
    color: #292522;
    border-block-end: .22rem solid #d36349;
    padding: .43rem .75rem;
}

.island-band-opposite .island {
    border-block-end: 0;
    border-block-start: .22rem solid #d36349;
}

.street-plan figcaption { margin-block-start: .55rem; }

.treatments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem clamp(1.25rem, 3vw, 3rem);
    margin-block-start: 2.5rem;
}

.treatments > div { border-block-start: 1px solid var(--line); padding-block-start: .85rem; }
.treatments dt { margin-block-end: .25rem; font-weight: 750; }
.treatments dd { line-height: 1.55; }

.milestones { list-style: none; padding: 0; }

.milestones li {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: .2rem 1rem;
    border-block-start: 1px solid var(--line);
    padding-block: .8rem;
}

.milestones time { color: var(--ink); font-weight: 700; }

.action {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem 2rem;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    background: var(--wash);
    border-block-start: .25rem solid var(--red);
}

.action h2 { text-wrap: wrap; }
.action p { color: var(--muted); }

.action-link {
    background: var(--red);
    color: var(--on-red);
    font-weight: 700;
    text-decoration: none;
    padding: .75rem 1.1rem;
    border-radius: .25rem;
}

.action-link:hover { text-decoration: underline; }
.footer { padding-block: 1.5rem 2.5rem; }

@media (max-width: 54rem) {
    .hero, .baseline, .design-layout, .status { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { max-width: 17ch; font-size: clamp(3.25rem, 9vw, 5rem); text-wrap: balance; }
    .hero-copy p { max-width: 56ch; }
}

@media (max-width: 38rem) {
    .hero h1 { font-size: clamp(3.25rem, 11vw, 4.5rem); }
    .treatments { grid-template-columns: minmax(0, 1fr); }
    .milestones li { grid-template-columns: minmax(0, 1fr); }
}
