/* Explain: Applies base reset, typography, and background styling. */
* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--surface-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

a {
    color: var(--secondary-color);
}

p {
    margin: 0;
}

img {
    max-width: 100%;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--secondary-color);
    color: var(--surface-color);
}

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

summary::-webkit-details-marker {
    display: none;
}

summary {
    list-style: none;
}