/*
 * Type scale (a rule of the product line) and the two families (a decision of the product kit).
 *
 * The scale, weights and line heights below are NOT changed per project: they are what
 * core.md §17 fixes for every product of the line. The families are the kit decision
 * (project_files/ui/product-kit.md §3): one system grotesque for text and headings, so there
 * are no text font files and no request for one (spec.md §9); the only file is Caveat for the
 * author signature (rules.md §1.3), declared below and kept in web/fonts/. Nothing is requested
 * from outside the page (Content-Security-Policy). Figures keep U+2212 and U+00A0 (core.md §3).
 */

/* Latin subset only, weight 500: the signature is a name in Latin letters. The URL is relative to this file. */
@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../../fonts/caveat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font-ui);
    /* Author signature only (rules.md §1.3); the fallbacks are other handwriting faces, then the generic. */
    --font-signature: Caveat, "Segoe Script", "Bradley Hand", cursive;

    /* Nothing below 15px exists in the line scale (core.md §17.8); the public site has its own, below. */
    --fs-caption: 15px;
    --fs-body: 16px;
    --fs-text: 17px;
    --fs-card: 18px;
    --fs-section: 20px;
    --fs-widget: 22px;
    --fs-h2: 26px;
    --fs-value: 28px;
    --fs-page: 36px;

    /* Public-site scale (rules.md §1.1, D-022). 16–18px and headings come from the scale above.
       The admin does not use these tokens. */
    --fs-site-label: 12px;   /* section label */
    --fs-site-meta: 13px;    /* service lines: dates, status, meta */
    --fs-site-read: var(--fs-caption);   /* 15px: text people read */

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

    --lh-text: 1.65;
    --lh-tight: 1.25;
    --lh-flat: 1;

    /* Figures are tabular everywhere: columns of numbers must line up. */
    --numeric: tabular-nums;
}
