/* Kernia Theme · tokens.css
 * Bundled copy of kernia-design-system/project/colors_and_type.css.
 * @font-face + JetBrains Mono @import stripped — functions.php injects
 * fonts at runtime and enqueues the Google Font separately. Do not
 * edit by hand — regenerate via pages/build-all-pages.py.
 */

/* =========================================================
   KERNIA DESIGN SYSTEM — Foundations
   Intelligence, by design.
   ========================================================= */

/* ---------- FONTS ----------
   Kernia's licensed brand faces:
     Body / UI         → "Aeonik Pro"    (Regular 400 / Medium 500 / Bold 700)
     Display / Titles  → "Renogare"      (Regular 400 — bold, gently condensed display)
     Numerics / Mono   → "JetBrains Mono" (via Google Fonts — no licensed mono supplied)
   ---------------------------------------------------------- */
:root {
  /* ========== COLOR — PRIMITIVES ========== */

  /* Orange — the only chromatic color in the system. Used for
     brand mark, primary buttons, accents, duotone photography,
     and the full-bleed CTA band in the footer. */
  --orange-50:  #FFF1E8;
  --orange-100: #FFD9BF;
  --orange-200: #FFB88A;
  --orange-300: #FF9359;
  --orange-400: #FF6F33;   /* sampled from mockups — vivid screen orange */
  --orange-500: #E85D04;   /* brand spec — Kernia Orange, use this for buttons/CTA */
  --orange-600: #C44E00;
  --orange-700: #9A3D00;

  /* Neutrals — warm-leaning greys. Background is a soft paper grey,
     text is near-black, borders are very low contrast. */
  --ink-1000: #0A0A0B;     /* pure text black for headlines */
  --ink-900:  #17181A;     /* body copy */
  --ink-700:  #3A3B3E;
  --ink-500:  #737478;     /* secondary text, eyebrows */
  --ink-300:  #B6B7BA;
  --ink-200:  #D6D7DA;
  --ink-100:  #E3E4E6;     /* dividers, outlined buttons */
  --paper:    #EBEBED;     /* canvas background — the "Kernia grey" */
  --paper-2:  #F4F4F5;     /* cards on canvas */
  --white:    #FFFFFF;

  /* Semantic (sparingly used — Kernia is monochrome + orange) */
  --success: #1E8E3E;
  --warning: #E8A204;
  --danger:  #C8321F;
  --info:    #0A67C9;

  /* ========== FOREGROUND / BACKGROUND TOKENS ========== */
  --bg:        var(--paper);
  --bg-raised: var(--white);
  --bg-inset:  var(--paper-2);
  --bg-invert: var(--ink-1000);
  --bg-brand:  var(--orange-500);

  --fg-1:    var(--ink-1000);  /* primary text & headlines */
  --fg-2:    var(--ink-900);   /* body */
  --fg-3:    var(--ink-500);   /* secondary / captions */
  --fg-4:    var(--ink-300);   /* tertiary / placeholder */
  --fg-on-brand: var(--white);
  --fg-on-invert: var(--white);

  --border:        var(--ink-100);
  --border-strong: var(--ink-200);
  --border-ink:    var(--ink-1000);    /* hard black outlines used on cards */
  --border-brand:  var(--orange-500);

  --accent:     var(--orange-500);
  --accent-hover: var(--orange-600);

  /* ========== TYPE — FAMILIES ========== */
  --font-display: 'Renogare', 'Aeonik Pro', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'Aeonik Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ========== TYPE — SCALE (clamped for responsive) ========== */
  --fs-display-1: clamp(48px, 6vw, 88px);   /* hero headline */
  --fs-display-2: clamp(40px, 5vw, 64px);   /* section title ("What Aion does") */
  --fs-h1:        clamp(32px, 3.6vw, 44px);
  --fs-h2:        clamp(24px, 2.4vw, 32px);
  --fs-h3:        20px;
  --fs-h4:        18px;
  --fs-body-lg:   18px;
  --fs-body:      16px;
  --fs-body-sm:   14px;
  --fs-caption:   13px;
  --fs-eyebrow:   12px;   /* UPPERCASE eyebrow labels */

  /* Weights */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   800;

  /* Tracking */
  --ls-eyebrow: 0.14em;    /* ORGANISATIONAL INTELLIGENCE eyebrow */
  --ls-caps:    0.02em;    /* caps titles */
  --ls-display: -0.02em;   /* slight tightening on display */
  --ls-body:    0;

  /* Leading */
  --lh-display: 1.02;
  --lh-heading: 1.12;
  --lh-body:    1.5;
  --lh-tight:   1.25;

  /* ========== SPACING ========== */
  --sp-0:  0;
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* ========== RADII ==========
     Kernia's mark is a quatrefoil of soft rounded squares. That same
     generous radius carries into capability cards and image tiles. */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;      /* buttons, inputs */
  --r-lg: 20px;
  --r-xl: 28px;      /* capability image card */
  --r-2xl: 40px;     /* large image tiles (hero blobs) */
  --r-pill: 999px;

  /* ========== SHADOWS ==========
     The brand is flat. Shadows are whisper-soft and used only on
     raised chrome (menu, popovers). No hero-card shadows. */
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(10,10,11,.04), 0 1px 1px rgba(10,10,11,.03);
  --shadow-2: 0 4px 14px rgba(10,10,11,.06), 0 1px 2px rgba(10,10,11,.04);
  --shadow-3: 0 20px 48px rgba(10,10,11,.10), 0 4px 12px rgba(10,10,11,.05);
  --shadow-focus: 0 0 0 3px rgba(232,93,4,.28);

  /* ========== MOTION ========== */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
  --dur-fast: 120ms;
  --dur-med:  220ms;
  --dur-slow: 360ms;
}

/* =========================================================
   SEMANTIC TYPE ROLES
   Use these classes (or the raw tags) to avoid hand-tuning.
   ========================================================= */

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

h1, .h-display-1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-1);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--fg-1);
  text-wrap: balance;
  margin: 0;
}
h2, .h-display-2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--fg-1);
  text-wrap: balance;
  margin: 0;
}
h3, .h-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  color: var(--fg-1);
  margin: 0;
}
h4, .h-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  color: var(--fg-1);
  margin: 0;
}

/* Capability titles — bold caps used on cards ("BEHAVIOURAL PRECISION") */
.h-caps-title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--fg-1);
}

/* Eyebrow — ORGANISATIONAL INTELLIGENCE, THE HIDDEN GAP, etc. */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-semi);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--orange-500);
}
.eyebrow--ink { color: var(--fg-1); }

p, .p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  margin: 0;
}
.p-lg { font-size: var(--fs-body-lg); line-height: 1.55; }
.p-sm { font-size: var(--fs-body-sm); }

.caption {
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--fg-3);
}

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* Quantified metric display — "€28.4M", "1,500%", "3.8 wk" */
.metric {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: var(--ls-display);
  color: var(--fg-1);
}
.metric--brand { color: var(--orange-500); }
.metric-label {
  font-size: var(--fs-body-sm);
  color: var(--fg-3);
  margin-top: var(--sp-2);
}

a {
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--orange-500); }

/* Focus — always orange ring */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--r-sm);
}

/* Utility */
.hr { height: 1px; background: var(--border); border: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-8); }
