body:has(.labo-page),
body:has(.labo-page) :is(.site-header, .mobile-menu-panel) {
    background: var(--shop-footer-yellow);
}

body:has(.labo-page) :is(.site-header, .mobile-menu-panel) {
    border-color: #13131340;
}

body:has(.labo-page) .site-header-sections a[aria-current] {
    background: none;
    text-decoration: underline solid #131313 2px;
    text-underline-offset: .25em;
}

.labo-page {
    color: #101010;
    background: var(--shop-footer-yellow);
    overflow: clip;
}

.labo-sheet {
    max-width: 1600px;
    padding: clamp(16px, 2.2vw, 38px) 5% clamp(72px, 11vw, 178px);
    margin-inline: auto;
}

.labo-masthead {
    margin-inline: 12% 3%;
}

.labo-masthead h1,
.labo-feature-lunar h2 {
    margin: 0;
    font-family: "Righteous", sans-serif;
    font-weight: 400;
}

.labo-masthead h1 {
    font-size: clamp(3.0875rem, 4.94vw, 6.175rem);
    letter-spacing: -.035em;
    line-height: .92;
    text-transform: uppercase;
}

.labo-masthead p {
    margin-inline-start: 11%;
}

.labo-manifesto {
    position: relative;
    isolation: isolate;
    margin: clamp(56px, 6vw, 110px) 10% 0 15%;
    padding: .08em 0 clamp(38px, 4vw, 70px);
    font-size: clamp(1.75rem, 3.55vw, 4.25rem);
}

.labo-manifesto > p,
.labo-feature-lunar > p,
.labo-feature-lunar h2 span {
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 300;
}

.labo-manifesto > p {
    position: relative;
    z-index: 3;
    max-width: 31ch;
    margin: 0;
    font-size: inherit;
    line-height: 1.75;
    pointer-events: none;
}

.labo-manifesto > p span {
    pointer-events: auto;
}

.labo-drawing-area {
    position: absolute;
    z-index: 1;
    inset: 0 -4% 0 7%;
}

.labo-grid {
    --grid-step: clamp(32px, 4.1vw, 92px);
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, #1515158c 0 1px, transparent 1px var(--grid-step)),
        repeating-linear-gradient(#1515158c 0 1px, transparent 1px var(--grid-step));
    transform: translate3d(var(--grid-x, 0), var(--grid-y, 0), 0);
    transition: transform .42s cubic-bezier(.2,.8,.25,1);
    pointer-events: none;
}

.labo-grid::after {
    content: "";
    position: absolute;
    inset: 15% 0 auto;
    height: 1px;
    background: #101010a8;
    transform: rotate(-1.3deg);
}

.labo-paper {
    position: absolute;
    z-index: 2;
    min-height: 44px;
    border: 0;
    cursor: grab;
    touch-action: none;
    transform: translate3d(var(--paper-x, 0), var(--paper-y, 0), 0);
}

.labo-paper-translucent {
    top: 17%;
    right: 5%;
    width: 40%;
    height: 10%;
    background: #f7f5d884;
}

.labo-paper-orange {
    bottom: 14%;
    left: 11%;
    width: 28%;
    height: 11%;
    background: #ff5300;
}

.labo-paper[data-dragging] {
    cursor: grabbing;
}

.labo-drawing {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: url("../img/abso_elts/labo-pencil.png") 3 21, crosshair;
    -webkit-touch-callout: none;
}

.labo-drawing-controls:not([hidden]) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 14px;
    margin: .55rem 7% 0 15%;
    font-size: .8rem;
    line-height: 1.4;
}

.labo-drawing-controls button {
    min-height: 44px;
    margin-inline-start: auto;
    border: 0;
    color: inherit;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: .2em;
    white-space: nowrap;
    cursor: pointer;
}

.labo-touch-help {
    display: none;
}

@media (pointer: coarse) {
    .labo-touch-help {
        display: inline;
    }
}

.labo-feature + .labo-feature {
    margin-top: clamp(90px, 14vw, 220px);
}

.labo-feature-lunar {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto;
    align-items: start;
    margin: clamp(115px, 16vw, 260px) 9% 0 8%;
}

.labo-feature-lunar h2 {
    position: relative;
    z-index: 2;
    grid-area: 1 / 6 / 2 / -1;
    margin-top: .6em;
    font-size: clamp(2.85rem, 5.05vw, 6.75rem);
    line-height: 1.05;
    letter-spacing: -.035em;
    text-transform: none;
}

.labo-feature-lunar h2 span {
    position: absolute;
    z-index: -1;
    top: -.36em;
    left: -.34em;
    color: white;
    font-size: 1.35em;
    line-height: 1;
    letter-spacing: -.095em;
}

