/* Explain: Base styles, resets, and global typography for the website. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.03rem;
    line-height: 1.95;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.01em;
}

h1 {
    font-weight: 700;
}

strong,
b {
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
a,
select,
summary {
    cursor: pointer;
}

::selection {
    background: var(--ink-soft);
    color: #FFFFFF;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.latin {
    font-family: var(--font-latin);
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: 90ms;
}

.reveal-delay-2 {
    transition-delay: 180ms;
}

.reveal-delay-3 {
    transition-delay: 270ms;
}

body.is-locked {
    overflow: hidden;
}

.prose-ar h2 {
    margin-top: 2.2rem;
    margin-bottom: 0.9rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.prose-ar p {
    margin-bottom: 1.1rem;
    color: var(--text-muted);
    font-size: 1.06rem;
    line-height: 2.1;
}

.prose-ar ul {
    margin: 0 0 1.4rem;
    padding-inline-start: 1.15rem;
    list-style: disc;
    color: var(--text-muted);
    line-height: 2.1;
}

.prose-ar li {
    margin-bottom: 0.45rem;
}

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

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}