/* ============================================================
   SDAA Archery Results — Design Tokens (single source of truth)
   Palette and type follow the sdarchers.com brand system
   (NFAA navy/yellow/cyan/red + Rift & Roboto).
   ============================================================ */

/* ---------------------------------------------------------------------------
   Rift — display/heading face, self-hosted (the same files the main site ships).
   --------------------------------------------------------------------------- */
@font-face {
    font-family: 'Rift';
    src: url('../fonts/rift-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rift';
    src: url('../fonts/rift-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rift';
    src: url('../fonts/rift-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rift';
    src: url('../fonts/rift-700-italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ---------------------------------------------------------------------------
   Roboto — body face, self-hosted rather than pulled from Google Fonts, which
   would cost a preconnect pair plus a render-blocking stylesheet before the
   font itself could start downloading.
   --------------------------------------------------------------------------- */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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: 'Roboto';
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    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: 'Roboto';
    src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Brand — NFAA navy with SDAA yellow as the accent */
    --primary-color: #00263E;
    --primary-light: #044569;
    --primary-dark: #001A2B;
    --primary-gradient: linear-gradient(135deg, #00263E 0%, #001A2B 100%);
    --primary-gradient-soft: linear-gradient(135deg, #044569 0%, #00263E 100%);

    /* Yellow is the call-to-action colour on sdarchers.com; the NFAA red stays
       available for destructive/alert states as --danger-color.
       --accent-color is the decorative yellow: fills, borders, rules, and text
       on navy. It is far too light for text on a white card (1.9:1), so use
       --accent-ink for that — same hue, dark enough to read (6:1 on white). */
    --accent-color: #F2A900;
    --accent-hover: #D49400;
    --accent-ink: #8A5A00;
    --accent-soft: #FFF7E6;
    --gold-accent: #F2A900;
    --gold-soft: #FFF7E6;

    --danger-color: #C63527;
    --danger-hover: #A62A1E;
    --info-color: #05C3DD;
    --success-color: #00594C;

    /* Surfaces — the warm shell/sand pair the main site sits on; white cards
       need a warm ground or they read flat. */
    --bg-body: #FAF9F8;
    --bg-card: #ffffff;
    --bg-muted: #E8E5E0;
    --bg-accent-tint: #EAF6FA;

    /* Text */
    --text-main: #00263E;
    --text-secondary: #3F5462;
    --text-muted: #6B7A85;
    --text-on-primary: #ffffff;

    /* Borders & focus */
    --border-subtle: #D7D2CB;
    --border-strong: #B9B2A8;
    --focus-ring: rgba(242, 169, 0, 0.35);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 38, 62, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 38, 62, 0.1);
    --shadow-lg: 0 12px 24px rgba(0, 38, 62, 0.12);
    --shadow-hover: 0 16px 32px rgba(0, 38, 62, 0.16);

    /* Typography — Rift for display/headings, Roboto for body */
    --font-display: 'Rift', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    --font-heading: 'Rift', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Roboto', system-ui, sans-serif;

    /* Type scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    /* Brackets page aliases (legacy variable names) */
    --primary-core: var(--primary-dark);
    --primary-container: var(--primary-color);
    --primary-fixed: #FFE7B0;
    --secondary-core: var(--accent-hover);
    --secondary-container: var(--accent-color);
    --surface: var(--bg-body);
    --surface-container-low: var(--bg-muted);
    --surface-container: #EFECE7;
    --surface-container-lowest: var(--bg-card);
    --outline: var(--text-muted);
    --outline-variant: var(--border-subtle);
    --on-surface: var(--text-main);
    --font-tech: var(--font-display);
}
