/* ============================================================
   The Circulator — Design tokens
   Single source of truth for colours, typography, spacing, radii,
   shadows and breakpoints. Every component reads from here.
   ============================================================ */

:root {
  /* --- Brand colours (CI Package) ----------------------------- */
  --c-black: #000000;
  --c-white: #f9f9f9;
  --c-cream: #EFEDE3;
  --c-gold: #C78E57;
  /* accent — Show */
  --c-navy: #1F3345;
  /* accent — Talks */
  --c-red: #930F0F;
  /* accent — Forum */
  --c-teal: #64A09D;
  /* accent — Edu */
  --c-blue: #60B2E5;
  /* accent — News */
  --c-purple: #7F6DC6;
  /* accent — Shop */

  /* --- Semantic surface tokens ------------------------------- */
  --color-bg: var(--c-white);
  --color-bg-elevated: #FFFFFF;
  --color-bg-inverse: var(--c-black);
  --color-surface-muted: #E6E4D9;
  /* wireframe hero grey on cream */
  --color-border: #DAD7CB;
  --color-border-strong: #B9B5A5;
  --c-grey-light: #f2f2f2;
  --color-bg-subtle: var(--c-grey-light);

  --color-text: var(--c-black);
  --color-text-muted: #3A3A36;
  --color-text-subtle: #6B6A63;
  --color-text-inverse: var(--c-white);

  --color-link: var(--c-black);
  --color-link-hover: var(--c-gold);

  /* Sub-brand accents reused semantically */
  --accent-news: var(--c-navy);
  --accent-talks: var(--c-red);
  --accent-show: var(--c-gold);
  --accent-forum: var(--c-teal);

  /* --- Typography -------------------------------------------- */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extra: 800;

  /* Fluid type scale */
  --fs-h1: clamp(2.4rem, 8vw, 6rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 0.5rem, 2.4rem);
  --fs-h3: clamp(1.25rem, 1vw + 0.8rem, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.9rem, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-base: 1.5;
  --lh-loose: 1.65;

  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-normal: 0;

  /* --- Spacing scale ----------------------------------------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* --- Radii ------------------------------------------------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --image-border-radii: var(--radius-sm);

  /* --- Shadows ----------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* --- Motion ------------------------------------------------ */
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;
  --dur-slow: 400ms;

  /* --- Layout ------------------------------------------------ */
  --layout-max: 1600px;
  --content-max: 1200px;
  --article-max: 740px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* Dark surface (used for footer and some hero sections) */
.theme-dark {
  --color-bg: var(--c-black);
  --color-bg-elevated: #111111;
  --color-surface-muted: #1C1C1C;
  --color-border: #2A2A2A;
  --color-border-strong: #444444;

  --color-text: var(--c-cream);
  --color-text-muted: #C7C4B6;
  --color-text-subtle: #8A887F;
  --color-text-inverse: var(--c-black);

  --color-link: var(--c-cream);
  --color-link-hover: var(--c-gold);
}

/* Breakpoints (container queries will read these via @media) */
/* sm 480  |  md 768  |  lg 1024  |  xl 1200  |  xxl 1600 */