:root {
    --grid: #0b1220;
    --zone: #dfe5f0;
    --deep: #fff;
    --base: #ffb300;
    --depth: #111;
    --lift: #d99700;
    --frame: #070b16;
    --ink: #fff;
    --field: color-mix(in srgb, var(--zone) 6%, var(--grid));
    --tone: color-mix(in srgb, var(--zone) 3%, var(--grid));
    --warm: color-mix(in srgb, var(--zone) 18%, var(--grid));
    --flat: color-mix(in srgb, var(--zone) 68%, var(--grid));
    --fill: 1160px;
    --paper: 78ch;
    --plain: 14px;
    --tile: 8px;
    --core: 0 2px 4px rgb(0 0 0 / 10%), 0 16px 40px rgb(0 0 0 / 16%);
    --line: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --cool: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
    --band: clamp(1.4rem, 1.24rem + 0.75vw, 1.95rem);
    --flow: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem);
}

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

body {
    margin: 0;
    background: var(--grid);
    color: var(--zone);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: var(--line);
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.strip2 {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--frame);
    color: var(--ink);
}

.marker__copy, .binder__less, .orbit__thumb, .peak__top, .strip2__thumb {
    width: min(100% - 2rem, var(--fill));
    margin-inline: auto;
}

.strip2__thumb {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 60px;
    padding-block: 0.5rem;
}

.field {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.field img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.crest {
    display: flex;
    gap: 0.15rem;
    margin-inline-end: auto;
    min-width: 0;
}

.crest a {
    padding: 0.4rem 0.7rem;
    border-radius: var(--tile);
    text-decoration: none;
    color: inherit;
    opacity: 0.82;
    white-space: nowrap;
    font-size: 0.92rem;
}

.crest a:hover {
    background: color-mix(in srgb, var(--ink) 14%, transparent);
    opacity: 1;
}

.crest:empty {
    display: none;
}

.crest:empty + .strip2__edge {
    margin-inline-start: auto;
}

.strip2__edge {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ward {
    display: none;
    position: relative;
    flex-shrink: 0;
}

.ward__cell {
    list-style: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
    border-radius: var(--tile);
}

.ward__cell::-webkit-details-marker {
    display: none;
}

.ward__cell span, .ward__cell span::after, .ward__cell span::before {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.ward__cell span {
    position: relative;
}

.ward__cell span::before {
    position: absolute;
    top: -6px;
}

.ward__cell span::after {
    position: absolute;
    top: 6px;
}

.ward__dark {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.5rem);
    z-index: 25;
    min-width: 14rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem;
    background: var(--frame);
    border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
    border-radius: var(--plain);
    box-shadow: var(--core);
}

.ward__dark a {
    padding: 0.6rem 0.7rem;
    border-radius: var(--tile);
    text-decoration: none;
    color: var(--ink);
}

.ward__dark a:hover {
    background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.ward__dark .box {
    margin-top: 0.4rem;
    color: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 40%, transparent);
}

.strip2 .box--sub {
    color: inherit;
    border-color: color-mix(in srgb, var(--ink) 45%, transparent);
}

.strip2 .box--sub:hover {
    background: color-mix(in srgb, var(--ink) 14%, transparent);
}

.marker {
    background: color-mix(in srgb, var(--ink) 8%, var(--frame));
    border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    font-size: 0.9rem;
}

.marker__copy {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.marker__copy::-webkit-scrollbar {
    display: none;
}

.marker a {
    padding: 0.55rem 0.7rem;
    text-decoration: none;
    color: var(--ink);
    opacity: 0.8;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.marker a:hover {
    opacity: 1;
    border-bottom-color: var(--base);
}

.box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--wide, transparent);
    border-radius: var(--tile);
    padding: 0.6rem 1.1rem;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    background: var(--base);
    color: var(--depth);
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.box:hover {
    background: var(--lift);
}

.box:active {
    transform: translateY(1px);
}

.box--sub {
    background: transparent;
    color: var(--deep);
    border-color: var(--warm);
}

.box--sub:hover {
    background: var(--field);
}

.box--bold {
    padding: 0.9rem 1.8rem;
    font-size: var(--cool);
}

:focus-visible {
    outline: 2px solid var(--base);
    outline-offset: 2px;
}

.niche, .core h2, .gutter h3, .gutter h2, .binder__top, .core h3 {
    color: var(--deep);
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.niche {
    font-size: var(--flow);
    margin: 0 0 1rem;
}

.binder__top {
    font-size: var(--band);
    margin: 0 0 1.25rem;
}

.core h3, .gutter h3 {
    font-size: var(--cool);
    margin: 1.75rem 0 0.5rem;
}

.core p, .gutter p {
    margin: 0 0 1rem;
}

.gutter > :last-child, .core > :last-child {
    margin-bottom: 0;
}

.gutter a, .core a {
    color: color-mix(in srgb, var(--base) 72%, var(--deep));
    text-underline-offset: 3px;
}

.beam {
    display: block;
}

.binder {
    padding-block: clamp(2rem, 1.4rem + 2vw, 3.5rem);
    scroll-margin-top: 72px;
}

.beam > .binder:not(.orbit):nth-of-type(odd) {
    background: var(--field);
}

.core {
    max-width: var(--paper);
}

.binder--list .core ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.5rem;
}

.binder--list .core ul > li {
    position: relative;
    padding-inline-start: 1.9rem;
    padding-block: 0.15rem;
}

.binder--list .core ul > li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 0.75rem;
    height: 0.4rem;
    border-inline-start: 2px solid var(--base);
    border-bottom: 2px solid var(--base);
    transform: rotate(-45deg);
}

.binder--list .core ol {
    counter-reset: step;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.binder--list .core ol > li {
    counter-increment: step;
    position: relative;
    padding-inline-start: 2.6rem;
}

.binder--list .core ol > li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--base);
    color: var(--depth);
    font-weight: 700;
    font-size: 0.9rem;
    display: grid;
    place-items: center;
}

.note {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--warm);
    border-inline-start: 3px solid var(--flat);
    border-radius: 0 var(--tile) var(--tile) 0;
    background: var(--field);
    font-size: 0.95rem;
}

