/* =========================================================================
   Infinitiea Tech — Colors & Type
   v1.0 · April 2026
   ========================================================================= */

/* ---- Web fonts ---------------------------------------------------------- */
/* Brand face: Söhne (Klim Type Foundry) — refined neo-grotesque, full family.
   Mono: Söhne Mono. */
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-Extraleicht.otf') format('opentype'); font-weight:200; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-ExtraleichtKursiv.otf') format('opentype'); font-weight:200; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-Leicht.otf') format('opentype'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-LeichtKursiv.otf') format('opentype'); font-weight:300; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-Buch.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-BuchKursiv.otf') format('opentype'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-Kraftig.otf') format('opentype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-KraftigKursiv.otf') format('opentype'); font-weight:500; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-Halbfett.otf') format('opentype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-HalbfettKursiv.otf') format('opentype'); font-weight:600; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-Dreiviertelfett.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-DreiviertelfettKursiv.otf') format('opentype'); font-weight:700; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-Fett.otf') format('opentype'); font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-FettKursiv.otf') format('opentype'); font-weight:800; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-Extrafett.otf') format('opentype'); font-weight:900; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne'; src:url('fonts/Sohne-ExtrafettKursiv.otf') format('opentype'); font-weight:900; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne Mono'; src:url('fonts/SohneMono-Buch.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne Mono'; src:url('fonts/SohneMono-BuchKursiv.otf') format('opentype'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Sohne Mono'; src:url('fonts/SohneMono-Kraftig.otf') format('opentype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Sohne Mono'; src:url('fonts/SohneMono-Halbfett.otf') format('opentype'); font-weight:600; font-style:normal; font-display:swap; }

