/*
 * GWC Financial design tokens: Direction D "Executive Editorial" (replaces A)
 * STATUS: APPROVED (brand/APPROVED.md, by delegation). Light theme only (no dark mode).
 * Contrast values for every pairing: see contrast.md (computed by script).
 * Rule: --gwc-accent (#B9873C, sampled from the logo) is decorative/large-UI only.
 *       Gold TEXT on light surfaces must use --gwc-accent-ink.
 */

/* Fonts: self-host WOFF2 under /assets/fonts/. font-display: swap + size-adjusted fallback to limit CLS. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/SourceSerif4-Variable.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-Variable.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face { /* metric-adjusted local fallbacks (tune after real font files are measured) */
  font-family: "Source Serif 4 Fallback"; src: local("Georgia"); size-adjust: 98%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: "Source Sans 3 Fallback"; src: local("Arial"); size-adjust: 97%; ascent-override: 100%; descent-override: 28%; line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* ---------- Type: serif light for headlines, sans for text ---------- */
  --gwc-font-head: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --gwc-font-text: "Source Sans 3", "Source Sans 3 Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gwc-fs-xs: 0.8125rem;                                  /* 13 */
  --gwc-fs-sm: 0.9375rem;                                  /* 15 */
  --gwc-fs-base: 1.0625rem;                                /* 17 body */
  --gwc-fs-lg: clamp(1.1875rem, 1.12rem + 0.3vw, 1.3125rem);
  --gwc-fs-h4: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --gwc-fs-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  --gwc-fs-h2: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --gwc-fs-h1: clamp(2.25rem, 1.55rem + 2.3vw, 3.5rem);   /* one H1 scale for every page */
  --gwc-lh-tight: 1.12;
  --gwc-lh-snug: 1.3;
  --gwc-lh-body: 1.65;
  --gwc-measure: 65ch;
  --gwc-fw-light: 300;
  --gwc-fw-regular: 400;
  --gwc-fw-medium: 500;
  --gwc-fw-semibold: 600;
  --gwc-fw-bold: 700;
  --gwc-track-nav: 0.02em;
  --gwc-track-btn: 0.13em;
  --gwc-track-eyebrow: 0.14em;

  /* ---------- Spacing (4px base) ---------- */
  --gwc-space-1: 0.25rem;  --gwc-space-2: 0.5rem;   --gwc-space-3: 0.75rem;
  --gwc-space-4: 1rem;     --gwc-space-5: 1.5rem;   --gwc-space-6: 2rem;
  --gwc-space-7: 3rem;     --gwc-space-8: 4rem;     --gwc-space-9: 6rem;   --gwc-space-10: 8rem;
  --gwc-section: clamp(4rem, 3rem + 4.5vw, 7rem);          /* section padding: 64 to 112 px */
  --gwc-container: 78rem;                                  /* 1248 */
  --gwc-gutter: clamp(1.25rem, 4vw, 3rem);
  --gwc-tap: 2.75rem;      /* 44px minimum target */

  /* ---------- CTA system (docs/design/components/cta-system.md): one definition for every button and group ---------- */
  --gwc-btn-h: 3rem;                 /* standard: every content button and form button */
  --gwc-btn-h-compact: 2.75rem;      /* compact: header and mobile sticky bar only */
  --gwc-btn-px: var(--gwc-space-5);  --gwc-btn-px-compact: 1.25rem;
  --gwc-btn-fs: 0.8125rem;           /* 13 px, uppercase, bold */
  --gwc-btn-gap: var(--gwc-space-4); /* gap inside a .btn-row */
  --gwc-cta-mt: var(--gwc-space-6);  /* space between the text block and its CTA group */
  --gwc-header-h: 5rem;

  /* ---------- Radii: near-square ---------- */
  --gwc-radius-sm: 2px;  --gwc-radius-md: 3px;  --gwc-radius-lg: 4px;  --gwc-radius-pill: 999px;

  /* ---------- Motion ---------- */
  --gwc-dur-fast: 120ms;  --gwc-dur-base: 180ms;  --gwc-dur-slow: 200ms;
  --gwc-ease: cubic-bezier(0.2, 0, 0, 1);

  /* ---------- Colour (light only). Pairings and ratios: docs/design/brand/contrast.md ---------- */
  --gwc-bg: #FFFFFF;
  --gwc-surface: #F7F5F2;          /* warm light band */
  --gwc-surface-2: #EFEBE5;
  --gwc-mist: #E6EAF1;             /* cool panel behind hero art */
  --gwc-text: #2A3344;
  --gwc-text-muted: #566072;
  --gwc-ink: #14284B;              /* headlines */
  --gwc-primary: #14284B;          /* primary button */
  --gwc-primary-hover: #0F2142;
  --gwc-on-primary: #FFFFFF;
  --gwc-accent: #B9873C;           /* logo gold: hairline rules and details ONLY. Never fill a button, never text */
  --gwc-accent-ink: #6F4D14;       /* gold safe for small text on light */
  --gwc-link: #1A4F9C;
  --gwc-border: #DDD9D1;           /* hairlines, decorative */
  --gwc-border-strong: #85806F;    /* input edges (>= 3:1) */
  --gwc-focus: #0B4AA8;
  --gwc-success: #1E6B3A;  --gwc-success-bg: #E7F4EC;
  --gwc-warning: #7A4F00;  --gwc-warning-bg: #FFF4D6;
  --gwc-error:   #A32020;  --gwc-error-bg:   #FDECEC;

  /* "band" = light tinted section (hero-like blocks, CTA band). Only the footer is dark. */
  --gwc-band-bg: var(--gwc-surface);
  --gwc-band-text: var(--gwc-text);
  --gwc-band-muted: var(--gwc-text-muted);
  --gwc-band-accent: var(--gwc-accent-ink);
  --gwc-on-band-accent: #FFFFFF;
  /* footer (the one dark surface) */
  --gwc-foot-bg: #0F2142;
  --gwc-foot-text: #F4F1EA;
  --gwc-foot-muted: #B9C4D8;
  --gwc-foot-accent: #D9B574;
  --gwc-foot-line: rgb(255 255 255 / 0.18);

  /* navy band (pattern D): same navy as the footer. Pairings in docs/design/components/layout-patterns.md */
  --gwc-navy: var(--gwc-foot-bg);
  --gwc-navy-text: var(--gwc-foot-text);
  --gwc-navy-muted: var(--gwc-foot-muted);
  --gwc-navy-accent: var(--gwc-foot-accent);
  --gwc-navy-line: var(--gwc-foot-line);
  --gwc-navy-edge: rgb(255 255 255 / 0.65);   /* outline button edge on navy (UI edge, above 3:1) */

  --shell-recruit: #F1F4F9;        /* recruiting shell tint */
  --gwc-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M0 6h18M13 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.25'/%3E%3C/svg%3E");   /* the one thin arrow (links, situation cards) */
  --gwc-art-1: #1E3A6B; --gwc-art-2: #4A6A9E; --gwc-art-3: #2F4B7C; --gwc-art-deep: #0A1730;   /* hero art blues */
  --gwc-overlay: rgb(15 33 66 / 0.6);
  --gwc-shadow-1: none;
  --gwc-shadow-2: 0 1px 0 rgb(20 40 75 / 0.06);
  --gwc-shadow-3: 0 18px 40px -12px rgb(20 40 75 / 0.18);   /* mega panel / drawer only */
}

@media (prefers-reduced-motion: reduce) {
  :root { --gwc-dur-fast: 0ms; --gwc-dur-base: 0ms; --gwc-dur-slow: 0ms; }
}
