/* ============================================================
   Rayna Retirement — Design Tokens
   Clarity Today. Confidence Tomorrow.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* -------- Brand palette (from brand kit) -------- */
  --navy-900:    #0F1B3D;   /* primary brand navy — headlines, core UI */
  --navy-800:    #1E293B;   /* graphite — deep surfaces, body over light */
  --navy-700:    #2A3656;   /* hover / lifted navy */
  --navy-100:    #E6EAF2;   /* navy wash — subtle dividers on white */

  --crimson-600: #B32632;   /* primary accent — CTAs, highlights */
  --crimson-700: #8F1E28;   /* crimson hover */
  --crimson-100: #F8DCDE;   /* crimson wash — alerts, soft badges */

  --ice:         #F1F3F6;   /* page tint / soft backgrounds */
  --steel:       #6B7280;   /* secondary text / meta */
  --ink:         #0B1020;   /* deepest text on light */
  --white:       #FFFFFF;

  /* Supporting warm tone pulled from photography (speaker attire + wood lectern)
     Use sparingly — editorial accents only */
  --warm-amber:  #C4925A;
  --warm-sand:   #EADFCE;

  /* -------- Semantic surfaces -------- */
  --bg:              var(--ice);
  --bg-card:         var(--white);
  --bg-invert:       var(--navy-900);
  --bg-invert-soft:  var(--navy-800);
  --text:            var(--ink);
  --text-muted:      var(--steel);
  --text-invert:     var(--white);
  --border:          #D9DEE7;
  --border-strong:   #B5BCCB;

  /* -------- Typography -------- */
  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Scale — display-lg down to caption */
  --fs-display-xl: clamp(3.5rem, 6vw, 5.5rem);   /* hero */
  --fs-display-lg: clamp(2.75rem, 4.5vw, 4rem);  /* section opener */
  --fs-display-md: clamp(2rem, 3vw, 2.75rem);    /* subsection */
  --fs-h1: 2.25rem;   /* 36 */
  --fs-h2: 1.75rem;   /* 28 */
  --fs-h3: 1.375rem;  /* 22 */
  --fs-h4: 1.125rem;  /* 18 */
  --fs-body: 1rem;    /* 16 */
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.55;
  --lh-loose: 1.7;

  --tracking-eyebrow: 0.14em;
  --tracking-caps: 0.06em;
  --tracking-tight: -0.02em;

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

  /* -------- Radii -------- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* -------- Shadows — restrained, financial-services feel -------- */
  --shadow-sm: 0 1px 2px rgba(15, 27, 61, 0.06);
  --shadow-md: 0 6px 16px -4px rgba(15, 27, 61, 0.10), 0 2px 4px rgba(15, 27, 61, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(15, 27, 61, 0.18), 0 4px 8px rgba(15, 27, 61, 0.06);
  --shadow-invert: 0 24px 48px -8px rgba(0, 0, 0, 0.55);

  /* -------- Motion -------- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 420ms;
}

/* ---------------------------------------------------------- */
/*   Base typography                                          */
/* ---------------------------------------------------------- */
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--navy-900);
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--crimson-600);
}

.display-xl { font-size: var(--fs-display-xl); line-height: var(--lh-tight); font-weight: 700; }
.display-lg { font-size: var(--fs-display-lg); line-height: var(--lh-tight); font-weight: 700; }
.display-md { font-size: var(--fs-display-md); line-height: var(--lh-snug);  font-weight: 700; }

.lead {
  font-size: 1.125rem;
  line-height: var(--lh-body);
  color: var(--navy-800);
  text-wrap: pretty;
}

/* Utility: serif-adjacent emphasis using Montserrat italic at lower weight
   — use sparingly, for editorial pull quotes */
.pull {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
}
