/* ==========================================================================
   WEALTHGUIDES DESIGN TOKENS
   Palette: "Ledger" — deep ink navy + warm paper white + verdant/clay accents.
   Type: Source Serif 4 (editorial display) + Inter (body/UI) + IBM Plex Mono
         (financial figures — tables, calculators, stat callouts).
   ========================================================================== */

:root {
  /* This site has one deliberately designed theme (light/paper). Declaring
     color-scheme explicitly prevents the browser from applying its own
     dark-mode native form-control theming (search fields, selects, etc.)
     on top of our CSS, which is what causes inputs to render with
     mismatched/invisible text in some browser+OS combinations. */
  color-scheme: light;

  /* ---- Color: core ---- */
  --color-ink-900:      #0B2545;  /* headings, high-emphasis text */
  --color-ink-700:      #13315C;  /* nav, links */
  --color-primary-500:  #1E5F9E;  /* primary actions */
  --color-primary-600:  #184D82;  /* primary hover/active */
  --color-primary-100:  #E8F1FA;  /* tinted section backgrounds */

  --color-accent-500:   #2E7D5E;  /* positive / gains / "pro" indicators */
  --color-accent-100:   #E5F2EC;
  --color-warn-600:     #9C5518;  /* mistakes / caution callouts (not alarm-red) */
  --color-warn-100:     #FBF0E4;

  --color-neutral-900:  #1A1F26;  /* body text */
  --color-neutral-600:  #4B5563;  /* secondary text */
  --color-neutral-400:  #8A93A3;  /* placeholders, metadata */
  --color-neutral-200:  #E1E6ED;  /* borders, rules */
  --color-neutral-100:  #F1F4F8;  /* card backgrounds */

  --color-surface:       #FFFFFC; /* warm paper white, not pure white */
  --color-surface-alt:   #F7F9FC;
  --color-surface-ink:   #0B2545; /* dark sections (footer, hero variant) */
  --color-surface-ink-text: #DCE6F5;

  /* ---- Color: semantic ---- */
  --color-link: var(--color-primary-500);
  --color-focus-ring: #2E7D5E;
  --color-border: var(--color-neutral-200);

  /* ---- Typography ---- */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs:   clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem);
  --fs-sm:   clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg:   clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --fs-xl:   clamp(1.375rem, 1.26rem + 0.5vw, 1.625rem);
  --fs-h3:   clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  --fs-h2:   clamp(1.875rem, 1.6rem + 1.3vw, 2.375rem);
  --fs-h1:   clamp(2.25rem, 1.85rem + 1.9vw, 3.25rem);
  --fs-display: clamp(2.75rem, 2.1rem + 2.8vw, 4.25rem);

  --lh-tight: 1.2;
  --lh-heading: 1.3;
  --lh-body: 1.7;

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* ---- Layout ---- */
  --content-width: 1200px;
  --article-width: 72ch;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 1px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 4px 16px rgba(11, 37, 69, 0.08), 0 2px 4px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.12);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
}

/* Note: this site intentionally ships one designed theme (light/paper).
   Automatic prefers-color-scheme overrides were removed — they were
   untested against native form-control rendering and were a likely source
   of low-contrast inputs on some browser/OS combinations. The palette
   above was designed as a cohesive light theme; forcing color-scheme:
   light (set on :root) keeps native controls consistent with it. */
