/* IR35 calculator — type-first, plain, matches the contract pack aesthetic.
   Palette tokens from persona/taste.md: ink #0e0e0e, paper #fafafa, accent
   #1a4f8b, rule #d8d8d8. */

* { box-sizing: border-box; }

:root {
  --ink: #0e0e0e;
  --paper: #fafafa;
  --accent: #1a4f8b;
  --rule: #d8d8d8;
  --muted: #6b6b6b;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  font-size: 17px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.page__brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.page__strap {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  text-align: right;
}

.card {
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: white;
}

.card--muted {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 12px;
}

p { margin: 0 0 12px; }

a { color: var(--accent); }

.meta { font-size: 14px; color: var(--muted); }

.callout {
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: rgba(26, 79, 139, 0.05);
  font-size: 15px;
}

.button {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font: inherit;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
}

.button:disabled { opacity: 0.4; cursor: not-allowed; }

.button--secondary {
  background: transparent;
  color: var(--ink);
}

.progress {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.quiz__controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.question {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.question__why {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(26, 79, 139, 0.04);
}

.choice input { margin-top: 4px; }

.page__footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media print {
  .page__header, .quiz__controls, .button, footer { display: none; }
  .card { border: none; padding: 0; margin: 0 0 20px; background: transparent; }
}
