
/*
  none (company desk) tokens.
  desk palette, chosen in the desk design pass rather than inherited from a family. --accent #0F766E measures 5.5:1 on the desk bg and is safe as text; --muted #555C64 measures 6.9:1.
*/

:root {
  color-scheme: light;
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --ink: #16191C;
  --muted: #555C64;
  --hairline: #DEE1E4;
  --accent: #0F766E;
  --accent-ink: #FFFFFF;
  --accent-strong: #0B5F58;
  --ok: #15803D;
  --warn: #A16207;
  --bad: #B91C1C;

  --radius: 4px;
  --font-display: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains 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: #0E1213;
  --surface: #151A1C;
  --raised: #1B2225;
  --ink: #E7ECEE;
  --muted: #9BA5AA;
  --hairline: #252E31;
  --accent: #2DD4BF;
  --accent-ink: #06201D;
  --accent-strong: #5EEAD4;
  --ok: #4ADE80;
  --warn: #FACC15;
  --bad: #F87171;
  }
}

/* explicit choices win over the system preference */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1213;
  --surface: #151A1C;
  --raised: #1B2225;
  --ink: #E7ECEE;
  --muted: #9BA5AA;
  --hairline: #252E31;
  --accent: #2DD4BF;
  --accent-ink: #06201D;
  --accent-strong: #5EEAD4;
  --ok: #4ADE80;
  --warn: #FACC15;
  --bad: #F87171;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --ink: #16191C;
  --muted: #555C64;
  --hairline: #DEE1E4;
  --accent: #0F766E;
  --accent-ink: #FFFFFF;
  --accent-strong: #0B5F58;
  --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;
  }
}
