:root {
  /* "Living Heritage" palette — warm linen + a deeper teal-green + a friendly
     terracotta highlight. Keeps the heritage feel but adds warmth and a touch
     of life. Tweak here; never hex anywhere else. */
  --color-bg: #fbf8ee;
  --color-bg-tint: #f4ecd6;
  --color-surface: #ffffff;
  --color-surface-alt: #f6f0df;
  --color-surface-elevated: #fffdf6;

  --color-border: #e6dfca;
  --color-border-strong: #c2b89b;

  --color-text: #20201d;
  --color-text-muted: #5c574d;
  --color-text-faint: #a39a82;

  --color-accent: #0d5e4a;
  --color-accent-hover: #064c39;
  --color-accent-soft: #d6e8df;
  --color-accent-glow: rgba(13, 94, 74, 0.22);
  --color-accent-deep: #06251c;

  --color-highlight: #c6794a;
  --color-highlight-hover: #a45e34;
  --color-highlight-soft: #f6e2cf;

  --color-success: #15803d;
  --color-success-soft: #d1ecd9;
  --color-error: #b91c1c;
  --color-error-soft: #f8d4d4;
  --color-warning: #a16207;
  --color-warning-soft: #faecc8;
  --color-info: #1d4ed8;
  --color-info-soft: #d3ddf7;

  --color-node-fill: #ffffff;
  --color-node-stroke: #0e5c3f;
  --color-node-stroke-pending: #a16207;
  --color-node-deceased: #f1ede2;
  --color-link: #8a9a8e;
  --color-link-divorced: #a87635;
  --color-link-step: #c5bca5;

  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    "SF Pro Text", "Helvetica Neue", "Inter", Arial, sans-serif;
  --font-serif:
    "Fraunces", "Hoefler Text", "Big Caslon", "Cambria", "Constantia",
    "Bookman Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-display: 3rem;
  --font-size-display-lg: 3.75rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;

  --line-height-tight: 1.15;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;

  --letter-spacing-display: -0.02em;
  --letter-spacing-tight: -0.01em;
  --letter-spacing-wide: 0.04em;
  --letter-spacing-wider: 0.08em;

  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md:
    0 1px 2px rgba(28, 25, 23, 0.06),
    0 6px 16px rgba(28, 25, 23, 0.08);
  --shadow-lg:
    0 2px 4px rgba(28, 25, 23, 0.08),
    0 16px 36px rgba(28, 25, 23, 0.14);
  --shadow-xl:
    0 4px 8px rgba(28, 25, 23, 0.08),
    0 24px 56px rgba(28, 25, 23, 0.18);
  --shadow-fab:
    0 1px 2px rgba(14, 92, 63, 0.16),
    0 10px 24px rgba(14, 92, 63, 0.3);
  --shadow-glow: 0 0 0 4px var(--color-accent-glow);

  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;

  --z-base: 1;
  --z-toolbar: 10;
  --z-panel: 20;
  --z-modal-overlay: 100;
  --z-modal: 110;
  --z-notification: 200;

  --breakpoint-sm: 640px;
  --breakpoint-md: 960px;
  --breakpoint-lg: 1280px;

  --toolbar-height: 60px;
  --panel-width: 380px;
  --panel-width-md: 440px;
}
