:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-muted: #eef6f3;
  --text: #202321;
  --muted: #5b6460;
  --border: #d6ddd8;
  --accent: #01696f;
  --accent-strong: #004f54;
  --danger: #8c2d2d;
  --focus: #8a5a00;
  --radius: 8px;
}

:root[data-theme='dark'] {
  --bg: #161918;
  --surface: #202523;
  --surface-muted: #1b302f;
  --text: #f0f3ef;
  --muted: #b4bdb7;
  --border: #39433e;
  --accent: #7bc5c2;
  --accent-strong: #a7ddda;
  --danger: #f0a0a0;
  --focus: #e1bc66;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

html[data-theme='light'] {
  color-scheme: light;
}

html[data-theme='dark'] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button,
select,
textarea {
  border-radius: var(--radius);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
