/* Primitives: raw values, never used directly in components. */
:root {
  --green-900: #223e1d;
  --green-700: #3c6a33;
  --green-400: #61ce70;
  --grey-700: #54595f;
  --grey-100: #f5f5f7;
  --grey-200: #e8e8e8;
  --grey-400: #8a8f94;
  --white: #fff;

  /* Type */
  --font-sans: "Poppins", system-ui, sans-serif;
  --weight-light: 300; --weight-regular: 400; --weight-bold: 600;
  --text-xs: .875rem; --text-sm: 1rem; --text-base: 1.0625rem; --text-md: 1.125rem;
  --text-lg: 1.25rem; --text-xl: 1.6875rem;
  --text-section: clamp(1.5rem, 3vw, 2rem);   /* section headings */
  --text-h1: clamp(1.75rem, 4vw, 2.5rem);     /* page titles */
  --text-display: clamp(2rem, 6vw, 3.5rem);   /* home hero */
  --leading-display: 1.1; --leading-tight: 1.25; --leading-ui: 1.35; --leading-body: 1.6; /* ui: labels, nav, Contents, small text; body: paragraphs */
  --tracking-tight: -.02em;   /* headings: large type needs tighter letters */
  --tracking-wide: .05em;     /* small caps labels */

  /* Space, shape, layers */
  --space-1: .25rem; --space-2: .5rem; --space-3: 1rem; --space-4: 1.5rem; --space-5: 3rem;
  --radius: 6px;
  --radius-pill: 999px;     /* buttons */
  --radius-card: 1.25rem;   /* every section is a card */
  --container: 64rem;   /* max content width, same for header, main, footer */
  --gutter: max(var(--space-4), calc((100% - var(--container)) / 2)); /* side padding that centers content at --container */
  --z-dropdown: 1; --z-header: 2;
  --header-offset: 7rem;   /* sticky header height plus gap: offset for sticky Contents and anchor jumps */
  /* Breakpoint (custom properties do not work in @media): 48rem. Below = mobile. */

  /* Semantic: what components use. */
  --color-text: var(--grey-700);
  --color-heading: var(--green-900);
  --color-brand: var(--green-700);
  --color-brand-hover: var(--green-900);   /* darker on hover and press, never lighter */
  --color-canvas: var(--grey-100);   /* page background behind cards */
  --color-surface: var(--white);    /* cards */
  --color-surface-inverse: var(--green-900);
  --color-on-inverse: var(--white);
  --color-on-brand: var(--white);
  --color-border: var(--grey-200);
  --color-border-strong: var(--grey-400);   /* form fields: 3:1 against white */
  --color-glass: rgb(255 255 255 / .72);   /* translucent header over scrolling content */
  --shadow-card: 0 1px 3px rgb(0 0 0 / .08);
  --shadow-pop: 0 1px 3px rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .08);   /* dropdown and open menu */
  --color-ghost-hover: rgb(255 255 255 / .16);   /* outlined button hover on dark */
  --color-scrim: rgb(0 0 0 / .6);
  --measure: 42rem;     /* reading width */
  --focus-ring: 2px solid var(--color-brand);
}
