/* ==========================================================================
   DESIGN TOKENS — Rumit Walia Portfolio
   Complete CSS Custom Properties System
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Color System ────────────────────────────────────────────────────── */

  /* Primary palette */
  --color-navy: #1a1f3a;
  --color-navy-light: #2a3055;
  --color-navy-dark: #0f1225;
  --color-offwhite: #ffffff;
  /* Clean white primary canvas */
  --color-offwhite-dark: #f8f7f4;
  --color-white: #ffffff;

  /* Accent colors */
  --color-plum: #7d4e7f;
  --color-plum-light: #9a6b9c;
  --color-plum-dark: #5e3960;
  --color-teal: #2a9d8f;
  --color-teal-light: #4db8ab;
  --color-teal-dark: #1f756a;
  --color-coral: #e76f51;
  --color-coral-light: #f09478;
  --color-coral-dark: #c4543a;

  /* Neutral palette */
  --color-gray: #6b6b66;
  --color-gray-light: #9e9e98;
  --color-gray-lighter: #e5e5e0;
  --color-gray-lightest: #f4f4f0;
  --color-gray-dark: #4a4a46;

  /* Work-area colors */
  --color-environment: #2d6a4f;
  --color-environment-bg: rgba(45, 106, 79, 0.1);
  --color-peace: #457b9d;
  --color-peace-bg: rgba(69, 123, 157, 0.1);
  --color-arts: #a4161a;
  --color-arts-bg: rgba(164, 22, 26, 0.1);
  --color-space: #f4a261;
  --color-space-bg: rgba(244, 162, 97, 0.1);
  --color-people: #1d3557;
  --color-people-bg: rgba(29, 53, 87, 0.1);

  /* Semantic colors */
  --color-success: #2d6a4f;
  --color-warning: #f4a261;
  --color-error: #a4161a;
  --color-info: #457b9d;

  /* Surfaces */
  --color-bg: #ffffff;
  --color-bg-alt: var(--color-offwhite-dark);
  --color-bg-card: #ffffff;
  --color-bg-overlay: rgba(26, 31, 58, 0.6);
  --color-text: var(--color-navy);
  --color-text-secondary: var(--color-gray);
  --color-text-tertiary: var(--color-gray-light);
  --color-border: var(--color-gray-lighter);
  --color-border-light: #eeeeeb;

  /* ── Typography ──────────────────────────────────────────────────────── */

  /* Font families */
  --font-display: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font sizes — 8-step type scale */
  --fs-display-xl: clamp(2.5rem, 6vw, 4.5rem);
  --fs-display: clamp(2rem, 5vw, 3.5rem);
  --fs-h1: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h2: clamp(1.35rem, 3vw, 1.85rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.35rem);
  --fs-body: 1rem;
  /* 16px */
  --fs-small: 0.875rem;
  /* 14px */
  --fs-label: 0.75rem;
  /* 12px */

  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line heights */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.72;

  /* Letter spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.02em;
  --ls-wider: 0.05em;
  --ls-widest: 0.12em;

  /* ── Spacing System ───────────────────────────────────────────────────── */

  --spacing-xs: 0.25rem;
  /* 4px */
  --spacing-sm: 0.5rem;
  /* 8px */
  --spacing-md: 1rem;
  /* 16px */
  --spacing-lg: 1.5rem;
  /* 24px */
  --spacing-xl: 2rem;
  /* 32px */
  --spacing-2xl: 3rem;
  /* 48px */
  --spacing-3xl: 4rem;
  /* 64px */
  --spacing-4xl: 6rem;
  /* 96px */

  /* ── Border Radius ───────────────────────────────────────────────────── */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows ─────────────────────────────────────────────────────────── */

  --shadow-xs: 0 1px 3px rgba(26, 31, 58, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 31, 58, 0.06);
  --shadow-md: 0 6px 16px rgba(26, 31, 58, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 31, 58, 0.10);
  --shadow-xl: 0 20px 50px rgba(26, 31, 58, 0.14);
  --shadow-inner: inset 0 2px 4px rgba(26, 31, 58, 0.05);
  --shadow-glow: 0 0 20px rgba(125, 78, 127, 0.2);

  /* ── Animation ───────────────────────────────────────────────────────── */

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  --duration-slowest: 800ms;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* ── Z-index Scale ───────────────────────────────────────────────────── */

  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-overlay: 40;
  --z-modal: 50;
  --z-toast: 60;
  --z-tooltip: 70;

  /* ── Layout ──────────────────────────────────────────────────────────── */

  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --header-height: 72px;

  /* ── Component Defaults ──────────────────────────────────────────────── */

  --btn-height: 44px;
  --btn-height-sm: 36px;
  --btn-height-lg: 52px;
  --input-height: 44px;
  --card-radius: var(--radius-lg);
  --card-padding: var(--spacing-lg);
  --card-shadow: var(--shadow-sm);
}

/* ── Dark Mode ─────────────────────────────────────────────────────────── */

[data-theme="dark"] {
  --color-bg: #0f1225;
  --color-bg-alt: #1a1f3a;
  --color-bg-card: #1e2340;
  --color-bg-overlay: rgba(0, 0, 0, 0.7);
  --color-text: #e8e8e4;
  --color-text-secondary: #a0a0a0;
  --color-text-tertiary: #707070;
  --color-border: #2a3055;
  --color-border-light: #1e2340;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ── Utility Classes ───────────────────────────────────────────────────── */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-navy {
  color: var(--color-navy);
}

.text-plum {
  color: var(--color-plum);
}

.text-teal {
  color: var(--color-teal);
}

.text-coral {
  color: var(--color-coral);
}

.text-gray {
  color: var(--color-gray);
}

.text-white {
  color: var(--color-white);
}

.bg-navy {
  background-color: var(--color-navy);
}

.bg-plum {
  background-color: var(--color-plum);
}

.bg-teal {
  background-color: var(--color-teal);
}

.bg-offwhite {
  background-color: var(--color-offwhite);
}

.bg-white {
  background-color: var(--color-white);
}

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
}

.fw-light {
  font-weight: var(--fw-light);
}

.fw-regular {
  font-weight: var(--fw-regular);
}

.fw-medium {
  font-weight: var(--fw-medium);
}

.fw-semibold {
  font-weight: var(--fw-semibold);
}

.fw-bold {
  font-weight: var(--fw-bold);
}

.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;
}

/* ── Print Styles ──────────────────────────────────────────────────────── */

@media print {
  :root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
  }
}