/* Venturoo typography: the one type scale for every page on the website.
 *
 * Modelled on circle.so: Inter at 400/500/600/700, bold headings with tight negative tracking (64px page titles, -1.5px),
 * medium-weight 18–20px body copy, 16px buttons and nav. Desktop values come first; the two @media blocks step the whole
 * scale down for tablets (991px and narrower) and phones (767px and narrower), so headings never overflow a small screen.
 *
 * Pages use these tokens instead of raw sizes. Each --type-* token is a complete `font:` shorthand (weight, size/line-height,
 * family); pair it with the matching letter-spacing token, e.g.
 *   h1 { font: var(--type-h1); letter-spacing: var(--t-h1-ls); }
 */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tightest: 1.1;
  --lh-tighter: 1.2;
  --lh-tight: 1.3;
  --lh-normal: 1.4;
  --lh-loose: 1.5;
  --lh-prose: 1.6;                 /* long reading text: legal pages, multi-paragraph copy */

  --ls-xxl: -1.5px;
  --ls-xl: -1px;
  --ls-lg: -0.5px;
  --ls-md: -0.25px;
  --ls-sm: -0.1px;
  --ls-none: 0;
  --ls-caps: 0.05em;               /* small uppercase labels */

  /* headings */
  --t-h1: 64px;  --t-h1-lh: var(--lh-tightest); --t-h1-ls: var(--ls-xxl);   /* page and hero titles */
  --t-h2: 56px;  --t-h2-lh: var(--lh-tightest); --t-h2-ls: var(--ls-xxl);   /* homepage section titles */
  --t-h3: 48px;  --t-h3-lh: var(--lh-tightest); --t-h3-ls: var(--ls-xxl);   /* closing call-to-action banners */
  --t-h4: 40px;  --t-h4-lh: var(--lh-tighter);  --t-h4-ls: var(--ls-xl);    /* titles inside a section */
  --t-h5: 32px;  --t-h5-lh: var(--lh-tighter);  --t-h5-ls: var(--ls-xl);    /* feature titles, legal-page headings */
  --t-h6: 24px;  --t-h6-lh: var(--lh-tight);    --t-h6-ls: var(--ls-lg);    /* card titles */
  --t-h7: 20px;  --t-h7-lh: var(--lh-tight);    --t-h7-ls: var(--ls-lg);    /* small card titles, FAQ questions */

  /* body */
  --t-lead: 20px;    --t-lead-lh: var(--lh-normal); --t-lead-ls: var(--ls-lg);   /* larger body: the intro under a title */
  --t-body: 18px;    --t-body-lh: var(--lh-tight);  --t-body-ls: var(--ls-md);   /* body copy */
  --t-prose-lh: var(--lh-prose);                                                 /* the same size, set for long reading */
  --t-sm: 16px;      --t-sm-lh: var(--lh-loose);    --t-sm-ls: var(--ls-md);     /* nav, buttons, secondary copy */
  --t-xs: 14px;      --t-xs-lh: var(--lh-normal);   --t-xs-ls: var(--ls-sm);     /* meta, notes, form labels */
  --t-caption: 12px; --t-caption-lh: var(--lh-tight);                            /* tags and small uppercase labels */
  --t-input: 16px;                 /* form fields stay at 16px so phones do not zoom in */
  --t-logo: 21px;

  /* complete font shorthands */
  --type-h1: var(--fw-bold) var(--t-h1)/var(--t-h1-lh) var(--font-sans);
  --type-h2: var(--fw-bold) var(--t-h2)/var(--t-h2-lh) var(--font-sans);
  --type-h3: var(--fw-bold) var(--t-h3)/var(--t-h3-lh) var(--font-sans);
  --type-h4: var(--fw-bold) var(--t-h4)/var(--t-h4-lh) var(--font-sans);
  --type-h5: var(--fw-bold) var(--t-h5)/var(--t-h5-lh) var(--font-sans);
  --type-h6: var(--fw-bold) var(--t-h6)/var(--t-h6-lh) var(--font-sans);
  --type-h7: var(--fw-bold) var(--t-h7)/var(--t-h7-lh) var(--font-sans);
  --type-lead: var(--fw-medium) var(--t-lead)/var(--t-lead-lh) var(--font-sans);
  --type-body: var(--fw-medium) var(--t-body)/var(--t-body-lh) var(--font-sans);
  --type-prose: var(--fw-medium) var(--t-body)/var(--t-prose-lh) var(--font-sans);
  --type-sm: var(--fw-medium) var(--t-sm)/var(--t-sm-lh) var(--font-sans);
  --type-xs: var(--fw-medium) var(--t-xs)/var(--t-xs-lh) var(--font-sans);
  --type-caption: var(--fw-medium) var(--t-caption)/var(--t-caption-lh) var(--font-sans);
  --type-caps: var(--fw-bold) var(--t-caption)/var(--t-caption-lh) var(--font-sans);    /* + letter-spacing: var(--ls-caps); text-transform: uppercase */
  --type-overline: var(--fw-semibold) var(--t-xs)/var(--t-xs-lh) var(--font-sans);    /* + letter-spacing: var(--ls-caps); text-transform: uppercase */
  --type-nav: var(--fw-medium) var(--t-sm)/var(--t-sm-lh) var(--font-sans);
  --type-btn: var(--fw-semibold) var(--t-sm)/1.25 var(--font-sans);                    /* + letter-spacing: var(--ls-md) */
  --type-btn-sm: var(--fw-semibold) var(--t-xs)/1.3 var(--font-sans);                  /* + letter-spacing: var(--ls-sm) */
  --type-input: var(--fw-regular) var(--t-input)/var(--lh-loose) var(--font-sans);
}

/* tablets */
@media (max-width: 991px) {
  :root {
    --t-h1: 48px; --t-h1-lh: var(--lh-tighter); --t-h1-ls: var(--ls-xl);
    --t-h2: 40px; --t-h2-lh: var(--lh-tighter); --t-h2-ls: var(--ls-xl);
    --t-h3: 40px; --t-h3-lh: var(--lh-tighter); --t-h3-ls: var(--ls-xl);
    --t-h4: 32px; --t-h4-lh: var(--lh-tight);
    --t-h5: 28px; --t-h5-lh: var(--lh-tight);
    --t-lead: 18px; --t-lead-lh: var(--lh-loose); --t-lead-ls: var(--ls-md);
    --t-body: 16px; --t-body-lh: var(--lh-loose);
  }
}

/* phones */
@media (max-width: 767px) {
  :root {
    --t-h1: 36px;
    --t-h2: 32px;
    --t-h3: 32px; --t-h3-lh: var(--lh-tight);
    --t-h4: 28px; --t-h4-ls: var(--ls-lg);
    --t-h5: 24px; --t-h5-ls: var(--ls-lg);
    --t-h6: 20px;
    --t-h7: 18px; --t-h7-ls: var(--ls-md);
    --t-lead: 16px;
    --t-logo: 19px;
  }
}
