/* ============================================================
   InScope Management / Frequency of Breath™
   Design tokens — colors & type
   Source: InScope Managment Branding Deck.pptx
   ============================================================ */

/* ---------- Webfont declarations ----------
   Century Gothic and Segoe UI Symbol are system fonts that ship
   with macOS / Windows. Where unavailable we fall back to the
   nearest Google Font matches:
     Century Gothic     → Questrial / Jost (geometric, humanist)
     Segoe UI Symbol    → "Segoe UI", system-ui, then Inter
     RODE Noto Sans Hindi R → Noto Sans (regular)
   See README → "Type & Font substitutions" for details.
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Jost:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Noto+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ---------- Brand color tokens ---------- */
  --ins-deep-blue:  #143D59;  /* primary brand */
  --ins-deep-blue-bg: #133D59;/* slide bg variant */
  --ins-deep-blue-2:  #123B56;/* card / inset variant from deck */
  --ins-cool-gray:  #CBD2D9;
  --ins-warm-sand:  #D6BFA7;
  --ins-white:      #FFFFFF;

  /* Tints / shades derived for UI usage. Use sparingly — defer
     to the four core swatches for anything brand-facing. */
  --ins-deep-blue-90: #1F4A66;
  --ins-deep-blue-70: #43657C;
  --ins-deep-blue-40: #8FA4B3;
  --ins-cool-gray-50: #E5E9ED;
  --ins-cool-gray-25: #F2F4F6;
  --ins-warm-sand-50: #EADFD2;
  --ins-warm-sand-25: #F4ECE3;

  /* ---------- Semantic surface tokens ---------- */
  --bg-primary:    var(--ins-white);
  --bg-secondary:  var(--ins-cool-gray-25);
  --bg-tonal:      var(--ins-warm-sand-25);
  --bg-inverse:    var(--ins-deep-blue);

  --fg-primary:    var(--ins-deep-blue);     /* body on light */
  --fg-secondary:  var(--ins-deep-blue-70);
  --fg-muted:      var(--ins-deep-blue-40);
  --fg-on-dark:    var(--ins-white);
  --fg-on-sand:    var(--ins-deep-blue);

  --border-subtle: var(--ins-cool-gray);
  --border-strong: var(--ins-deep-blue);

  --accent:        var(--ins-warm-sand);

  /* ---------- Type families ---------- */
  --font-display: "Century Gothic", "Questrial", "Jost", "Avenir Next", "Avenir", system-ui, sans-serif;
  --font-body:    "Segoe UI Symbol", "Segoe UI", system-ui, "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-numeric: "RODE Noto Sans Hindi R", "Noto Sans", "Segoe UI", system-ui, sans-serif;

  /* ---------- Type scale ----------
     Generous, breath-work calm. Big titles, airy line-heights.   */
  --fs-display: 64px;
  --fs-h1:      48px;
  --fs-h2:      36px;
  --fs-h3:      28px;
  --fs-h4:      22px;
  --fs-body:    17px;
  --fs-small:   14px;
  --fs-caption: 12px;

  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.5;
  --lh-relaxed: 1.7;

  --ls-tight:   -0.01em;
  --ls-normal:   0;
  --ls-wide:     0.08em;
  --ls-extra:    0.18em;  /* eyebrow / breathwork labels */

  /* ---------- Spacing (4px base) ---------- */
  --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 ----------
     The deck's color cards use soft rounded rectangles — that
     softness is the brand's geometric signature. */
  --r-sm:   6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* ---------- Shadows ---------- */
  --sh-1: 0 1px 2px rgba(20, 61, 89, 0.06), 0 1px 1px rgba(20, 61, 89, 0.04);
  --sh-2: 0 4px 12px rgba(20, 61, 89, 0.08), 0 2px 4px rgba(20, 61, 89, 0.05);
  --sh-3: 0 12px 32px rgba(20, 61, 89, 0.12), 0 4px 8px rgba(20, 61, 89, 0.06);
  --sh-glow: 0 0 0 6px rgba(214, 191, 167, 0.35); /* sand halo */

  /* ---------- Motion ---------- */
  --ease-breath: cubic-bezier(0.45, 0, 0.25, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   640ms;
  --dur-breath: 4000ms; /* slow inhalation pulse */
}

/* ============================================================
   Element-level defaults
   ============================================================ */
html, body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h-display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 400;          /* Century Gothic reads thin & elegant */
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--fg-primary);
}

.h-display { font-size: var(--fs-display); }
h1, .h1   { font-size: var(--fs-h1); }
h2, .h2   { font-size: var(--fs-h2); }
h3, .h3   { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4, .h4   { font-size: var(--fs-h4); line-height: var(--lh-snug); font-weight: 500; }

p, .body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-secondary);
  text-wrap: pretty;
}

.small  { font-size: var(--fs-small); line-height: var(--lh-normal); }
.caption{ font-size: var(--fs-caption); line-height: var(--lh-normal); color: var(--fg-muted); }

/* eyebrow / kicker — used over titles, all-caps spaced */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: var(--ls-extra);
  color: var(--fg-secondary);
  font-weight: 600;
}

/* numerals — RODE Noto Sans Hindi R (e.g. session counts, BPM,
   binaural Hz). Use for any prominent number. */
.num, .numeric {
  font-family: var(--font-numeric);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* trademarked terms, e.g. The Frequency of Breath™ */
.tm {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: var(--ls-tight);
}

/* monospace — for any code / data readout (e.g. "432 Hz") */
code, .mono {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--ins-cool-gray-25);
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
}
