/* 4KJax screen look: "Midnight" (the default in Ordo and avltech) plus Ordo's Liquid Glass as the light option for apps that offer one.
   Plain CSS variables for static pages. Ordo and avltech carry the same colours as RGB triplets in their theme engine
   (frontend/theme/themes.mjs). Needs assets/fonts/fonts.css for Inter and JetBrains Mono.
   4kjax.com itself is ALWAYS dark: never ship [data-theme="daylight"] there, and never follow prefers-color-scheme. */
:root {
  color-scheme: dark;
  --bg: #07080a;            /* page */
  --surface: #0b0d17;       /* alternate sections, footer */
  --panel: #0e1526;         /* cards, inputs, header chips */
  --panel-hover: #10203a;
  --border: rgb(255 255 255 / 0.10);
  --border-strong: rgb(255 255 255 / 0.18);
  --text: #ffffff;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --accent: #22d3ee;        /* Tailwind cyan-400 */
  --accent-light: #67e8f9;  /* cyan-300 */
  --accent-deep: #06b6d4;   /* cyan-500 */
  --accent-fill: linear-gradient(90deg, #22d3ee, #67e8f9, #06b6d4);
  --on-accent: #000000;
  --shadow-card: 0 15px 40px rgb(0 0 0 / 0.5);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;  /* headings: Inter 800, tight tracking */
  --font-mono: "JetBrains Mono", ui-monospace, monospace;         /* kickers, labels, badges */
  --font-scripture: "Literata Variable", Georgia, serif;          /* scripture text and page titles only (self-host Literata in apps that need it) */
}

/* Light option for apps: Ordo's "Liquid Glass" (theme id `glass`, light): vivid blurred colour behind frosted white cards.
   Chosen by the user, never automatic. Cards use --panel-fill + backdrop-filter: var(--panel-blur); the colour is --art on the page.
   (Ordo's plainer "Daylight" theme also exists if an app needs flat white.) */
:root[data-theme="glass"] {
  color-scheme: light;
  --bg: #eef0f7;
  --surface: #ffffff;
  --panel: #ffffff;
  --panel-hover: #dde1ec;
  --panel-fill: rgb(255 255 255 / 0.58);
  --panel-blur: blur(22px) saturate(170%);
  --panel-border: rgb(255 255 255 / 0.75);
  --panel-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 10px 36px -14px rgb(15 23 42 / 0.28);
  --art: radial-gradient(42rem 42rem at 8% 12%, rgb(59 130 246 / 0.42), transparent 62%), radial-gradient(38rem 38rem at 92% 18%, rgb(236 72 153 / 0.34), transparent 62%), radial-gradient(46rem 46rem at 62% 98%, rgb(249 115 22 / 0.30), transparent 62%);
  --border: rgb(15 23 42 / 0.10);
  --border-strong: rgb(15 23 42 / 0.18);
  --text: #070a12;
  --body: #334155;
  --muted: #556377;         /* darkened from #64748b to pass AA on the page background */
  --accent: #1d4ed8;        /* deep blue (was #3b82f6, which failed AA as text and under white button text) */
  --accent-light: #3b82f6;
  --accent-deep: #1e40af;
  --accent-fill: linear-gradient(90deg, #1d4ed8, #3b82f6);
  --on-accent: #ffffff;
  --shadow-card: var(--panel-shadow);
  --font-sans: "Outfit Variable", "Inter", system-ui, sans-serif; /* glass uses Outfit; self-host it if an app ships this theme */
  --font-display: var(--font-sans);
}
/* Glass page and cards, for a site that ships this theme:
   :root[data-theme="glass"] body { background: var(--art), var(--bg); background-attachment: fixed; }
   :root[data-theme="glass"] .card { background: var(--panel-fill); backdrop-filter: var(--panel-blur); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow); }
   Dark chrome (a solid black header or bar) clashes with this theme: give bars the same panel-fill treatment. */
