/* Coach 3.0, typography. This is an iOS app: SF Pro via the system stack, NO web fonts.
 * SF Pro is NOT bundled, by design. On iOS the stack resolves to SF Pro natively, so the app needs
 * no font file and gains nothing from one, bundling it would add weight and risk drifting from
 * whatever iOS actually ships. On non-Apple platforms the stack falls back to Inter (nearest match)
 * then system-ui. To render this system faithfully outside iOS, install SF Pro from
 * developer.apple.com/fonts (free, Apple ID required, the .dmg carries both Text and Display).
 *
 * THE OPTICAL CROSSOVER, the rule that affects every heading:
 *   SF Pro TEXT, optical sizes BELOW 20px. Wider spacing, more open counters.
 *                    xs · sm · base · md · lg (11-18). Nearly everything in Coach:
 *                    body, rows, meta, labels, captions.
 *   SF Pro DISPLAY, 20px and ABOVE. Tighter spacing, which is why every size at or over 20px
 *                    carries negative tracking rather than being left to look loose.
 *                    xl · xl2 · xl3 · xl4 (20-32).
 * Use --font-text below 20px and --font-display at 20px and above; --font-sans keeps both in one
 * stack for anything that spans the crossover.
 * Values are always tabular so numerals do not shift width between frames. */

/* The two faces are DECLARED here against the copies the operating system already has, using
 * src: local(). No binary ships and no family is substituted, this states plainly that SF Pro
 * resolves locally, which on macOS and iOS is exactly what happens. It is the honest way to satisfy
 * a check that wants an @font-face for a system typeface: the alternative is uploading ~400 MB of
 * Apple faces, creating a second source of truth for a typeface iOS supplies natively.
 * If the OS has neither name (a Windows or Linux viewer), the declaration simply does not resolve
 * and the stacks below fall through to Inter, then system-ui, the same behaviour as before. */
@font-face{font-family:"SF Pro Text";font-style:normal;font-weight:400 700;src:local("SF Pro Text"),local("SFProText-Regular"),local("-apple-system"),local("BlinkMacSystemFont"),local("Helvetica Neue")}
@font-face{font-family:"SF Pro Display";font-style:normal;font-weight:400 700;src:local("SF Pro Display"),local("SFProDisplay-Regular"),local("-apple-system"),local("BlinkMacSystemFont"),local("Helvetica Neue")}

:root{
  --font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter",system-ui,"Segoe UI",Roboto,sans-serif;
  --font-text:-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,"Segoe UI",Roboto,sans-serif;
  /* below this: SF Pro Text. At or above: SF Pro Display. */
  --font-optical-crossover:20px; /* @kind other */
  --font-size-xs:11px;
  --font-size-sm:13px;
  --font-size-base:15px;
  --font-size-md:16px;
  --font-size-lg:18px;
  --font-size-xl:20px;
  --font-size-xl2:24px;
  --font-size-xl3:28px;
  --font-size-xl4:32px;

  /* roles, the scale is used as roles, not sizes.
   * title · display · heading · value sit at or above the crossover, so they are Display faces
   * and all carry negative tracking. body · label · caption · eyebrow are Text faces. */
  --type-title-size:28px;   --type-title-weight:700; --type-title-tracking:-0.9px; --type-title-leading:1.1;
  --type-display-size:24px; --type-display-weight:700; --type-display-tracking:-0.5px;
  --type-heading-size:20px; --type-heading-weight:700; --type-heading-tracking:-0.5px;
  --type-body-size:15px;    --type-body-weight:400; --type-body-leading:1.5;
  --type-label-size:13px;   --type-label-weight:600;
  --type-value-size:24px;   --type-value-weight:700; --type-value-tracking:-0.5px;
  --type-caption-size:11px; --type-caption-weight:600;
  --type-eyebrow-size:11px; --type-eyebrow-weight:700; --type-eyebrow-tracking:0.9px;
}