:root, [data-theme="dark"], [data-mode="dark"] {
  --bg-c: #08090A;
  --surface: #0f1011;
  --raised: #141517;
  --fill-hover: rgba(255,255,255,.06);
  --edge: rgba(255,255,255,.14);
  --edge-strong: rgba(255,255,255,.24);
  --t1: #FFFFFF;
  --t2: #B4B4B6;
  --t3: #A8A8AA;
  --t4: #8C8C8E;
  --drop: 0 0 0 transparent;
  --e-card: inset 0 0 0 1px var(--edge);
}

[data-theme="light"], [data-mode="light"] {
  --bg-c: #ffffff;
  --surface: #f7f7f8;
  --raised: #ffffff;
  --fill-hover: rgba(0,0,0,.04);
  --edge: rgba(0,0,0,.12);
  --edge-strong: rgba(0,0,0,.24);
  --t1: #111111;
  --t2: #3c3f44;
  --t3: #6E6E71;
  --t4: #6E6E71;
  --drop: 0 0 0 transparent;
  --e-card: inset 0 0 0 1px var(--edge);
}

:root {
  --accent: #EC5512;
  --accent-hover: #CF4B10;
  --r-control: 4px;
  --r-card: 4px;
  --r-pill: 9999px;
}

/* keyboard focus: a neutral ring, never orange (her rule); fields show no ring, their own stroke marks focus */
:focus-visible { outline:none; box-shadow:0 0 0 2px rgba(255,255,255,.85) !important; }
[data-theme="light"] :focus-visible, [data-mode="light"] :focus-visible { box-shadow:0 0 0 2px #111 !important; }
:is(input, textarea, select):focus-visible { box-shadow:none !important; }
@media (prefers-reduced-motion: reduce) { * { transition-duration:0ms !important; } }
html, body { margin: 0; padding: 0; background: var(--bg-c); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
.ft .bar .termly-display-preferences { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.ft .bar .termly-display-preferences:hover { text-decoration: underline; }
/* the site-wide clickables.css draws an orange focus outline on every link, button and input: on the homepage it is
   white (black on light), and a field clicked into shows none (her rule: never an orange focus box) */
html[data-page="home"] :is(a, button, input, [tabindex], .ck-btn):focus-visible { outline-color: rgba(255,255,255,.85) !important; }
html[data-page="home"] [data-theme="light"] :is(a, button, input, [tabindex], .ck-btn):focus-visible { outline-color: #111 !important; }
html[data-page="home"] :is(input, textarea, select):focus-visible { outline: none !important; }
