:root
{
    --thin: #0b1220;
    --warm: #dfe5f0;
    --base: #fff;
    --wide: #ffb300;
    --bold: #111;
    --size: #d99700;
    --soft: #070b16;
    --frame: #fff;
    --paper: color-mix(in srgb, var(--warm) 6%, var(--thin));
    --card: color-mix(in srgb, var(--warm) 3%, var(--thin));
    --dim: color-mix(in srgb, var(--warm) 18%, var(--thin));
    --cool: color-mix(in srgb, var(--warm) 68%, var(--thin));
    --body: 1160px;
    --lift: 78ch;
    --head: 14px;
    --edge: 8px;
    --stroke: 0 2px 4px rgb(0 0 0 / 10%), 0 16px 40px rgb(0 0 0 / 16%);
    --tile: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --core: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
    --flow: clamp(1.4rem, 1.24rem + 0.75vw, 1.95rem);
    --main: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem)
}

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

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

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

a
{
    color: inherit
}

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

.layer-first, .trail-narrow, .rail-link, .lattice-bottom, .plot-small
{
    width: min(100% - 2rem, var(--body));
    margin-inline: auto
}

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

.stack
{
    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
}

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

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

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

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

.branch:empty
{
    display: none
}

.branch:empty + .lattice-plain
{
    margin-inline-start: auto
}

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

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

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

.strip-meta::-webkit-details-marker
{
    display: none
}

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

.strip-meta span
{
    position: relative
}

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

.strip-meta span::after
{
    position: absolute;
    top: 6px
}

.strip-outer
{
    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(--soft);
    border: 1px solid color-mix(in srgb, var(--frame) 20%, transparent);
    border-radius: var(--head);
    box-shadow: var(--stroke)
}

.strip-outer a
{
    padding: 0.6rem 0.7rem;
    border-radius: var(--edge);
    text-decoration: none;
    color: var(--frame)
}

.strip-outer a:hover
{
    background: color-mix(in srgb, var(--frame) 12%, transparent)
}

.strip-outer .part
{
    margin-top: 0.4rem;
    color: var(--frame);
    border-color: color-mix(in srgb, var(--frame) 40%, transparent)
}

.lattice .part-large
{
    color: inherit;
    border-color: color-mix(in srgb, var(--frame) 45%, transparent)
}

.lattice .part-large:hover
{
    background: color-mix(in srgb, var(--frame) 14%, transparent)
}

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

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

.layer-first::-webkit-scrollbar
{
    display: none
}

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

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

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

.part:hover
{
    background: var(--size)
}

.part:active
{
    transform: translateY(1px)
}

.part-large
{
    background: transparent;
    color: var(--base);
    border-color: var(--dim)
}

.part-large:hover
{
    background: var(--paper)
}

.part-view
{
    padding: 0.9rem 1.8rem;
    font-size: var(--core)
}

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

.slot h3, .field h3, .field h2, .slot h2, .plot-figure, .canvas
{
    color: var(--base);
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance
}

.canvas
{
    font-size: var(--main);
    margin: 0 0 1rem
}

.plot-figure
{
    font-size: var(--flow);
    margin: 0 0 1.25rem
}

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

.slot p, .field p
{
    margin: 0 0 1rem
}

.field > :last-child, .slot > :last-child
{
    margin-bottom: 0
}

.field a, .slot a
{
    color: color-mix(in srgb, var(--wide) 72%, var(--base));
    text-underline-offset: 3px
}

.post
{
    display: block
}

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

.post > .plot:not(.rail):nth-of-type(odd)
{
    background: var(--paper)
}

.slot
{
    max-width: var(--lift)
}

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

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

.plot-list .slot 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(--wide);
    border-bottom: 2px solid var(--wide);
    transform: rotate(-45deg)
}

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

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

.plot-list .slot 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(--wide);
    color: var(--bold);
    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(--dim);
    border-inline-start: 3px solid var(--cool);
    border-radius: 0 var(--edge) var(--edge) 0;
    background: var(--paper);
    font-size: 0.95rem
}

.note p
{
    margin: 0 0 0.6rem
}

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

.note strong
{
    color: var(--base)
}

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

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

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

.note--rg
{
    border: 1px solid color-mix(in srgb, var(--base) 30%, var(--dim));
    border-radius: var(--head);
    background: var(--card)
}

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

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

.field blockquote, .slot blockquote
{
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 3px solid var(--wide);
    border-radius: 0 var(--edge) var(--edge) 0;
    background: var(--paper);
    color: var(--cool);
    font-size: 0.95rem
}

.slot blockquote p, .field blockquote p
{
    margin: 0 0 0.6rem
}

.slot blockquote > :last-child, .field blockquote > :last-child
{
    margin-bottom: 0
}

.field blockquote strong, .slot blockquote strong
{
    color: var(--base)
}

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

.slot table
{
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    background: var(--card);
    border: 1px solid var(--dim);
    border-radius: var(--head);
    overflow: hidden
}

.plot-table .slot
{
    max-width: none;
    overflow-x: auto
}

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

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

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

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

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

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

