/* ============================================================
   "Brutalist Paper" Design Tokens (ported from demo-v3, de-branded
   for TaniLaptop). North star: bx.studio — warm paper, thick black
   borders, acid-orange + electric-blue, oversized condensed type,
   mono labels.

   Fonts (Archivo 400/500/700/800/900 + Space Mono 400/700) are
   SELF-HOSTED as woff2 in static/fonts/ (GDPR-clean, zero CSP change,
   Polish glyphs via latin-ext) and declared in brutalist/fonts.css.
   NO @import and NO third-party font CDN request anywhere — base.html
   <link rel="preload">s the latin-ext woff2 directly.
   ============================================================ */

:root {
  /* --- Color — warm paper motif (spec §4) -------------------- */
  --bg:            #EDEAE0;  /* warm paper */
  --surface:       #F4F1E8;  /* lighter paper card */
  --bg-elev:       #F4F1E8;  /* alias used by some components */
  --surface-2:     #E3DFD2;  /* sunken paper */

  /* Ink + text scale */
  --ink:           #0A0A0A;
  --text:          #0A0A0A;            /* alias — components use --text */
  --text-dim:      rgba(10, 10, 10, 0.72);
  --text-faint:    rgba(10, 10, 10, 0.60);  /* WCAG AA on paper: 4.95:1 */

  /* Accents */
  --accent:        #FF4D00;  /* acid orange-red — FILLS/borders/decorative only */
  --accent-strong: #B83A00;  /* darker orange for TEXT on paper (WCAG AA 4.79:1) */
  --accent-hover:  #FF6A22;
  --accent-soft:   rgba(255, 77, 0, 0.10);
  --accent-line:   rgba(255, 77, 0, 0.45);

  --accent-2:      #2347FF;  /* electric blue — links / interactive only */
  --accent-2-soft: rgba(35, 71, 255, 0.08);

  --accent-on:     #0A0A0A;  /* ink text/icon on orange fill (WCAG AA 5.95:1) */

  /* Lines: borders ARE the motif — solid black */
  --line:          #0A0A0A;
  --line-strong:   #0A0A0A;

  /* --- Typography --------------------------------------------- */
  /* Archivo 400/500/800/900 (with expanded feel via wide tracking) +
     Space Mono 400/700 for labels/numerals. Anton optional via font-display-alt. */
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-display-black: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-body:    'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Space Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale — oversized condensed, fluid from mobile → desktop.
     Hero is intentionally HUGE (spec: clamp 3rem → 7rem). */
  --fs-hero:   clamp(3rem, 1.4rem + 13vw, 7rem);     /* 48 → 112 */
  --fs-h1:     clamp(2.5rem, 1.4rem + 7.5vw, 5rem);  /* 40 → 80 */
  --fs-h2:     clamp(1.875rem, 1.2rem + 4vw, 3.25rem); /* 30 → 52 */
  --fs-h3:     clamp(1.375rem, 1.1rem + 2vw, 2rem);  /* 22 → 32 */
  --fs-lead:   clamp(1.125rem, 1rem + 0.8vw, 1.5rem);  /* 18 → 24 */
  --fs-body:   clamp(1rem, 0.96rem + 0.25vw, 1.125rem); /* 16 → 18 */
  --fs-small:  0.875rem;   /* 14 */
  --fs-micro:  0.75rem;    /* 12 */
  --fs-numeral: clamp(2.5rem, 1rem + 6vw, 4.5rem);   /* big mono index numerals */

  --lh-tight:   0.95;
  --lh-snug:    1.05;
  --lh-normal:  1.5;
  --lh-loose:   1.7;

  --tracking-tight:  -0.02em;
  --tracking-tighter: -0.035em;
  --tracking-normal: 0;
  --tracking-wide:  0.06em;
  --tracking-wider: 0.14em;
  --tracking-widest: 0.22em;

  /* --- Spacing scale (4px base rhythm) ------------------------ */
  --space-1: 0.25rem;  /* 4  */
  --space-2: 0.5rem;   /* 8  */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */

  /* Section rhythm */
  --section-pad-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --section-gap: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* --- Layout ------------------------------------------------- */
  --container: 1200px;
  --container-narrow: 820px;
  --container-wide: 1440px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* --- Radius — SHARP CORNERS EVERYWHERE (spec §4) ------------ */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 0;
  --radius: 0;

  /* --- Borders — thick black, the motif ----------------------- */
  --border:        2px solid var(--ink);
  --border-thick:  3px solid var(--ink);
  --border-thin:   1px solid var(--ink);

  /* --- Transitions / easing — SNAPPY (spec: 0.08s hover invert) */
  --t-instant: 0.08s steps(2, jump-none);
  --t-fast: 0.08s ease-out;
  --t: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* expo out */

  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);

  /* --- Elevation / shadow — hard offset (no soft blur) -------- */
  /* Brutalist shadows = solid offset blocks, not blurred glows. */
  --shadow-1: 4px 4px 0 var(--ink);
  --shadow-2: 6px 6px 0 var(--ink);
  --shadow-3: 8px 8px 0 var(--ink);
  --shadow-accent: 4px 4px 0 var(--accent);

  /* --- Z-index scale ------------------------------------------ */
  --z-base: 1;
  --z-nav:  100;
  --z-overlay: 500;
  --z-modal: 1000;
}
