/* ==========================================================================
   Endpoint — Typography tokens
   Editorial blog scale. Be Vietnam Pro for both display and body; weight +
   size carry the hierarchy. Mono for code / IOCs.
   ========================================================================== */
:root {
  /* Families */
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Be Vietnam Pro", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Base font sizes (editorial rhythm) */
  --fs-display: 61.6px;   /* hero / feature headline */
  --fs-h1: 44.0px;
  --fs-h2: 33.0px;
  --fs-h3: 25.3px;
  --fs-h4: 20.9px;
  --fs-body-lg: 20.9px;   /* article lede + body in long-form */
  --fs-body: 17.6px;      /* default UI text */
  --fs-sm: 15.4px;        /* meta, captions, labels */
  --fs-xs: 13.2px;        /* eyebrows, tags */

  /* Line heights */
  --lh-tight: 1.08; /* @kind font */
  --lh-snug: 1.22;  /* @kind font */
  --lh-body: 1.65;  /* @kind font */
  --lh-ui: 1.45;    /* @kind font */

  /* Weights */
  --fw-regular: 400;  /* @kind font */
  --fw-medium: 500;   /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold: 700;     /* @kind font */
  --fw-extra: 800;    /* @kind font */

  /* Letter spacing */
  --ls-tight: -0.02em;  /* @kind font */
  --ls-snug: -0.01em;   /* @kind font */
  --ls-normal: 0;       /* @kind font */
  --ls-eyebrow: 0.12em; /* @kind font */

  /* Semantic roles */
  --text-display-size: var(--fs-display);
  --text-display-lh: var(--lh-tight);     /* @kind font */
  --text-display-weight: var(--fw-extra); /* @kind font */

  --text-heading-weight: var(--fw-bold);  /* @kind font */
  --text-eyebrow-size: var(--fs-xs);
}

/* Document defaults */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-ui);
  color: var(--text-body);
  font-feature-settings: "ss01", "cv01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings use the Display cut; body/UI inherit Red Hat Text from <body>.
   Component headings set no font-family inline, so these element rules win. */
h1, h2, h3, h4, .t-display {
  font-family: var(--font-display);
}

/* Reusable type helpers (optional, consumers may use tokens directly) */
.t-eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-brand);
}
.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-extra);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}
