/* Retro Web Fonts */
/* ZX Spectrum style font for dark theme, Windows 2.0 style for light theme */

/* Import retro fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Silkscreen:wght@400;700&display=swap');

/* Font Variables */
:root {
    /* ZX Spectrum style - blocky pixel font */
    --font-spectrum: 'Silkscreen', 'Press Start 2P', monospace;
    --font-spectrum-body: 'VT323', monospace;
    
    /* Windows 2.0 style - system font look */
    --font-windows: 'Silkscreen', 'MS Sans Serif', 'Segoe UI', sans-serif;
    --font-windows-body: 'VT323', 'Courier New', monospace;
}

/* Dark theme (ZX Spectrum) fonts */
:root[data-theme="dark"], :root {
    --font-heading: var(--font-spectrum);
    --font-body: var(--font-spectrum-body);
    --font-ui: var(--font-spectrum);
}

/* Light theme (Windows 2.0) fonts */
:root[data-theme="light"] {
    --font-heading: var(--font-windows);
    --font-body: var(--font-windows-body);
    --font-ui: var(--font-windows);
}

/* Base font settings */
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Headings use pixel font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.4;
    letter-spacing: 1px;
}

/* Smaller text for pixel font due to its size */
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.875rem; }
h5, h6 { font-size: 0.75rem; }

/* Code and pre use terminal font */
code, pre, .monospace {
    font-family: var(--font-body);
}

/* Button text */
button, .btn, input[type="submit"], input[type="button"] {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Form inputs use terminal font for readability */
input, textarea, select {
    font-family: var(--font-body);
    font-size: 18px;
}

/* Navigation uses pixel font */
nav, .nav-link, .navbar-brand {
    font-family: var(--font-ui);
    font-size: 0.625rem;
}

/* Labels */
label, .form-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Badges */
.badge {
    font-family: var(--font-ui);
    font-size: 0.5rem;
    letter-spacing: 0.5px;
}

/* Table headers */
.table th {
    font-family: var(--font-ui);
    font-size: 0.7rem;
}
