/* ============================================
   Modern Reset
   - low-specificity (prefer :where)
   - a11y-friendly focus
   - respects prefers-reduced-motion
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

html {
    font-size: 62.5%;
}

body {
    font-family: var(--font-family__primary);
    font-size: var(--font-size__base);
    line-height: var(--lh-140);
    font-weight: var(--font-weight__regular);
    min-height: 100vh;
    margin: 0;
}

.body--lock {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight__regular);
    line-height: var(--lh-120);
}

h1 {
    font-size: var(--font-size__h1);
}

h2 {
    font-size: var(--font-size__h2);
}

h3 {
    font-size: var(--font-size__h3);
}

dt {
    font-size: var(--font-size__base);
}

:where(img, picture, video, canvas, svg) {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    color: var(--color__unipap-red-01);
    outline: 2px solid var(--color__unipap-red-01);
    background-color: var(--color__white);
}

button:focus-visible {
    outline: 2px solid var(--color__unipap-red-01);
}

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

:where(ul, ol) {
    list-style: none;
    margin: 0;
    padding: 0;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

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

:where(h1, h2, h3, h4, h5, h6, p) {
    overflow-wrap: anywhere;
}

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