/* Cam Lore design tokens: the only place where raw colour, radius, type and
   spacing values live. Origin CSS and every presentation layer reference these.
   The presentation Worker serves this same file as /tokens.css, so each layer
   resolves the same values whichever release of the other side is running. */
:root {
  /* surfaces: 3 greys + 1 border */
  --bg: #0E0F12;
  --surface-1: #16181D;
  --surface-2: #1E2027;
  --border: #2A2D36;

  /* text (AA on --bg and --surface-2) */
  --text-1: #F4F4F5;
  --text-2: #C4C4CC;
  --text-3: #A1A1AA;

  /* accent: antique gold, used sparingly */
  --accent: #D6AC62;
  --accent-hover: #E4BE7D;
  --on-accent: #111111;

  /* status, never decorative */
  --live: #34D399;
  --danger: #E16981;

  /* shape */
  --radius-s: 6px;
  --radius-m: 12px;
  --hairline: 1px solid var(--border);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* type: one family; Plus Jakarta Sans is for the wordmark only */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --font-brand: "Plus Jakarta Sans", var(--font);
  --t-xs: 12px; --lh-xs: 16px;
  --t-s: 14px;  --lh-s: 20px;
  --t-m: 16px;  --lh-m: 24px;
  --t-l: 20px;  --lh-l: 28px;
  --t-xl: 24px; --lh-xl: 32px;
  --t-2xl: 32px; --lh-2xl: 40px;

  /* spacing: 4 px grid */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* layout */
  --container: 1180px;
  --reading: 720px;
  --gutter: 16px;
  --control: 44px;
  --motion: 150ms ease-out;

  /* Legacy names still read by older component CSS. Aliases only: never add
     a raw value here. */
  --bg-base: var(--bg);
  --surface: var(--surface-1);
  --bg-surface: var(--surface-1);
  --surface-raised: var(--surface-2);
  --bg-surface-2: var(--surface-2);
  --surface-muted: var(--surface-2);
  --surface-3: var(--surface-2);
  --text: var(--text-1);
  --text-primary: var(--text-1);
  --text-secondary: var(--text-2);
  --text-chrome: var(--text-2);
  --text-meta: var(--text-3);
  --text-muted: var(--text-3);
  --muted: var(--text-3);
  --soft: var(--text-3);
  --accent-link: var(--accent);
  --accent-warm: var(--accent);
  --accent-live: var(--live);
  --radius-sm: var(--radius-s);
  --radius-md: var(--radius-s);
  --radius-lg: var(--radius-m);
  --radius: var(--radius-m);
  --shadow-card: none;
  --focus-ring: var(--focus);
  --ap-bg: var(--bg);
  --ap-group: var(--surface-1);
  --ap-group2: var(--surface-2);
  --ap-sep: var(--border);
  --ap-label: var(--text-1);
  --ap-label2: var(--text-2);
  --ap-label3: var(--text-3);
  --ap-accent: var(--accent);
  --ap-text: var(--font);
  --ap-display: var(--font);
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}
