:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --text: #1f2328;
  --muted: #5d6470;
  --border: #ddd6c8;
  --accent: #0f7b6c;
  --accent-text: #ffffff;
  --tile-hover: #f0ebe0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a;
    --surface: #1e2125;
    --text: #eceae4;
    --muted: #a3a8b0;
    --border: #33373d;
    --accent: #3cc2ae;
    --accent-text: #08201c;
    --tile-hover: #262a2f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a; --surface: #1e2125; --text: #eceae4; --muted: #a3a8b0; --border: #33373d;
  --accent: #3cc2ae; --accent-text: #08201c; --tile-hover: #262a2f; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; min-height: 44px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.btn:hover { background: var(--tile-hover); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn:focus-visible, .tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
