/* Public page shell: mosaic backdrop, floating surface, and motion fallbacks. */
:root {
    --pattern-color: #738798;
    --surface-shadow: 0 18px 48px rgb(34 27 34 / 12%), 0 3px 10px rgb(34 27 34 / 5%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --pattern-color: #91a6b8;
        --surface-shadow: 0 22px 58px rgb(0 0 0 / 36%), 0 4px 14px rgb(0 0 0 / 22%);
    }
}

body {
    padding: 32px 0 56px;
    isolation: isolate;
}

.site-pattern {
    position: fixed;
    inset: -48px;
    z-index: -1;
    pointer-events: none;
    background: var(--pattern-color);
    opacity: .09504;
    -webkit-mask: url('/static/mosaic.svg?v=44') repeat 0 0 / 202.4px auto;
    mask: url('/static/mosaic.svg?v=44') repeat 0 0 / 202.4px auto;
    -webkit-mask-position: 48px 48px;
    mask-position: 48px 48px;
    transform: translate3d(0, calc(var(--pattern-drift, 0px) * -1), 0);
    will-change: transform;
}

.site-surface {
    width: min(860px, calc(100% - 64px));
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--surface-shadow);
    transform: translateY(var(--surface-drift, 0px));
    will-change: transform;
}

@media (max-width: 600px) {
    body {
        padding: 20px 0 36px;
    }
    .site-surface {
        width: calc(100% - 24px);
    }
    .site-surface .top-nav {
        padding-inline: 1rem;
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-pattern,
    .site-surface {
        transform: none;
        will-change: auto;
    }
}

@media print {
    body {
        padding: 0;
    }
    .site-pattern {
        display: none;
    }
    .site-surface {
        width: 100%;
        border: 0;
        box-shadow: none;
        transform: none;
        will-change: auto;
    }
}
