/* ================================================================
   CIRCLE CHIROPRACTIC — kit tokens, verbatim.
   Source: reference/kits/circle/tokens/{fonts,colors,typography,
   spacing,effects,base}.css. ZERO invented values.
   Deltas (logged in /circle-kit/guide/ §Token Fidelity Audit):
   1. @font-face src paths rewritten to this site's assets/fonts/
      (same kit woff2 files, byte-identical copies).
   2. ONE addition: @font-face for "Newsreader" italic — the kit
      ships assets/fonts/newsreader-italic.woff2 and uses the face
      throughout ui_kits/website/home-explorations-v4.css, but
      tokens/fonts.css never declares it. Declared here; no new
      family invented (file + usage are both kit-supplied).
   ================================================================ */

/* ---- Poppins (display / headings / wordmark) ---- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/poppins-800.woff2") format("woff2"); }

/* ---- Mulish (body / UI) ---- */
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/mulish-400.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/mulish-500.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/mulish-600.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/mulish-700.woff2") format("woff2"); }

/* ---- Newsreader italic (accent — human asides). See delta note 2. ---- */
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/newsreader-italic.woff2") format("woff2"); }

/* ============================================================
   Circle Chiropractic — Color tokens  (kit: tokens/colors.css)
   ============================================================ */
:root {
  /* ---- Brand: Azure (the Circle blue) ---- */
  --blue-50:  #eff7ff;
  --blue-100: #dbedff;
  --blue-200: #bfe0ff;
  --blue-300: #91ccff;
  --blue-400: #57b0ff;
  --blue-500: #0084fc;   /* ← brand primary, from logo */
  --blue-600: #0a6fe0;   /* hover */
  --blue-700: #0d59b8;   /* pressed / links on light */
  --blue-800: #124a93;
  --blue-900: #143b72;
  --blue-950: #0e254a;

  /* ---- Ink: deep trust navy (headings, dark surfaces) ---- */
  --ink:      #0b2545;
  --ink-soft: #14315a;

  /* ---- Neutrals: cool slate, faintly blue-tinted ---- */
  --white:      #ffffff;
  --neutral-50:  #f5f8fc;
  --neutral-100: #eef3f9;
  --neutral-200: #e2e9f2;
  --neutral-300: #cdd8e6;
  --neutral-400: #a2b1c4;
  --neutral-500: #708196;
  --neutral-600: #526376;
  --neutral-700: #3b4b5c;
  --neutral-800: #263441;
  --neutral-900: #16212b;

  /* ---- Semantic (clinical, calm) ---- */
  --green-500:  #16a56a;
  --green-50:   #e6f6ee;
  --amber-500:  #e6a008;
  --amber-50:   #fdf3dc;
  --red-500:    #e14638;
  --red-50:     #fdecea;

  /* ---- Soft brand wash ---- */
  --wash-blue:  #e9f4ff;
  --wash-cool:  #f5f8fc;

  /* ---- Semantic aliases ---- */
  --text-heading:  var(--ink);
  --text-body:     var(--neutral-700);
  --text-muted:    var(--neutral-500);
  --text-subtle:   var(--neutral-400);
  --text-on-brand: var(--white);
  --text-on-ink:   #dbe7f5;
  --text-link:     var(--blue-700);
  --text-brand:    var(--blue-600);

  --surface-page:      var(--white);
  --surface-card:      var(--white);
  --surface-subtle:    var(--neutral-50);
  --surface-sunken:    var(--neutral-100);
  --surface-brand:     var(--blue-500);
  --surface-brand-strong: var(--blue-700);
  --surface-brand-soft:   var(--wash-blue);
  --surface-ink:       var(--ink);
  --surface-overlay:   rgba(11, 37, 69, 0.55);

  --border-subtle:  var(--neutral-200);
  --border-default: var(--neutral-300);
  --border-brand:   var(--blue-500);
  --border-focus:   var(--blue-500);

  --brand-hover:   var(--blue-600);
  --brand-active:  var(--blue-700);
  --focus-ring:    rgba(0, 132, 252, 0.35);

  --success:      var(--green-500);
  --success-bg:   var(--green-50);
  --warning:      var(--amber-500);
  --warning-bg:   var(--amber-50);
  --danger:       var(--red-500);
  --danger-bg:    var(--red-50);
  --info:         var(--blue-500);
  --info-bg:      var(--wash-blue);
}

/* ============================================================
   Typography tokens  (kit: tokens/typography.css)
   ============================================================ */
:root {
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Mulish", "Segoe UI", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif:   "Newsreader", Georgia, "Times New Roman", serif; /* kit: home-explorations-v4.css line 16 */

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

  --fs-display:   clamp(2.75rem, 5vw, 4rem);
  --lh-display:   1.04;
  --fs-h1:   2.5rem;   --lh-h1: 1.1;
  --fs-h2:   2rem;     --lh-h2: 1.15;
  --fs-h3:   1.5rem;   --lh-h3: 1.25;
  --fs-h4:   1.25rem;  --lh-h4: 1.35;
  --fs-title: 1.125rem; --lh-title: 1.4;
  --fs-body-lg: 1.125rem; --lh-body-lg: 1.7;
  --fs-body:    1rem;     --lh-body: 1.65;
  --fs-body-sm: 0.875rem; --lh-body-sm: 1.55;
  --fs-caption: 0.8125rem; --lh-caption: 1.4;
  --fs-overline: 0.75rem;  --lh-overline: 1.3;

  --tracking-tight:   -0.02em;
  --tracking-snug:    -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-overline: 0.14em;
}

/* ============================================================
   Spacing & layout tokens  (kit: tokens/spacing.css)
   ============================================================ */
:root {
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --container-max: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
}

/* ============================================================
   Effects: radius, shadow, motion, blur  (kit: tokens/effects.css)
   ============================================================ */
:root {
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --shadow-xs:  0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-sm:  0 1px 2px rgba(11, 37, 69, 0.06), 0 2px 6px rgba(11, 37, 69, 0.07);
  --shadow-md:  0 4px 10px rgba(11, 37, 69, 0.08), 0 2px 4px rgba(11, 37, 69, 0.05);
  --shadow-lg:  0 14px 30px rgba(11, 37, 69, 0.10), 0 4px 10px rgba(11, 37, 69, 0.06);
  --shadow-xl:  0 28px 60px rgba(11, 37, 69, 0.14), 0 8px 20px rgba(11, 37, 69, 0.08);
  --shadow-brand: 0 10px 24px rgba(0, 132, 252, 0.30);
  --shadow-brand-lg: 0 18px 40px rgba(0, 132, 252, 0.34);
  --shadow-focus: 0 0 0 4px var(--focus-ring);

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

  --dur-fast:  120ms;
  --dur-base:  200ms;
  --dur-slow:  320ms;
  --ease-out:      cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);

  --blur-panel: saturate(160%) blur(12px);
  --focus-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

/* ============================================================
   Base element defaults  (kit: tokens/base.css)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-snug);
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--brand-hover); }

strong, b { font-weight: var(--fw-bold); color: var(--text-heading); }

small { font-size: var(--fs-body-sm); }

img, svg, video { max-width: 100%; height: auto; display: block; }

hr {
  border: 0;
  border-top: var(--border-width) solid var(--border-subtle);
  margin: var(--space-6) 0;
}

::selection { background: var(--blue-200); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

/* typofix */
@media (max-width: 640px){ :root{ --fs-body: 0.875rem; } }
.sec-head p{ font-size:var(--fs-body); }
.sec-head .overline{ font-size:0.6875rem; }