:root {
  /* ------ COLOR TOKENS ------------------------------------------------- */

  /* Brand core — five anchors (warm, blue-centric, mission-driven) */
  --it-navy:        #122B4A;  /* Midnight Blue · headers, primary anchors, dark bg */
  --it-teal:        #2563EB;  /* Signal Blue · CTAs, accents, the IT mark */
  --it-white:       #FFFFFF;  /* Crisp White · primary background */
  --it-slate:       #5B6B82;  /* Warm Slate · secondary text, captions, metadata */
  --it-cream:       #FBF3E4;  /* Warm Cream · callouts, quote blocks (sparingly) */

  /* Brand supporting */
  --it-teal-dark:   #1D4ED8;  /* Royal Blue · eyebrow labels, body links, deep accents */
  --it-teal-light:  #93C5FD;  /* Sky Blue · hover/highlight tints, dataviz secondary */
  --it-navy-light:  #1E3A6B;  /* Card surfaces on navy, hover state for navy */
  --it-blue-soft:   #DBEAFE;  /* Powder Blue · soft callout washes */
  --it-blue-mid:    #3B82F6;  /* Mission Blue · central primary mid-tone */
  --it-bg-gray:     #F8FAFC;  /* Page background tint, alt section */
  --it-border:      #E2E8F0;  /* Default rule, card outline */
  --it-border-strong: #CBD5E1;
  --it-cream-border: #F0E8D6;

  /* Neutral scale (slate family) */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Teal scale (for charts, hover states) */
  --teal-50:  #F0FDFA;
  --teal-100: #CCFBF1;
  --teal-200: #99F6E4;
  --teal-300: #5EEAD4;
  --teal-400: #2DD4BF;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --teal-700: #0F766E;
  --teal-800: #115E59;
  --teal-900: #134E4A;

  /* Semantic */
  --color-success: #0F766E;
  --color-warn:    #B45309;  /* warm amber, ties to cream */
  --color-danger:  #B91C1C;
  --color-info:    #0F766E;

  /* ------ FOREGROUND / BACKGROUND ROLES -------------------------------- */
  --fg-1: var(--it-navy);          /* primary text — H1/H2, body bold */
  --fg-2: #334155;                 /* body text */
  --fg-3: var(--it-slate);         /* secondary text, captions */
  --fg-4: #94A3B8;                 /* tertiary, disabled */
  --fg-on-dark: var(--it-white);
  --fg-on-dark-2: #CBD5E1;
  --fg-link: var(--it-teal-dark);
  --fg-accent: var(--it-teal);

  --bg-1: var(--it-white);         /* primary surface */
  --bg-2: var(--it-bg-gray);       /* alt surface, page background */
  --bg-3: var(--slate-100);        /* recessed surface */
  --bg-cream: var(--it-cream);     /* warm callout background */
  --bg-navy: var(--it-navy);       /* dark surface */
  --bg-navy-2: var(--it-navy-light); /* dark surface, raised */

  /* ------ BORDERS / RADII / SHADOWS ------------------------------------ */
  --border-1: var(--it-border);
  --border-2: var(--it-border-strong);
  --border-cream: var(--it-cream-border);
  --border-navy: rgba(255, 255, 255, 0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Shadows — deeper, more present. Tinted with navy for warmth. */
  --shadow-1: 0 2px 4px rgba(18, 43, 74, 0.08), 0 4px 10px rgba(18, 43, 74, 0.10);
  --shadow-2: 0 6px 12px rgba(18, 43, 74, 0.10), 0 16px 32px rgba(18, 43, 74, 0.14);
  --shadow-3: 0 12px 24px rgba(18, 43, 74, 0.12), 0 32px 64px rgba(18, 43, 74, 0.20);
  --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.32);
  --shadow-inner: inset 0 2px 4px rgba(18, 43, 74, 0.10);

  /* ------ SPACING (4px baseline) --------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ------ TYPE TOKENS -------------------------------------------------- */
  --font-sans:    'Sohne', 'Inter', 'Helvetica Neue', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Sohne', 'Inter', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Sohne Mono', 'JetBrains Mono', 'Menlo', 'Consolas', ui-monospace, monospace;

  /* Weights — full Söhne family loaded. Restore real weight hierarchy. */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;

  /* Type scale — derived from brand guide pt sizes.
     1pt ≈ 1.333px, but we round to a clean px scale that matches the deck. */
  --fs-hero:    56px;    /* 40-48pt brand spec, scaled up for web hero */
  --fs-display: 44px;
  --fs-h1:      32px;    /* H1 · 28-32pt */
  --fs-h2:      22px;    /* H2 · 18-22pt */
  --fs-h3:      18px;
  --fs-body:    16px;    /* Body · 11-13pt → 15-16px on web */
  --fs-body-sm: 14px;
  --fs-eyebrow: 11px;    /* Eyebrow · 10-11pt, uppercase, tracked */
  --fs-caption: 13px;    /* Caption · 10-11pt */
  --fs-mono:    13px;

  --lh-tight: 1.1;
  --lh-snug:  1.25;
  --lh-base:  1.5;
  --lh-loose: 1.7;

  --track-tight: -0.025em;
  --track-display: -0.035em;
  --track-base: 0;
  --track-eyebrow: 0.16em;     /* "tracked +3" from brand guide */

  /* ------ MOTION ------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* smooth, professional */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

/* =========================================================================
   Semantic typography classes — drop on any element.
   ========================================================================= */

html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--fg-2);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.t-hero {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  font-weight: var(--weight-bold);
  letter-spacing: var(--track-display);
  color: var(--fg-1);
  text-wrap: pretty;
}
.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: var(--weight-bold);
  letter-spacing: var(--track-display);
  color: var(--fg-1);
}
.t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  font-weight: var(--weight-bold);
  letter-spacing: var(--track-tight);
  color: var(--fg-1);
}
.t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  font-weight: var(--weight-bold);
  letter-spacing: var(--track-tight);
  color: var(--fg-1);
}
.t-h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
}
.t-body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  font-weight: var(--weight-regular);
  color: var(--fg-2);
}
.t-body-lg {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: var(--lh-base);
  font-weight: var(--weight-regular);
  color: var(--fg-2);
}
.t-small {
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-base);
  color: var(--fg-3);
}
.t-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--fg-link);
}
.t-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--it-teal);
  margin-right: 8px;
  transform: translateY(-2px);
  vertical-align: middle;
}
.t-caption {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  line-height: var(--lh-base);
  font-style: italic;
  color: var(--fg-3);
}
.t-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: var(--lh-base);
  color: var(--fg-2);
}
.t-tagline {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  font-weight: var(--weight-bold);
  color: var(--it-teal-dark);
  letter-spacing: var(--track-tight);
}

/* Brand accent rule — used under titles, in document headers */
.brand-rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--it-teal);
  border: 0;
  margin: var(--space-4) 0;
}
.brand-rule.lg { width: 120px; }
.brand-rule.full { width: 100%; }

/* Link defaults */
a { color: var(--fg-link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--it-teal); }
a.underlined { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
