/* furoki-type.css v1: the shared Furoki type scale for the products (Marco, Concierge, Bingo).
   The :root block uses the same token names and values as furoki-website/css/site-tokens.css (furoki.com), plus two
   product-only tokens for dense app UI (--type-dense, --leading-dense). The rules below map the shared brand components
   (brand/furoki.css) onto the scale, so product pages read like furoki.com and its blog: 18/28 body text in #292929 ink,
   a 24/20px lead, h1 56/38px, section h2 40/30px, and 14-16px UI text at 4.5:1 or better.
   Load order: furoki-tokens.css (or the product's mapped tokens), furoki.css, furoki-type.css, then the product's own CSS.
   This file and the product token file are the only places raw px sizes or colour literals are allowed (npm run check:tokens).
   Keep it identical in every product repo. Docs: https://github.com/derestine/furoki-website/blob/master/docs/design-tokens.md
   and this repo's docs/design-tokens.md. */
:root {
  /* type scale: one body size for every reading surface, phones included */
  --type-micro: 13px;                                  /* mock UI inside the landscape scenes (glass panels) only */
  --type-caption: 14px;                                /* captions, footnotes, legal line, contents list, small buttons */
  --type-small: 15px;                                  /* UI and meta: nav, buttons, eyebrows, dates, labels, footer links */
  --type-ui: 16px;                                     /* large buttons, table cells, the author name */
  --type-body: 18px;                                   /* body and paragraph text, everywhere */
  --type-quote: 20px;                                  /* pull quotes, h4-level subheads, the avatar letter */
  --type-lead: clamp(20px, .5vw + 17px, 24px);         /* lead/intro: a post's dek, a hero's sub line */
  --type-h4: 20px;                                     /* card and cell titles, FAQ questions */
  --type-h3: clamp(21px, .8vw + 15px, 26px);           /* subsection heads */
  --type-card: 22px;                                   /* Keep reading card titles */
  --type-h2: clamp(26px, 1.25vw + 18px, 34px);         /* section heads inside a post or page column */
  --type-title-sm: clamp(22px, .5vw + 18px, 26px);     /* compact list titles */
  --type-title: clamp(30px, 1.1vw + 22px, 38px);       /* blog list titles, homepage section heads */
  --type-feature: clamp(32px, 1.2vw + 23px, 38px);     /* the featured post title */
  --type-section: clamp(30px, 1.6vw + 20px, 40px);    /* homepage and landing-page section heads */
  --type-h1-compact: clamp(32px, 2vw + 20px, 44px);    /* h1 on tools, legal and 404 pages */
  --type-h1: clamp(38px, 2.8vw + 20px, 56px);          /* page and post headlines, the homepage hero */
  --type-art: clamp(36px, 4vw, 56px);                  /* big word on a brand panel */
  --type-metric: 30px;                                 /* a single large number */

  --type-dense: 13px;                                  /* products only: dense app UI (dashboards, tables, chat chrome); never page copy */

  /* line heights (unitless, so they scale with the size) */
  --leading-tight: 1.12;    /* display headlines */
  --leading-heading: 1.25;  /* h1/h2, list titles */
  --leading-snug: 1.36;     /* h3/h4, card titles */
  --leading-lead: 1.45;     /* lead text */
  --leading-ui: 1.5;        /* captions, table cells */
  --leading-small: 1.6;     /* UI/meta text (15px -> 24px) */
  --leading-body: 1.56;     /* body text (18px -> 28px) */
  --leading-dense: 1.45;    /* products only: dense app UI */

  /* letter spacing */
  --tracking-display: -.015em;
  --tracking-tight: -.01em;
  --tracking-label: .06em;

  /* measure: the width text runs to */
  --measure-body: 736px;    /* post and page body column (~70 characters at 18px) */
  --measure-page: 760px;    /* tools, legal and FAQ columns */
  --measure-text: 640px;    /* a paragraph beside other content (cells, split sections) */
  --measure-dek: 600px;     /* a list dek */
  --measure-note: 420px;    /* the short note set beside a headline */

  /* text colours (roles; values come from brand/furoki-tokens.css) */
  --text-body: var(--text-strong);         /* #292929 ink on sand, 12.9:1: body, lead and headings */
  --text-meta: var(--text-subtle);         /* #6c6a66 on sand, 4.8:1: dates, captions, labels, footer small print */
  --text-on-dark: var(--on-gfx);           /* white on gradient panels and dark glass */
  --text-on-dark-muted: rgba(255, 255, 255, .85);
  --text-on-glass-muted: rgba(255, 255, 255, .92);  /* secondary text on the dark glass panels (was .72, 4.0:1 measured on the brightest scene; now 4.5:1+) */
  --line-on-dark: rgba(255, 255, 255, .35);
  --line-on-dark-strong: rgba(255, 255, 255, .55);
  --shadow-glass: 0 10px 30px rgba(0, 0, 0, .18);
  --shadow-raised: 0 2px 6px rgba(0, 0, 0, .04);
}

