/* ============================================================
   DESIGN TOKENS — kylenortoncpa.com
   Import this file first on every page.
   Never hardcode hex values or font names outside this file.
   ============================================================ */

:root {

  /* ── Colors ── */
  --color-primary:       #4C7474;   /* Dark teal — headings, nav, buttons */
  --color-primary-dark:  #3d6060;   /* Darker teal — button hover state */
  --color-accent:        #64A4A4;   /* Medium teal — hover states, highlights */
  --color-bg:            #ffffff;
  --color-bg-subtle:     #f7fafa;   /* Light teal-tinted background */
  --color-bg-hover:      #fafafa;   /* Row hover background */
  --color-bg-table:      #f5f5f3;   /* Pricing table section row background */
  --color-white:         #ffffff;   /* Always white — text on teal backgrounds */
  --color-text:          #2c2c2c;
  --color-text-light:    #666666;
  --color-text-muted:    #bbbbbb;   /* lightest text — pricing dashes, disclaimers, fine print */
  --color-border:        #e0e0e0;
  --color-border-table:  #ebebeb;   /* Pricing table row dividers */

  /* ── Typography ── */
  --font-heading: 'Josefin Sans', system-ui, sans-serif;
  --font-body:    'Raleway', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* ── Layout ── */
  --container-max:     1100px;
  --container-padding: 1.5rem;
  --radius:            4px;
  --radius-lg:         8px;

  /* ── Components ── */
  --nav-height:   72px;
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.10);
  --transition:   150ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:           #1a1a1a;
    --color-bg-subtle:    #222222;
    --color-bg-hover:     #2a2a2a;
    --color-bg-table:     #2a2a2a;
    --color-border-table: #3a3a3a;
    --color-text:         #e8e8e8;
    --color-text-light:   #aaaaaa;
    --color-text-muted:   #888888;   /* slightly lighter than --color-text-light in dark mode */
    --color-border:       #333333;
    --color-primary:      #64A4A4;   /* accent becomes primary in dark mode for contrast */
    --color-primary-dark: #4C7474;
    --color-accent:       #7fbfbf;
    /* --color-white is intentionally omitted — it never changes */
  }
}
