/* ============================================================
   BUILD.JERADHILL.COM — DESIGN TOKENS
   Ported from the "Jerad Hill Design System" (Claude Design
   project c875c1). Strictly monochrome foundation + ONE
   swappable accent for cohort-open states + two-state logic.

   Everything is a CSS custom property so the theme can be
   re-branded by editing tokens, never templates. The
   FluentCommunity portal inherits this look by loading these
   same variables.
   ============================================================ */

/* ---------- COLOR: monochrome foundation ---------- */
:root {
  /* Neutral ramp (light -> dark) */
  --white:      #ffffff;
  --neutral-50: #f6f6f5;
  --neutral-100:#efefee;
  --neutral-200:#e4e4e2;
  --neutral-300:#d2d2cf;
  --neutral-400:#a8a8a4;
  --neutral-500:#7c7c78;
  --neutral-600:#565654;
  --neutral-700:#3a3a38;
  --neutral-800:#242423;
  --neutral-900:#141413;
  --ink:        #0b0b0a;   /* near-black, primary text + solid fills */
  --black:      #000000;   /* pure black, crispest UI */

  /* Semantic surfaces */
  --surface-page:    var(--white);
  --surface-muted:   var(--neutral-50);   /* light-gray alternating band */
  --surface-card:    var(--white);
  --surface-inverse: var(--ink);          /* black statement / footer bands */

  /* Semantic text */
  --text-primary:   var(--ink);
  --text-secondary: var(--neutral-600);
  --text-muted:     var(--neutral-500);
  --text-inverse:   var(--white);
  --text-on-inverse-muted: var(--neutral-400);

  /* Borders / lines */
  --border:        var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-ink:    var(--ink);

  /* Interactive (monochrome) */
  --action:          var(--ink);
  --action-hover:    var(--black);
  --action-contrast: var(--white);

  /* Focus ring */
  --ring: color-mix(in srgb, var(--ink) 35%, transparent);

  /* Desaturated status (system states only) */
  --success: #2e7d5b;
  --warning: #b0781f;
  --danger:  #b23b32;
  --info:    var(--neutral-700);

  /* ---------- ACCENT (single, swappable) ----------
     Set from the theme Settings page. Defaults to monochrome
     ink so the site is austere until an accent is chosen.
     The accent is ONLY expressed on cohort-open CTAs / states
     (see .cohort--open rules). Everything else stays mono. */
  --accent:          var(--ink);
  --accent-hover:    color-mix(in srgb, var(--accent) 82%, #000);
  --accent-contrast: var(--white);
}

/* ---------- TYPOGRAPHY ---------- */
:root {
  --font-sans:    'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif:   'Newsreader', Georgia, 'Times New Roman', serif;
  --font-display: var(--font-sans);
  --font-mono:    ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  /* Weights */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-extrabold:800;
  --fw-black:   900;

  /* Type scale (px) */
  --fs-eyebrow: 12px;
  --fs-caption: 13px;
  --fs-small:   14px;
  --fs-body:    16px;
  --fs-lead:    18px;
  --fs-h6:      18px;
  --fs-h5:      22px;
  --fs-h4:      28px;
  --fs-h3:      36px;
  --fs-h2:      48px;
  --fs-h1:      64px;
  --fs-display: 88px;

  /* Line heights */
  --lh-tight:   1.02;
  --lh-snug:    1.15;
  --lh-heading: 1.1;
  --lh-body:    1.6;
  --lh-relaxed: 1.75;

  /* Letter spacing */
  --ls-display: -0.02em;
  --ls-heading: -0.01em;
  --ls-body:    0em;
  --ls-eyebrow: 0.18em;
  --ls-wordmark:0.24em;
}

/* ---------- SPACING (4px grid) ---------- */
:root {
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container:        1200px;
  --container-narrow: 760px;
  --gutter:           24px;
  --section-y:        96px;
}

/* ---------- RADIUS / BORDER / SHADOW / MOTION ---------- */
:root {
  --radius-none: 0px;
  --radius-xs:   2px;
  --radius-sm:   4px;    /* buttons, inputs, cards */
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-pill: 999px;  /* badges, chips */
  --radius-full: 50%;    /* avatars */

  --border-width: 1px;
  --border-width-strong: 2px;

  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgba(11,11,10,0.05);
  --shadow-sm: 0 1px 3px rgba(11,11,10,0.07), 0 1px 2px rgba(11,11,10,0.04);
  --shadow-md: 0 4px 14px rgba(11,11,10,0.08), 0 2px 4px rgba(11,11,10,0.04);
  --shadow-lg: 0 12px 34px rgba(11,11,10,0.12), 0 4px 8px rgba(11,11,10,0.05);
  --shadow-ring: 0 0 0 3px var(--ring);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 320ms;
}

/* ---------- RESPONSIVE TYPE SCALE ---------- */
@media (max-width: 780px) {
  :root {
    --fs-display: 52px;
    --fs-h1:      42px;
    --fs-h2:      34px;
    --fs-h3:      27px;
    --fs-h4:      22px;
    --section-y:  64px;
    --gutter:     20px;
  }
}
