/* =====================================================================
   LEGACY VIDEO CAPSULES : BRAND TOKENS (single source of truth)
   Loaded FIRST on every page, before marketing.css or style.css.
   Nothing else in the site may hard-code a brand color or font.
   To change the brand, change it here.
   ===================================================================== */

/* ---------------------------------------------------------------------
   FONTS
   Platypi Bold (700)      : H1, H2, H3, hero headlines, program and package names
   Figtree SemiBold (600)  : kickers, buttons, nav, table headers and row labels,
                             form labels, chart labels, badges
   Figtree Regular (400)   : all body copy

   Loader: Google Fonts (the font service this site already uses), with
   font-display: swap and the Georgia / system fallbacks defined below.

   TO SELF-HOST LATER: delete the @import line, drop the files at the paths
   below, and uncomment the @font-face block. This is the ONLY place font
   files are referenced.

   @font-face { font-family:"Platypi"; font-weight:700; font-style:normal; font-display:swap;
                src:url("/assets/fonts/Platypi-Bold.woff2") format("woff2"); }
   @font-face { font-family:"Platypi"; font-weight:700; font-style:italic; font-display:swap;
                src:url("/assets/fonts/Platypi-BoldItalic.woff2") format("woff2"); }
   @font-face { font-family:"Figtree"; font-weight:400; font-style:normal; font-display:swap;
                src:url("/assets/fonts/Figtree-Regular.woff2") format("woff2"); }
   @font-face { font-family:"Figtree"; font-weight:600; font-style:normal; font-display:swap;
                src:url("/assets/fonts/Figtree-SemiBold.woff2") format("woff2"); }
   --------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Platypi:ital,wght@0,700;1,700&family=Figtree:ital,wght@0,400;0,600;1,400&display=swap");

:root {
  /* ---------- PALETTE ---------- */
  --brand-ink: #2e2620;          /* body text, dark module */
  --brand-plum: #7a3b5e;         /* primary: identity, primary buttons, links, dark module */
  --brand-pine: #0d453a;         /* dark module, gold-text-safe background */
  --brand-emerald: #166d50;      /* secondary buttons, accents, links on light */
  --brand-teal: #7da88c;         /* muted teal: fills, tints, chart bands. Never text */
  --brand-gold: #d9a544;         /* primary accent: markers, dividers, badges, gold buttons */
  --brand-blush: #ffdee0;        /* tertiary: soft panels, highlighted table column */
  --brand-parchment: #f9efe6;    /* our "white": default page background */

  /* Same colors as RGB triplets, for translucent overlays and shadows only */
  --ink-rgb: 46 38 32;
  --plum-rgb: 122 59 94;

  /* ---------- TINTS (derived from the palette; text pairings verified below) ---------- */
  --tint-parchment: #efe5dc;       /* alternate section band. Parchment + 5% ink */
  --tint-parchment-deep: #e3d9d0;  /* placeholder image fill, pressed states. Parchment + 11% ink */
  --tint-blush: #ffdee0;           /* soft callout panels, recommended table column (= blush) */
  --tint-blush-soft: #fce6e3;      /* larger soft panels. Blush + parchment 50/50 */
  --tint-teal: #dee9e2;            /* muted teal at 25% over white: calm panels, chart bands */
  --tint-gold: #f4e6cb;            /* gold at 28% over white: badges, highlights */

  /* ---------- HOVER / PRESSED SHADES ---------- */
  --plum-deep: #64304d;            /* plum hover. Parchment on it = 8.9:1 */
  --emerald-deep: #125942;         /* emerald hover. Parchment on it = 7.3:1 */

  /* ---------- LINES ---------- */
  --rule: #d9cfc6;                 /* decorative hairlines and card borders */
  --rule-strong: #7b726b;          /* borders of controls, meaningful icons. 4.2:1 on parchment */

  /* ---------- SEMANTIC ALIASES ---------- */
  --surface: var(--brand-parchment);   /* card, modal, field and table fills. Never pure white */
  --focus-ring: var(--brand-plum);     /* 7.1:1 on parchment, 6.4:1 on blush */
  --focus-ring-on-dark: var(--brand-parchment);  /* on plum 7.1:1, pine 9.6:1, ink 13.1:1 */

  /* ---------- TYPE ---------- */
  --font-display-primary: "Platypi", Georgia, serif;           /* weight 700 */
  --font-display-secondary: "Figtree", system-ui, sans-serif;  /* weight 600 */
  --font-body: "Figtree", system-ui, sans-serif;               /* weight 400, 18px base */
  --weight-display: 700;
  --weight-ui: 600;
  --weight-body: 400;

  /* ---------- SHAPE ---------- */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 8px 24px -12px rgb(var(--ink-rgb) / 0.28);
  --shadow-md: 0 18px 40px -18px rgb(var(--ink-rgb) / 0.34);
  --shadow-lg: 0 30px 60px -20px rgb(var(--ink-rgb) / 0.40);
}

/* =====================================================================
   VERIFIED CONTRAST (WCAG ratios, computed from the hex values above)
   Text on parchment : ink 13.1  plum 7.1  pine 9.6  emerald 5.5   (gold 2.0 and teal 2.4 FAIL: never text)
   Text on plum      : parchment 7.1  blush 6.4                    (gold 3.6: decorative only)
   Text on pine      : parchment 9.6  blush 8.7  gold 4.9
   Text on ink       : parchment 13.1  blush 11.9  gold 6.7
   Text on emerald   : parchment 5.5  blush 5.0                    (gold 2.8 FAILS)
   Text on teal      : ink 5.6                                     (parchment 2.4 and pine 4.1 FAIL)
   Text on gold      : ink 6.7
   Text on blush     : ink 11.9  plum 6.4  pine 8.7  emerald 5.0
   Text on tints (parchment / parchment-deep / blush-soft / teal / gold):
       ink 10.7 to 12.4, plum 5.8 to 6.7, pine 7.8 to 9.1
       emerald 5.0 to 5.3 on every tint EXCEPT parchment-deep (4.5: use ink, plum or pine there)
   Controls: --rule-strong on parchment 4.2, on tint-parchment 3.8 (needs 3.0)
   ===================================================================== */

/* =====================================================================
   GLOBAL ACCESSIBILITY RULES (shared by every page)
   ===================================================================== */

/* Visible focus ring on every interactive element */
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* On dark modules (plum, pine, ink) the ring flips to parchment */
.section.dark :focus-visible,
.section.pine :focus-visible,
.section.darkest :focus-visible,
.on-dark :focus-visible { outline-color: var(--focus-ring-on-dark); }

/* Links inside body copy: plum or emerald, underlined, visible hover and focus */
:where(p, li, blockquote, dd) a:not(.btn):not(.link-arrow) {
  color: var(--brand-plum);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
:where(p, li, blockquote, dd) a:not(.btn):not(.link-arrow):hover {
  color: var(--plum-deep);
  text-decoration-thickness: 2px;
}

/* =====================================================================
   LOGO SLOT (header and footer)
   Every header and footer renders <a class="brand-logo"> with the wordmark
   text inside it, set in Platypi Bold. The wordmark text stays until the new
   logo exists.

   TO SWAP IN THE NEW LOGO (one-file change): put the file at /assets/logo.svg,
   then uncomment the two rules below and adjust the width and height.

   .brand-logo { background: url("/assets/logo.svg") left center / contain no-repeat; width: 220px; height: 40px; }
   .brand-logo__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
   ===================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display-primary);
  font-weight: var(--weight-display);
  color: inherit;
  text-decoration: none;
}
.brand-logo:hover { color: inherit; }
.brand-logo--footer { font-size: inherit; }
