/* Misaki Labs — generated from the design system's tokens.json.
   Light is the default theme. Dark follows the system setting, or set
   data-theme="dark" / "light" on <html> to force one. */

:root {
  /* Fixed colours */
  --brand: #0d2b52;
  --brand-deep: #091a2f;
  --brand-tint: #eceef1;
  --accent: #ff5200;
  --on-accent: #111111;
  --focus-ring: var(--accent);

  /* Themed colours (light) */
  --surface: #ffffff;
  --surface-tint: #eceef1;
  --surface-inverse: #0d2b52;
  --on-inverse: #ffffff;
  --ink: #111111;
  --ink-muted: #4a5668;
  --heading: #0d2b52;
  --link: #0d2b52;
  --line: #d3d8e0;
  --line-strong: #6a7a90;

  /* Type */
  --font-serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadow (light) */
  --shadow-sm: 0 1px 2px rgba(13, 43, 82, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 43, 82, 0.12);

  /* Size */
  --touch-target: 44px;
  --control-height: 44px;
  --measure: 68ch;
  --container: 1120px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #091a2f;
    --surface-tint: #0d2b52;
    --surface-inverse: #ffffff;
    --on-inverse: #0d2b52;
    --ink: #ffffff;
    --ink-muted: #b4c0d0;
    --heading: #ffffff;
    --link: #a9c1e6;
    --line: #1f3d63;
    --line-strong: #7d93b2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --surface: #091a2f;
  --surface-tint: #0d2b52;
  --surface-inverse: #ffffff;
  --on-inverse: #0d2b52;
  --ink: #ffffff;
  --ink-muted: #b4c0d0;
  --heading: #ffffff;
  --link: #a9c1e6;
  --line: #1f3d63;
  --line-strong: #7d93b2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
