/* ═══════════════════════════════════════════════════════════
   BASE — design tokens, reset, typography, utilities
   ═══════════════════════════════════════════════════════════ */

/* ═══════ FONTS ═══════
   Self-hosted rather than pulled from fonts.googleapis.com: no third-party
   round-trip before the first paint, and no visitor IP handed to Google
   without consent. The files are copied out of node_modules at build time —
   see the passthrough mapping in eleventy.config.js.

   Both are variable fonts, so one file per family serves every weight. No
   unicode-range is declared: with a single file per family there is nothing
   to choose between, and glyphs the subset lacks still fall back per-glyph.
   Italics are synthesized, exactly as they were with the Google Fonts
   request, which never asked for an italic axis either. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-variable.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono-variable.woff2') format('woff2');
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: #16162a;
    --bg-card-hover: #1e1e3a;
    --accent-teal: #3abdb0;
    --accent-teal-light: #5cd6ca;
    --accent-orange: #e8623a;
    --accent-orange-light: #f07a56;
    --accent-green: #00b894;
    --accent-amber: #fdcb6e;
    --accent-violet: #a29bfe;
    --text-primary: #f0f0f8;
    --text-secondary: #a0a0c0;
    --text-muted: #6c6c8a;
    --text-light: #dde0ed;
    --border-subtle: rgba(58, 189, 176, 0.15);
    --border-active: rgba(58, 189, 176, 0.4);
    --border-line: rgba(255, 255, 255, 0.09);
    --border-line-strong: rgba(255, 255, 255, 0.16);
    --glass: rgba(22, 22, 42, 0.7);
    --teal-dim: rgba(58, 189, 176, 0.12);
    --orange-dim: rgba(232, 98, 58, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 0 60px rgba(58, 189, 176, 0.12);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --maxw: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-teal) var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-teal); border-radius: 3px; }
::selection { background: var(--accent-teal); color: #04121a; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }

.hl { color: var(--text-primary); font-weight: 600; }
.hl-t { color: var(--accent-teal-light); font-weight: 600; }
.hl-o { color: var(--accent-orange-light); font-weight: 600; }
.mono { font-family: var(--font-mono); }

/* Skip link — first focusable element on every page */
.skip-link {
    position: absolute; left: 12px; top: -100px; z-index: 10001;
    background: var(--accent-teal); color: #04121a; font-weight: 700;
    padding: 12px 20px; border-radius: var(--radius-sm); transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-teal-light); outline-offset: 3px; border-radius: 4px; }

.note { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-top: 14px; }
.note.center { text-align: center; }
.center { text-align: center; }
.mt-lg { margin-top: 36px; } .mt-md { margin-top: 24px; }
p.body { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
