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

html,
body {
    margin: 0;
    padding: 0;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-normal);
    color: var(--color-text-base);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--color-text-strong);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-tight);
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
select,
input {
    font: inherit;
}

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

.uppercase-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-uppercase);
    text-transform: uppercase;
    letter-spacing: var(--letter-uppercase);
}

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

.rich-paragraph {
    margin: 0;
    text-align: justify;
    text-wrap: pretty;
}

.rich-paragraph + .rich-paragraph {
    margin-top: var(--space-2);
}

.rich-paragraph__lead {
    color: var(--color-text-strong);
    font-weight: var(--font-weight-semibold);
}

@media (prefers-reduced-motion: no-preference) {
    html.theme-transition,
    html.theme-transition *,
    html.theme-transition *::before,
    html.theme-transition *::after {
        transition:
            background-color var(--motion-theme) var(--motion-ease),
            border-color var(--motion-theme) var(--motion-ease),
            box-shadow var(--motion-theme) var(--motion-ease) !important;
    }
}
