/* ============================================================
   Maryam Smaili — Design Tokens
   Dark editorial · Linear-grade craft · Dual accent (gold + purple)
   ============================================================ */

/* ---------- Fonts (local, fall back to system) ---------- */
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap;
  src: url("./fonts/SpaceGrotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap;
  src: url("./fonts/SpaceGrotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap;
  src: url("./fonts/SpaceGrotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap;
  src: url("./fonts/SpaceGrotesk-700.woff2") format("woff2"); }

@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap;
  src: url("./fonts/Poppins-Light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap;
  src: url("./fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap;
  src: url("./fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap;
  src: url("./fonts/Poppins-SemiBold.woff2") format("woff2"); }

/* NOTE: JetBrains Mono was removed from the system.
   The type stack is two fonts only:
   — Space Grotesk (display + metrics)
   — Poppins (body + eyebrows + labels) */

:root {
  /* ---------- Color · Canvas + Surface ladder ---------- */
  --canvas:         #0D0D0D; /* page background — near-black with a faint warm undertone */
  --surface-1:      #131314; /* default card / panel */
  --surface-2:      #18181A; /* lifted card, hovered card */
  --surface-3:      #1F1F22; /* sub-nav, dropdowns */
  --surface-4:      #26262A; /* deepest lifted surface */

  --hairline:           #232328; /* default 1px borders */
  --hairline-strong:    #34343A; /* focus border */
  --hairline-tertiary:  #3E3E44; /* nested surfaces */

  /* Inverse (rare — used for a single inverse pill / press-ready white card) */
  --inverse-canvas:    #FFFFFF;
  --inverse-surface-1: #F5F5F5;
  --inverse-ink:       #0A0A0A;

  /* ---------- Color · Text ---------- */
  --ink:          #F4F4F5; /* headlines, emphasized body */
  --ink-muted:    #C9CACE; /* secondary body */
  --ink-subtle:   #8A8A92; /* tertiary — labels, meta, captions */
  --ink-tertiary: #5C5C63; /* quaternary — disabled, footnotes */

  /* ---------- Color · Dual accent ---------- */
  /* GOLD — strategy / brand / awards lane */
  --gold:         #D4A843;
  --gold-hover:   #E6BB55;
  --gold-press:   #B98F33;
  --gold-tint:    rgba(212, 168, 67, 0.12); /* surface tint for gold callouts */
  --gold-ring:    rgba(212, 168, 67, 0.40); /* focus ring */
  --on-gold:      #1A1407; /* dark text on gold */

  /* PURPLE — D2C performance creative lane */
  --purple:        #A855F7;
  --purple-hover:  #BD7CFA;
  --purple-press:  #8E3DDB;
  --purple-tint:   rgba(168, 85, 247, 0.14);
  --purple-ring:   rgba(168, 85, 247, 0.42);
  --on-purple:     #FFFFFF;

  /* ---------- Overlay scrim ---------- */
  --overlay-scrim:    rgba(0, 0, 0, 0.72);

  /* ---------- Foreground aliases (semantic) ---------- */
  --fg-1: var(--ink);
  --fg-2: var(--ink-muted);
  --fg-3: var(--ink-subtle);
  --fg-4: var(--ink-tertiary);

  /* ---------- Type · Families (two only) ---------- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
  --font-body:    "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Semantic aliases.
     --font-label  — Poppins 500, used for eyebrows, tags, captions in tracking.
     --font-metric — Space Grotesk 500, used for numeric KPIs and tabular data.
     --font-mono   — retained as a back-compat alias to Poppins; no monospace ships. */
  --font-label:  var(--font-body);
  --font-metric: var(--font-display);
  --font-mono:   var(--font-body);

  /* ---------- Type · Scale (variables) ---------- */
  --fs-display-xl: 80px;   --lh-display-xl: 1.04; --ls-display-xl: -3.0px;
  --fs-display-lg: 56px;   --lh-display-lg: 1.08; --ls-display-lg: -1.8px;
  --fs-display-md: 40px;   --lh-display-md: 1.14; --ls-display-md: -1.0px;
  --fs-headline:   28px;   --lh-headline:   1.20; --ls-headline:   -0.6px;
  --fs-card-title: 22px;   --lh-card-title: 1.28; --ls-card-title: -0.4px;
  --fs-subhead:    20px;   --lh-subhead:    1.40; --ls-subhead:    -0.2px;
  --fs-body-lg:    18px;   --lh-body-lg:    1.55; --ls-body-lg:    -0.1px;
  --fs-body:       16px;   --lh-body:       1.55; --ls-body:       -0.05px;
  --fs-body-sm:    14px;   --lh-body-sm:    1.55; --ls-body-sm:    0;
  --fs-caption:    12px;   --lh-caption:    1.40; --ls-caption:    0;
  --fs-button:     14px;   --lh-button:     1.20; --ls-button:     0;
  --fs-eyebrow:    12px;   --lh-eyebrow:    1.30; --ls-eyebrow:    1.4px;
  --fs-metric:     13px;   --lh-metric:     1.40; --ls-metric:     0;

  /* ---------- Spacing (4px base) ---------- */
  --space-xxs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-xxl: 48px;
  --space-section: 96px;

  /* ---------- Radii ---------- */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-xxl: 24px;
  --r-pill: 9999px;
  --r-full: 9999px;

  /* ---------- Elevation (carried by surface, not shadow) ---------- */
  --shadow-0: none;
  --shadow-edge-top: inset 0 1px 0 rgba(255, 255, 255, 0.04); /* faint top hairline highlight */
  --shadow-card:    0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 24px rgba(0, 0, 0, 0.32);
  --shadow-pop:     0 12px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --focus-ring-gold:   0 0 0 2px var(--canvas), 0 0 0 4px var(--gold-ring);
  --focus-ring-purple: 0 0 0 2px var(--canvas), 0 0 0 4px var(--purple-ring);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* gentle decel — preferred */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 320ms;

  /* ---------- Layout ---------- */
  --container-max: 1280px;
  --container-narrow: 880px;
  --nav-h: 64px;
}

/* ============================================================
   Base & semantic element styles
   ============================================================ */

html, body {
  background: var(--canvas);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Display headlines — Space Grotesk, negative tracking */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, var(--fs-display-xl));
  line-height: var(--lh-display-xl);
  letter-spacing: var(--ls-display-xl);
  font-weight: 600;
  color: var(--fg-1);
  text-wrap: balance;
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, var(--fs-display-lg));
  line-height: var(--lh-display-lg);
  letter-spacing: var(--ls-display-lg);
  font-weight: 600;
  color: var(--fg-1);
  text-wrap: balance;
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  line-height: var(--lh-display-md);
  letter-spacing: var(--ls-display-md);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-headline);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0;
}
h5, .h5 {
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  line-height: var(--lh-card-title);
  letter-spacing: var(--ls-card-title);
  font-weight: 500;
  color: var(--fg-1);
  margin: 0;
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}
.body-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body-lg);
}
.body-sm {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body-sm);
}
.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--fg-3);
}
/* Eyebrow — small uppercase taxonomy label.
   Poppins 500 · 12px · +1.4 tracking · uppercase. */
.eyebrow {
  font-family: var(--font-label);
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-3);
}

/* Metric — numeric KPI or tabular value.
   Space Grotesk 500 · 13px · no tracking. */
.metric, code, kbd, samp {
  font-family: var(--font-metric);
  font-size: var(--fs-metric);
  line-height: var(--lh-metric);
  letter-spacing: var(--ls-metric);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--gold); border-color: var(--gold); }
a.purple:hover { color: var(--purple); border-color: var(--purple); }

::selection { background: var(--gold-tint); color: var(--ink); }

hr {
  border: 0;
  height: 1px;
  background: var(--hairline);
  margin: var(--space-lg) 0;
}
