/* Applying Next — Typography tokens
 * Font families, size scale, weights and line-heights.
 * Source UI type is SF Pro Text / SF Pro Display (Apple system). See fonts.css
 * for the substitution note. Sizes below are the exact px values observed in the
 * source (12/13/14/15/16/18/20/22/24/28/36).
 */
:root {
  /* ---- Families ---- */
  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-accent:  "Raleway", var(--font-display); /* accent headings (e.g. 27px Bold) */
  --font-alt:     "Outfit", var(--font-sans);      /* alternate labels */

  /* ---- Size scale (px) ---- */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-14:   14px;
  --fs-15:   15px;
  --fs-base: 16px;
  --fs-18:   18px;
  --fs-lg:   20px;
  --fs-22:   22px;
  --fs-xl:   24px;
  --fs-2xl:  28px;
  --fs-3xl:  36px;

  /* ---- Weights ---- */
  --fw-regular:  400; /* @kind other */
  --fw-medium:   500; /* @kind other */ /* dominant weight in source */
  --fw-semibold: 600; /* @kind other */
  --fw-bold:     700; /* @kind other */

  /* ---- Line heights ---- */
  --lh-tight:   1.2;  /* @kind other */
  --lh-snug:    1.35; /* @kind other */
  --lh-normal:  1.5;  /* @kind other */
  --lh-relaxed: 1.6;  /* @kind other */

  /* ---- Letter spacing ---- */
  --ls-tight:  -0.01em; /* @kind other */
  --ls-normal: 0;       /* @kind other */
  --ls-wide:   0.02em;  /* @kind other */
}

/* Roles — apply directly to elements */
.an-display   { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--text-brand); }
.an-h1        { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--text-brand); }
.an-h2        { font-family: var(--font-sans); font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--text-primary); }
.an-h3        { font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--text-primary); }
.an-title     { font-family: var(--font-sans); font-size: var(--fs-18); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--text-primary); }
.an-body      { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: var(--fw-regular); line-height: var(--lh-normal); color: var(--text-primary); }
.an-body-med  { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: var(--fw-medium); line-height: var(--lh-normal); color: var(--text-primary); }
.an-small     { font-family: var(--font-sans); font-size: var(--fs-14); font-weight: var(--fw-regular); line-height: var(--lh-normal); color: var(--text-secondary); }
.an-caption   { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: var(--lh-normal); color: var(--text-muted); }
.an-accent    { font-family: var(--font-accent); font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--text-brand); }
