:root {
  color-scheme: light;
  --cream: #F0E8DB;
  --panel: #F6F1E8;
  --recessed: #E8DECD;
  --ink: #484A3C;
  --muted: #5E604E;
  --accent: #A5583E;
  --rust-text: #8F4A33;
  --on-rust: #FFFFFF;
  --olive: #7A7A62;
  --active: #D9DCC9;
  --on-active: #3E4732;
  --hover: #EBD9CB;
  --selected: #ECD3C6;
  --control: #7A7A62;
  --cube-face: #E2E4E2;
  --cube-light: #F1F2EF;
  --cube-edge: #74796D;
  --cube-ink: #34392F;
  --shadow: 0 10px 32px #484A3C1F, 0 2px 6px #484A3C14;
  font: 16px/1.4 -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #252820;
  --panel: #30342B;
  --recessed: #3B4035;
  --ink: #F0E8DB;
  --muted: #CBCABB;
  --accent: #E0987D;
  --rust-text: #F0AA90;
  --on-rust: #252820;
  --olive: #A6AD8A;
  --active: #B4BC98;
  --on-active: #252820;
  --hover: #533F36;
  --selected: #584137;
  --control: #A6AD8A;
  --cube-face: #83878B;
  --cube-light: #8F9396;
  --cube-edge: #FDFFFD;
  --cube-ink: #151917;
  --cube-hover: #92938A;
  --shadow: 0 10px 32px #00000058, 0 2px 6px #0000003B;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { text-transform: uppercase; }
button, select, input { font: inherit; color: inherit; }
button, select, input::placeholder { text-transform: inherit; }
.brand, .hub-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; line-height: 1.1; }
.brand-logo { display: block; flex: none; border-radius: 9px; object-fit: contain; background: #F0E8DB; }
button { border: 0; background: none; }
button:not(:disabled), a[href], select, input:is([type="checkbox"], [type="range"]), summary { cursor: pointer; }
button, select, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:is(button, select, input, canvas, a, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--rust-text);
  outline-offset: 2px;
}
.theme-toggle {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 12px;
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
}
button:is([aria-pressed="true"], [aria-expanded="true"]) { background: var(--active); color: var(--on-active); }
@media (hover: hover) {
  button:not(:disabled):hover, summary:hover, select:hover { background: var(--hover); color: var(--ink); }
  button:is([aria-pressed="true"], [aria-expanded="true"]):hover {
    box-shadow: inset 0 0 0 2px var(--on-active);
    background: var(--active);
    color: var(--on-active);
  }
}
