:root {
  color-scheme: light;
  --ink: #18352d;
  --muted: #465d55;
  --surface: #ffffff;
  --wash: #f2f6ef;
  --line: #c6d8ce;
  --accent: #155c47;
  --accent-dark: #0b4231;
  --focus: #a75b0b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 400 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent-dark); text-underline-offset: 0.2em; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 2rem, 54rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: -5rem;
  background: var(--surface);
  padding: 0.6rem 0.9rem;
}
.skip-link:focus { top: 0.5rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.wordmark { margin: 0; font-weight: 800; font-size: 1.08rem; }
.wordmark span {
  display: inline-block;
  margin-left: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.08rem 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
main { padding-block: 2rem 3rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 7vw, 3.7rem); max-width: 16ch; margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.2rem); margin: 0.4rem 0 1rem; }
h3 { font-size: 1.2rem; }
p { max-width: 70ch; }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; font-weight: 800; }
.hero { padding: clamp(1.4rem, 5vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1.3rem; }
.lead { font-size: 1.2rem; max-width: 60ch; }
.feature-list { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; list-style: none; }
.feature-list li { background: var(--wash); border: 1px solid var(--line); border-radius: 2rem; padding: 0.35rem 0.75rem; }
.notice { border-left: 4px solid var(--accent); padding: 0.6rem 0.9rem; background: var(--wash); }
.button { min-height: 3rem; border-radius: 0.7rem; border: 2px solid var(--accent); padding: 0.6rem 1rem; font-weight: 750; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: var(--surface); color: var(--accent-dark); }
.button.secondary:hover { background: var(--wash); }
.panel { margin-top: 1.5rem; padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1.3rem; }
.progress-track { height: 0.55rem; border-radius: 1rem; background: var(--line); overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); width: 0; }
.topic { font-size: 0.95rem; font-weight: 750; color: var(--muted); margin-top: 1.5rem; }
.scenario { font-size: 1.12rem; }
fieldset { border: 0; margin: 1.5rem 0 0; padding: 0; }
legend { font-weight: 750; font-size: 1.05rem; margin-bottom: 0.7rem; }
.choices { display: grid; gap: 0.7rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  cursor: pointer;
}
.choice:hover, .choice:has(input:checked) { border-color: var(--accent); background: var(--wash); }
.choice input { margin-top: 0.3rem; width: 1.2rem; height: 1.2rem; accent-color: var(--accent); flex: none; }
.message { min-height: 1.4rem; color: var(--accent-dark); font-weight: 650; }
.feedback { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); background: var(--wash); }
.feedback h3 { margin-top: 0; }
.score { font-size: 1.3rem; font-weight: 800; }
.topic-results { padding-left: 1.5rem; }
.topic-results li { margin-block: 0.35rem; }
.share-box { display: grid; justify-items: start; gap: 0.75rem; margin-block: 1.8rem; }
.share-box label { font-weight: 750; }
textarea { width: 100%; max-width: 45rem; border: 2px solid var(--line); border-radius: 0.7rem; padding: 0.7rem; color: var(--ink); background: var(--surface); }
.explainer, .privacy { padding: 1.6rem 0 0; }
.explainer li { margin-bottom: 0.4rem; }
.privacy { border-top: 1px solid var(--line); margin-top: 2rem; }
.site-footer { padding-block: 1.2rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 37rem) {
  .header-row { align-items: flex-start; flex-direction: column; }
  main { padding-top: 1rem; }
  .hero, .panel { border-radius: 0.9rem; }
  .feature-list { display: grid; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
