/* ============================================================================
   vorpuls — Design Foundations
   colors_and_type.css
   The signal before the signal. Cool instrument-black + warm crimson pulse.
   ----------------------------------------------------------------------------
   Load order:
     1. This file imports the brand webfonts (Google Fonts).
     2. Use the :root tokens below for every color / type / spacing decision.
     3. Dark is the signature surface. Add .theme-light on a wrapper for the
        editorial light surface (bone paper).
   ========================================================================== */

@import url('assets/fonts/fonts.css');

:root {
  /* ---------------------------------------------------------------------- */
  /* FONT FAMILIES                                                          */
  /* ---------------------------------------------------------------------- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;  /* headlines, wordmark, big numbers */
  --font-body: 'Schibsted Grotesk', system-ui, sans-serif; /* running text, UI labels */
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', monospace; /* signal labels, data, eyebrows, code */

  /* ---------------------------------------------------------------------- */
  /* CORE PALETTE — INK (cool instrument-black)                             */
  /* ---------------------------------------------------------------------- */
  --ink-1000: #050608;  /* deepest void */
  --ink-900:  #0A0C10;  /* canvas / page background (dark) */
  --ink-850:  #0F1116;  /* sunken */
  --ink-800:  #14171D;  /* raised surface */
  --ink-700:  #1B1F27;  /* card surface */
  --ink-600:  #242932;  /* elevated card / input */
  --ink-500:  #323844;  /* strong border */
  --ink-400:  #454C5A;  /* disabled / faint trace */

  /* PAPER (warm bone — editorial light surface) */
  --paper-0:  #FBFAF6;  /* lightest */
  --paper-1:  #F4F1E9;  /* page background (light) */
  --paper-2:  #ECE8DD;  /* sunken light / card on paper */
  --paper-3:  #E0DBCD;  /* light border */

  /* ---------------------------------------------------------------------- */
  /* PULSE — the signal accent (warm crimson)                              */
  /* ---------------------------------------------------------------------- */
  --pulse-50:   #FFF0F1;
  --pulse-100:  #FFD9DD;
  --pulse-300:  #FF7986;
  --pulse-400:  #FF4D5F;  /* hover (lighter) */
  --pulse-500:  #FF2D46;  /* PRIMARY brand pulse */
  --pulse-600:  #E51330;  /* active / pressed (darker) */
  --pulse-700:  #BE0C26;  /* deep */
  --pulse-tint: rgba(255, 45, 70, 0.10);   /* faint wash on dark */
  --pulse-tint-strong: rgba(255, 45, 70, 0.18);

  /* STEEL — secondary signal (the trace before it spikes) */
  --steel-500: #5B6678;
  --steel-400: #79859A;
  --steel-300: #9AA5B8;

  /* ---------------------------------------------------------------------- */
  /* TEXT ROLES (resolved per theme below)                                 */
  /* ---------------------------------------------------------------------- */
  --fg-1: #F3F5F7;   /* primary text on dark */
  --fg-2: #A9B0BC;   /* secondary text on dark */
  --fg-3: #6C7480;   /* muted / captions on dark */
  --fg-line: rgba(255, 255, 255, 0.09);   /* hairline on dark */
  --fg-line-strong: rgba(255, 255, 255, 0.16);

  /* ---------------------------------------------------------------------- */
  /* SEMANTIC STATUS                                                        */
  /* ---------------------------------------------------------------------- */
  --ok-500:    #34C77B;
  --warn-500:  #E9B53C;
  --info-500:  #5B8DEF;
  --danger-500: var(--pulse-500);

  /* ---------------------------------------------------------------------- */
  /* RADII — sharp / instrument-grade                                       */
  /* ---------------------------------------------------------------------- */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* ---------------------------------------------------------------------- */
  /* SPACING — 4px base grid                                                */
  /* ---------------------------------------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 192px;

  /* ---------------------------------------------------------------------- */
  /* ELEVATION + GLOW                                                       */
  /* ---------------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.55);
  --glow-pulse: 0 0 0 1px rgba(255,45,70,0.5), 0 0 28px rgba(255,45,70,0.40);
  --glow-pulse-soft: 0 0 24px rgba(255,45,70,0.28);

  /* light-mode shadows (softer, warmer) */
  --shadow-paper-sm: 0 1px 2px rgba(40,34,24,0.08);
  --shadow-paper-md: 0 8px 28px rgba(40,34,24,0.10);

  /* ---------------------------------------------------------------------- */
  /* MOTION                                                                  */
  /* ---------------------------------------------------------------------- */
  --ease-signal: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */ /* decisive arrival */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur: 220ms; /* @kind other */
  --dur-slow: 480ms; /* @kind other */

  /* layout */
  --maxw: 1200px; /* @kind other */
  --gutter: clamp(20px, 5vw, 64px); /* @kind spacing */
}

/* ========================================================================== */
/* THEME RESOLUTION                                                            */
/* ========================================================================== */

/* DARK (default / signature) */
:root,
.theme-dark {
  --bg: var(--ink-900);
  --bg-sunken: var(--ink-850);
  --surface: var(--ink-700);
  --surface-raised: var(--ink-600);
  --border: var(--fg-line);
  --border-strong: var(--fg-line-strong);
  --text-1: var(--fg-1);
  --text-2: var(--fg-2);
  --text-3: var(--fg-3);
  --shadow-card: var(--shadow-md);
  color-scheme: dark;
}

/* LIGHT (editorial bone) */
.theme-light {
  --bg: var(--paper-1);
  --bg-sunken: var(--paper-2);
  --surface: var(--paper-0);
  --surface-raised: #FFFFFF;
  --border: rgba(40, 34, 24, 0.12);
  --border-strong: rgba(40, 34, 24, 0.22);
  --text-1: #14161A;
  --text-2: #54585F;
  --text-3: #8A8E96;
  --shadow-card: var(--shadow-paper-md);
  color-scheme: light;
}

/* ========================================================================== */
/* SEMANTIC TYPOGRAPHY                                                         */
/* Apply these classes OR copy the rules. All sizes use clamp for fluidity.    */
/* ========================================================================== */

.t-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 1.5rem + 6vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.t-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-2);
  text-wrap: pretty;
}
.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.t-small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
}
/* Eyebrow / signal label — the technical voice of the brand */
.t-eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pulse-500);
}
.t-mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0;
}
.t-data {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Utility */
.pulse-text { color: var(--pulse-500); }
.mono { font-family: var(--font-mono); }
