/* --- box model reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- document --- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-reg);
    font-weight: var(--weight-normal);
    line-height: var(--leading-body);
    color: var(--text-base);
    background-color: var(--bg-base);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-light);
    line-height: var(--leading-display);
    color: var(--text-base);
    max-width: var(--max-char-wide);
}

h1 {
    font-size: var(--text-3xl);
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--para-margin-bottom);
}

p:last-of-type {
    margin-bottom: 0;
}

strong {
    font-weight: var(--weight-medium);
}

/* --- Links --- */
a {
    color: inherit;
    text-decoration: none;
}

/* --- Media --- */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

svg {
    fill: currentColor;
}

/* --- Img --- */
img {
    height: auto;
}

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

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

/* --- Lists --- */
ul,
ol {
    list-style: none;
}

/* --- Misc --- */
hr {
    border: none;
    border-top: 1px solid var(--border-surface);
}

/* Focus ring — accessible, non-intrusive */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}