/*
 * The Garden Christian Academy's brand, for Anselm: the design system's tokens
 * and its self-hosted fonts, in one place. templates/base.html loads it on
 * every page, before tailwind.css, whose theme (tailwind.config.js) mirrors
 * the same values; report-print.css uses the tokens directly.
 *
 * Source of truth: gca-design-system/gca-design-system.md. The :root block
 * below is Appendix A, copied exactly; if a value changes there, change it
 * here too (assessment/tests/test_brand_colors.py holds the same values and
 * fails until both agree). Reference var(--gca-…) rather than re-typing a hex.
 *
 * The fonts in ../fonts/ are the WOFF2 cuts of gca-design-system/assets/fonts/,
 * copied byte for byte and renamed for the web. They are licensed commercial
 * fonts: Anselm's repository is private and they must never be copied anywhere
 * public. Desktop formats (OTF, TTF) are never served. Per §4's wiring notes,
 * every face declares its weight, Thick is its own family (never the 700 of
 * Champagne & Limousines), and text shows in a fallback while a font loads.
 */

/* Appendix A · Machine-exact tokens */
:root {
  /* Tier 1 — canonical brand */
  --gca-green: #8CC63E;
  --gca-brown: #603813;

  /* Tier 2 — secondary accents */
  --gca-teal: #0086A9;
  --gca-gold: #C4A402;

  /* Derived relatives */
  --gca-green-deep: #6FA82E;
  --gca-brown-soft: #7A5230;
  --gca-gold-dark: #A78B02;    /* gold fills that carry white text (§3) — screen only */
  --gca-footer-brown: #89715A; /* site footer field, from the legacy site — screen only */

  /* Green tint ladder — solid tints, never gradients */
  --gca-green-wash: #E7F2D8; /* palest wash / ghosted logo / default light panel */
  --gca-green-100:  #D9EABF;
  --gca-green-200:  #B8D987;
  --gca-green-300:  #A3CF62;
  /* brand step = --gca-green (#8CC63E) */
  --gca-green-700:  #78A540; /* deep step */

  /* Tier 3 — functional / system (NOT brand identity) */
  --gca-ink:         #333333; /* body text — never pure black */
  --gca-ink-soft:    #6B5A45; /* muted text / captions — brown-family */
  --gca-paper:       #FFFFFF;
  --gca-hairline:    #E6E1D7; /* thin rules / dividers */
  --gca-charcoal:    #58595B; /* SCREEN ONLY — dark panels + comparison series */
  --gca-callout-red: #B23A2E; /* ALERTS, INSTRUCTIONS, ABSENCE, UNDOING · always a word or shape, never decorative */

  /* Status fills (§3 Status colors) · screen only · fills, never words */
  --gca-gold-wash:   #F7F2DC; /* needs attention or waiting · GCA Gold 14% over white */
  --gca-red-wash:    #F8EDEC; /* absent · Callout Red 9% over white */

  /* Type — self-host as woff2 (§4). Source files: assets/fonts/ in the design-system repo. Jost is the fallback only until self-hosting is live. */
  /* Champagne & Limousines and C&L Thick are SEPARATE families (§4): Thick = bold display, regular = the lighter setup line. */
  --gca-font-display: 'Champagne & Limousines Thick', 'Champagne & Limousines', 'Jost', 'Century Gothic', sans-serif; /* bold headline workhorse */
  --gca-font-head:    'Champagne & Limousines', 'Jost', 'Century Gothic', sans-serif; /* lighter setup line / general caps */
  --gca-font-body:    'Avenir Next', 'Avenir', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif; /* Avenir Next Regular = 400 body weight */
  --gca-font-body-condensed: 'Avenir Next Condensed', 'Avenir Next', sans-serif; /* TIGHT MEASURES ONLY (§4) — table headers, data labels, signage. Never running text. */

  /* Multi-series chart palette is intentionally omitted — it's data-only (§3). */
}

/* §4 · The brand faces, self-hosted */
@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/avenir-next-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/avenir-next-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/avenir-next-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/avenir-next-demi.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/avenir-next-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Champagne & Limousines';
  src: url('../fonts/champagne-limousines-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Champagne & Limousines';
  src: url('../fonts/champagne-limousines-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Champagne & Limousines Thick';
  src: url('../fonts/champagne-limousines-thick-bold.woff2') format('woff2');
  font-weight: 700;
  /* declared, not inherited: the file reports 600 */
  font-style: normal;
  font-display: swap;
}
