/* Reset & Base Styles */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-text);
    font-size: var(--step-0);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 700;
    text-wrap: balance;
    margin-bottom: var(--space-s);
}
h1 { font-size: var(--step-5); letter-spacing: -0.03em; }
h2 { font-size: var(--step-4); letter-spacing: -0.02em; }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
p { margin-bottom: var(--space-m); max-width: 65ch; }
a {
    color: var(--color-text-main);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover { color: var(--color-accent-main); }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent-main);
    color: white;
    padding: 8px;
    z-index: 100;
}
.skip-link:focus { top: 0; }

/* Font Face Declarations */
@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chivo';
    src: url('/assets/fonts/Chivo-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
