html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

table {
    width: 100%;
}

:focus-visible {
    outline: 3px solid #f2b807;
    outline-offset: 3px;
}

.language-button {
    border-radius: 9999px;
    color: #9ca3af;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.language-button:hover {
    color: #fff;
}

.language-button[aria-pressed="true"] {
    background: #f2b807;
    color: #111;
    font-weight: 700;
}

#login-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
}

#login-drawer *,
#login-drawer *::before,
#login-drawer *::after {
    box-sizing: border-box;
}

#login-drawer > [data-login-close] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 300ms ease;
}

#login-drawer[aria-hidden="true"] > [data-login-close] {
    opacity: 0;
}

#login-drawer [role="dialog"] {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 28rem;
    height: 100%;
    transform: translateX(0);
    transition: transform 300ms ease;
}

#login-drawer[aria-hidden="true"] [role="dialog"] {
    transform: translateX(100%);
}

@keyframes site-rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-enter {
    animation: site-rise-in 650ms cubic-bezier(.2, .75, .25, 1) both;
}

.cms-block {
    animation: site-rise-in 600ms cubic-bezier(.2, .75, .25, 1) both;
}

.cms-block:nth-child(2) { animation-delay: 70ms; }
.cms-block:nth-child(3) { animation-delay: 140ms; }
.cms-block:nth-child(4) { animation-delay: 210ms; }
.cms-block:nth-child(n + 5) { animation-delay: 280ms; }

.cms-block img {
    transition: transform 450ms cubic-bezier(.2, .75, .25, 1);
}

.cms-block figure {
    overflow: hidden;
    border-radius: .75rem;
}

.cms-block figure img:hover {
    transform: scale(1.025);
}

.collection-card,
.site-article,
.category-icon-button {
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.collection-card:hover,
.category-icon-button:hover {
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 4.5rem;
    }

    .site-header .mx-auto {
        padding-inline: .75rem;
    }

    #main-nav {
        gap: .5rem;
        padding: .65rem .75rem;
    }

    #main-nav > div:first-child {
        gap: .35rem;
    }

    #main-nav > div:last-child {
        gap: .15rem;
    }

    #main-nav a,
    #main-nav button {
        min-width: 2.25rem;
        justify-content: center;
    }

    .hero-stage {
        min-height: calc(100svh - 3.5rem);
        align-items: flex-end;
        padding: 5.25rem 0 1.25rem;
    }

    .hero-stage-inner {
        padding-inline: .75rem;
    }

    .hero-image-layer {
        width: 100%;
        opacity: .58;
    }

    .hero-slider-panel {
        width: 100%;
    }

    .hero-slider-panel > .mb-4 {
        flex-wrap: wrap;
        align-items: center;
    }

    .hero-slider-panel > .mb-4 > div:first-child {
        flex: 1 1 auto;
        flex-wrap: wrap;
    }

    .hero-slider-panel .hero-section-button {
        height: 2.5rem;
        width: 2.5rem;
    }

    .hero-content-card {
        height: auto;
        min-height: 330px;
        max-height: none;
        padding: 1.25rem;
    }

    .hero-content-card h1 {
        font-size: 1.35rem;
    }

    .hero-video-frame {
        max-height: 220px;
    }

    #main-nav {
        backdrop-filter: blur(12px);
    }

    #contact-form .grid.grid-cols-2,
    #contact .grid.grid-cols-2 {
        grid-template-columns: 1fr;
    }

    #contact-form .grid.grid-cols-2 input,
    #contact .grid.grid-cols-2 input {
        border-left-width: 0;
        border-bottom: 3px solid #000;
    }

    #contact-form .grid.grid-cols-2 input:last-child,
    #contact .grid.grid-cols-2 input:last-child {
        border-bottom-width: 0;
    }

    .cms-grid {
        gap: .75rem;
    }

    .cms-markdown h1 {
        font-size: 1.5rem;
    }

    .cms-markdown h2 {
        font-size: 1.35rem;
    }

    .cms-markdown table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    form input,
    form textarea,
    form select {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content-card {
        min-height: 300px;
    }

    .hero-slider-panel > .mb-4 {
        gap: .25rem;
    }

    .hero-slider-panel .hero-section-button {
        height: 2.25rem;
        width: 2.25rem;
    }

    #main-nav {
        padding-inline: .5rem;
    }

    #main-nav .language-button {
        min-width: 1.75rem;
        padding-inline: .25rem;
    }
}