.cell-figure
{
    border: 1px solid var(--dim);
    border-radius: var(--head);
    box-shadow: var(--stroke);
    width: 100%
}

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

.rail::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
}

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

.rack-cell a
{
    color: var(--wide);
    font-weight: 600
}

.loop
{
    text-align: center
}

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

.loop-soft
{
    max-width: 46ch;
    margin-inline: auto;
    color: var(--cool)
}

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

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

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

.rail .canvas
{
    grid-area: title;
    color: #fff
}

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

.rail .field
{
    margin-bottom: 1.5rem
}

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

.shelf
{
    grid-area: offer;
    background: var(--thin);
    border: 1px solid color-mix(in srgb, var(--wide) 40%, var(--dim));
    border-radius: var(--head);
    box-shadow: var(--stroke);
    overflow: hidden;
    align-self: start
}

.shelf .part
{
    width: 100%
}

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

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

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

.shelf-info
{
    font-weight: 800;
    font-size: var(--core);
    color: inherit;
    text-align: center
}

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

.shelf-copy
{
    font-size: var(--flow);
    font-weight: 800;
    line-height: 1.15;
    color: var(--base);
    margin: 0;
    text-wrap: balance
}

.shelf-open
{
    font-size: 0.8rem;
    color: var(--cool);
    margin: 0
}

.caption
{
    padding-block: 1.5rem
}

.ledge2
{
    border: 1px solid var(--dim);
    border-radius: var(--head);
    background: var(--card);
    padding: 0.5rem 1.1rem
}

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

.ledge2-large::-webkit-details-marker
{
    display: none
}

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

.ledge2[open] .ledge2-large::before
{
    transform: rotate(-135deg)
}

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

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

.ledge2-plain a
{
    color: var(--cool);
    text-underline-offset: 3px
}

.ledge2-plain a:hover
{
    color: var(--base)
}

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

.unit
{
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--dim);
    border-radius: var(--head);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease
}

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

.unit-alt
{
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper)
}

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

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

.unit-stub
{
    font-weight: 600;
    color: var(--base);
    line-height: 1.3;
    margin: 0
}

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

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

.route
{
    background: var(--thin);
    border: 1px solid var(--dim);
    border-radius: var(--head);
    padding: 1.1rem 1.2rem
}

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

.route-outer
{
    font-weight: 700;
    color: var(--base)
}

.route-sub
{
    color: var(--wide);
    font-weight: 700;
    white-space: nowrap
}

.route-less
{
    margin: 0;
    color: var(--cool)
}

.field2-less
{
    display: grid;
    gap: 0.5rem;
    max-width: var(--lift)
}

.field2-figure
{
    border: 1px solid var(--dim);
    border-radius: var(--edge);
    background: var(--card);
    padding: 0 1.1rem
}

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

.field2-outer::-webkit-details-marker
{
    display: none
}

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

.field2-figure[open] .field2-outer::before
{
    content: "−"
}

.field2-shut
{
    color: var(--cool);
    padding-bottom: 1rem
}

.field2-shut > :first-child
{
    margin-top: 0
}

.field2-shut > :last-child
{
    margin-bottom: 0
}

.level
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem;
    border-radius: var(--head);
    background: color-mix(in srgb, var(--wide) 12%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--wide) 35%, var(--dim))
}

.level-alt
{
    margin: 0;
    font-size: var(--core);
    font-weight: 800;
    color: var(--base);
    text-wrap: balance
}

.level-copy
{
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--cool)
}

.trail
{
    border-top: 1px solid var(--dim);
    background: var(--paper);
    color: var(--cool);
    padding-block: 2rem 6rem
}

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

.trail-side
{
    margin-inline-end: auto;
    font-weight: 700;
    color: var(--base)
}

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

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

.trail-plain:empty
{
    display: none
}

.trail-plain a
{
    text-decoration: none
}

.trail-plain a:hover
{
    text-decoration: underline
}

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

.trail-flat p
{
    margin: 0
}

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

.box
{
    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
}

.wall
{
    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(--wide) 14%, var(--soft));
    color: var(--frame);
    border-top: 1px solid color-mix(in srgb, var(--wide) 45%, transparent)
}

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

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

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

.wall .part
{
    margin-inline-start: auto;
    flex-shrink: 0
}

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

    .cell
    {
        grid-template-columns: 1fr
    }

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

}
@media (max-width: 700px) {
    .ledge2-plain
    {
        columns: 1
    }

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

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

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

    .lattice-bottom
    {
        flex-wrap: nowrap
    }

    .lattice-plain .part-large, .layer, .branch
    {
        display: none
    }

    .branch + .lattice-plain
    {
        margin-inline-start: auto
    }

    .strip
    {
        display: block;
        order: 3
    }

    .lattice-plain
    {
        margin-inline-start: auto
    }

    .lattice-plain .part
    {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem
    }

    .plot
    {
        padding-block: 1.75rem
    }

    .shelf-image, .level
    {
        padding: 1.15rem
    }

    .level .part-view, .rail-lead .part-view
    {
        width: 100%
    }

    .wall-copy
    {
        display: none
    }

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

}
