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

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 92px;
}

body {
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

::selection {
    background: rgba(193, 18, 31, 0.18);
    color: var(--primary-color);
}

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

button,
a,
summary {
    cursor: pointer;
}

.input,
.select,
.textarea {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: #ffffff;
    color: var(--text-color);
    min-height: 3rem;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: 2px solid rgba(193, 18, 31, 0.22);
    border-color: var(--accent-color);
}

.textarea::placeholder {
    color: #9AA0A6;
}