.note p {
    margin: 0 0 0.6rem;
}

.note > :last-child {
    margin-bottom: 0;
}

.note strong {
    color: var(--deep);
}

.note--disclosure {
    color: var(--flat);
    font-size: 0.88rem;
    background: transparent;
    border-inline-start-color: var(--warm);
}

.note--warning {
    border-inline-start-color: var(--base);
    background: color-mix(in srgb, var(--base) 10%, var(--grid));
}

.note--takeaway {
    font-variant-numeric: tabular-nums;
    border-inline-start-color: var(--deep);
}

.note--rg {
    border: 1px solid color-mix(in srgb, var(--deep) 30%, var(--warm));
    border-radius: var(--plain);
    background: var(--tone);
}

.note--rg a {
    font-weight: 600;
}

.note--independent {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--flat);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--warm);
    border-radius: 0;
    padding: 1rem 0 0;
}

.core blockquote, .gutter blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 3px solid var(--base);
    border-radius: 0 var(--tile) var(--tile) 0;
    background: var(--field);
    color: var(--flat);
    font-size: 0.95rem;
}

.core blockquote p, .gutter blockquote p {
    margin: 0 0 0.6rem;
}

.gutter blockquote > :last-child, .core blockquote > :last-child {
    margin-bottom: 0;
}

.core blockquote strong, .gutter blockquote strong {
    color: var(--deep);
}

.core hr {
    border: 0;
    border-top: 1px solid var(--warm);
    margin: 2rem 0;
}

.core table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    background: var(--tone);
    border: 1px solid var(--warm);
    border-radius: var(--plain);
    overflow: hidden;
}

.binder--table .core {
    max-width: none;
    overflow-x: auto;
}

.core td, .core th {
    border-bottom: 1px solid var(--warm);
    padding: 0.7rem 0.9rem;
    text-align: start;
    vertical-align: top;
}

.core caption {
    caption-side: top;
    text-align: start;
    padding: 0 0 0.6rem;
    font-weight: 700;
    color: var(--deep);
}

.core thead th {
    background: color-mix(in srgb, var(--base) 16%, var(--field));
    color: var(--deep);
    font-weight: 700;
    white-space: nowrap;
}

