/* Brand: RheumAI ("The Frontier Lab Notebook"), light theme.
   Source: pokta-care docs/design-references/RHEUMAI-DESIGN.md (canonical, project level), read 2026-11-20.
   color-mix() tokens resolved to hex: surface-brand = mix(#3333DE 14%, #FFFFFF) = #e2e2fa.
   Fonts self-hosted from @fontsource-variable, SIL OFL 1.1 (fonts/OFL.txt). */
@font-face { font-family: "Source Serif 4 Variable"; src: url(fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2-variations"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope Variable"; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Funnel Display Variable"; src: url(fonts/funnel-display-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 300 800; font-display: swap; }

:root {
  --x-ground: #ebeef4;        /* background: cool off-white, never warm paper */
  --x-ground-mark: #ebeef4;   /* no texture: no paper grain */
  --x-board: #ffffff;         /* surface: the framed card */
  --x-panel: #ffffff;
  --x-recessed: #e2e6f0;      /* surface-2 */

  --x-ink: #14161c;           /* foreground */
  --x-ink-soft: #545b6b;      /* foreground-soft */
  --x-on-dark: #ffffff;       /* primary-foreground */
  --x-line: #cdd4e0;          /* rule: every seam is a hairline */
  --x-arrow: #545b6b;
  --x-chrome: #cdd4e0;

  --x-accent: #3333de;        /* primary: the one blue voice */
  --x-accent-ink: #3333de;    /* primary-ink */
  --x-fill-2: #3333de;        /* One Voice Rule: no second brand hue */
  --x-fill-3: #e2e2fa;        /* surface-brand tint of the same hue */
  --x-highlight: #e2e2fa;     /* surface-brand */
  --x-muted: #e2e6f0;         /* surface-2 */

  --x-ok: #1f7a54;
  --x-attn: #9c6a15;          /* the default "needs you" */
  --x-stop: #c1362b;          /* spot: rationed, true blockers only */

  --x-header-bg: #ebeef4;     /* sticky bar on background with a rule seam */
  --x-header-rule: 1px;

  --x-radius: 0;              /* Square corner */
  --x-radius-sm: 0;
  --x-stroke: 1.5;            /* a 1px hairline at the canvas's ~0.6 scale */
  --x-chrome-w: 1px;
  --x-shadow: soft;           /* the one soft shadow */
  --x-shadow-color: #14161c;
  --x-board-shadow: 0 1px 2px rgba(20,22,28,.06), 0 18px 40px -16px rgba(20,22,28,.20);
  --x-btn-shadow: none;
  --x-texture: none;

  --x-font-display: "Source Serif 4 Variable", Georgia, "Times New Roman", serif;  /* serif reads */
  --x-font-box: "Manrope Variable", system-ui, -apple-system, sans-serif;           /* sans is scanned */
  --x-font-sans: "Manrope Variable", system-ui, -apple-system, sans-serif;
  --x-font-hand: "Manrope Variable", system-ui, -apple-system, sans-serif;          /* no hand face */
  --x-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --x-display-weight: 500;
  --x-box-weight: 600;
  --x-hand-weight: 600;
  --x-hand-settings: normal;
  --x-hand-style: normal;     /* never italic: the one sanctioned italic is the hero accent */
  --x-tracking-display: -0.01em;
  --x-tracking-label: 0.16em;
}

/* Header lockup, as on the landing Nav.astro: logo ball + "RheumAI" in Funnel Display 500, "AI" in primary-ink. */
.x-logo { display: flex; align-items: center; gap: 4px; flex: none; font-family: "Funnel Display Variable", system-ui, sans-serif; font-size: 1.5rem; font-weight: 500; line-height: 1; letter-spacing: -0.025em; color: var(--x-ink); }
.x-logo-mark { display: block; height: 20px; width: 20px; }
.x-logo-ai { color: var(--x-accent-ink); }
