:root {
    color-scheme: light;
    --ink: #201f19;
    --paper: #eae7de;
    --cream: #f7f3e9;
    --black: #242520;
    --amber: #ed8e42;
    --soft: #c5c0b0;
    --muted: #4a473f;
    font-family: system-ui, sans-serif;
    font-synthesis: none;
    background: var(--paper);
    color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #ab4500; outline-offset: 3px; }
[id] { scroll-margin-top: 1em; }
.sr, .skip:not(:focus) { clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
.skip { position: absolute; z-index: 4; top: .4rem; left: .4rem; padding: .65rem 1rem; color: white; background: #231f1b; }
.wrap { width: min(100% - 8vw, 86rem); margin-inline: auto; }
.mast {
    width: min(100% - 8vw, 86rem);
    min-height: 5.5rem;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid #7e796d;
}
.brand { display: inline-flex; gap: .65rem; align-items: center; line-height: .95; letter-spacing: -.055em; font-size: 1.45rem; font-weight: 780; text-decoration: none; white-space: nowrap; }
.brand small { display: block; margin-top: .36rem; font-size: .62rem; letter-spacing: .12em; }
.brand-mark { position: relative; width: 2.35rem; height: 2.35rem; background: var(--amber); border: 1px solid var(--ink); }
.brand-mark::after { content: ''; position: absolute; width: .87rem; height: 1.08rem; top: .54rem; left: .65rem; border: 2px solid var(--ink); border-bottom: 0; box-shadow: inset 0 3px var(--amber), inset 0 5px var(--ink); }
.mast nav { display: flex; align-items: center; gap: clamp(.7rem, 2.8vw, 2.9rem); font-size: .84rem; font-weight: 700; }
.mast nav a { text-decoration: none; white-space: nowrap; }
.mast nav a:not(.contact-link):hover { text-decoration: underline; text-underline-offset: .24em; }
.contact-link { border: 1px solid var(--ink); padding: .68rem .78rem; }
.contact-link:hover { background: var(--amber); }
.label { text-transform: uppercase; font: 700 .71rem/1.25 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.beacon { display: inline-block; width: .55rem; height: .55rem; margin-inline-end: .38rem; background: var(--amber); border: 1px solid var(--ink); }
.arrival { width: min(100% - 8vw, 86rem); margin: clamp(1.4rem, 3vw, 2.75rem) auto clamp(3rem, 7vw, 7rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1rem, 3vw, 3rem); align-items: end; }
.depot-intro h1, .sub-intro h1 { font-size: clamp(3.1rem, 6.7vw, 7.4rem); line-height: .91; letter-spacing: -.059em; font-weight: 760; margin-block: .65rem 1.18rem; }
.depot-intro > p:last-child { max-width: 39ch; font-size: clamp(.98rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.44; }
.front-photo { position: relative; margin-top: 1.45rem; overflow: hidden; background: #888372; border: 1px solid #5c594e; }
.front-photo img { width: 100%; height: auto; aspect-ratio: 1.94; object-fit: cover; object-position: center 54%; }
.front-photo figcaption { position: absolute; bottom: 0; left: 0; padding: .57rem .78rem; color: #fff8e6; background: #26231f; font: 700 .67rem ui-monospace, Menlo, monospace; }
.plan { min-width: 0; position: relative; border: 1px solid #37362f; box-shadow: 6px 6px #bdb8a9; background: var(--cream); padding: clamp(.88rem, 2.25vw, 1.75rem); }
.plan::before { content: ''; display: block; position: absolute; height: 4px; background: var(--amber); top: -1px; left: -1px; right: -1px; }
.plan-head { display: flex; gap: .43rem; flex-direction: column; margin-block: .15rem 1.1rem; }
.plan-head h2 { font-size: clamp(1.65rem, 2.9vw, 2.85rem); line-height: 1; letter-spacing: -.041em; }
.plan-flex { display: grid; grid-template-columns: 1fr 1.03fr; gap: clamp(.6rem, 1.4vw, 1.3rem); min-width: 0; }
.plan-scene, .plan-controls { min-width: 0; }
.plan label { display: block; font-size: .74rem; font-weight: 720; margin-block-end: .33rem; }
.plan select { width: 100%; appearance: auto; min-height: 2.3rem; font-size: .77rem; padding: 0 .32rem; border: 1px solid #5d5547; background: var(--cream); color: var(--ink); border-radius: 0; }
.plan button { color: var(--ink); background: transparent; border: 1px solid #938a76; font-size: .72rem; font-weight: 700; min-height: 2.2rem; padding: .25rem .4rem; }
.plan button:not(.piece):hover:not(:disabled) { background: var(--amber); border-color: var(--ink); }
.plan button:disabled { opacity: .48; }
.add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .29rem; }
.add-row button { background: var(--amber); border-color: #67513b; }
.grid-wrap { margin-block-start: .65rem; background: #ddd9cb; border: 1px solid #665e4e; padding: .42rem .42rem .36rem; }
.grid {
    --columns: 8; --rows: 10;
    position: relative;
    overflow: clip;
    aspect-ratio: var(--columns) / var(--rows);
    background-color: #ece8d9;
    background-image: linear-gradient(90deg, #c0b8a5 1px, transparent 1px), linear-gradient(#c0b8a5 1px, transparent 1px);
    background-size: calc(100% / var(--columns)) calc(100% / var(--rows));
    border: 1px solid #7d715a;
}
.grid > * { position: absolute; top: var(--top, 0); left: var(--left, 0); width: var(--width, 0); height: var(--height, 0); }
.aisle { background: repeating-linear-gradient(145deg, #57731328 0 5px, #7e9a2426 5px 9px); pointer-events: none; }
.plan .piece {
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    text-align: center;
    font: 700 clamp(.54rem, .85vw, .67rem)/1 ui-monospace, Menlo, monospace;
    background: #e8a476;
    border: 1px solid #7b4d2f;
    touch-action: none;
}
.plan .piece-bike { background: #ead592; }
.plan .piece-dresser { background: #baa4a7; }
.plan .piece-mattress { background: #9fbbb6; }
.plan .piece[aria-pressed="true"] { outline: 2px solid #242018; outline-offset: -2px; z-index: 1; }
.plan .piece:focus-visible { outline: 3px solid #672800; outline-offset: -3px; z-index: 2; }
.door { border-block-start: 2px dashed #735b35; text-align: center; font: 700 .63rem ui-monospace, Menlo, monospace; text-transform: uppercase; padding: .27rem 0 .12rem; }
.instructions, .model-note { font-size: .73rem; line-height: 1.43; color: var(--muted); margin-block: .65rem; }
.move { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; }
.object-functions { display: flex; gap: .25rem; margin-top: .36rem; flex-wrap: wrap; }
.object-functions button { flex: 1 1 auto; }
.plan-results { border-block: 1px solid #ac9f89; margin-top: .7rem; display: flex; align-items: center; gap: .5rem; padding-block: .36rem; }
.plan-results strong { font: 700 clamp(1rem, 1.7vw, 1.45rem)/1 ui-monospace, Menlo, monospace; white-space: nowrap; }
.plan-results span { font-size: .67rem; line-height: 1.1; }
.explain { display: inline-block; margin-top: .9rem; font-size: .76rem; text-underline-offset: .22em; }
.ways { position: relative; isolation: isolate; overflow: clip; background: var(--black); color: var(--cream); padding: clamp(2.3rem, 6vw, 5.6rem) 0 clamp(2.8rem, 6vw, 6rem); }
.ways::before {
    content: ''; position: absolute; z-index: -1; inset: 0; opacity: .18;
    background: repeating-linear-gradient(120deg, var(--amber) 0 1px, transparent 1px 19px);
    mask-image: linear-gradient(90deg, transparent 48%, #000 100%);
}
.ways .label, .ways .step { color: #ffa866; }
.ways h2, .stock h2, .loaded h2, .rewind h2, .outer-lane h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: .98; letter-spacing: -.065em; margin-block: .62rem 1.35rem; max-width: 18ch; }
.way-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: clip; border: 1px solid #777266; margin-top: 1.8rem; }
.way-grid::before {
    content: ''; position: absolute; pointer-events: none; z-index: 2; inset: 0 0 auto; height: .28rem; background: repeating-linear-gradient(-45deg, #f3ab6d 0 .5rem, #372d25 .5rem 1rem);
    transform: translateX(var(--route-shift, 0));
}
.way-grid a { display: grid; align-content: start; gap: .65rem; text-decoration: none; background: #302f29; padding: clamp(.75rem, 2.75vw, 2rem); min-height: 9.3rem; }
.way-grid a:hover { background: #464036; }
.way-grid a:not(:first-of-type) { border-inline-start: 1px solid #676051; }
.way-grid a strong { line-height: 1.08; font-size: clamp(1rem, 1.9vw, 1.6rem); letter-spacing: -.04em; }
.way-grid a span:last-child { font-size: .86rem; line-height: 1.42; color: #f1ecdb; }
.step { font: 700 1rem ui-monospace, Menlo, monospace; }
.measured .step { opacity: calc(.47 + var(--lamp, 0) * .53); }
.stock { padding-block: clamp(3.35rem, 7vw, 6rem); }
.dimensions { margin: 2rem 0 0; list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.dimensions a { display: grid; grid-template-columns: .65fr 1.1fr 1.2fr auto; align-items: center; gap: 1rem; border-bottom: 1px solid #898475; padding: 1rem .4rem; text-decoration: none; }
.dimensions a:hover { background: #d9d3c3; }
.dimensions b { font: 700 clamp(1.05rem, 2.4vw, 2rem)/1.1 ui-monospace, Menlo, monospace; }
.dimensions a span { font-size: clamp(.68rem, 1.3vw, .92rem); }
.loaded, .rewind, .outer-lane, .entry-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 5vw, 4.35rem); align-items: center; padding-block: clamp(2.1rem, 5vw, 4.4rem); border-top: 1px solid #8c8675; }
.loaded img, .rewind img, .outer-lane img, .entry-detail img { width: 100%; height: auto; aspect-ratio: 1.67; object-fit: cover; background: #c7c0ad; }
.loaded p:not(.label), .rewind p:not(.label), .outer-lane p:not(.label), .sub-intro p:not(.label), .entry-detail p, .article-layout p { font-size: clamp(.96rem, 1.4vw, 1.16rem); color: var(--muted); line-height: 1.52; max-width: 52ch; }
.line-link { display: inline-block; margin-top: 1rem; font-weight: 720; text-underline-offset: .28em; }
.line-link:hover { text-decoration-thickness: 2px; }
.yard-footer { background: #232420; color: var(--cream); }
.footer-inner { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.6rem; padding-block: 3rem; }
.footer-inner h2 { font-size: 1.23rem; letter-spacing: -.03em; margin-bottom: .65rem; }
.footer-inner address, .footer-inner nav { font-size: .87rem; line-height: 1.6; font-style: normal; }
.footer-inner nav { display: grid; align-content: start; gap: .34rem; }
.footer-inner a { text-underline-offset: .16em; }
.sub-intro { padding-block: clamp(2.8rem, 8vw, 7rem) clamp(1.5rem, 4.2vw, 3.65rem); }
.sub-intro h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); max-width: 16ch; }
.full-plan { padding-bottom: clamp(3rem, 7vw, 6rem); }
.full-plan .plan { max-width: 46rem; }
.full-plan .grid { max-height: 23rem; }
.entry-detail { padding-top: 0; border: 0; }
.entry-detail h2 { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.entry-detail address { font-style: normal; margin-block: .8rem; line-height: 1.65; }
.article-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.1rem, 5vw, 4rem); padding-bottom: clamp(2rem, 7vw, 5rem); align-items: start; }
.article-layout.single { display: block; }
.article-layout section { border-top: 1px solid #988e7b; padding-block: 1.1rem 1.35rem; }
.article-layout h2 { font-size: clamp(1.25rem, 2.25vw, 2rem); letter-spacing: -.035em; margin-bottom: .4rem; }
.article-layout aside img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
@media (max-width: 970px) {
    .arrival { grid-template-columns: .92fr 1fr; }
    .depot-intro h1 { font-size: clamp(2.85rem, 7vw, 5.8rem); }
    .plan-flex { gap: .65rem; }
}
@media (max-width: 760px) {
    .arrival { grid-template-columns: 1fr; width: min(100% - 7vw, 37rem); }
    .depot-intro h1 { font-size: clamp(3.55rem, 10vw, 6.1rem); }
    .mast { min-height: 4.1rem; width: calc(100% - 7vw); }
    .mast nav { font-size: .72rem; gap: .6rem; }
    .mast nav a:nth-child(2) { display: none; }
    .brand { font-size: 1.25rem; }
    .brand-mark { transform: scale(.87); transform-origin: left center; margin-right: -.2rem; }
    .grid-wrap { max-width: 13rem; }
    .plan { margin-right: 4px; }
    .plan-controls { max-width: 17rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-inner section { grid-column: 1 / -1; }
}
@media (max-width: 475px) {
    .wrap { width: calc(100% - 7vw); }
    .mast { gap: .5rem; }
    .contact-link { padding: .46rem .53rem; }
    .way-grid, .loaded, .rewind, .outer-lane, .entry-detail, .article-layout { grid-template-columns: 1fr; }
    .way-grid a { min-height: 0; }
    .way-grid a:not(:first-of-type) { border-inline-start: 0; border-block-start: 1px solid #676051; }
    .dimensions a { gap: .42rem; grid-template-columns: .65fr 1fr 1fr auto; }
    .rewind figure { grid-row: 1; }
    .plan button { padding-inline: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .way-grid::before { transform: none; }
    .measured .step { opacity: 1; }
}
