/* =========================================================================
   Volume Stabilizer — Design Tokens
   A light, Apple-clean system. Color language is lifted straight from the app:
     • brand gradient  : blue -> teal  (the app icon)
     • "your volume"    : blue          (base level in the menu-bar graph)
     • "the boost"      : orange        (the amount the app adds)
   Fonts are isolated behind --font-* variables so they can be swapped in one place.
   ========================================================================= */

:root {
  /* ---- Brand / semantic color ---- */
  --blue:        #5badf7;   /* RGB 0.357, 0.678, 0.968 */
  --blue-deep:   #3870ff;   /* RGB 0.219, 0.438, 1 */
  --teal:        #3870ff;   /* retained token name; now a blue-only stop */
  --teal-deep:   #2d61e6;

  --brand-grad:        linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  /* Darker variant for white text / fills so it clears WCAG AA contrast */
  --btn-grad:          linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);

  /* ---- Surfaces (light) ---- */
  --bg:        #fafbfd;   /* page canvas */
  --bg-pure:   #ffffff;
  --glass:     rgba(255, 255, 255, 0.62);
  --paper-surface: rgba(255, 255, 255, 0.82);
  --paper-fiber:  rgba(10, 11, 15, 0.018);
  --paper-fiber-soft: rgba(255, 255, 255, 0.7);
  --paper-wash: rgba(255, 255, 255, 0.12);
  --paper-texture: url("../assets/img/white-paper-texture-hq.png");

  /* ---- Ink (text) ---- */
  --ink:    #0a0b0f;   /* near-black headlines */
  --ink-2:  #3c4047;   /* body */
  --ink-3:  #5c6068;   /* secondary / captions — WCAG AA (~6:1 on light) */
  --ink-inv: #ffffff;

  /* ---- Lines & strokes ---- */
  --hair:   rgba(10, 11, 15, 0.08);

  /* ---- Shadows (soft, Apple-ish, blue-cast) ---- */
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 28px rgba(16, 24, 40, 0.08);
  --shadow-glow-blue:  0 16px 50px rgba(56, 112, 255, 0.25);

  /* ---- Radii ---- */
  --r-2xl: 44px;
  --r-pill: 999px;

  /* ---- Type families ----
     SF Pro Rounded everywhere via the `ui-rounded` generic (renders as SF Pro
     Rounded on Apple platforms); Nunito is the cross-platform rounded fallback. */
  --font-sans: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: var(--font-sans);
  /* Real monospace for the instrument/HUD data layer (tabular figures). */
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Code", "Roboto Mono", monospace;

  /* ---- Fluid type scale (clamp: min, vw, max) ---- */
  --t-h1:    clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem);
  --t-h2:    clamp(2.1rem, 1.5rem + 2.8vw, 3.8rem);
  --t-h4:    clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  --t-lead:  clamp(1.12rem, 1rem + 0.7vw, 1.5rem);
  --t-body:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-sm:    0.9375rem;
  --t-xs:    0.8125rem;

  /* ---- Spacing scale ---- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;

  /* ---- Layout ---- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 80px);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);          /* expo-ish out */
  --dur-fast: 0.25s;
  --dur: 0.5s;

  /* ---- Z-index ---- */
  --z-content: 2;
  --z-nav: 50;
}

/* The site is intentionally light-only; we still declare the scheme so form
   controls and scrollbars render in light mode. */
:root { color-scheme: light; }
