/* ==========================================================================
   iXRLabs Design System - colors & typography foundations
   ========================================================================== */

/* -------------------- Fonts -------------------- */
@font-face {
  font-family: "Silka";
  src: url("fonts/silka-regular.woff2") format("woff2"),
       url("fonts/silka-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Silka";
  src: url("fonts/silka-regular-italic.woff2") format("woff2"),
       url("fonts/silka-regular-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* NOTE: only Regular + Regular Italic were provided. SemiBold / Bold weights
   are synthesized by the browser via `font-weight`. If real SemiBold / Bold
   files become available, drop them in fonts/ and add @font-face blocks here. */

:root {
  /* -------------------- Brand colors -------------------- */
  --ixr-blue:        #005689;  /* primary brand */
  --ixr-red:         #D71F27;  /* accent / dot / CTA */
  --ixr-white:       #FFFFFF;
  --ixr-black:       #111111;  /* wordmark / body */

  /* secondary + support */
  --deep-navy:       #0D4979;
  --panel-blue:      #086FA6;
  --bright-cyan:     #4DB1DA;
  --soft-sky:        #D5E9F0;
  --cool-grey:       #ECEFF1;
  --light-grey:      #DDE1E5;
  --coral:           #E55157;
  --dark-ink:        #11233B;

  /* -------------------- Semantic surfaces -------------------- */
  --bg:              var(--ixr-white);
  --bg-soft:         var(--soft-sky);
  --bg-muted:        var(--cool-grey);
  --bg-dark:         var(--deep-navy);
  --bg-darker:       var(--dark-ink);
  --surface-card:    var(--ixr-white);

  /* -------------------- Semantic text -------------------- */
  --fg:              var(--ixr-black);       /* primary body */
  --fg-soft:         #3a4654;                /* secondary body */
  --fg-muted:        #6b7682;                /* captions / labels */
  --fg-on-dark:      var(--ixr-white);
  --fg-on-dark-soft: rgba(255,255,255,.78);
  --fg-link:         var(--panel-blue);
  --fg-accent:       var(--ixr-red);
  --fg-heading:      var(--deep-navy);       /* headings on light */

  /* -------------------- Borders & dividers -------------------- */
  --border:          var(--light-grey);
  --border-strong:   #c4cad1;
  --divider:         #e6e9ec;

  /* -------------------- Typography -------------------- */
  --font-sans: "Silka", "Inter", "Avenir Next", "Helvetica Neue", "Aptos", Arial, system-ui, sans-serif;
  --font-numeric: "Silka", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* fluid-ish scale tuned for both decks and documents */
  --fs-hero:    clamp(36px, 4.8vw, 64px); /* @kind font */
  --fs-display: clamp(28px, 3.6vw, 44px); /* @kind font */
  --fs-h1:      clamp(24px, 2.6vw, 32px); /* @kind font */
  --fs-h2:      clamp(20px, 2.0vw, 26px); /* @kind font */
  --fs-h3:      18px;
  --fs-body:    15px;
  --fs-small:   13px;
  --fs-caption: 11px;
  --fs-metric:  clamp(40px, 5vw, 72px); /* @kind font */

  --lh-tight:   1.08;  /* @kind other */
  --lh-snug:    1.22;  /* @kind other */
  --lh-normal:  1.5;   /* @kind other */
  --lh-loose:   1.65;  /* @kind other */

  --tracking-tight:  -0.015em; /* @kind other */
  --tracking-normal: 0;        /* @kind other */
  /* eyebrow / caps labels */
  --tracking-label:  0.08em; /* @kind other */

  /* -------------------- Spacing scale -------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;

  /* -------------------- Radii -------------------- */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-pill: 999px;

  /* -------------------- Elevation / shadows -------------------- */
  /* Brand cards are calm: soft, mostly cool-blue tinted shadows. */
  --shadow-sm: 0 1px 2px rgba(13, 73, 121, 0.08);
  --shadow-md: 0 6px 18px rgba(13, 73, 121, 0.10), 0 1px 2px rgba(13, 73, 121, 0.06);
  --shadow-lg: 0 18px 40px rgba(13, 73, 121, 0.14), 0 2px 4px rgba(13, 73, 121, 0.06);
  --shadow-inset: inset 0 0 0 1px var(--border);

  /* -------------------- Motion -------------------- */
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1); /* @kind other */
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);  /* @kind other */
  --dur-fast:   140ms; /* @kind other */
  --dur-normal: 220ms; /* @kind other */
  --dur-slow:   360ms; /* @kind other */

  /* -------------------- Gradients -------------------- */
  --grad-blue-deep: linear-gradient(135deg, var(--deep-navy) 0%, var(--ixr-blue) 60%, var(--panel-blue) 100%);
  --grad-blue-cyan: linear-gradient(135deg, var(--ixr-blue) 0%, var(--bright-cyan) 100%);
  --grad-glow-cyan: radial-gradient(ellipse at top right, rgba(77,177,218,0.35), transparent 60%); /* @kind color */
}

/* -------------------- Base element styles -------------------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--fg-heading);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-snug); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); font-weight: 600; }

p  { margin: 0 0 var(--space-4); text-wrap: pretty; }

small, .caption {
  font-size: var(--fs-caption);
  color: var(--fg-muted);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 500;
}

a {
  color: var(--fg-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
a:hover { border-bottom-color: var(--fg-link); }

::selection { background: var(--ixr-blue); color: #fff; }

/* -------------------- Semantic typography utility classes -------------------- */
.t-hero    { font-size: var(--fs-hero);    line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: 700; color: var(--fg-heading); }
.t-display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: 700; color: var(--fg-heading); }
.t-h1      { font-size: var(--fs-h1);      line-height: var(--lh-snug);  font-weight: 600; color: var(--fg-heading); }
.t-h2      { font-size: var(--fs-h2);      line-height: var(--lh-snug);  font-weight: 600; color: var(--fg-heading); }
.t-h3      { font-size: var(--fs-h3);      line-height: var(--lh-snug);  font-weight: 600; color: var(--fg-heading); }
.t-body    { font-size: var(--fs-body);    line-height: var(--lh-normal); }
.t-small   { font-size: var(--fs-small);   line-height: var(--lh-normal); color: var(--fg-soft); }
.t-eyebrow { font-size: var(--fs-caption); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 600; color: var(--ixr-red); }
.t-metric  { font-size: var(--fs-metric);  line-height: 1; font-weight: 700; color: var(--ixr-blue); letter-spacing: var(--tracking-tight); }

/* -------------------- Layout helpers -------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-5); }


/* -------------------- Red-accent utilities (site-wide) -------------------- */
.placeholder-red {
  background: #FBE6E7;
  color: #8E141A;
}
.placeholder-red::before {
  background-image: repeating-linear-gradient(135deg, rgba(215,31,39,0.22) 0 2px, transparent 2px 14px);
}
.bg-red-slash {
  background-color: #FDF4F4;
  background-image: repeating-linear-gradient(135deg, rgba(215,31,39,0.055) 0 2px, transparent 2px 22px);
}
