/* Glas Community — typography tokens.
   Derived from the Glas Community Typography Specification.
   Source Serif 4 dominates; Courier Prime structures; Caveat adds a human line. */

:root {
  /* ---- Families ---- */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "Courier Prime", "Courier New", Courier, monospace;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* ---- Weights ---- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;   /* heaviest weight used for serif — never Black/ExtraBold */

  /* ---- Fluid sizes (desktop → mobile), per spec ---- */
  --type-display-size: clamp(2.625rem, 5vw, 4rem);   /* 42 → 64px */
  --type-display-leading: 1.06;
  --type-h1-size: clamp(2.25rem, 4vw, 3rem);         /* 36 → 48px */
  --type-h1-leading: 1.12;
  --type-h2-size: clamp(1.75rem, 3vw, 2.125rem);     /* 28 → 34px */
  --type-h2-leading: 1.2;
  --type-h3-size: clamp(1.375rem, 2vw, 1.5rem);      /* 22 → 24px */
  --type-h3-leading: 1.25;
  --type-intro-size: clamp(1.1875rem, 1.6vw, 1.3125rem); /* 19 → 21px */
  --type-intro-leading: 1.5;
  --type-body-size: 1.0625rem;   /* 17px */
  --type-body-leading: 1.6;
  --type-body-sm-size: 0.9375rem;/* 15px */
  --type-body-sm-leading: 1.53;
  --type-caption-size: 0.8125rem;/* 13px */
  --type-caption-leading: 1.46;

  /* ---- Functional (Courier Prime) ---- */
  --type-label-size: 0.875rem;   /* 14px */
  --type-label-leading: 1.35;
  --type-label-tracking: 0.15em; /* uppercase labels: 0.12–0.18em */
  --type-meta-size: 0.8125rem;   /* 13px */
  --type-meta-tracking: 0.02em;

  /* ---- Handwritten (Caveat) ---- */
  --type-hand-size: 1.5rem;      /* 24px standard line */
  --type-hand-leading: 1.1;
  --type-hand-lg-size: 2rem;     /* 32px slogan */

  /* ---- Tracking for serif headings ---- */
  --tracking-display: -0.015em;
  --tracking-heading: -0.005em;

  /* ---- Reading measure ---- */
  --measure-body: 68ch;          /* keep paragraphs ≤ ~70 characters */
}
