/* Shared design tokens and base styles for all Caspian apps.
   Keep this small and backwards compatible (CONSTITUTION.md, Article 4). */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --border: #e3e3e0;
  --accent: #0a66c2;
  --accent-contrast: #ffffff;
  --radius: 12px;
  --space: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1c1c1f;
    --text: #ececef;
    --muted: #9a9aa2;
    --border: #2e2e33;
    --accent: #4c9be8;
    --accent-contrast: #0b0b0c;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--space) * 2) var(--space);
}

.muted {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space);
  font-size: 0.9rem;
  text-decoration: none;
}
