/* ============================================================
   Avenue One — Color & Type Tokens
   Source: Brand Guidelines + Presentation Deck Template (theme1.xml)
   ============================================================ */

/* Montserrat via Google Fonts — primary (and only) typeface */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,600&display=swap');

:root {
  /* ---------- BRAND COLORS — primary ---------- */
  --color-blue-primary: #0073E6;   /* Primary actions, headers, links */
  --color-blue-dark:    #004080;   /* Body text, dark contrast, dark bg */
  --color-blue-light:   #80C0FF;   /* Accents, secondary elements */

  /* ---------- BRAND COLORS — accents (use sparingly) ----------
     Yellow is the PRIMARY accent: FONT COLOR or FOCUS arrows ONLY — never as a fill/surface.
     Orange + Lime are METRICS-ONLY: data viz, KPI deltas, chart series, status dots.
     Outside of metrics, Orange and Lime are not used. */
  --color-yellow:       #FFE666;   /* PRIMARY ACCENT — font color & focus arrows only */
  --color-yellow-gold:  #FFD84D;   /* Data viz — "locally owned" in charts */
  --color-orange:       #FA803D;   /* Metrics only — attention / alert data */
  --color-lime:         #BEE966;   /* Metrics only — positive / growth data */
  --color-red-cert:     #E63946;   /* Rotated "CONFIDENTIAL" mark only */

  /* ---------- BLUE SCALE (from deck slide 80) ---------- */
  --blue-25:  #F5FAFF;   /* subtlest page-section wash */
  --blue-50:  #E5F2FF;   /* card fills on light pages */
  --blue-75:  #DBEBFF;   /* card fill — medium */
  --blue-100: #B3D8FF;
  --blue-150: #99CCFF;
  --blue-200: #80C0FF;   /* = Light Blue */
  --blue-300: #4CA6FF;
  --blue-400: #1A8CFF;   /* link / hyperlink */
  --blue-500: #0073E6;   /* = Primary Blue */
  --blue-600: #0059B2;   /* hover */
  --blue-700: #004080;   /* = Dark Blue */
  --blue-800: #002952;   /* active / deep contrast */
  --blue-navy: #003A7A;  /* deck navy — bar chart dark series */
  --blue-900: #001A33;

  /* ---------- GREYSCALE ---------- */
  --grey-50:  #F3F4F6;
  --grey-100: #E5E7EB;
  --grey-200: #D1D5DB;
  --grey-300: #9CA3AF;
  --grey-400: #6B7280;
  --grey-500: #4B5563;
  --grey-600: #374151;
  --grey-700: #1F2937;
  --grey-800: #161A20;
  --grey-900: #111317;
  --white:    #FFFFFF;
  --black:    #000000;

  /* ---------- SEMANTIC ---------- */
  --bg-app:          var(--grey-50);
  --bg-surface:      var(--white);
  --bg-surface-alt:  var(--grey-50);
  --bg-inverse:      var(--blue-800);
  --bg-emphasis:     var(--blue-500);

  --fg-primary:      var(--grey-900);      /* body text, headings */
  --fg-secondary:    var(--grey-600);      /* secondary body */
  --fg-muted:        var(--grey-400);      /* captions, helpers */
  --fg-inverse:      var(--white);
  --fg-link:         var(--blue-500);
  --fg-link-hover:   var(--blue-600);
  --fg-link-active:  var(--blue-800);
  --fg-brand:        var(--blue-500);
  --fg-brand-dark:   var(--blue-700);

  /* data viz / status */
  --data-positive: var(--lime, #BEE966);
  --data-warning:  var(--yellow, #FFE666);
  --data-alert:    var(--orange, #FA803D);
  --data-neutral:  var(--blue-300);

  --border-subtle:   var(--grey-100);
  --border-default:  var(--grey-200);
  --border-strong:   var(--grey-300);
  --border-focus:    var(--blue-500);

  /* ---------- TYPOGRAPHY ---------- */
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Weights — DISPLAY is Bold/Black; BODY is Light (300) */
  --fw-light:    300;    /* @kind font */
  --fw-regular:  400; /* @kind font */
  --fw-medium:   500; /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold:     700;    /* @kind font */
  --fw-extrabold: 800;   /* @kind font */
  --fw-black:    900;    /* @kind font */

  /* Type scale — institutional density, generous whitespace */
  --fs-caption:   12px;   /* footer / legal / source lines */
  --fs-small:     14px;
  --fs-body:      16px;   /* min body size per guidelines */
  --fs-body-lg:   18px;   /* paragraph header in deck */
  --fs-lead:      20px;
  --fs-h5:        20px;
  --fs-h4:        24px;
  --fs-h3:        32px;
  --fs-h2:        40px;
  --fs-h1:        56px;
  --fs-display:   72px;

  /* Line heights */
  --lh-tight:   1.1; /* @kind font */
  --lh-snug:    1.25; /* @kind font */
  --lh-normal:  1.5;    /* @kind font */
  --lh-relaxed: 1.65; /* @kind font */

  /* Tracking — tight display, slight positive on all-caps eyebrow */
  --ls-display:   -0.02em; /* @kind font */
  --ls-heading:   -0.01em; /* @kind font */
  --ls-body:       0; /* @kind font */
  --ls-eyebrow:    0.08em; /* @kind font */

  /* ---------- SPACING (4px base) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---------- RADII — subtle, institutional ---------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;

  /* ---------- SHADOWS — minimal, elevation only ---------- */
  --shadow-xs: 0 1px 2px rgba(17, 19, 23, 0.04);
  --shadow-sm: 0 1px 3px rgba(17, 19, 23, 0.06), 0 1px 2px rgba(17, 19, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(17, 19, 23, 0.06), 0 1px 3px rgba(17, 19, 23, 0.04);
  --shadow-lg: 0 12px 32px rgba(17, 19, 23, 0.08), 0 2px 6px rgba(17, 19, 23, 0.04);
  --shadow-focus: 0 0 0 3px rgba(0, 115, 230, 0.25);

  /* ---------- MOTION ---------- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   180ms; /* @kind other */
  --dur-slow:   280ms; /* @kind other */
}

/* ============================================================
   Base element styles — the "semantic" layer
   ============================================================ */

html { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg-primary);
  background: var(--bg-app);
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-4); color: var(--fg-primary); font-weight: var(--fw-bold); letter-spacing: var(--ls-heading); line-height: var(--lh-snug); }
h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-display); line-height: var(--lh-tight); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); }
h6 { font-size: var(--fs-body); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--fg-secondary); }

/* Blue-accent word within a headline — a signature pattern */
.accent, h1 .accent, h2 .accent, h3 .accent { color: var(--blue-500); }

/* Section eyebrow — all caps, grey, tracked */
.section-eyebrow { font-size: 12px; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-400); margin-bottom: var(--space-3); }

/* Oversized numeric callout — used on stat-heavy slides */
.callout-num { font-weight: var(--fw-black); font-size: 96px; color: var(--blue-500); letter-spacing: -0.03em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.callout-num .unit { font-weight: var(--fw-bold); font-size: 0.5em; }

p { margin: 0 0 var(--space-4); font-weight: var(--fw-light); line-height: var(--lh-normal); }
strong, b { font-weight: var(--fw-semibold); }

small, .caption { font-size: var(--fs-caption); color: var(--fg-muted); }

a { color: var(--fg-link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--fg-link-hover); text-decoration: underline; text-underline-offset: 2px; }
a:active { color: var(--fg-link-active); }

.eyebrow { font-size: var(--fs-caption); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--fg-brand); }

code, pre, .mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}

.tabular { font-variant-numeric: tabular-nums; }
