/* Design tokens: the ONE place colors and fonts are defined for the public site AND
   the admin app. Both read from this file (the public pages via css/tailwind-input.css,
   the admin via admin-spa/src/theme.ts, which an automated test holds in step with this
   file). Design doc: design-docs/2026-10-06-style-tokens.md.

   Every color here is a WEB value (hex/RGB), never the print CMYK or Pantone value.
   Sources: communicationsguide.ucdavis.edu/brand-guide/colors ("Digital branding
   colors") and the live ucdavis.edu stylesheet, as noted per token.

   Never compute a tint: the guide says straight tints of the blue "will not work;
   please use only the color values". Take the next published step instead. */

/* Proxima Nova, loaded straight from the campus font host, exactly as ucdavis.edu
   does (same files, same family name, font-display: swap). Weights 400 and 700 plus
   italic; the campus site does not use semibold. The files are a "macroman"
   character subset: a glyph outside it falls back to the system font for that
   character only. The root .htaccess Content-Security-Policy allows this host. */
@font-face {
    font-family: "Proxima-Nova";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://campusfont.ucdavis.edu/proxima-nova/proximanova_regular_macroman/proximanova-regular-webfont.woff2") format("woff2");
}

@font-face {
    font-family: "Proxima-Nova";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("https://campusfont.ucdavis.edu/proxima-nova/proximanova_italic_macroman/proximanova-regularit-webfont.woff2") format("woff2");
}

@font-face {
    font-family: "Proxima-Nova";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("https://campusfont.ucdavis.edu/proxima-nova/proximanova_bold_macroman/proximanova-bold-webfont.woff2") format("woff2");
}

:root {
    /* ---- Brand primitives: UC Davis Blue ramp (guide, digital hex) ---- */
    --blue-100: #022851; /* Aggie Blue */
    --blue-90: #033266;
    --blue-80: #1D4776;
    --blue-70: #355B85;
    --blue-60: #4F7094;
    --blue-50: #6884A3;
    --blue-40: #8198B2;
    --blue-30: #9AADC2;
    --blue-20: #B3C1D1;
    --blue-10: #CDD6E0;

    /* ---- UC Davis Gold ramp (guide). Gold is a BACKGROUND or an accent on navy,
       never text on white (1.65:1). ---- */
    --gold-100: #FFBF00; /* Aggie Gold */
    --gold-80: #FFCC33;
    --gold-60: #FFD966;
    --gold-40: #FFE599;
    --gold-20: #FFF2CC;
    --gold-10: #FFF9E5;

    /* ---- Black ramp (guide) ---- */
    --ink-90: #191919;
    --ink-80: #333333;
    --ink-60: #666666;
    --ink-50: #7F7F7F;
    --ink-40: #999999;
    --ink-20: #CCCCCC;
    --ink-10: #E5E5E5;

    /* ---- Accents ----
       Wonder Blue is ucdavis.edu's link color (campus CSS: --wonder-blue,
       --brand-primary-80, --brand-info). It is NOT in the guide's published palette.
       #14447A is the campus site's own darker step (--brand-primary-90).
       Tahoe, Double Decker and Redwood are guide secondary colors, used only as
       small text/link accents, never as backgrounds. */
    --wonder-blue: #13639E;
    --wonder-blue-dark: #14447A;
    --tahoe: #00B2E3;
    --double-decker: #C10230;
    --redwood: #266041;

    /* ---- Surfaces (near-neutral paper, not brand colors) ---- */
    --surface-page: #F5F6F8;
    --surface-raised: #FFFFFF;

    /* ---- Roles: reference THESE, not the primitives ----
       Contrast on white (WCAG 2.1 AA needs 4.5:1 text, 3:1 UI components):
       text 17.6, muted 5.7, link 6.4, link-hover 9.8, brand-on-white 14.7,
       control-border 4.0, error 6.3, success 7.4. */
    --text: var(--ink-90);
    --text-soft: var(--ink-80);
    --text-muted: var(--ink-60);
    --placeholder: var(--ink-60);
    --link: var(--wonder-blue);
    --link-hover: var(--wonder-blue-dark);
    --link-on-tint: var(--wonder-blue-dark); /* plain link blue is 4.3:1 on blue-10, a fail */
    --brand: var(--blue-100);
    --brand-hover: var(--blue-80);
    --line: var(--ink-10);               /* decorative dividers and card edges only */
    --control-border: var(--ink-50);     /* inputs, selects, checkboxes: must be 3:1 */
    --accent-bg: var(--gold-10);
    --accent-line: var(--gold-40);
    --focus: var(--wonder-blue);
    --error: var(--double-decker);
    --success: var(--redwood);

    /* ---- Type ---- */
    --font-family: "Proxima-Nova", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
