*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--oz-color-canvas);
    font-family: var(--oz-font-sans);
    color: var(--oz-color-text);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--oz-color-canvas);
    font-size: 14px;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
summary,
select {
    cursor: pointer;
}

button:disabled,
select:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
}

a {
    color: var(--oz-color-primary);
    text-underline-offset: 3px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

h2 {
    margin-bottom: var(--oz-space-2);
    font-size: clamp(1.25rem, 1.6vw, 1.55rem);
}

h3 {
    margin-bottom: var(--oz-space-2);
    font-size: 1rem;
}

:focus-visible {
    outline: 3px solid var(--oz-color-focus);
    outline-offset: 3px;
}

::selection {
    background: var(--oz-color-primary-soft);
    color: var(--oz-color-text);
}

[hidden] {
    display: none !important;
}

.sr-only {
    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;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: var(--oz-space-3);
    left: var(--oz-space-3);
    padding: var(--oz-space-2) var(--oz-space-4);
    border-radius: var(--oz-radius-sm);
    background: var(--oz-color-text);
    color: #fff;
    transform: translateY(-180%);
    transition: transform var(--oz-transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    :focus-visible {
        outline-color: Highlight;
    }
}
