/* Rojama tokens — generated from tokens/tokens.json. Edit the JSON, not this file, if you regenerate. */

:root,
[data-theme="light"] {
  --canvas: #f5f6f7;
  --surface: #ffffff;
  --surface-sunken: #ebedf0;
  --surface-hover: #e4e7eb;
  --border: #d9dce1;
  --border-strong: #7a808a;
  --ink: #15171a;
  --ink-muted: #525760;
  --ink-subtle: #686e78;
  --navy: #101a2c;
  --lime: #c3f53c;
  --brand: var(--navy);
  --on-brand: #ffffff;
  --on-brand-muted: #b4c0d4;
  --brand-line: #8a97ae;
  --spark: var(--lime);
  --on-spark: #0b1a33;
  --spark-ink: #3f6b00;
  --spark-soft: #eefad0;
  --accent: var(--brand);
  --accent-hover: #25324a;
  --accent-soft: #e8ebf0;
  --on-accent: #ffffff;
  --indicator: var(--brand);
  --on-indicator: #ffffff;
  --link: var(--brand);
  --focus-ring: var(--brand);
  --info: #3d5a80;
  --info-soft: #e6ecf4;
  --positive: #18794a;
  --positive-soft: #e2f3e9;
  --notice: #9a5200;
  --notice-soft: #fcefdb;
  --negative: #c22b2b;
  --negative-soft: #fbe7e7;
  --on-negative: #ffffff;
  --scrim: rgba(10, 12, 16, 0.48);
  --media-backdrop: #000000;
  --shadow-sm: 0 1px 2px rgba(19, 22, 29, 0.06);
  --shadow-md: 0 4px 12px rgba(19, 22, 29, 0.08), 0 1px 3px rgba(19, 22, 29, 0.06);
  --shadow-lg: 0 16px 40px rgba(19, 22, 29, 0.14), 0 2px 6px rgba(19, 22, 29, 0.06);
  color-scheme: light;
}

[data-theme="dark"] {
  --canvas: #111214;
  --surface: #1b1c1f;
  --surface-sunken: #0b0c0d;
  --surface-hover: #26282c;
  --border: #313339;
  --border-strong: #71757d;
  --ink: #eeeff1;
  --ink-muted: #a8abb1;
  --ink-subtle: #8d9198;
  --navy: #14213a;
  --lime: #c3f53c;
  --brand: var(--navy);
  --on-brand: #ffffff;
  --on-brand-muted: #b4c0d4;
  --brand-line: #8a97ae;
  --spark: var(--lime);
  --on-spark: #0b1a33;
  --spark-ink: #c3f53c;
  --spark-soft: #26330f;
  --accent: #eceef1;
  --accent-hover: #ffffff;
  --accent-soft: #2a2d33;
  --on-accent: #111214;
  --indicator: var(--spark);
  --on-indicator: #0b1a33;
  --link: var(--spark);
  --focus-ring: var(--spark);
  --info: #a9c0de;
  --info-soft: #1f2835;
  --positive: #4cc38a;
  --positive-soft: #12291c;
  --notice: #f2a531;
  --notice-soft: #33240c;
  --negative: #ff7b72;
  --negative-soft: #381a1a;
  --on-negative: #111214;
  --scrim: rgba(0, 0, 0, 0.64);
  --media-backdrop: #000000;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* Follow the OS setting unless a theme is forced with data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #111214;
    --surface: #1b1c1f;
    --surface-sunken: #0b0c0d;
    --surface-hover: #26282c;
    --border: #313339;
    --border-strong: #71757d;
    --ink: #eeeff1;
    --ink-muted: #a8abb1;
    --ink-subtle: #8d9198;
    --navy: #14213a;
    --lime: #c3f53c;
    --brand: var(--navy);
    --on-brand: #ffffff;
    --on-brand-muted: #b4c0d4;
    --brand-line: #8a97ae;
    --spark: var(--lime);
    --on-spark: #0b1a33;
    --spark-ink: #c3f53c;
    --spark-soft: #26330f;
    --accent: #eceef1;
    --accent-hover: #ffffff;
    --accent-soft: #2a2d33;
    --on-accent: #111214;
    --indicator: var(--spark);
    --on-indicator: #0b1a33;
    --link: var(--spark);
    --focus-ring: var(--spark);
    --info: #a9c0de;
    --info-soft: #1f2835;
    --positive: #4cc38a;
    --positive-soft: #12291c;
    --notice: #f2a531;
    --notice-soft: #33240c;
    --negative: #ff7b72;
    --negative-soft: #381a1a;
    --on-negative: #111214;
    --scrim: rgba(0, 0, 0, 0.64);
    --media-backdrop: #000000;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;
  --control-sm: 28px;
  --control-md: 36px;
  --control-lg: 44px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* Type styles: apply as classes, e.g. <h1 class="heading-1"> */
.display { font-family: var(--font-sans); font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.025em; }
.heading-1 { font-family: var(--font-sans); font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.heading-2 { font-family: var(--font-sans); font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.015em; }
.heading-3 { font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -0.005em; }
.body-lg { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 500; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; }
