/*
 * Design tokens. Names and values mirror docs/brand.md, which is the contract
 * the React and mobile apps copy. Components use the semantic tokens only.
 */
:root {
  /* Palette */
  --color-emerald: #20654c;
  --color-sage: #aec5b7;
  --color-sand: #e3d3b4;
  --color-cream: #f6f1e7;
  --color-terracotta: #c96f4a;
  --color-charcoal: #2e2c28;

  --color-emerald-20: #4c836f;
  --color-emerald-40: #79a293;
  --color-emerald-60: #a5c1b7;
  --color-emerald-80: #d2e0db;
  --color-sage-20: #8b9d92;
  --color-sage-40: #68766d;
  --color-sage-60: #454e49;
  --color-sage-80: #222724;

  /* Semantic colors */
  --color-bg: var(--color-cream);
  --color-surface: var(--color-sand);
  --color-text: var(--color-charcoal);
  --color-text-muted: var(--color-sage-60);
  --color-heading: var(--color-emerald);
  --color-action: var(--color-emerald);
  --color-action-text: var(--color-cream);
  --color-border: var(--color-emerald-60);
  --color-accent: var(--color-terracotta);
  --color-alert: var(--color-terracotta);
  --color-notice: var(--color-emerald);

  /* Type */
  --font-sans: "Alegreya Sans", Candara, "Segoe UI", system-ui, sans-serif;

  --text-display: clamp(36px, 10vw, 48px); /* four lines would crowd a small phone */
  --text-h1: 36px;
  --text-h2: 24px;
  --text-h3: 20px;
  --text-body: 17px;
  --text-small: 15px;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shape and layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --tap-target: 44px;
  --width-form: 440px;
  --width-page: 1120px;
}

/* Mobile-first: headings step up one size on wider screens. */
@media (min-width: 720px) {
  :root {
    --text-display: 64px;
    --text-h1: 48px;
    --text-h2: 36px;
    --text-h3: 24px;
    --text-body: 18px;
  }
}
