/* ============================================================
   Humanly — Typography
   ------------------------------------------------------------
   Brand typeface: Neue Haas Grotesk (Light/Roman/Medium/Bold/
   Black). Clarity, warmth, precision; humanist details with
   softened corners that echo the rounded mark.
   Webfont substitute in this system: Hanken Grotesk.
   ============================================================ */

:root {
  /* Families — self-hosted Neue Haas Grotesk Pro */
  --font-sans: 'Neue Haas Grotesk Text Pro', 'Neue Haas Grotesk Display Pro',
               'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Neue Haas Grotesk Display Pro', 'Neue Haas Grotesk Text Pro',
               'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', ui-monospace, 'Menlo', 'Consolas', monospace;

  /* Weights (map to Neue Haas: Light/Roman/Medium/Bold/Black) */
  --fw-light: 300;    /* @kind font */
  --fw-regular: 400;  /* @kind font */
  --fw-medium: 500;   /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold: 700;     /* @kind font */
  --fw-black: 900;    /* @kind font */

  /* Type scale — fluid-friendly rem (root 16px) */
  --fs-display-xl: 4.5rem;   /* 72 — hero headlines */
  --fs-display-lg: 3.5rem;   /* 56 */
  --fs-display-md: 2.75rem;  /* 44 */
  --fs-h1: 2.25rem;          /* 36 */
  --fs-h2: 1.75rem;          /* 28 */
  --fs-h3: 1.375rem;         /* 22 */
  --fs-h4: 1.125rem;         /* 18 */
  --fs-body-lg: 1.125rem;    /* 18 */
  --fs-body: 1rem;           /* 16 */
  --fs-body-sm: 0.875rem;    /* 14 */
  --fs-caption: 0.8125rem;   /* 13 */
  --fs-overline: 0.75rem;    /* 12 */

  /* Line heights */
  --lh-tight: 1.05;    /* @kind other */
  --lh-snug: 1.18;     /* @kind other */
  --lh-heading: 1.25;  /* @kind other */
  --lh-body: 1.55;     /* @kind other */
  --lh-relaxed: 1.7;   /* @kind other */

  /* Letter spacing — tighten display, open up overlines */
  --ls-display: -0.02em;  /* @kind other */
  --ls-heading: -0.01em;  /* @kind other */
  --ls-body: 0;           /* @kind other */
  --ls-overline: 0.14em;  /* @kind other */
}

/* ------------------------------------------------------------
   Optional helper classes (use tokens directly in components).
   ------------------------------------------------------------ */
.h-display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display-lg);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-primary);
}
.h-h1 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h1); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); color: var(--text-primary); }
.h-h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); color: var(--text-primary); }
.h-h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--text-primary); }
.h-body { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-primary); }
.h-body-lg { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--text-primary); }
.h-caption { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-caption); line-height: var(--lh-body); color: var(--text-secondary); }
.h-overline {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-overline);
  line-height: 1;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--text-secondary);
}