.labo-lunar-art {
    grid-area: 1 / 1 / 4 / 7;
    position: relative;
    width: 112%;
    aspect-ratio: 1365 / 1354;
    margin: -5% 0 0 -5%;
}

.labo-lunar-art img {
    position: absolute;
    display: block;
    height: auto;
}

.labo-lunar-portrait {
    inset: 0;
    width: 100%;
    filter: drop-shadow(1px 3px 4px #55450065);
}

.labo-lunar-wheel {
    top: 2.51%;
    left: 17.8%;
    width: 55.97%;
    opacity: 0;
    transform: rotate(172deg);
    transition: opacity .36s ease, transform .8s cubic-bezier(.17,.73,.3,1);
}

.labo-feature-lunar > p {
    grid-area: 2 / 8 / 3 / -1;
    margin: clamp(28px, 3.75vw, 66px) 0 0;
    font-size: clamp(1.125rem, 2vw, 2.45rem);
    line-height: 1.55;
    max-width: 30ch;
    text-align: justify;
    hyphens: auto;
}

.labo-feature-links {
    position: relative;
    z-index: 3;
    grid-area: 3 / 4 / 4 / 9;
    justify-self: start;
    display: grid;
    justify-items: end;
    gap: .5rem;
    margin: 0 0 -3.35rem 5%;
}

.labo-feature-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.labo-story {
    color: #101010;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .27em;
}

.labo-story:hover {
    text-decoration: underline;
    text-underline-offset: .25em;
}

.labo-page :is(a, button):focus-visible {
    outline: 2px solid #101010;
    outline-offset: 4px;
}

.labo-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .labo-lunar-art:hover .labo-lunar-wheel {
        opacity: 1;
        transform: rotate(196deg);
    }
}

@media (max-width: 700px) {
    .labo-sheet {
        padding-top: 14px;
    }

    .labo-masthead {
        margin-inline: 7% 0;
    }

    .labo-masthead h1 {
        font-size: clamp(2.8275rem, 10.4vw, 4.42rem);
    }

    .labo-masthead p {
        margin-inline-start: 6%;
    }

    .labo-manifesto {
        margin-inline: 2% 5%;
        font-size: clamp(1.65rem, 5.8vw, 2.45rem);
    }

    .labo-drawing-controls:not([hidden]) {
        margin-inline: 2% 5%;
    }
}

@media (max-width: 1000px) {
    .labo-feature-lunar {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-template-rows: auto auto auto;
        margin: clamp(100px, 21vw, 150px) 2% 0;
    }

    .labo-feature-lunar h2 {
        grid-area: 1 / 3 / 2 / -1;
        margin: 0 0 .1em;
        font-size: clamp(2.7rem, 10vw, 4.5rem);
    }

    .labo-lunar-art {
        grid-area: 2 / 1 / 3 / 8;
        width: 100%;
        margin: 0;
    }

    .labo-feature-lunar > p {
        grid-area: 3 / 2 / 4 / -1;
        margin: 3rem 0 0;
        font-size: clamp(1rem, 3.65vw, 1.5rem);
    }

    .labo-feature-links {
        align-self: end;
        grid-area: 2 / 3 / 3 / -1;
        justify-self: end;
        gap: 0;
        margin: 0 0 -2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .labo-grid,
    .labo-lunar-wheel {
        transition: none;
    }
}

.labo-page {
    position: relative;
    isolation: isolate;
}

.labo-sheet {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.labo-sheet :is(a, button, p span, h2, .labo-letter, .labo-lunar-art, .labo-masthead p) {
    pointer-events: auto;
}

.labo-sheet :is(p span, h2, .labo-masthead p) {
    cursor: text;
}

.labo-lettering {
    display: inline-flex;
}

.labo-letter-slot,
.labo-letter {
    display: inline-block;
}

.labo-letter {
    cursor: pointer;
    transform: translate3d(var(--letter-x, 0), var(--letter-y, 0), 0) rotate(var(--letter-angle, 0deg));
}

.labo-drawing,
.labo-imprints {
    z-index: 0;
}

.labo-imprints {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.labo-imprints > * {
    position: absolute;
    transform: translate(-50%, -50%) rotate(var(--imprint-angle, 0deg));
}

.labo-imprints img {
    height: auto;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 .55px #101010a0);
}

.labo-letter-imprint {
    color: #101010;
    font-family: "Righteous", sans-serif;
    line-height: 1;
}

.labo-feature-lunar {
    margin-inline: 9% 10%;
}

@media (max-width: 700px) {
    .labo-feature-lunar {
        margin-inline: 2%;
    }
}

@media (700px < width <= 1000px) {
    .labo-feature-lunar {
        max-width: 620px;
        margin-inline: auto;
    }

    .labo-feature-lunar > p {
        max-width: 38ch;
        text-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .labo-letter {
        cursor: inherit;
    }
}
