:root {
    --site-primary: #cd4735;
    --site-primary-dark: #ab3729;
    --site-border: #e7e5e4;
}

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    text-rendering: optimizeLegibility;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

img,
video,
iframe {
    display: block;
    height: auto;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--site-primary);
    outline-offset: 2px;
}

.prose {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.prose img,
.prose iframe,
.prose video {
    max-width: 100% !important;
    height: auto;
}

.prose table,
.prose pre {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.mobile-menu-scroll {
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.footer-social-link {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    color: #d6d3d1;
    background: #292524;
    border: 1px solid #44403c;
    border-radius: 0.625rem;
    font-size: 1rem;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: #ffffff;
    background: var(--site-primary);
    border-color: var(--site-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.footer-payment-label {
    margin-right: 0.25rem;
    color: #a8a29e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-payment-icon,
.footer-payment-text {
    display: inline-flex;
    min-width: 2.75rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.55rem;
    color: #e7e5e4;
    background: #292524;
    border: 1px solid #44403c;
    border-radius: 0.375rem;
}

.footer-payment-icon {
    font-size: 1.4rem;
}

.footer-payment-text {
    color: #d6d3d1;
    font-size: 0.68rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    nav .max-w-7xl {
        padding-inline: 0.75rem;
    }

    nav .flex.items-center.justify-between {
        min-height: 4rem;
    }

    nav .text-lg {
        font-size: 1rem;
    }

    nav a,
    nav button,
    #mobile-menu a,
    #mobile-menu button {
        min-height: 44px;
    }

    #mobile-menu-btn {
        display: inline-flex !important;
        min-width: 44px;
        align-items: center;
        justify-content: center;
    }

    iframe[src*="tawk.to"] {
        right: 0.75rem !important;
        bottom: 4.5rem !important;
    }
}

@media (max-width: 380px) {
    nav .fa-paw {
        display: none;
    }

    nav .flex.items-center.justify-end {
        gap: 0;
    }
}

@media (max-width: 640px) {
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-payments {
        justify-content: flex-start;
    }
}

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