/**
 * Ender IT Solutions - Design System Variables
 * Light Retro Aesthetic: tactile paper, dark ink, muted terracotta & ochre accents.
 * No gradients, no soft shadows, no neon.
 */

:root {
  /* Surface & Paper Colors */
  --bg-paper: #F3ECE1;
  --bg-paper-light: #FAF6EF;
  --bg-paper-dark: #E5DCCB;
  --bg-card: #FAF6EF;
  --bg-card-alt: #F1E9DB;

  /* Ink & Typography Colors */
  --color-ink: #1F1B16;
  --color-ink-muted: #564F43;
  --color-ink-faint: #897E6E;
  --color-ink-white: #FAF6EF;

  /* Accent Colors (Faded, Muted, Max 2 Accents) */
  --accent-brick: #C8472D;
  --accent-brick-soft: #ECD7D2;
  --accent-ochre: #C07D32;
  --accent-ochre-soft: #EFE3D0;
  --accent-faded-teal: #2F5953;

  /* Structural Borders & Hard Shadows */
  --border-ink: 1.5px solid var(--color-ink);
  --border-ink-thick: 2px solid var(--color-ink);
  --border-ink-faint: 1px dashed #9E9382;
  --border-dashed: 1px dashed #C5BBAA;
  --border-brick: 1.5px solid var(--accent-brick);
  --radius-none: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Hard Solid Offset Shadows (No soft blurs) */
  --shadow-flat-sm: 2px 2px 0 var(--color-ink);
  --shadow-flat-md: 4px 4px 0 var(--color-ink);
  --shadow-flat-lg: 6px 6px 0 var(--color-ink);
  --shadow-flat-brick: 4px 4px 0 var(--accent-brick);
  --shadow-flat-ochre: 4px 4px 0 var(--accent-ochre);

  /* Typography Stack */
  --font-serif-display: 'Fraunces', 'DM Serif Display', Georgia, serif;
  --font-sans-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono-meta: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;
  --font-accent-script: 'Instrument Serif', Georgia, serif;

  /* Fluid Font Sizing (clamp) */
  --text-hero: clamp(2.5rem, 5.5vw + 1rem, 5.25rem);
  --text-h1: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
  --text-h2: clamp(1.5rem, 2.2vw + 0.4rem, 2.25rem);
  --text-h3: clamp(1.2rem, 1.2vw + 0.3rem, 1.5rem);
  --text-body: clamp(0.975rem, 0.35vw + 0.875rem, 1.1rem);
  --text-subhead: clamp(1.1rem, 0.8vw + 0.8rem, 1.35rem);
  --text-meta: clamp(0.8rem, 0.25vw + 0.72rem, 0.875rem);
  --text-stamp: 0.72rem;

  /* Layout Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;

  --container-width: 1220px;
  --container-gutter: clamp(1rem, 3vw, 2.5rem);

  /* Timing & Motion */
  --ease-retro: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.2, 0, 0, 1);
  --trans-fast: 160ms var(--ease-retro);
  --trans-medium: 300ms var(--ease-retro);
  --trans-slow: 550ms var(--ease-retro);
}

/* ==========================================================================
   Dark Mode Theme System
   Tactile Nocturnal Slate / Deep Warm Charcoal with High-Contrast Ink
   ========================================================================== */
[data-theme="dark"] {
  /* Surface & Paper Colors */
  --bg-paper: #12110F;
  --bg-paper-light: #1A1916;
  --bg-paper-dark: #0A0908;
  --bg-card: #181714;
  --bg-card-alt: #201E1A;

  /* Ink & Typography Colors */
  --color-ink: #EDE5D8;
  --color-ink-muted: #A39B8E;
  --color-ink-faint: #736C61;
  --color-ink-white: #12110F;

  /* Accent Colors */
  --accent-brick: #E26853;
  --accent-brick-soft: #381E19;
  --accent-ochre: #E5A44E;
  --accent-ochre-soft: #3A2B18;
  --accent-faded-teal: #499E91;

  /* Structural Borders & Shadows */
  --border-ink: 1.5px solid #38342D;
  --border-ink-thick: 2px solid #4F493F;
  --border-ink-faint: 1px dashed #3A352C;
  --border-brick: 1.5px solid var(--accent-brick);
  --border-dashed: 1px dashed #3D372F;

  --shadow-flat-sm: 2px 2px 0 #000000;
  --shadow-flat-md: 4px 4px 0 #000000;
  --shadow-flat-lg: 6px 6px 0 #000000;
  --shadow-flat-brick: 4px 4px 0 var(--accent-brick);
  --shadow-flat-ochre: 4px 4px 0 var(--accent-ochre);
}
