@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink: #1c2521;
  --ink-soft: #4b5650;
  --paper: #f3f4ee;
  --surface: #ffffff;
  --border: #e2e1d6;
  --brand: #3b6e63;
  --brand-ink: #23433c;

  --n: #b5533c;
  --e: #d6a036;
  --o: #3b7d6e;
  --a: #4c6fa6;
  --c: #7a5c99;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
}

.font-display {
  font-family: 'Literata', ui-serif, Georgia, serif;
  font-optical-sizing: auto;
}

.font-mono-data {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- Signature element: the "spectrum dial" ---------- */
.dial-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e1d6 0%, var(--dial-color, var(--brand)) 100%);
}

.dial-marker {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 3px solid var(--dial-color, var(--brand));
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(28, 37, 33, 0.25);
  transition: left 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Likert "pill" radios ---------- */
.likert-pill {
  cursor: pointer;
}

.likert-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.likert-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  transition: all 150ms ease;
}

.likert-pill input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.likert-pill input:focus-visible + span {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
}

[x-cloak] {
  display: none !important;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .dial-marker {
    transition: none;
  }
}
