*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    overflow-x: clip;
    scroll-behavior: smooth;
    background: var(--hd-white);
}

body.hd-site-body {
    min-width: 20rem;
    min-height: 100%;
    margin: 0;
    overflow-x: clip;
    background: var(--hd-white);
}

body.hd-site-body > main.main-content-area {
    position: relative;
    z-index: 1;
    min-height: 65svh;
    background: var(--hd-white);
}

body.hd-site-body:not(.hd-page-home) > main.main-content-area {
    padding-top: 0;
}

.hd-shell,
body.hd-site-body:not(.hd-page-home) > main.main-content-area > :where(section, article, div).hd-page-shell {
    width: min(100%, var(--hd-page-max));
    margin-inline: auto;
    padding-inline: var(--hd-gutter);
}

.hd-content-shell {
    width: min(100%, var(--hd-content-max));
    margin-inline: auto;
    padding-inline: var(--hd-gutter);
}

.hd-reading-shell {
    width: min(100%, var(--hd-reading-max));
    margin-inline: auto;
}

body.hd-site-body :where(img, video, svg) {
    display: block;
    max-width: 100%;
}

body.hd-site-body :where(button, input, select, textarea) {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.hd-visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
}

body.mobile-menu-open,
body.cart-open,
body.hd-overlay-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
