/* Design-system tokens — standalone bundle for the static CV page. */
/* ============================================================
   COLORS — Damien Chirez Portfolio Design System
   Two accents: Orange (primary, energy) + Violet (secondary, depth)
   Warm-neutral "ink" scale. Light + dark themes.
   ============================================================ */

:root {
  /* --- Brand: Orange (primary accent) --- */
  --orange-50:  #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c; /* core */
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;

  /* --- Brand: Violet (secondary accent) --- */
  --violet-50:  #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed; /* core */
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --violet-900: #4c1d95;

  /* --- Neutral: Ink (zinc) --- */
  --ink-0:   #ffffff;
  --ink-50:  #fafafa;
  --ink-100: #f4f4f5;
  --ink-200: #e4e4e7;
  --ink-300: #d4d4d8;
  --ink-400: #a1a1aa;
  --ink-500: #71717a;
  --ink-600: #52525b;
  --ink-700: #3f3f46;
  --ink-800: #27272a;
  --ink-900: #18181b;
  --ink-950: #09090b;

  /* --- Signal --- */
  --green-500: #16a34a;
  --green-400: #22c55e;
  --red-500:   #dc2626;
  --amber-500: #f59e0b;

  /* === Semantic aliases — LIGHT (default) === */
  --accent:           var(--orange-600);
  --accent-hover:     var(--orange-700);
  --accent-soft:      var(--orange-50);
  --accent-on:        #ffffff;
  --accent-2:         var(--violet-600);
  --accent-2-hover:   var(--violet-700);
  --accent-2-soft:    var(--violet-50);

  /* brand gradient: orange -> violet */
  --brand-gradient: linear-gradient(110deg, var(--orange-600) 0%, var(--violet-600) 100%);
  --brand-gradient-soft: linear-gradient(110deg, var(--orange-500) 0%, var(--violet-500) 100%);

  --bg-page:        var(--ink-50);
  --bg-page-alt:    var(--ink-100);
  --surface-card:   var(--ink-0);
  --surface-raised: var(--ink-0);
  --surface-sunken: var(--ink-100);

  --text-strong:  var(--ink-900);
  --text-body:    var(--ink-700);
  --text-muted:   var(--ink-500);
  --text-faint:   var(--ink-400);
  --text-on-accent: #ffffff;

  --border:        var(--ink-200);
  --border-strong: var(--ink-300);
  --border-accent: var(--orange-300);

  --status-online: var(--green-500);

  /* Selection */
  --selection-bg: var(--orange-200);
}

/* === DARK theme === */
.dark, :root.dark, [data-theme="dark"] {
  --accent:         var(--orange-500);
  --accent-hover:   var(--orange-400);
  --accent-soft:    rgba(234, 88, 12, 0.14);
  --accent-2:       var(--violet-400);
  --accent-2-hover: var(--violet-300);
  --accent-2-soft:  rgba(124, 58, 237, 0.18);

  --brand-gradient: linear-gradient(110deg, var(--orange-500) 0%, var(--violet-400) 100%);

  --bg-page:        var(--ink-950);
  --bg-page-alt:    #0d0d10;
  --surface-card:   var(--ink-900);
  --surface-raised: var(--ink-800);
  --surface-sunken: #101013;

  --text-strong:  #fafafa;
  --text-body:    var(--ink-300);
  --text-muted:   var(--ink-400);
  --text-faint:   var(--ink-500);

  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: var(--orange-500);

  --selection-bg: rgba(234, 88, 12, 0.35);
}
/* ============================================================
   TYPOGRAPHY — families, scale, weights, tracking
   ============================================================ */

:root {
  /* Families */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale (1.250 major-third-ish, tuned) */
  --text-xs:   0.75rem;   /* 12 */
  --text-sm:   0.875rem;  /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-lg:   1.125rem;  /* 18 */
  --text-xl:   1.375rem;  /* 22 */
  --text-2xl:  1.75rem;   /* 28 */
  --text-3xl:  2.25rem;   /* 36 */
  --text-4xl:  3rem;      /* 48 */
  --text-5xl:  3.75rem;   /* 60 */
  --text-6xl:  4.75rem;   /* 76 */
  --text-7xl:  6rem;      /* 96 */

  /* Weights */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Line heights */
  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tighter: -0.04em;
  --tracking-tight:   -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.04em;
  --tracking-widest:  0.18em; /* eyebrows / mono labels */
}
/* ============================================================
   SPACING, RADII, SHADOWS, MOTION, LAYOUT
   ============================================================ */

:root {
  /* Spacing scale (4px base) */
  --space-0:  0;
  --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 */

  /* Radii */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   26px;
  --radius-2xl:  36px;
  --radius-pill: 999px;

  /* Shadows — soft, layered, low-spread */
  --shadow-xs:  0 1px 2px rgba(24, 24, 27, 0.06);
  --shadow-sm:  0 2px 6px rgba(24, 24, 27, 0.07);
  --shadow-md:  0 8px 24px -6px rgba(24, 24, 27, 0.12);
  --shadow-lg:  0 20px 48px -12px rgba(24, 24, 27, 0.18);
  --shadow-accent: 0 12px 32px -8px rgba(234, 88, 12, 0.45);
  --shadow-violet: 0 12px 32px -8px rgba(124, 58, 237, 0.40);
  --ring-accent: 0 0 0 3px rgba(234, 88, 12, 0.30);

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);   /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast:   140ms;  /* @kind other */
  --dur-base:   240ms;  /* @kind other */
  --dur-slow:   420ms;  /* @kind other */

  /* Layout */
  --container:   1200px;
  --container-narrow: 880px;
  --nav-height:  76px;
}
/* ============================================================
   BASE — light reset + element defaults + helpers
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--selection-bg); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; }

code, kbd, pre, .mono { font-family: var(--font-mono); }

/* Eyebrow / kicker label — mono, tracked, uppercase */
.ds-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Gradient text helper */
.ds-gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
