:root {
    --ink: #f1ede6;
    --paper: #faf8f4;
    --red: #b3202f;
    --grey: #e7e2d9;
    --grey-line: #cfc8ba;
    --white: #ffffff;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #f1ede6;
        --paper: #17140f;
        --grey: #2a251d;
        --grey-line: #3c352a;
        --white: #221e17;
    }
}

:root[data-theme="dark"] {
    --ink: #f1ede6;
    --paper: #17140f;
    --grey: #2a251d;
    --grey-line: #3c352a;
    --white: #221e17;
}



html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    /*font-family: 'IBM Plex Sans', sans-serif;
    -webkit-font-smoothing: antialiased;*/
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.wrap h1 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.rule {
    height: 3px;
    width: 64px;
    background: var(--red);
    margin: 18px 0 22px;
    border: none;
}

.lede {
    font-size: 16px;
    line-height: 1.55;
    max-width: 680px;
    opacity: .82;
    margin: 0 0 40px;
}

.track {
    position: relative;
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding: 6px 2px 14px;
}

.seg {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.seg::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 15px;
    height: 2px;
}

.seg.dates::before {
    background: var(--grey-line);
}

.seg.themes::before {
    background: var(--grey-line);
    background-image: repeating-linear-gradient(90deg, var(--grey-line) 0 6px, transparent 6px 12px);
    background-color: transparent;
}

.gap {
    flex: 0 0 34px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap::after {
    content: "—";
    opacity: .3;
    font-size: 14px;
    margin-top: 0px;
    position: relative;
    top: -1px;
}

.stop {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    cursor: pointer;
    border: none;
    background: none;
    text-align: center;
    font-family: inherit;
    color: inherit;
}

.dot {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--grey-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    opacity: .55;
    transition: border-color .18s ease, background .18s ease, opacity .18s ease, transform .18s ease;
}

.seg.themes .dot {
    border-radius: 6px;
}

.stop-date {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 13px;
    opacity: .6;
    transition: opacity .18s ease;
    white-space: nowrap;
}

.stop-label {
    font-size: 11px;
    opacity: .5;
    margin-top: 1px;
    transition: opacity .18s ease;
    max-width: 130px;
    line-height: 1.3;
}

.stop[aria-selected="true"] .dot {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    opacity: 1;
    transform: scale(1.1);
}

.stop[aria-selected="true"] .stop-date,
.stop[aria-selected="true"] .stop-label {
    opacity: 1;
}

.stop:hover .dot {
    opacity: .85;
}

.stop:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 6px;
}

.group-tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .03em;
    opacity: .4;
    text-transform: none;
    margin-bottom: 6px;
}

@media (max-width:820px) {
    .seg::before {
        display: none;
    }

    .stop {
        min-width: 100px;
    }

    .gap {
        flex-basis: 20px;
    }
}

.panel {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: 4px;
    padding: 30px 32px;
    min-height: 190px;
    margin-top: 22px;
}

.panel-eyebrow {
    font-size: 12px;
    letter-spacing: .02em;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 10px;
}

.panel-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 14px;
}

.panel-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: .85;
    max-width: 60ch;
}

.panel-ref {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 999px;
    padding: 5px 14px;
}

.legend {
    display: flex;
    gap: 22px;
    margin-top: 16px;
    font-size: 12px;
    opacity: .6;
    flex-wrap: wrap;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.swatch {
    width: 11px;
    height: 11px;
    border: 2px solid var(--grey-line);
    display: inline-block;
    border-radius: 50%;
}

.swatch.sq {
    border-radius: 3px;
}

footer {

    font-size: 12px;

}