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

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

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
}

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

h1 {
    font-weight: 800;
    letter-spacing: -0.035em;
}

h2 {
    letter-spacing: -0.03em;
}

h3, h4 {
    letter-spacing: -0.018em;
}

p {
    text-wrap: pretty;
}

[x-cloak] {
    display: none !important;
}

[hidden] {
    display: none !important;
}

input, textarea, select, button {
    font-family: inherit;
}

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

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

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

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