/* ==========================================================================
   NIMAD TECH — DESIGN TOKENS
   Handcrafted, Editorial Engineering Studio Design System
   Zero gradients. Warm, ink-on-paper, precision print aesthetic.
   ========================================================================== */

:root {
  /* Color Palette — Strictly flat, ink-on-paper */
  --paper: #F6F2EA;
  --paper-2: #EDE7DA;
  --paper-3: #E4DDCF;
  --ink: #1B1A17;
  --ink-soft: #2D2A26;
  --muted: #6B665C;
  --muted-light: #8E887D;
  --rule: rgba(27, 26, 23, 0.15);
  --rule-strong: rgba(27, 26, 23, 0.35);
  --rule-dark: rgba(246, 242, 234, 0.15);
  --rule-dark-strong: rgba(246, 242, 234, 0.35);
  --accent: #C8501F; /* Burnt terracotta */
  --accent-hover: #A83E14;
  --accent-soft: rgba(200, 80, 31, 0.09);
  --accent-border: rgba(200, 80, 31, 0.35);

  /* Typography */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', Consolas, Monaco, monospace;

  /* Type Scale */
  --fs-hero: clamp(2.75rem, 5.2vw, 4.35rem);
  --fs-h1: clamp(2.25rem, 4vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.35rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
  --fs-h4: 1.15rem;
  --fs-body-lg: 1.15rem;
  --fs-body: 1.0625rem; /* 17px */
  --fs-body-sm: 0.9375rem; /* 15px */
  --fs-mono-sm: 0.8125rem; /* 13px */
  --fs-mono-xs: 0.75rem;   /* 12px */

  /* Line Heights */
  --lh-tight: 1.08;
  --lh-heading: 1.14;
  --lh-snug: 1.3;
  --lh-body: 1.62;

  /* Spacing Scale (4/8/12/16/24/32/48/64/96/128) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;
  --sp-9: 64px;
  --sp-10: 96px;
  --sp-11: 128px;

  /* Layout Widths */
  --container-max: 1240px;
  --container-narrow: 840px;
  --measure: 66ch;

  /* Radii — Handcrafted, crisp, strictly NO pills */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-base: 0.22s cubic-bezier(0.16, 1, 0.3, 1);

  /* Elevation — Flat editorial, zero heavy blurs */
  --shadow-subtle: 0 1px 3px rgba(27, 26, 23, 0.05);
  --shadow-card: 0 2px 6px rgba(27, 26, 23, 0.08);
}
