*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--color-bg);
    background-image: var(--gradient-glow);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin: 0 0 var(--space-4);
    color: var(--color-text-muted);
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

small {
    color: var(--color-text-faint);
}

.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-5) 0;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-muted {
    color: var(--color-text-muted);
}

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