/* Casoma brand tokens — generated from tokens.json. Light is the default; dark applies with
   [data-theme="dark"] or, when no data-theme is set, the OS dark preference. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root, [data-theme="light"] {
  --surface: #fbf6ee;
  --surface-raised: #ffffff;
  --surface-sunken: #f3ebdf;
  --ink: #14261f;
  --ink-muted: #5a6660;
  --line: #e6ddcf;
  --line-strong: #808a84;
  --ember: #e8643a;
  --on-ember: #14261f;
  --ember-text: #b23e14;
  --ember-soft: #fbe1d4;
  --canvas: #efe4cc;
  --pine: #1f4a3d;
  --on-pine: #fbf6ee;
  --sage-soft: #dce8df;
  --sun: #f2b33d;
  --on-sun: #14261f;
  --success: #2f7d4f;
  --danger: #c2362b;
  --focus-ring: var(--ember-text);
  --shadow-card: 0 1px 2px rgba(20,38,31,0.06), 0 4px 16px rgba(20,38,31,0.06);
}
[data-theme="dark"] {
  --surface: #121c18;
  --surface-raised: #1b2924;
  --surface-sunken: #0d1512;
  --ink: #f4eee4;
  --ink-muted: #a9b4ae;
  --line: #2e3e38;
  --line-strong: #6b7a73;
  --ember: #ee6a3a;
  --on-ember: #14261f;
  --ember-text: #ff8a5e;
  --ember-soft: #3a2219;
  --canvas: #433e2e;
  --pine: #2f6b58;
  --on-pine: #f4eee4;
  --sage-soft: #1f3a31;
  --sun: #f2b33d;
  --on-sun: #14261f;
  --success: #6fcf97;
  --danger: #ff7a6e;
  --focus-ring: var(--ember-text);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  --surface: #121c18;
  --surface-raised: #1b2924;
  --surface-sunken: #0d1512;
  --ink: #f4eee4;
  --ink-muted: #a9b4ae;
  --line: #2e3e38;
  --line-strong: #6b7a73;
  --ember: #ee6a3a;
  --on-ember: #14261f;
  --ember-text: #ff8a5e;
  --ember-soft: #3a2219;
  --canvas: #433e2e;
  --pine: #2f6b58;
  --on-pine: #f4eee4;
  --sage-soft: #1f3a31;
  --sun: #f2b33d;
  --on-sun: #14261f;
  --success: #6fcf97;
  --danger: #ff7a6e;
  --focus-ring: var(--ember-text);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4);
  }
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Type styles */
.text-display-xl { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 700; letter-spacing: -1.5px; }
.text-display-lg { font-family: var(--font-display); font-size: 44px; line-height: 48px; font-weight: 700; letter-spacing: -1px; }
.text-heading { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.4px; }
.text-title { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -0.2px; }
.text-body-lg { font-family: var(--font-sans); font-size: 17px; line-height: 26px; font-weight: 400; }
.text-body { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 400; }
.text-label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
.text-caption { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 500; }
.text-ticket-code { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; }

/* Focus: 2px surface gap, then 2px focus-ring */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
