/**
 * Design Tokens & Variables — Tactile Studio Design System
 * Theme Name: Diether Macedo — UX Designer & Design Technologist
 * Theme URI: https://diethermacedo.com.mx
 * Author: Diether Macedo
 * Author URI: https://diethermacedo.com.mx
 * Description: High-end editorial one-page portfolio engineered for intuitive digital experiences, design systems, and product localization.
 * Version: 1.0.1
 * License: Proprietary / All Rights Reserved
 * License URI: https://diethermacedo.com.mx
 * Copyright: (c) 2026 Diether Macedo. All rights reserved.
 * Text Domain: diethermacedo
 */

:root {
  /* ==========================================================================
     1. Color System (Warm Ivory Canvas, Pure White Blocks & High-Contrast Ink)
     ========================================================================== */
  /* Canvas & Surfaces */
  --color-bg-primary: #f6f5f0;          /* Warm ivory / soft off-white canvas */
  --color-bg-secondary: #eae8e0;        /* Secondary warm surface with distinct separation */
  --color-bg-surface: #ffffff;          /* Pure white for project blocks */
  --color-bg-surface-hover: #fcfcfa;
  --color-bg-dark: #121211;             /* Deep charcoal contrast surface */
  --color-bg-dark-elevated: #222220;
  --color-bg-glass: rgba(255, 255, 255, 0.9);

  /* Borders & Hairlines */
  --color-border-subtle: rgba(17, 17, 17, 0.1);
  --color-border-default: rgba(17, 17, 17, 0.16);
  --color-border-strong: rgba(17, 17, 17, 0.3);
  --color-border-dark: rgba(255, 255, 255, 0.16);

  /* Typography & Ink — High-Contrast WCAG AA/AAA Compliant Slate & Charcoal */
  --color-text-primary: #0f1012;        /* Deep carbon ink (>18:1 contrast on white) */
  --color-text-secondary: #2e3238;      /* Rich dark slate charcoal (>11:1 AAA contrast on white & ivory) */
  --color-text-muted: #484d56;          /* Medium-dark slate (>7.5:1 AAA contrast — zero washed-out greys) */
  --color-text-inverse: #ffffff;
  --color-text-inverse-secondary: #e2e4e8; /* Crisp light slate on dark surfaces (>13:1 contrast) */

  /* Tactile Accents */
  --accent-warm: #fef08a;               /* Soft warm highlight */
  --accent-warm-strong: #facc15;
  --accent-orange: #ff5c28;             /* Vibrant tactile orange */
  --accent-orange-soft: #ffedd5;
  --accent-blue: #1d3fe0;               /* High-precision ultramarine blue */
  --accent-blue-soft: #e0e7ff;
  --accent-mint: #0d9f6e;               /* Live signal mint */
  --accent-mint-soft: #d1fae5;

  /* ==========================================================================
     2. Typography System (Outfit Display + Plus Jakarta Sans UI/Body + JetBrains Mono)
     ========================================================================== */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Minimum Legible Scale (Strict >= 13.6px / 0.85rem floor) */
  --fs-xs: 0.85rem;     /* 13.6px — Minimum allowed size for badges, footnotes & metadata */
  --fs-sm: 0.9375rem;   /* 15px   — Secondary UI copy, compact descriptions & pills */
  --fs-base: 1.0625rem; /* 17px   — Primary reading body copy (16px-18px editorial range) */
  --fs-md: 1.1875rem;   /* 19px   — Lead subcopy & highlighted card titles */
  --fs-lg: 1.3125rem;   /* 21px   — Editorial leads & feature titles */
  --fs-xl: 1.55rem;     /* 24.8px — Card headings */
  --fs-2xl: 2rem;       /* 32px   — Drawer & modal titles */
  --fs-3xl: 2.75rem;    /* 44px   — Section headers */
  --fs-4xl: 3.75rem;    /* 60px   — Large display */
  --fs-display: clamp(2.85rem, 6.2vw, 5.25rem);

  /* ==========================================================================
     3. Spacing, Radii & Soft Shadows
     ========================================================================== */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5.5rem;   /* 88px */
  --space-24: 7rem;     /* 112px */

  /* Block Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Diffused Ambient Shadows */
  --shadow-block: 0 10px 30px rgba(0, 0, 0, 0.045), 0 2px 6px rgba(0, 0, 0, 0.025);
  --shadow-block-hover: 0 20px 44px rgba(0, 0, 0, 0.085), 0 4px 12px rgba(0, 0, 0, 0.035);
  --shadow-pill: 0 6px 20px rgba(17, 17, 17, 0.065);
  --shadow-floating-nav: 0 12px 32px rgba(17, 17, 17, 0.075), 0 1px 3px rgba(17, 17, 17, 0.045);

  /* Layout */
  --container-max: 1280px;
  --container-padding: clamp(1.25rem, 4vw, 2.5rem);

  /* Spring & Smooth Physics */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-spring: 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-index Layers */
  --z-base: 1;
  --z-elevated: 10;
  --z-sticky: 100;
  --z-drawer: 950;
  --z-modal: 1000;
  --z-cursor: 9999;
}