.core tbody tr:last-child td {
    border-bottom: 0;
}

.core tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--zone) 3%, transparent);
}

.aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: 2rem;
    align-items: start;
}

.aside__bold {
    border: 1px solid var(--warm);
    border-radius: var(--plain);
    box-shadow: var(--core);
    width: 100%;
}

.orbit {
    position: relative;
    padding-block: clamp(2rem, 1.2rem + 3vw, 4rem);
    background: var(--frame);
    isolation: isolate;
}

.orbit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--shell, none);
    background-size: cover;
    background-position: center;
}

.row__link {
    margin-top: 1.25rem;
    text-align: center;
}

.row__link a {
    color: var(--base);
    font-weight: 600;
}

.course {
    text-align: center;
}

.course__large {
    font-size: clamp(3.5rem, 12vw, 6rem);
    line-height: 1;
    font-weight: 800;
    color: var(--base);
    margin-bottom: 0.5rem;
}

.course__link {
    max-width: 46ch;
    margin-inline: auto;
    color: var(--flat);
}

.course__open {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

@media (max-width: 700px) {
    .orbit::before {
        background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--brand, var(--shell, none));
    }

}
.orbit__thumb {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
    grid-template-areas: "title offer" "text offer";
    align-content: start;
    gap: 0 2rem;
}

.orbit .niche {
    grid-area: title;
    color: #fff;
}

.orbit__lead {
    grid-area: text;
    color: #f2f4f8;
    max-width: 62ch;
}

.orbit .gutter {
    margin-bottom: 1.5rem;
}

.orbit__side {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

.shelf {
    grid-area: offer;
    background: var(--grid);
    border: 1px solid color-mix(in srgb, var(--base) 40%, var(--warm));
    border-radius: var(--plain);
    box-shadow: var(--core);
    overflow: hidden;
    align-self: start;
}

.shelf .box {
    width: 100%;
}

.shelf__off {
    display: grid;
    place-items: center;
    min-height: 74px;
    padding: 0.9rem 1.25rem;
    background: color-mix(in srgb, var(--base) 22%, var(--grid));
    color: var(--deep);
    border-bottom: 3px solid var(--base);
}

.shelf__off img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.shelf__sub {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem;
    text-align: center;
}

.shelf__stub {
    font-weight: 800;
    font-size: var(--cool);
    color: inherit;
    text-align: center;
}

.shelf__less {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--flat);
    margin: 0;
}

.shelf__large {
    font-size: var(--band);
    font-weight: 800;
    line-height: 1.15;
    color: var(--deep);
    margin: 0;
    text-wrap: balance;
}

.shelf__last {
    font-size: 0.8rem;
    color: var(--flat);
    margin: 0;
}

.plane {
    padding-block: 1.5rem;
}

.set {
    border: 1px solid var(--warm);
    border-radius: var(--plain);
    background: var(--tone);
    padding: 0.5rem 1.1rem;
}

