:root {
  color-scheme: light;

  --color-brand-gold: #D8872A;
  --color-deep-navy: #1E2A36;
  --color-charcoal: #22262B;
  --color-warm-white: #FAF8F5;
  --color-light-gray: #F2F4F7;

  --color-sand: #F6EADB;
  --color-terracotta: #C75B3E;
  --color-caspian-blue: #0F5D7A;
  --color-sage-green: #6F8A6B;
  --color-stone: #D9D4C7;

  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;
  --color-error: #EF4444;
  --color-neutral: #6B7280;

  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --text-display-mobile-size: 36px;
  --text-display-mobile-line: 44px;
  --text-display-size: 48px;
  --text-display-line: 56px;
  --text-h1-size: 32px;
  --text-h1-line: 40px;
  --text-h2-size: 24px;
  --text-h2-line: 32px;
  --text-h3-size: 20px;
  --text-h3-line: 28px;
  --text-h4-size: 18px;
  --text-h4-line: 26px;
  --text-body-lg-size: 16px;
  --text-body-lg-line: 24px;
  --text-body-size: 14px;
  --text-body-line: 20px;
  --text-small-size: 12px;
  --text-small-line: 16px;
  --text-caption-size: 11px;
  --text-caption-line: 14px;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;
  --space-5xl: 48px;
  --space-6xl: 64px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-round: 24px;
  --radius-circle: 50%;

  --border-width-sm: 1px;
  --border-width-md: 2px;
  --border-subtle: var(--border-width-sm) solid var(--color-stone);
  --border-strong: var(--border-width-sm) solid var(--color-neutral);

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 2px 6px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);

  --container-desktop: 1200px;
  --container-tablet: 960px;
  --container-fluid: 100%;
  --container-padding-mobile: 16px;
  --container-padding-tablet: 24px;
  --container-padding-desktop: 32px;

  --breakpoint-mobile: 360px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1280px;
  --breakpoint-extra-wide: 1440px;

  /* Global paint order: page layers must remain below the viewport-owned shell. */
  --ag-layer-content: 0;
  --ag-layer-decoration: 1;
  --ag-layer-component: 10;
  --ag-layer-sticky: 100;
  --ag-layer-bottom-nav: 200;
  --ag-layer-drawer-backdrop: 300;
  --ag-layer-drawer: 310;
  --ag-layer-mobile-header: 320;

  /* Legacy aliases are intentionally constrained to page-local layers. */
  --z-base: var(--ag-layer-content);
  --z-sticky: var(--ag-layer-sticky);
  --z-overlay: var(--ag-layer-component);

  /* Runtime compatibility names resolve to the approved shared values. */
  --ag-navy-950: #111C28;
  --ag-navy-900: var(--color-deep-navy);
  --ag-navy-800: #2B3947;
  --ag-gold-600: #B66A22;
  --ag-gold-500: var(--color-brand-gold);
  --ag-red-600: #B94732;
  --ag-surface: var(--color-warm-white);
  --ag-surface-raised: #FFFDF9;
  --ag-surface-muted: var(--color-light-gray);
  --ag-ink: var(--color-charcoal);
  --ag-muted: #667085;
  --ag-line: var(--color-stone);
  --ag-content: var(--container-desktop);
  --ag-content-wide: 1360px;
  --ag-gutter: clamp(16px, 3vw, 32px);
  --ag-radius-sm: var(--radius-md);
  --ag-radius-md: var(--radius-lg);
  --ag-radius-lg: 20px;
  --ag-radius-pill: 999px;
  --ag-shadow-card: 0 10px 30px rgba(17, 28, 40, .08);
  --ag-shadow-float: 0 18px 48px rgba(17, 28, 40, .14);
  --ag-focus-color: var(--color-caspian-blue);
  --ag-transition-fast: 160ms ease;
}
