/* ============================================================
   Home Command — tokens
   Warm graphite, brass accent, sage for nominal, clay for faults.
   ============================================================ */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/instrument-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 140ms;
  --std: 200ms;
  --slow: 360ms;

  --rail-w: 248px;
  --pad: 32px;
  --gap: 16px;
  --content: 1440px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121110;
  --bg-deep: #0d0c0b;
  --surface: #191816;
  --surface-2: #211f1c;
  --line: rgba(239, 233, 222, 0.08);
  --line-2: rgba(239, 233, 222, 0.16);
  --text: #efe9de;
  --text-2: #aaa398;
  --muted: #948d82;

  --accent: #e0a458;
  --accent-ink: #221604;
  --accent-soft: rgba(224, 164, 88, 0.12);
  --good: #86bd95;
  --good-soft: rgba(127, 176, 138, 0.13);
  --bad: #d97a6c;
  --bad-soft: rgba(217, 122, 108, 0.13);
  --sky: #93b6d4;
  --sky-soft: rgba(147, 182, 212, 0.14);

  --btn-primary-bg: var(--text);
  --btn-primary-ink: var(--bg);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-deep: #efe9df;
  --surface: #fdfbf7;
  --surface-2: #f2ece2;
  --line: rgba(31, 27, 22, 0.09);
  --line-2: rgba(31, 27, 22, 0.16);
  --text: #1f1b16;
  --text-2: #5e554a;
  --muted: #6f665c;

  --accent: #8a5a12;
  --accent-ink: #fff8ee;
  --accent-soft: rgba(138, 90, 18, 0.1);
  --good: #3f7a5a;
  --good-soft: rgba(63, 122, 90, 0.1);
  --bad: #b2413a;
  --bad-soft: rgba(178, 65, 58, 0.1);
  --sky: #4a6b86;
  --sky-soft: rgba(74, 107, 134, 0.1);

  --btn-primary-bg: var(--text);
  --btn-primary-ink: var(--bg);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
::selection {
  background: var(--accent-soft);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
