/* Shared tokens — settlement desk, gold accent */
:root {
  --font-sans: "Satoshi", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --ease: 180ms ease;
  --focus: 0 0 0 3px color-mix(in srgb, var(--color-primary) 35%, transparent);

  color-scheme: dark;
  --color-bg: #12110e;
  --color-surface: #1a1915;
  --color-surface-2: #221f1a;
  --color-border: #322e26;
  --color-text: #e8e2d4;
  --color-muted: #8d8778;
  --color-faint: #5c574c;
  --color-primary: #d4a84b;
  --color-primary-ink: #1a1508;
  --color-primary-hover: #e2bc6a;
  --color-error: #d1637a;
  --color-success: #7dae5a;
  --color-warning: #c9843a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
  color-scheme: light;
  --color-bg: #f3eee3;
  --color-surface: #fbf7ee;
  --color-surface-2: #efe8d8;
  --color-border: #d9d0bc;
  --color-text: #1b1914;
  --color-muted: #6d675a;
  --color-faint: #a39b8a;
  --color-primary: #8a6914;
  --color-primary-ink: #fff8e8;
  --color-primary-hover: #6f540f;
  --color-error: #a12c4a;
  --color-success: #3f6f22;
  --color-warning: #8a5414;
  --shadow: 0 16px 32px rgba(40, 32, 12, 0.08);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
