/* ===========================================================================
   Vergence Design System — colors & type tokens
   Sourced from Vergence_deck.fig (METADATA + frame inspection).
   Vendored from the Vergence Design System handoff; font src paths repointed
   to the self-hosted copies under /fonts/roobert/.
   =========================================================================== */

/* ---- Fonts ---- */
@font-face {
  font-family: "Roobert PRO";
  src: url("/fonts/roobert/RoobertPRO-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roobert PRO";
  src: url("/fonts/roobert/RoobertPRO-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roobert PRO";
  src: url("/fonts/roobert/RoobertPRO-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roobert PRO";
  src: url("/fonts/roobert/RoobertPRO-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roobert PRO";
  src: url("/fonts/roobert/RoobertPRO-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roobert PRO";
  src: url("/fonts/roobert/RoobertPRO-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roobert PRO";
  src: url("/fonts/roobert/RoobertPRO-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roobert PRO";
  src: url("/fonts/roobert/RoobertPRO-Heavy.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Geist Mono (OFL) — used for graph/data surfaces (numerals, node labels). */
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono/GeistMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono/GeistMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Type families ---- */
  --font-sans: "Roobert PRO", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo,
    "JetBrains Mono", monospace;

  /* ---- Brand neutrals (dark theme is canonical) ---- */
  --ink-0: rgb(0, 0, 0);        /* page background */
  --ink-1: rgb(23, 23, 23);     /* near-black surface */
  --ink-2: rgb(30, 30, 30);     /* card surface */
  --ink-3: rgb(38, 38, 38);     /* raised surface */
  --ink-4: rgb(83, 91, 86);     /* card border, hairline */

  /* ---- Brand greens (deep) ---- */
  --green-deep-1: rgb(7, 24, 18);    /* deepest brand green */
  --green-deep-2: rgb(13, 44, 33);
  --green-deep-3: rgb(22, 43, 34);
  --green-deep-4: rgb(30, 35, 32);

  /* ---- Sage (signature highlight panel color) ---- */
  --sage:        rgb(155, 173, 166);
  --sage-soft:   rgb(217, 217, 217);
  --sage-pale:   rgb(239, 250, 242);

  /* ---- Whites & paper ---- */
  --paper-0: rgb(255, 255, 255);
  --paper-1: rgb(245, 245, 245);
  --paper-2: rgb(236, 236, 236);
  --paper-3: rgb(238, 238, 238);

  /* ---- Semantic accents ---- */
  --positive: rgb(96, 198, 134);     /* "2 designers", "3.5X" */
  --positive-ink: rgb(3, 113, 82);
  --negative: rgb(198, 96, 96);      /* "5-10 designers", "NOK 600k" */
  --negative-ink: rgb(151, 65, 65);
  --accent-blue: rgb(122, 182, 255); /* portfolio accent */
  --accent-blue-soft: rgb(160, 184, 248);
  --accent-blue-pale: rgb(181, 199, 248);
  --accent-lavender: rgb(222, 192, 255); /* HomeKey accent */
  --accent-coral: rgb(255, 149, 96);

  /* ---- Foreground (on dark) ---- */
  --fg-1: rgb(255, 255, 255);              /* primary text */
  --fg-2: rgba(255, 255, 255, 0.5);        /* secondary text / Lorem body */
  --fg-3: rgba(255, 255, 255, 0.25);       /* page-number, muted */
  --fg-eyebrow: rgb(134, 134, 134);        /* eyebrow label gray */

  /* ---- Foreground (on light) ---- */
  --fg-on-light-1: rgb(7, 24, 18);
  --fg-on-light-2: rgba(7, 24, 18, 0.79);
  --fg-on-light-3: rgba(7, 24, 18, 0.54);

  /* ---- Radii ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 15px;     /* card border-radius from Figma */
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ---- Spacing (4px scale) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 44px;       /* slide gutter */
  --space-10: 64px;
  --space-11: 84px;
  --space-12: 120px;

  /* ---- Shadows / borders ---- */
  --hairline: 1px solid rgb(83, 91, 86);
  --hairline-soft: 1px solid rgba(255, 255, 255, 0.08);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset,
                 0 8px 24px rgba(0, 0, 0, 0.25);

  /* ---- Type scale (1920×1080 slide context) ---- */
  --t-eyebrow:   18px;     /* "Solution", "Challenge", muted gray */
  --t-caption:   16px;
  --t-body:      18px;
  --t-body-lg:   20px;
  --t-subhead:   24px;
  --t-title:     36px;     /* slide titles */
  --t-display:   48px;
  --t-display-lg:60px;
  --t-hero:      120px;    /* "Thank you" */
  --t-stat:      80px;     /* "NOK 300M", "2.5x" */
  --t-page-num:  10px;

  --lh-tight:    1.05;
  --lh-snug:     1.22;     /* 44/36 from spec */
  --lh-normal:   1.33;     /* 24/18 */
  --lh-relaxed:  1.5;
  --ls-tight:    -0.030em; /* slide-title default */
  --ls-display:  -0.035em;
}
