/* Bauhaus Design System: Base Styles */
/* Geometric typography and reset */

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-ui);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: var(--leading-normal);
    overflow-x: hidden;
}

/* === Bauhaus Typography === */
/* Headlines: Massive, uppercase, tight tracking */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-ui);
    font-weight: var(--font-black);
    text-transform: uppercase;
    letter-spacing: var(--tracking-tighter);
    line-height: var(--leading-none);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

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

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

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

h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
}

/* Responsive headline scaling */
@media (min-width: 640px) {
    h1 {
        font-size: var(--text-6xl);
    }

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

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

@media (min-width: 1024px) {
    h1 {
        font-size: var(--text-8xl);
    }

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

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

/* Body text */
p {
    font-family: var(--font-ui);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
    p {
        font-size: var(--text-lg);
    }
}

/* Monospace for data/numbers */
.mono {
    font-family: var(--font-mono);
    font-feature-settings: "tnum" 1, "zero" 1;
    letter-spacing: 0.02em;
}

/* Labels - Small, uppercase, tracked */
.label {
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Large display values */
.value-large {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.value {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.value-small {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--primary-red);
}

/* Selection */
::selection {
    background: var(--primary-yellow);
    color: var(--text-primary);
}