@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/manrope/Manrope-Variable.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter/Inter-Variable.woff2") format("woff2");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

:where([id]) {
    scroll-margin-top: var(--anchor-scroll-offset);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-canvas);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    line-height: var(--line-body);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-24);
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    line-height: var(--line-heading);
    letter-spacing: var(--tracking-heading);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4, h5, h6 { font-size: var(--text-lead); }

p {
    margin: 0 0 var(--space-24);
}

.lead {
    color: var(--color-text-secondary);
    font-size: var(--text-lead);
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

:focus-visible {
    outline: var(--focus-width) solid var(--color-accent);
    outline-offset: var(--space-4);
}

::selection {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
