/* ═══════════════════════════════════════════════════════════════
   BASE — Ink & Ember v2 (de-slop pass)
   One typeface: Archivo variable (width axis carries the voice).
   Numbers are tabular. No mono-caps labels. 2px radius system.
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Surfaces */
    --bg:        #060608;
    --ink-2:     #0d0d12;
    --ink-3:     #14141a;

    /* Type */
    --text:      #eceae5;
    --text-2:    #a9a9b2;
    --text-3:    #8b8b95;

    /* Accent */
    --ember:      #ff4d00;
    --ember-soft: #ff7a3d;
    --steel:      #8b9bb4;

    /* Lines */
    --border:        rgba(236, 234, 229, 0.10);
    --border-strong: rgba(236, 234, 229, 0.24);

    /* One family, two voices via the width axis */
    --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

    /* Rhythm */
    --nav-h: 64px;
    --radius: 2px;
    --radius-media: 6px;
    --pad-x: clamp(20px, 4.5vw, 56px);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

section[id] { scroll-margin-top: var(--nav-h); }

a, button, input, textarea, label {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul, ol { list-style: none; }

::selection {
    background: var(--ember);
    color: #060608;
}

:focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 3px;
}

/* ── Type voices ───────────────────────────────────────────── */

h1, h2, h3 {
    font-weight: 640;
    font-stretch: 112%;
    line-height: 1.04;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

/* Small metadata line: sentence case, quiet, no tracking games */
.meta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.01em;
}

.meta a { border-bottom: 1px solid var(--border-strong); }
.meta a:hover { color: var(--ember); border-color: var(--ember); }

/* ── Grid ──────────────────────────────────────────────────── */

.wrap {
    max-width: 1360px;
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 36px);
}

/* ── Atmosphere canvas + fallback ──────────────────────────── */

#atmosphere {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

html.no-webgl #atmosphere { display: none; }
html.no-webgl body {
    background:
        radial-gradient(110% 80% at 80% -20%, rgba(139, 155, 180, 0.08), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}

main, .navbar, .footer { position: relative; z-index: 1; }

/* ── Skip link ─────────────────────────────────────────────── */

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.7rem 1.1rem;
    background: var(--ember);
    color: #060608;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: top 0.2s ease;
}

.skip-link:focus { top: 1rem; }

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

/* ── Reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    
}
