/* Hiquiz — shared tokens and primitives (site + studio + quiz runtime)
 * White base, black panels with an orange glow, orange for actions and highlights.
 * --sunset is no longer used on the site (kept for reference).
 */
:root {
  --ink: #140f14;
  --ink-2: #2d252c;
  --ink-3: #6f6770;
  --ink-4: #a69ea7;
  --line: #ece7e9;
  --line-2: #f4f0f1;
  --paper: #ffffff;
  --paper-2: #fbf9f8;
  --paper-3: #f4f0ee;

  --signal: #ff5420;          /* action orange-red */
  --signal-2: #ff8a1f;
  --signal-ink: #ffffff;
  --signal-soft: #fff2eb;
  --signal-line: #ffd6c4;

  --plum: #2b1631;
  --plum-2: #4a2443;
  --rosewood: #8c3a4e;
  --coral: #e0603e;
  --sunset: linear-gradient(180deg, #2b1631 0%, #4a2443 28%, #7d3550 52%, #c8523f 74%, #ff7a1f 100%);
  --night: radial-gradient(60% 55% at 85% 0%, rgba(255,90,30,.34), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(255,84,32,.12), transparent 70%), #0d0a0d;
  --orange: linear-gradient(135deg, #ff7a3c, #f23d16);
  --sunset-x: linear-gradient(100deg, #4a2443 0%, #a8424b 45%, #ff6a2a 80%, #ff9a3c 100%);
  --cta: linear-gradient(180deg, #ff6b3a 0%, #f23d16 100%);

  /* legacy names used across the studio */
  --cobalt: #140f14;
  --cobalt-2: #2d252c;
  --cobalt-soft: #f4f0ee;
  --rose: #e5484d;
  --rose-soft: #fdecec;
  --mint: #16a34a;
  --mint-soft: #e8f7ee;
  --amber: #d97706;

  --dark: #140f14;
  --dark-line: rgba(255, 255, 255, .1);
  --dark-ink-2: rgba(255, 255, 255, .74);
  --dark-ink-3: rgba(255, 255, 255, .52);

  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-1: 0 1px 2px rgba(20, 15, 20, .05);
  --shadow-2: 0 1px 2px rgba(20, 15, 20, .04), 0 10px 30px -12px rgba(20, 15, 20, .14);
  --shadow-3: 0 2px 4px rgba(20, 15, 20, .04), 0 30px 70px -24px rgba(20, 15, 20, .32);
  --glow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -1px 0 rgba(0,0,0,.12) inset, 0 10px 30px -8px rgba(242, 61, 22, .55);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --font: "Inter Tight", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: #ffd9c9; color: var(--ink); }

.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* Buttons */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 16px;
  border: 0; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, box-shadow 220ms ease, filter 180ms ease, color 180ms ease;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2d252c; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-1); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-signal, .btn-cobalt { background: var(--cta); color: #fff; box-shadow: var(--glow); }
.btn-signal:hover, .btn-cobalt:hover { filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 14px 36px -8px rgba(242, 61, 22, .65); }
.btn-lg { --h: 54px; padding: 0 8px 0 22px; font-size: 16px; border-radius: 14px; }
.btn-lg:not(:has(.arr)) { padding: 0 22px; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .arr { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.18); font-size: 16px; transition: transform 200ms var(--ease-out); }
.btn-ghost .arr, .btn-ink .arr { background: var(--paper-3); }
.btn-ink .arr { background: rgba(255,255,255,.12); }
.btn-sm .arr { width: 24px; height: 24px; border-radius: 6px; margin-right: -6px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(2px); } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-1);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(255,84,32,.18); flex: none; }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--paper-3); color: var(--ink-3); }

/* Logo */
.hq-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; font-weight: 700; font-size: 19px; letter-spacing: -.045em; line-height: 1; }
.hq-logo svg { width: 28px; height: 28px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
