/* Base styles - Reset, typography, and common elements */

/* Universal reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root font size */
html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

/* Body defaults */
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.65;
    padding: var(--space-lg) var(--space-md);
    position: relative;
}

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Container */
.container {
    margin: 0 auto;
    position: relative;
}

/* Base typography */
h1, h2 {
    font-family: var(--font-heading);
    font-weight: bold;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

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

a:hover {
    color: var(--chart-orange);
}

/* Footer */
footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        padding: 0;
    }

    body::before {
        display: none;
    }

    a {
        color: black;
    }
}
