/* ============================================================================
   1mFacts — tokens + self-hosted faces (omf-theme 1.0.0, 2026-11-20)
   Stitch direction C "Countdown" + hero (project 10981775282843262919, design
   system assets/13068488574027214411; user pick 2026-11-20).
   Logo mint #03C998 is a FILL (ink on it 9.0:1) or text on black (9.0:1) —
   never text on white (2.1:1). Links: deep green #00704F (6.1:1 on white).
   Bricolage Grotesque 600–800 (display) + Work Sans 400–700 (+ italic 400).
   ========================================================================= */

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/bricolagegrotesque-normal-600-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/bricolagegrotesque-normal-600-800-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;
}
@font-face {
    font-family: 'Work Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/worksans-italic-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Work Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/worksans-italic-400-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;
}
@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/worksans-normal-400-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/worksans-normal-400-700-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 {
    color-scheme: light;
    /* --- Palette --- */
    --mf-ground:     #FFFFFF;
    --mf-sheet:      #FFFFFF;
    --mf-tint:       #EEF6F3;   /* SMALL surfaces only: TOC, table zebra */
    --mf-rule:       #DDE3E1;
    --mf-rule-soft:  #EDF1EF;
    --mf-ink:        #0B0F0E;   /* body + headlines; black bands */
    --mf-ink-2:      #1A2120;   /* raised surfaces on black */
    --mf-meta:       #4A5452;   /* 7.7:1 on white */
    --mf-mint:       #03C998;   /* logo mint: fills + text on black only */
    --mf-mint-deep:  #02A87F;   /* hover on mint fills */
    --mf-green:      #00704F;   /* link hue, 6.1:1 on white */
    --mf-green-deep: #005A40;
    --mf-on-ink-muted: #B9C4C1; /* 10.6:1 on black */
    --mf-shadow:     0 1px 2px rgba(11, 15, 14, 0.06), 0 8px 24px rgba(11, 15, 14, 0.08);
    --mf-shadow-hover: 0 2px 4px rgba(11, 15, 14, 0.08), 0 14px 32px rgba(11, 15, 14, 0.14);

    /* --- Type --- */
    --mf-display: 'Bricolage Grotesque', 'Arial Black', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --mf-text:    'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --mf-size-body: clamp(1.0625rem, 1.02rem + 0.3vw, 1.1875rem); /* 17–19px */
    --mf-lh-body:   1.7;
    --mf-lh-head:   1.12;
    --mf-title: clamp(1.95rem, 1.4rem + 1.8vw, 2.75rem);          /* H1 caps at 44px */
    --mf-h2:    clamp(1.45rem, 1.25rem + 0.7vw, 1.875rem);
    --mf-h3:    clamp(1.15rem, 1.07rem + 0.3vw, 1.3125rem);

    /* --- Shape & metrics --- */
    --mf-radius:    12px;
    --mf-radius-sm: 8px;
    --mf-page-max:  1320px;
    --mf-sidebar:   304px;
    --mf-side-gap:  2.5rem;
    --mf-gutter:    clamp(1rem, 3vw, 2rem);
    --mf-tap:       44px;

    /* --- Bridge to main.css --- */
    --font-size-body-min: 1.0625rem;
    --font-size-body-max: 1.1875rem;
    --font-size-body-fluid: calc(1.02rem + 0.3vw);
    --font-size-h1-min: 1.95rem;
    --font-size-h1-max: 2.75rem;
    --font-size-h1-fluid: calc(1.4rem + 1.8vw);
    --font-size-h2-min: 1.45rem;
    --font-size-h2-max: 1.875rem;
    --font-size-h2-fluid: calc(1.25rem + 0.7vw);
    --font-size-h3-min: 1.15rem;
    --font-size-h3-max: 1.3125rem;
    --font-size-h3-fluid: calc(1.07rem + 0.3vw);
    --font-size-h4-min: 1.0625rem;
    --font-size-h4-max: 1.1875rem;
    --font-size-h4-fluid: calc(1rem + 0.3vw);
    --font-size-h5-min: 1.0625rem;
    --font-size-h5-max: 1.125rem;
    --font-size-h5-fluid: calc(1rem + 0.2vw);
    --font-size-h6-min: 1rem;
    --font-size-h6-max: 1.0625rem;
    --font-size-h6-fluid: calc(0.96rem + 0.12vw);
    --color-primary:        var(--mf-green);
    --color-primary-dark:   var(--mf-green-deep);
    --color-primary-light:  var(--mf-green);
    --color-secondary:      var(--mf-ink);
    --color-accent:         var(--mf-tint);
    --color-text-primary:   var(--mf-ink);
    --color-text-secondary: var(--mf-ink);
    --color-text-muted:     var(--mf-meta);
    --color-text-light:     var(--mf-meta);
    --color-bg-primary:     var(--mf-ground);
    --color-bg-secondary:   var(--mf-tint);
    --color-bg-light:       var(--mf-ground);
    --color-border:         var(--mf-rule);
    --color-border-light:   var(--mf-rule-soft);
    --color-background:     var(--mf-ground);
    --font-primary:         var(--mf-text);
    --font-heading:         var(--mf-display);
    --font-body:            var(--mf-text);
}
