/* Design tokens. Graphite and off-white ink, with one signal colour reserved for anything live. */
:root {
  --hb-bg: #222222; /* the stage: the same graphite as Strudel's own canvas */
  --hb-bg-deep: #191919; /* top bar and deck */
  --hb-panel: #1f1f1f;
  --hb-raise: #2c2c2b;
  --hb-line: #3a3a38;
  --hb-line-soft: #2c2c2b;

  --hb-ink: #eceae4;
  --hb-ink-2: #c6c4bd;
  --hb-ink-3: #9d9b94;
  --hb-ink-4: #85837d;
  --hb-ink-5: #55534f;

  --hb-accent: #ff6b35;
  --hb-accent-ink: #1a0d07;

  --hb-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --hb-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;

  --hb-topbar: 56px;
  --hb-ribbon: 52px;
  --hb-gutter: 20px;
  --hb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hb-bg);
  color: var(--hb-ink);
  font: 400 14px/1.5 var(--hb-sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin: 0;
  padding: 0;
}

ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--hb-ink);
  text-decoration-color: var(--hb-ink-4);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--hb-accent);
}

:focus-visible {
  outline: 2px solid var(--hb-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

code,
kbd {
  font-family: var(--hb-mono);
  font-size: 0.92em;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 5px;
  text-align: center;
  color: var(--hb-ink);
  border: 1px solid var(--hb-line);
  border-bottom-width: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* small caps label used across the interface */
.panel__title,
.readout dt,
.ribbon__label,
.brand__name,
.curtain__kicker,
.drawer__count,
.deck__tab {
  font: 500 10.5px/1 var(--hb-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- the analytics question (every page) ---------- */

.consent {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 10px 14px;
  border: 1px solid var(--hb-line);
  border-radius: 10px;
  background: var(--hb-bg-deep);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--hb-ink-2);
  font: 400 13px/1.4 var(--hb-sans);
}
.consent__actions {
  display: flex;
  gap: 6px;
}
.consent button {
  padding: 6px 12px;
  border: 1px solid var(--hb-line);
  border-radius: 999px;
  background: none;
  color: var(--hb-ink);
  font: 500 11px/1 var(--hb-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.consent button[data-answer='yes'] {
  background: var(--hb-ink);
  border-color: var(--hb-ink);
  color: var(--hb-bg-deep);
}
