/* Firnox Medical design tokens — clinical light.
 *
 * Same token NAMES as static/firnox/tokens.css, different values. That's
 * deliberate: shared templates (allauth sign-in, form partials) carry
 * inline styles like `color: var(--fg-muted)`, and keeping the vocabulary
 * identical means those render correctly on either site with no branching.
 *
 * The palette is cool slate plus a single deep petrol-teal accent. One
 * accent, used sparingly, is what separates "credible supplier" from
 * "consumer gadget shop" — every additional hue costs us credibility with
 * the audience, so status colours are the only other chromatic elements.
 */
:root {
  /* Backgrounds */
  --bg: oklch(1 0 0);                    /* pure white page */
  --bg-elev: oklch(0.985 0.003 250);     /* card surface, barely off-white */
  --bg-elev-2: oklch(0.965 0.005 250);   /* hover / nested */
  --bg-sunken: oklch(0.975 0.005 250);   /* alternating section bands */
  --bg-code: oklch(0.965 0.005 250);
  --bg-input: oklch(1 0 0);

  /* Foregrounds — slate, not black. Pure black on white is harsh at the
     text sizes this site uses. */
  --fg: oklch(0.25 0.02 255);
  --fg-muted: oklch(0.46 0.02 255);
  --fg-dim: oklch(0.58 0.018 255);
  --fg-faint: oklch(0.70 0.015 255);

  /* Borders — hairlines. This theme separates with lines and space, not
     with shadow and fill. */
  --border: oklch(0.90 0.008 255);
  --border-strong: oklch(0.82 0.012 255);
  --border-faint: oklch(0.945 0.006 255);

  /* Brand — deep petrol teal. Dark enough to pass AA as text on white
     (contrast ≈ 5.4:1) so it can be used for links, not just fills. */
  --primary: oklch(0.48 0.088 208);
  --primary-hover: oklch(0.41 0.090 208);
  --primary-fg: oklch(1 0 0);
  --primary-tint: oklch(0.955 0.018 208);   /* accent wash for callouts */
  --primary-tint-2: oklch(0.91 0.032 208);  /* accent borders */

  /* Status — used for availability pills and form feedback only. */
  --success: oklch(0.50 0.11 155);
  --success-tint: oklch(0.955 0.025 155);
  --warn: oklch(0.58 0.11 75);
  --warn-tint: oklch(0.965 0.032 75);
  --danger: oklch(0.52 0.17 25);
  --danger-tint: oklch(0.965 0.030 25);
  --info: oklch(0.52 0.10 255);
  --info-tint: oklch(0.962 0.020 255);

  /* Type — Space Grotesk for headings ties the two sites together without
     borrowing the dark theme. Inter for everything else. */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-hero: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius — slightly tighter than firnox.com. Rounder reads friendlier;
     this audience responds better to precise. */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Elevation — one soft shadow, used on cards only. */
  --shadow-card: 0 1px 2px oklch(0.25 0.02 255 / 0.04),
                 0 8px 24px oklch(0.25 0.02 255 / 0.06);
  --shadow-card-hover: 0 2px 4px oklch(0.25 0.02 255 / 0.06),
                       0 12px 32px oklch(0.25 0.02 255 / 0.10);

  /* Layout */
  --page-max: 1120px;
  --prose-max: 68ch;

  /* Accent aliases — the shared templates use --accent*, the storefront's
     own CSS uses --primary*. Both point at the same colour here because
     this site has one accent, unlike firnox.com's per-track accents. */
  --accent: var(--primary);
  --accent-hover: var(--primary-hover);
  --accent-fg: var(--primary-fg);
  --accent-deep: oklch(0.34 0.070 208);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

/* Respect a user's reduced-motion setting everywhere, including the
   scroll behaviour the anchor links in the FAQ would otherwise animate. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
