:root{
--font-display:'Instrument Sans','IBM Plex Sans Thai',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
--font-body:'IBM Plex Sans Thai','Instrument Sans',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
--font-mono:'IBM Plex Mono',ui-monospace,monospace;

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

/* --- role sizes ---------------------------------------------------------
   Every value below is consumed by a component rule. The previous scale
   (--type-display-mega .. --type-title-sm, and the .t-* utility classes that
   were its only consumers) described a system no page referenced: 0 uses
   across all six page stylesheets and all PHP. It has been replaced with the
   sizes the pages actually render, so the token file and the site agree.

   Role names, not t-shirt sizes: a role can be re-tuned in one place without
   every other size shifting to keep a ramp intact. */
--type-display:clamp(30px,4.2vw,48px);   /* hero H1 — the 30px floor is load-bearing */
/* The secondary pages carry a short one-line title (บริการของเรา, ติดต่อเรา);
   the homepage H1 carries four wrapped service phrases. Different typographic
   problems, so the system holds two display roles — but only two. Four pages had
   been setting clamp(32px,4.4vw,52px) inline, which raised the 30px floor the
   .v2-h1 comment calls load-bearing. Same desktop cap as before, floor restored. */
--type-display-page:clamp(30px,4.4vw,52px);
/* The article headline. A long wrapping sentence, not a one-word page title, so it
   sits below --type-display-page rather than sharing it. */
--type-display-article:clamp(28px,3.6vw,44px);
--type-headline:clamp(26px,3.4vw,40px);  /* band H2 */
--type-subhead:clamp(22px,2.8vw,32px);   /* a second-order H2 inside a band */
/* The top of the in-article prose ramp: 28 over --type-title (20) over
   --type-subtitle (18). Not a band heading -- it is set against 17px Sarabun running
   copy, and pushing it to --type-subhead would open too wide a gap to the h3 below. */
--type-prose-h2:clamp(22px,2.4vw,28px);
--type-numeral:clamp(36px,4.6vw,52px);   /* step numerals, mono, digits only */
--type-title:20px;      /* card H3, step title, article-card title */
--type-subtitle:18px;   /* checklist title, why-row label */
--type-lead:18px;       /* the paragraph directly under an H1 or H2 */
--type-base:16px;       /* body copy, controls, nav */
--type-meta:15px;       /* eyebrow, caption, article category, hero foot label */
--type-micro:14px;      /* footer column head, TH/EN toggle, registration number */
--type-legal:13px;      /* the legal band */
--type-badge:12px;      /* the one uppercase Latin pill */
--type-wordmark:21px;    /* the lockup in the header bar */
--type-wordmark-lg:24px; /* one step up, in the footer */

/* --- leading -------------------------------------------------------------
   Tuned per role rather than one ratio everywhere. Thai needs the vertical
   room: display never below 1.2, running copy at 1.75. --lh-label is for
   short strings that do not wrap. */
--lh-display:1.2;
--lh-headline:1.22;
--lh-subhead:1.25;
--lh-title:1.4;
--lh-lead:1.7;
--lh-read:1.75;
--lh-label:1.6;

/* --- shorthand roles still consumed as `font:` --------------------------- */
--type-body-md:400 16px/1.5 var(--font-body);
--type-body-sm:400 14px/1.5 var(--font-body);
--type-title-md:600 18px/1.33 var(--font-body);
--type-caption:400 13px/1.5 var(--font-body);
--type-caption-strong:600 12px/1.5 var(--font-display);
--type-button:600 16px/1.15 var(--font-body);

--tracking-flat:0;

/* Thai overrides — mandatory whenever a string contains Thai */
--thai-display-line-height:1.2;
--thai-body-line-height:1.75;
--thai-tracking:0;
--thai-body-size-min:16px;
}
