/* TENURE typography, spacing and shared utilities. Palette: design-tokens.css. */
/* IBM Plex Sans/Mono — the CFO-friendly institutional typeface the app
   renders throughout its workspace. Loaded
   here so typography is consistent across every viewer's machine rather than
   falling back to each OS's system-ui. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* =========================================================
     TYPOGRAPHY — base
     ========================================================= */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-60: 3.75rem;
  --fs-72: 4.5rem;
  --fs-96: 6rem;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

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

  --tracking-tight: -0.02em;
  --tracking-snug:  -0.01em;
  --tracking-base:  0;

  /* =========================================================
     RADII & SPACING & MOTION
     ========================================================= */
  --radius:       0.75rem;   /* 12px — "lg" in config */
  --radius-sm:    calc(var(--radius) - 4px);
  --radius-md:    calc(var(--radius) - 2px);
  --radius-lg:    var(--radius);
  --radius-xl:    1rem;
  --radius-2xl:   1.5rem;
  --radius-full:  9999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Signature easings */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    150ms;
  --dur-base:    300ms;
  --dur-slow:    500ms;
}

/* =========================================================
   SEMANTIC TYPE STYLES
   Headings and body both use IBM Plex Sans (display + sans tokens).
   ========================================================= */
html {
  font-family: var(--font-sans);
  color: hsl(var(--c-foreground));
  background: hsl(var(--c-background));
  -webkit-font-smoothing: antialiased;
}

body { font-family: var(--font-sans); }

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-60);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}
h5, .h5 {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}
h6, .h6 {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--c-foreground-muted));
}

p, .p-body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  color: hsl(var(--c-foreground));
}
.p-lead {
  font-family: var(--font-sans);
  font-size: var(--fs-20);
  line-height: var(--lh-base);
  color: hsl(var(--c-foreground-muted));
}
.p-small {
  font-size: var(--fs-14);
  color: hsl(var(--c-foreground-muted));
}
.p-micro {
  font-size: var(--fs-12);
  color: hsl(var(--c-foreground-muted));
  letter-spacing: 0.02em;
}

/* Signature "hero" gradient text used across Stratosfyre */
.text-gradient-hero {
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-horizon {
  background: var(--grad-horizon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  background: hsl(var(--c-muted));
  color: hsl(var(--c-foreground));
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--c-border));
  background: hsl(var(--c-muted));
  color: hsl(var(--c-foreground-muted));
}
