/* =========================================================
   Prezzomania V2 - Base
   Load after Bootstrap and tokens.css
   ========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--pm-bg);
    color: var(--pm-text);
    font-family: var(--pm-font-family);
    font-size: var(--pm-font-size-base);
    line-height: var(--pm-line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
    transition:
        color var(--pm-transition-fast),
        opacity var(--pm-transition-fast);
}

a:hover {
    color: var(--pm-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--pm-focus-ring);
}

::selection {
    background: rgba(var(--pm-primary-rgb), 0.18);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--pm-text);
    font-weight: var(--pm-font-weight-bold);
    line-height: var(--pm-line-height-tight);
}

p:last-child {
    margin-bottom: 0;
}

.pm-text-secondary {
    color: var(--pm-text-secondary);
}

.pm-text-muted {
    color: var(--pm-text-muted);
}

.pm-bg-surface {
    background: var(--pm-surface);
}

.pm-visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Respect reduced motion */
@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;
    }
}
