:root {
  --bg: #12100f;
  --surface: #171412;
  --surface2: #221d1a;
  --surface-2: var(--surface2);
  --surface3: #2a231f;
  --card: var(--surface);
  --panel: var(--surface2);
  --border: #322a25;
  --border-strong: #483b33;
  --line-soft: var(--border);
  --text: #f1ebe3;
  --muted: #9f9488;
  --muted-strong: #c2b5a8;
  --ink-dim: var(--muted);
  --accent: #d4a35f;
  --accent-soft: rgba(212, 163, 95, 0.16);
  --accent-strong: #edc081;
  --green: #8fcb9b;
  --yellow: #dcbf76;
  --red: #d77c71;
  --blue: #8ca8d8;
  --purple: #b29ad7;
  --teal: #7fbcb2;
  --orange: #d49a6a;
  --shadow-soft: 0 20px 48px rgba(0, 0, 0, 0.26);
  --table-zebra: rgba(255, 255, 255, 0.028);
  --table-hover: rgba(255, 255, 255, 0.045);
  --font-main: 'IBM Plex Sans', sans-serif;
  --font-serif: 'IBM Plex Serif', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius-card: 14px;
  --radius-shell: 24px;
  --shell-gap: 28px;
  --content-max: 1480px;
  --sidebar-w: 276px;
  --color-iwm: #d49a6a;
  --color-spy: #8ca8d8;
  --color-qqq: #b29ad7;
  --color-dia: #9ac56e;
  --color-portfolio: #8fcb9b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-height: 100%;
  color-scheme: dark;
}

html.light {
  background: #f4ede5;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(212, 163, 95, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(143, 203, 155, 0.05), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
}

html:has(> body.light) {
  background: #f4ede5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

body.light {
  --bg: #f4ede5;
  --surface: #fffaf4;
  --surface2: #f7efe5;
  --surface-2: var(--surface2);
  --surface3: #f1e5d8;
  --card: var(--surface);
  --panel: var(--surface2);
  --border: #dccfc1;
  --border-strong: #c7b29d;
  --line-soft: var(--border);
  --text: #251d18;
  --muted: #75685f;
  --muted-strong: #55473d;
  --ink-dim: var(--muted);
  --accent: #a86a2d;
  --accent-soft: rgba(168, 106, 45, 0.14);
  --accent-strong: #8e5620;
  --green: #2f8f58;
  --yellow: #a56f12;
  --red: #bf5148;
  --blue: #4f6fa9;
  --purple: #7c60a3;
  --teal: #317a72;
  --orange: #a4622d;
  --shadow-soft: 0 20px 42px rgba(66, 40, 20, 0.08);
  --table-zebra: rgba(37, 29, 24, 0.04);
  --table-hover: rgba(37, 29, 24, 0.065);
  background: var(--bg);
}
