body::before {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
    content: "";
    background: url("../img/warm-bg.png") center center / 100% 100% no-repeat;
    filter: blur(3px);
    transform: scale(1.04);
    transform-origin: center;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(180deg, rgba(255, 251, 247, 0.38), rgba(255, 250, 246, 0.58)),
        repeating-linear-gradient(0deg, rgba(101, 54, 65, 0.025) 0, rgba(101, 54, 65, 0.025) 1px, transparent 1px, transparent 8px),
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.5), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(255, 214, 219, 0.32), transparent 32%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input {
    font: inherit;
}

[hidden],
.is-hidden {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 9px 12px;
    border-radius: 10px;
    color: #fff;
    background: var(--berry);
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
}

.site-main {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: clamp(28px, 4vw, 42px) 0 54px;
    flex: 1;
}

.site-footer {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 22px 0 32px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.page-home .site-main {
    width: 100%;
    max-width: none;
    padding: 0 0 48px;
}

.page-home .site-footer {
    display: none;
}

.glass-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 243, 0.88)),
        var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-float] {
    transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(var(--lift, 0));
    transform-style: preserve-3d;
    transition: transform 180ms ease, border-color 180ms ease;
}

[data-float]:hover {
    --lift: -2px;
    border-color: var(--line-strong);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    [data-float],
    [data-float]:hover {
        transform: none;
    }
}