.set__image {
    cursor: pointer;
    font-weight: 700;
    color: var(--deep);
    padding-block: 0.6rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.set__image::-webkit-details-marker {
    display: none;
}

.set__image::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-inline-end: 2px solid var(--base);
    border-bottom: 2px solid var(--base);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.set[open] .set__image::before {
    transform: rotate(-135deg);
}

.set__narrow {
    columns: 2;
    gap: 2rem;
    margin: 0 0 0.75rem;
    padding-inline-start: 1.2rem;
    font-size: 0.95rem;
}

.set__narrow li {
    break-inside: avoid;
    margin-bottom: 0.3rem;
}

.set__narrow a {
    color: var(--flat);
    text-underline-offset: 3px;
}

.set__narrow a:hover {
    color: var(--deep);
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.layer {
    display: flex;
    flex-direction: column;
    background: var(--tone);
    border: 1px solid var(--warm);
    border-radius: var(--plain);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.layer:hover {
    border-color: var(--base);
    transform: translateY(-2px);
}

.layer__less {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--field);
}

.layer__less img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layer__line {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem;
    margin-top: auto;
}

.layer__thumb {
    font-weight: 600;
    color: var(--deep);
    line-height: 1.3;
    margin: 0;
}

.layer .box {
    width: 100%;
    padding-block: 0.5rem;
    font-size: 0.95rem;
}

.group__info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.seam {
    background: var(--grid);
    border: 1px solid var(--warm);
    border-radius: var(--plain);
    padding: 1.1rem 1.2rem;
}

.seam__outer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.seam__large {
    font-weight: 700;
    color: var(--deep);
}

.seam__icon {
    color: var(--base);
    font-weight: 700;
    white-space: nowrap;
}

.seam__bottom {
    margin: 0;
    color: var(--flat);
}

.frame__top {
    display: grid;
    gap: 0.5rem;
    max-width: var(--paper);
}

.frame__figure {
    border: 1px solid var(--warm);
    border-radius: var(--tile);
    background: var(--tone);
    padding: 0 1.1rem;
}

.frame__image {
    cursor: pointer;
    font-weight: 600;
    color: var(--deep);
    padding-block: 0.9rem;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.frame__image::-webkit-details-marker {
    display: none;
}

.frame__image::before {
    content: "+";
    color: var(--base);
    font-weight: 700;
    line-height: 1.4;
    flex-shrink: 0;
}

.frame__figure[open] .frame__image::before {
    content: "−";
}

.frame__flat {
    color: var(--flat);
    padding-bottom: 1rem;
}

.frame__flat > :first-child {
    margin-top: 0;
}

.frame__flat > :last-child {
    margin-bottom: 0;
}

.shelf2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem;
    border-radius: var(--plain);
    background: color-mix(in srgb, var(--base) 12%, var(--field));
    border: 1px solid color-mix(in srgb, var(--base) 35%, var(--warm));
}

.shelf2__off {
    margin: 0;
    font-size: var(--cool);
    font-weight: 800;
    color: var(--deep);
    text-wrap: balance;
}

.shelf2__light {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--flat);
}

.peak {
    border-top: 1px solid var(--warm);
    background: var(--field);
    color: var(--flat);
    padding-block: 2rem 6rem;
}

.peak__top {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--warm);
}

.peak__cell {
    margin-inline-end: auto;
    font-weight: 700;
    color: var(--deep);
}

.peak__cell img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.peak__shut {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.peak__shut:empty {
    display: none;
}

.peak__shut a {
    text-decoration: none;
}

.peak__shut a:hover {
    text-decoration: underline;
}

.peak__outer {
    width: min(100% - 2rem, var(--fill));
    margin-inline: auto;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    display: grid;
    gap: 0.5rem;
}

.peak__outer p {
    margin: 0;
}

.peak__side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wrap {
    display: inline-grid;
    place-items: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.78rem;
}

.badge {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--base) 14%, var(--frame));
    color: var(--ink);
    border-top: 1px solid color-mix(in srgb, var(--base) 45%, transparent);
}

.badge__stub {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.badge__info {
    font-weight: 800;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge__sub {
    font-size: 0.75rem;
    opacity: 0.7;
}

.badge .box {
    margin-inline-start: auto;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .orbit__thumb {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "offer" "text";
        gap: 1.25rem;
    }

    .aside {
        grid-template-columns: 1fr;
    }

    .aside__bold {
        max-width: 260px;
        margin-inline: auto;
    }

}
@media (max-width: 700px) {
    .set__narrow {
        columns: 1;
    }

    .wrapper {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 0.75rem;
    }

}
@media (max-width: 640px) {
    .strip2 {
        position: static;
    }

    .strip2__thumb {
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
        padding-block: 0.6rem;
    }

    .strip2__thumb {
        flex-wrap: nowrap;
    }

    .strip2__edge .box--sub, .marker, .crest {
        display: none;
    }

    .crest + .strip2__edge {
        margin-inline-start: auto;
    }

    .ward {
        display: block;
        order: 3;
    }

    .strip2__edge {
        margin-inline-start: auto;
    }

    .strip2__edge .box {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .binder {
        padding-block: 1.75rem;
    }

    .shelf2, .shelf__sub {
        padding: 1.15rem;
    }

    .shelf2 .box--bold, .orbit__lead .box--bold {
        width: 100%;
    }

    .badge__sub {
        display: none;
    }

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

}
