/* ============================================================
   blis™ — "Autonomy" design tokens
   The site's own tokens, then the template's token names mapped
   onto them. Spec: docs/design.md
   ============================================================ */

/* --- Self-hosted type ---------------------------------------
   Latin subsets from Fontsource (all three families are OFL).
   Archivo and Source Serif 4 are variable fonts: one file covers
   every weight the design uses. */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/static/platform/fonts/vendor/archivo-5.3.0-latin-wght-normal.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;
}

@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/static/platform/fonts/vendor/source-serif-4-5.3.1-latin-opsz-normal.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;
}

@font-face {
    font-family: 'Source Serif 4';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/static/platform/fonts/vendor/source-serif-4-5.3.1-latin-opsz-italic.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;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/platform/fonts/vendor/ibm-plex-mono-5.3.0-latin-400-normal.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;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/platform/fonts/vendor/ibm-plex-mono-5.3.0-latin-500-normal.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 {
    /* ── Colour ─────────────────────────────────────────────
       Warm and sky are grounds and large display text only:
       never small text on bone (docs/design.md §1). Warm text
       on bone uses --warm-ink. */
    --bone: #F5F0E6;
    --bone-deep: #E7E0D0;
    --bone-deeper: #DAD2BE;
    --charcoal: #1B201D;
    --charcoal-hover: #2C332F;
    --charcoal-lift: #253029;
    --moss: #4B634F;
    --sage: #9CC09E;
    --warm: #B9805F;
    --warm-ink: #935F40;
    --sky: #658CA6;
    --sky-wash: rgba(101, 140, 166, .14);

    --rule: rgba(27, 32, 29, .35);
    --rule-soft: rgba(27, 32, 29, .2);
    --rule-nav: rgba(27, 32, 29, .3);
    --rule-on-dark: rgba(245, 240, 230, .3);
    --rule-on-dark-soft: rgba(245, 240, 230, .2);
    --rule-on-moss: rgba(245, 240, 230, .35);
    --disabled-fill: rgba(27, 32, 29, .08);
    --disabled-rule: rgba(27, 32, 29, .55);

    /* ── Type ───────────────────────────────────────────────
       Each step is fluid between its 390px and 1440px sizes. */
    --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* 40 → 82, and no taller than a short widescreen allows: the real line has to be in view. */
    --text-h1: clamp(2.5rem, min(1.525rem + 4vw, 8.4svh), 5.125rem);
    --text-price: clamp(3rem, 2.257rem + 3.048vw, 5rem);          /* 48 → 80 */
    --text-payoff: clamp(2.75rem, 1.729rem + 4.19vw, 5.5rem);     /* 44 → 88 */
    --text-h2-large: clamp(2rem, 1.396rem + 2.476vw, 3.625rem);   /* 32 → 58 */
    --text-h2: clamp(1.875rem, 1.364rem + 2.095vw, 3.25rem);      /* 30 → 52 */
    --text-h2-email: clamp(1.75rem, 1.379rem + 1.524vw, 2.75rem); /* 28 → 44 */
    --text-h3-large: clamp(1.5rem, 1.361rem + .571vw, 1.875rem);  /* 24 → 30 */
    --text-h3: clamp(1.375rem, 1.236rem + .571vw, 1.75rem);       /* 22 → 28 */
    --text-h3-small: clamp(1.25rem, 1.111rem + .571vw, 1.625rem); /* 20 → 26 */
    --text-faq: clamp(1.1875rem, 1.025rem + .667vw, 1.625rem);    /* 19 → 26 */
    --text-statement: clamp(1.5rem, 1.268rem + .952vw, 2.125rem); /* 24 → 34 */
    --text-statement-serif: clamp(1.5rem, 1.221rem + 1.143vw, 2.25rem); /* 24 → 36 */
    --text-claim: clamp(1.1875rem, 1.071rem + .476vw, 1.5rem);    /* 19 → 24 */
    --text-testimonial: clamp(1.25rem, 1.064rem + .762vw, 1.75rem); /* 20 → 28 */
    --text-figure: clamp(1.375rem, 1.143rem + .952vw, 2rem);      /* 22 → 32 */
    --text-lead: clamp(1.0625rem, .946rem + .476vw, 1.375rem);    /* 17 → 22 */
    --text-body-xl: clamp(1.0625rem, .97rem + .381vw, 1.3125rem); /* 17 → 21 */
    --text-body-lg: clamp(1.0625rem, .993rem + .286vw, 1.25rem);  /* 17 → 20 */
    --text-row: clamp(1rem, .93rem + .286vw, 1.1875rem);          /* 16 → 19 */
    --text-body: clamp(1rem, .954rem + .19vw, 1.125rem);          /* 16 → 18 */
    --text-button: clamp(1.0625rem, 1.039rem + .095vw, 1.125rem); /* 17 → 18 */
    --text-ui: 1rem;                                              /* 16 */
    --text-small: .9375rem;                                       /* 15 */
    --text-caption: .75rem;                                       /* 12, mono, placeholders only */
    --text-kicker: clamp(.9375rem, .914rem + .095vw, 1rem);       /* 15 → 16 */

    /* ── Space ───────────────────────────────────────────── */
    --gutter: 20px;
    --width-content: 1296px;
    --section-pad: clamp(3rem, 1.886rem + 4.571vw, 6rem);         /* 48 → 96 */
    --band-pad: clamp(2.75rem, 1.729rem + 4.19vw, 5.5rem);        /* 44 → 88 */
    --payoff-pad: clamp(3.5rem, 2.386rem + 4.571vw, 6.5rem);      /* 56 → 104 */

    /* ── Motion ─────────────────────────────────────────────
       Hover colour only. There is no animation in the design. */
    --transition: 150ms ease;
}

@media (min-width: 600px) {
    :root {
        --gutter: 32px;
    }
}

@media (min-width: 900px) {
    :root {
        --gutter: 72px;
    }
}

/* --- Template tokens ---------------------------------------
   The names base.css and the template's components read,
   mapped onto the palette. The site is light-only. */
:root {
    color-scheme: light;

    --color-background: var(--bone);
    --color-surface: var(--bone);
    --color-text: var(--charcoal);
    --color-text-muted: #525450;
    --color-border: var(--rule);
    --color-accent: var(--moss);
    --color-on-accent: var(--bone);
    --color-danger: var(--warm-ink);
    --color-danger-surface: var(--bone-deep);

    --font-body: var(--font-sans);
    --font-size-small: var(--text-small);
    --font-size-body: var(--text-ui);
    --font-size-title: var(--text-h2);
    --line-height: 1.5;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;

    --radius: 0;
    --content-width: var(--width-content);
}
