/* Town Web design tokens — the single place brand values live for components.
   Source of truth: Notion → Town Web → Brand Assets & Guidelines → Town Web Design System
   (built in Claude Design, 2026-08-17). Legacy pages in src/html still hard-code hex values;
   they migrate block by block as components replace them. Do NOT rename tokens without updating
   the Notion page. Loaded site-wide from src/partials/head-common.html, before theme.css. */
:root {
  /* Brand */
  --red-500: #DE222F;   /* Town Web red: primary action + accent */
  --slate-600: #4E6078; /* Town Web slate: headings, secondary UI */

  /* Red scale */
  --red-700: #9E141E;
  --red-600: #C01B26;
  --red-400: #E8515C;
  --red-100: #FBDEE0;
  --red-50:  #FDF1F2;

  /* Slate scale (cool neutrals from the logo slate) */
  --slate-900: #222B38;
  --slate-800: #303C4D;
  --slate-700: #3E4D62;
  --slate-500: #66788F;
  --slate-400: #8394A8;
  --slate-300: #A9B6C6;
  --slate-200: #CDD6E0;
  --slate-100: #E5EAF0;
  --slate-50:  #F3F6F9;

  /* Status (muted, used sparingly) */
  --green-600: #2E7D4F;
  --green-100: #DDF0E4;
  --amber-600: #A9741B;
  --amber-100: #F7ECD4;

  /* Semantic aliases */
  --brand-primary:   var(--red-500);
  --brand-secondary: var(--slate-600);
  --text-heading:    var(--slate-700);
  --text-body:       var(--slate-800);
  --text-muted:      var(--slate-500);
  --text-inverse:    #FFFFFF;
  --surface-page:    #FFFFFF;
  --surface-subtle:  var(--slate-50);
  --surface-card:    #FFFFFF;
  --surface-dark:    var(--slate-800);
  --border-default:  var(--slate-200);
  --border-strong:   var(--slate-300);
  --link:            var(--red-600);
  --link-hover:      var(--red-700);
  --focus-ring:      0 0 0 3px rgba(78, 96, 120, .35);

  /* Legacy gradient used by the red CTA band (kept for visual fidelity with the live site) */
  --gradient-red: linear-gradient(90deg, rgba(222, 34, 48, 1) 65%, rgba(222, 90, 35, 1) 100%);

  /* Typography — Aller is the brand face (site fonts are declared in theme.css / page CSS) */
  --font-body:       "Aller", Verdana, -apple-system, sans-serif;
  --font-display:    "Aller Bold", "Aller", Verdana, sans-serif;
  --font-decorative: "Aller Display", "Aller", Verdana, sans-serif;
  --weight-light:   300;
  --weight-regular: 400;
  --weight-bold:    700;
  --text-xs:  12px;
  --text-sm:  14px;
  --text-md:  16px;
  --text-lg:  18px;
  --text-xl:  22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --leading-tight: 1.15;
  --leading-snug:  1.3;
  --leading-body:  1.55;
  --tracking-caps: 0.06em;

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

  /* Shape + elevation */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   20px;  /* site's `.radius-20` */
  --radius-2xl:  40px;  /* site's `.radius-40` (CTA band) */
  --radius-pill: 999px;
  --shadow-card:    0 1px 3px rgba(34, 43, 56, .08), 0 1px 2px rgba(34, 43, 56, .06);
  --shadow-raised:  0 4px 12px rgba(34, 43, 56, .12);
  --shadow-overlay: 0 12px 32px rgba(34, 43, 56, .22);

  /* Motion */
  --ease-fast: 120ms ease;
}
