
/*
  none (company desk) tokens.
  desk palette, chosen in the desk design pass rather than inherited from a family. Deliberately warm ink on paper-grey, not a terminal. --accent #9A3412 measures 7.3:1 on the desk bg; --muted #545B66 measures 7.1:1.
*/

:root {
  color-scheme: light;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --ink: #111418;
  --muted: #545B66;
  --hairline: #DADEE4;
  --accent: #9A3412;
  --accent-ink: #FFFFFF;
  --accent-strong: #7C2D12;
  --ok: #15803D;
  --warn: #A16207;
  --bad: #B91C1C;

  --radius: 3px;
  --font-display: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --tap: 44px;
}

/* system preference, unless the visitor has explicitly chosen light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  --bg: #0F1114;
  --surface: #16191E;
  --raised: #1C2026;
  --ink: #E8EBEF;
  --muted: #9AA2AE;
  --hairline: #262B33;
  --accent: #FB923C;
  --accent-ink: #20120A;
  --accent-strong: #FDBA74;
  --ok: #4ADE80;
  --warn: #FACC15;
  --bad: #F87171;
  }
}

/* explicit choices win over the system preference */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1114;
  --surface: #16191E;
  --raised: #1C2026;
  --ink: #E8EBEF;
  --muted: #9AA2AE;
  --hairline: #262B33;
  --accent: #FB923C;
  --accent-ink: #20120A;
  --accent-strong: #FDBA74;
  --ok: #4ADE80;
  --warn: #FACC15;
  --bad: #F87171;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --ink: #111418;
  --muted: #545B66;
  --hairline: #DADEE4;
  --accent: #9A3412;
  --accent-ink: #FFFFFF;
  --accent-strong: #7C2D12;
  --ok: #15803D;
  --warn: #A16207;
  --bad: #B91C1C;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* one visible focus ring everywhere, never removed */
:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* every interactive target clears 44px on touch, per the house mobile rule */
button, [role="button"], a.tap, input[type="checkbox"], summary {
  min-height: var(--tap);
}

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