/**
 * Self-hosted font faces. Drop the corresponding .woff2 files into
 * /public/assets/fonts and these activate automatically — until then the
 * system-ui fallback stack (already premium-looking on every OS) is used,
 * so the site never depends on a third-party font CDN request.
 */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-variable.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sora';
    src: url('/assets/fonts/sora-variable.woff2') format('woff2-variations');
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    transition: background-color var(--duration-base) var(--ease-standard),
                color var(--duration-base) var(--ease-standard);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (min-width: 768px) {
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
}

p {
    color: var(--color-text-secondary);
}

small, .text-sm {
    font-size: var(--text-sm);
}

.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.text-muted { color: var(--color-text-muted); }

a {
    transition: color var(--duration-fast) var(--ease-standard);
}

::selection {
    background-color: var(--color-primary-200);
    color: var(--color-primary-900);
}

:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: 1000;
    background: var(--color-primary);
    color: var(--color-on-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
    top: var(--space-4);
}
