/* ==========================================================================
   Sol Genesys — Design tokens
   --------------------------------------------------------------------------
   Every color, font, size, and spacing value used on the site. Change a
   value here and it updates everywhere.

   The palette is deliberately small: charcoal, white, two grays, and one
   blue accent (a darker tone for buttons, a lighter tone for text links).
   Red is used only for form errors.

   Breakpoints (media queries can't use variables, so they're listed here):
     640px  — large phones
     768px  — tablets
     1024px — desktop layout and full navigation
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- Color ------------------------------------------------------------ */
  --color-bg: #101216;            /* Page background */
  --color-surface: #171a20;       /* Raised areas: inputs, selected options */
  --color-surface-hover: #1d2128;
  --color-border: #2a2f38;        /* Hairline rules and borders */
  --color-border-strong: #3d434e;

  --color-text: #f2f4f7;          /* Headings and main text */
  --color-text-muted: #a3a9b5;    /* Paragraphs and secondary text */
  --color-text-subtle: #7d8491;   /* Small labels */

  --color-accent: #2563eb;        /* Buttons and fills (white text on top) */
  --color-accent-hover: #1d4ed8;
  --color-accent-text: #7aa2ff;   /* Links and highlights on the dark background */

  --color-error: #ff8a80;

  /* ---- Type ------------------------------------------------------------- */
  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-display: 4rem;           /* 64px — home hero */
  --text-h1: 3rem;                /* 48px — page titles */
  --text-h2: 2.25rem;             /* 36px — section headings */
  --text-h3: 1.375rem;            /* 22px */
  --text-lg: 1.1875rem;           /* 19px — intro paragraphs */
  --text-base: 1rem;              /* 16px — body */
  --text-sm: 0.875rem;            /* 14px */
  --text-label: 0.75rem;          /* 12px — uppercase labels */

  --leading-tight: 1.1;
  --leading-heading: 1.2;
  --leading-body: 1.6;

  /* ---- Spacing ---------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --section-y: 6rem;              /* Vertical padding of page sections */

  /* ---- Layout & shape --------------------------------------------------- */
  --container-max: 1200px;
  --container-pad: 2rem;
  --header-height: 4.5rem;
  --radius: 4px;
  --radius-sm: 2px;

  /* ---- Motion ----------------------------------------------------------- */
  --duration: 180ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 1023px) {
  :root {
    --container-pad: 1.5rem;
    --section-y: 4.5rem;
    --text-display: 3.25rem;
    --text-h1: 2.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --container-pad: 1rem;
    --section-y: 3.5rem;
    --header-height: 4rem;
    --text-display: 2.5rem;
    --text-h1: 2.125rem;
    --text-h2: 1.75rem;
    --text-h3: 1.25rem;
    --text-lg: 1.0625rem;
  }
}
