/*
 * tokens.css — single source of the Coverband design tokens (#486)
 * ----------------------------------------------------------------
 * Loaded first by both bases (templates/base.html and mobile/base.html).
 * gig-design-system.css (desktop) and mobile-v2.css (V2) consume these
 * variables instead of redefining them: change a brand color HERE only.
 *
 * Still mirrored by hand (cannot read CSS variables yet):
 *   - the tailwind.config colors in templates/base.html (until the Tailwind
 *     CLI build, #483);
 *   - static/css/app-mode.css (V1 mobile layer, removed with #489).
 *
 * Fonts are self-hosted (SIL OFL, see static/fonts/<family>/LICENSE.txt): the
 * production CSP blocks fonts.googleapis.com, so the V2 never got Inter.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter/inter-latin-wght-normal.8e433c0592f7.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter/inter-latin-ext-wght-normal.ad4eb06671be.woff2") format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url("../fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.33d0fc2ba586.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Brand palette */
    --gig-dark: #231F20;
    --gig-surface: #FFF9F0;
    --gig-primary: #FF6120;            /* accent: icons, borders, display text, dark text on it */
    --gig-primary-hover: #E85515;
    --gig-primary-strong: #C2410C;     /* text-bearing buttons, white text 5.2:1 (#479) */
    --gig-primary-strong-hover: #9A3412;
    --gig-link: #B34100;               /* links on cream, 5.5:1 */
    --gig-accent: #FFDC6E;
    --gig-success: #01985A;
    --gig-danger: #C81A11;
    --gig-info: #B8860B;               /* warm amber (V2 reference); one value everywhere */
    --gig-special: #E04293;

    /* Status colors as TEXT on their own light tint (badges): the brand values above are too
       light for small text; these are >= 4.5:1 (#487). */
    --gig-success-text: #017045;
    --gig-info-text: #7A5800;
    --gig-special-text: #A81F66;

    /* Gradients */
    --gig-grad-accent: linear-gradient(135deg, #FF8C20 0%, #FF5510 100%);
    --gig-grad-strong: linear-gradient(135deg, #CC4A0E 0%, #C2410C 100%);
    --gig-grad-page: linear-gradient(to bottom, #FFD72D 0%, #F5800C 100%);
    --gig-pattern-hatch:
        repeating-linear-gradient(45deg, rgba(35, 31, 32, 0.035) 0 1px, transparent 1px 6px),
        repeating-linear-gradient(-45deg, rgba(35, 31, 32, 0.035) 0 1px, transparent 1px 6px);

    /* Ink & rules (on cream/white; every text step >= 4.5:1, #479) */
    --ink: #231F20;
    --ink-soft: rgba(35, 31, 32, 0.72);
    --ink-softer: rgba(35, 31, 32, 0.62);
    --rule: rgba(35, 31, 32, 0.08);
    --rule-strong: rgba(35, 31, 32, 0.14);

    /* Radii & shadows */
    --gig-radius-sm: 8px;
    --gig-radius-md: 12px;
    --gig-radius-lg: 16px;
    --gig-radius-xl: 20px;
    --gig-shadow-sm: 0 1px 3px rgba(35, 31, 32, 0.06);
    --gig-shadow-md: 0 4px 12px rgba(35, 31, 32, 0.08);
    --gig-shadow-lg: 0 8px 24px rgba(35, 31, 32, 0.1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
