/* Senior Life and Living — Design Tokens
   Palette: orange (warm CTA), sage (calm), blue (trust), cream/white (airy)
   Type: DM Serif Display headings + Source Sans 3 body
   Sizing: senior-friendly — 18px body floor, generous line height, oversized buttons
*/

:root {
  /* Colors */
  --color-cream: #FAF6EF;
  --color-white: #FFFFFF;
  --color-ink: #1F2A2E;         /* near-black w/ subtle blue-green */
  --color-ink-soft: #3D4A4E;
  --color-muted: #6B7378;
  --color-border: #E5DFD3;

  --color-orange: #E27A3F;       /* primary CTA — warm, sunset */
  --color-orange-hover: #C6632B;
  --color-orange-soft: #FBEADD;

  --color-sage: #7A9A7E;         /* calming, plants */
  --color-sage-dark: #5A7A5E;
  --color-sage-soft: #E7EFE5;

  --color-blue: #3A6E8F;         /* trust, sky */
  --color-blue-dark: #274F6A;
  --color-blue-soft: #DDE9F1;

  /* Semantic */
  --color-bg: var(--color-cream);
  --color-surface: var(--color-white);
  --color-text: var(--color-ink);
  --color-text-muted: var(--color-ink-soft);
  --color-accent: var(--color-blue);
  --color-accent-hover: var(--color-blue-dark);

  /* Typography */
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale — bumped up for senior readability */
  --text-xs: 15px;
  --text-sm: 17px;
  --text-base: 19px;              /* body floor — larger than typical */
  --text-lg: 22px;
  --text-xl: clamp(26px, 3.2vw, 34px);
  --text-2xl: clamp(34px, 4.6vw, 52px);
  --text-hero: clamp(44px, 6.2vw, 84px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(31, 42, 46, 0.06), 0 1px 3px rgba(31, 42, 46, 0.04);
  --shadow-md: 0 4px 10px rgba(31, 42, 46, 0.06), 0 12px 24px rgba(31, 42, 46, 0.05);
  --shadow-lg: 0 12px 30px rgba(31, 42, 46, 0.10), 0 30px 60px rgba(31, 42, 46, 0.06);

  /* Layout */
  --container: min(1200px, 100% - 48px);
  --container-narrow: min(820px, 100% - 48px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--color-blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--color-blue-dark); }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-family: var(--font-sans); font-weight: 700; }

p { color: var(--color-text-muted); }
p.lead { font-size: var(--text-lg); color: var(--color-ink); line-height: 1.55; }

/* Layout helpers */
.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 120px); }

/* Focus */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons — big, senior-friendly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-blue-dark);
  border: 2px solid var(--color-blue-soft);
}
.btn-secondary:hover {
  background: var(--color-blue-soft);
  border-color: var(--color-blue);
  color: var(--color-blue-dark);
}
.btn-ghost {
  color: var(--color-blue-dark);
  padding: 12px 20px;
  min-height: 48px;
}
.btn-ghost:hover { color: var(--color-orange); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  display: inline-block;
  margin-bottom: 16px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