/* ── Type roles for the shared brand components (and reusable .t-* classes) ── */
body { font-size: var(--type-body); line-height: var(--leading-body); }
main { --text-default: var(--text-body); }

/* body */
.t-body, .body, .ticks li, .features p, .product .txt p, .steps p, details p, .price li, .pro p, .legal p, .legal li {
  font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); }
.body, .t-measure { max-width: var(--measure-text); }
.legal p, .legal li { max-width: var(--measure-body); }

/* lead */
.t-lead, .hero .sub, .sub-c { font-size: var(--type-lead); line-height: var(--leading-lead); color: var(--text-body); }
.final .sub-c { color: var(--text-on-dark-muted); }

/* headings */
.t-h1, .hero h1 { font-size: var(--type-h1); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
.t-h1-compact, .legal h1 { font-size: var(--type-h1-compact); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
.t-section, .section h2, .final h2 { font-size: var(--type-section); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
.t-h2 { font-size: var(--type-h2); line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); }
.t-h3, .legal h2 { font-size: var(--type-h3); line-height: var(--leading-snug); }
.t-h4, .features h3, .product .txt h3, .steps h3, .pro h3 { font-size: var(--type-h4); line-height: var(--leading-snug); }
.product .pic .name, .amt { font-size: var(--type-h2); }
.legal h2 { margin: 40px 0 12px; }

/* small: UI and meta (15px) */
.t-small, .eyebrow, .trust, .for, .price h3, .amt small, .links a, .nav-cta .txt, .menu > summary, .foot nav a, .btn {
  font-size: var(--type-small); line-height: var(--leading-small); }
.t-meta, .eyebrow, .trust, .for { color: var(--text-meta); }
.btn.lg, .menu > nav a { font-size: var(--type-ui); }
summary { font-size: var(--type-body); line-height: var(--leading-snug); }

/* form labels and controls */
.t-ui { font-size: var(--type-ui); line-height: var(--leading-ui); }

/* caption (14px): small buttons, badges, footer small print, fine print */
.t-caption, .btn.sm, .n, .ribbon, .fine, .foot-brand p, .foot .foot-legal, .foot h4, .foot .foot-h { font-size: var(--type-caption); line-height: var(--leading-ui); }
.fine, .foot-brand p, .foot .foot-legal { color: var(--text-meta); }

/* dense app UI (dashboards, tables, chat chrome): a smaller step, still a token */
.t-dense { font-size: var(--type-dense); line-height: var(--leading-dense); }

/* bigger button text must never push a narrow card wider than the screen */
.cta-row .btn { max-width: 100%; }
@media (max-width: 340px) { .cta-row .btn { white-space: normal; text-align: center; } }
/* the 15px nav type must still fit a 320px phone: menu, button and product name tighten below 360px */
@media (max-width: 360px) {
  .nav-cta { gap: 4px; }
  .menu > summary { font-size: var(--type-caption); padding: 0 8px; }
  .nav-cta .btn.sm { padding-inline: 8px; }
  .brand .prod { margin-left: 6px; padding-left: 6px; }
}
