/* Shared design tokens. Page styles may override a token only when the template requires it. */
:root {
  --primary: #34a74c;
  --primary-light: #4cce66;
  --primary-dark: #2a8c3d;
  --accent: #e6b422;
  --accent-hover: #ffd700;

  --text-light: #ffffff;
  --text-muted: #666666;
  --text-dark: #333333;
  --bg-dark: #2c2c2c;
  --bg-light: #f8f9fa;
  --surface: #ffffff;
  --surface-subtle: #f7f8f7;
  --surface-success: #f4f8f4;
  --header-bg: #1a1a1a;
  --nav-bg: #252525;
  --border-color: #e1e4e8;
  --border-subtle: #d7d7d7;
  --text-strong: #242424;
  --text-secondary: #454545;
  --link-green: #267c38;

  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  --type-body: 1rem;
  --type-body-large: 1.1rem;
  --type-card-title: 1.25rem;
  --type-section-title: 1.8rem;
  --type-page-title: 2.5rem;
  --type-display-title: 3.5rem;
  --leading-tight: 1.2;
  --leading-heading: 1.3;
  --leading-body-compact: 1.6;
  --leading-body: 1.7;

  --content-width: 1200px;
  --content-width-wide: 1400px;
  --reading-width: 780px;
  --container-gutter: 20px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --section-space-compact: var(--space-5);
  --section-space: var(--space-6);
  --section-heading-gap: var(--space-5);

  /* Hero spacing tiers shared by page templates. */
  --hero-space-compact: 2rem;
  --hero-space-default: 3.25rem;
  --hero-space-roomy: 4.5rem;
  --hero-space-legacy: 6.25rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --border-radius: var(--radius-lg);

  --card-radius: var(--radius-lg);
  --card-radius-compact: var(--radius-md);
  --control-radius: var(--radius-md);
  --card-shadow: var(--box-shadow);
  --card-transition: var(--transition);

  --control-height: 48px;
  --control-height-large: 54px;
  --control-gap: 0.5rem;
  --button-padding: 12px 24px;
  --button-padding-large: 15px 30px;

  --nav-height: 56px;
  --header-height: 80px;
  --disclosure-height: 32px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  --transition: all 0.3s ease;

  /* Compatibility aliases used by older page styles. */
  --color-primary: var(--primary);
  --color-primary-dark: var(--primary-dark);
  --color-text: var(--text-light);
  --color-text-muted: var(--text-muted);
  --color-bg: var(--header-bg);
  --color-bg-light: var(--header-bg);
  --color-bg-lighter: var(--nav-bg);
}
