/* Explain: Base reset and typography defaults. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    color: var(--text-color);
    background-color: var(--background-color);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}

::selection {
    color: var(--white-color);
    background: var(--primary-color);
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

p {
    text-wrap: pretty;
}

[id] {
    scroll-margin-top: 7rem;
}

:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 4px;
    border-radius: 2px;
}

.pw-theme {
    color: var(--text-color);
    background-color: var(--orange-soft);
}

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

.prose-editorial p {
    margin-bottom: 1.15rem;
    line-height: 1.85;
}

.prose-editorial h2,
.prose-editorial h3 {
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
}

.prose-editorial ul {
    margin-bottom: 1.15rem;
    padding-left: 1.35rem;
    list-style: disc;
}

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

.clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}