@font-face {
  font-family: Figtree;
  src: url('/assets/fonts/figtree-var.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --paper: #fbfbf7;
  --ink: #1c2b27;
  --muted: #4a5a54;
  --line: #c5d2c8;
  --panel: #e2ece3;
  --mark: #f5e6a3;
  --accent: #1f5a45;
  --accent-hover: #164434;
  --link: #17503c;
  --focus: #7a3d00;
  --field: #ffffff;
  --field-border: #6c8176;
  --warning-fill: #fff0e2;
  --warning-border: #8f3e18;
  --warning-ink: #203c35;
  --radius: .75rem;
  --panel-radius: 1.25rem;
  --bubble-radius: 1.25rem 1.25rem .3rem 1.25rem;
  --pill-radius: 999px;
  --square-radius: 0;
  --font: Figtree, system-ui, sans-serif;
  color-scheme: light;
  font-family: var(--font);
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover, summary:hover, button.text-button:hover { text-decoration-thickness: .15em; }
a:active, summary:active, button.text-button:active { color: var(--focus); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:disabled { opacity: .65; cursor: not-allowed; }
.skip-link { position: absolute; top: -10rem; left: 1rem; padding: .6rem; background: var(--field); z-index: 1; }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 44rem; margin: auto; padding: 1.25rem 1.25rem 0; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .95rem; }
.site-header > a { font-size: 1.3rem; font-weight: 700; line-height: 1.2; text-decoration: none; color: var(--ink); }
.site-tagline { font-size: .85rem; color: var(--muted); }
@media (width < 480px) { .site-tagline { display: none; } }
.site-header nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
main { max-width: 44rem; margin: auto; padding: 2.5rem 1.25rem 4.5rem; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.01em; margin: .6rem 0 1.2rem; }
h2 { font-weight: 700; font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p, li { overflow-wrap: anywhere; }
.intro, .doc .lede { font-size: 1.15rem; color: var(--muted); }
.doc h2 { margin-top: 2.25rem; }
.privacy-note, .source-meta { font-size: .9rem; color: var(--muted); }
.plain-facts { list-style: none; padding: 0 .25rem; margin: 2rem 0; font-size: .92rem; color: var(--muted); }
.plain-facts li + li { margin-top: .35rem; }
form { margin: 1.5rem 0; }
.panel { padding: 1.5rem; background: var(--panel); border-radius: var(--panel-radius); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
label { display: block; font-weight: 700; margin: 0 0 .5rem; }
textarea, input[type="text"], input[type="search"], select { display: block; width: 100%; max-width: 100%; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--field); color: var(--ink); padding: .8rem; }
textarea { resize: vertical; }
textarea:hover, input:hover, select:hover { border-color: var(--accent); }
textarea:active, input:active, select:active { border-color: var(--focus); }
input[type="range"] { display: block; width: 100%; accent-color: var(--accent); min-height: 2.75rem; cursor: pointer; }
input[type="range"]:hover { accent-color: var(--accent-hover); }
input[type="range"]:active { accent-color: var(--focus); }
input[type="range"]:disabled { cursor: not-allowed; }
button, .primary-button, .quiet-button { cursor: pointer; border: 1px solid var(--accent); border-radius: var(--pill-radius); background: var(--accent); color: var(--field); padding: .65rem 1.4rem; min-height: 2.75rem; font-weight: 700; }
button:hover, .primary-button:hover, .primary-button:active { background: var(--accent-hover); color: var(--field); }
button:active { background: var(--accent-hover); transform: translateY(1px); }
button:disabled { cursor: not-allowed; }
.primary-button, .quiet-button { display: inline-block; text-decoration: none; }
button.quiet, .quiet-button { color: var(--ink); background: transparent; border-color: var(--field-border); }
button.quiet:hover, .quiet-button:hover { background: var(--field); }
button.quiet:active, .quiet-button:active { background: var(--mark); color: var(--ink); }
button.text-button { background: none; border: 0; border-radius: var(--square-radius); padding: .3rem 0; color: var(--link); text-decoration: underline; text-align: left; font-weight: 400; }
.score { margin: 1.5rem 0; }
.score-ends { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; color: var(--muted); }
.score-ends output { color: var(--ink); font-weight: 700; white-space: nowrap; }
#pre-skip, #post-skip { margin-top: .75rem; }
.score-actions, .actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.actions { margin-top: 1rem; }
.cf-turnstile { margin: 0; max-width: 100%; overflow-x: auto; }
#start-button { margin-top: 1.25rem; }
.user-message { margin: 2rem 0 1rem auto; max-width: 34rem; width: fit-content; padding: .9rem 1.15rem; background: var(--panel); border-radius: var(--bubble-radius); white-space: pre-wrap; scroll-margin-top: 1rem; }
.user-message p { margin: .15rem 0 0; }
.who { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); }
.reply { padding: 1rem 0 2rem; border-bottom: 1px solid var(--line); }
.working { padding: 1rem 0 2rem; }
.working-title { margin: .25rem 0; font-weight: 700; }
.working-detail { margin: .25rem 0; color: var(--muted); }
.working-dots { display: inline-flex; gap: .25rem; margin-left: .5rem; vertical-align: middle; }
.working-dots span { width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); animation: working-fade 1.2s infinite; }
.working-dots span:nth-child(2) { animation-delay: .2s; }
.working-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes working-fade { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .working-dots span { animation: none; opacity: 1; }
}
.reply-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cited { background: linear-gradient(transparent 80%, var(--mark) 80%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.reply sup { margin-left: .15em; font-size: .72em; line-height: 0; }
.reply sup a, .source-number { display: inline-block; min-width: 1.5em; padding: 0 .35em; border-radius: var(--pill-radius); background: var(--mark); color: var(--ink); font-weight: 700; text-align: center; text-decoration: none; line-height: 1.6; }
.reply sup a:hover { background: var(--panel); }
.reply sup a:active { background: var(--accent); color: var(--field); }
.sources-title { margin-top: 1.75rem; font-size: .95rem; color: var(--muted); }
.sources { list-style: none; margin: .6rem 0 0; padding: 0; }
.question-list { list-style: none; padding: 0; }
.question-list li { border-top: 1px solid var(--line); }
.question-list a { display: block; padding: .7rem 0; }
.source { display: flex; gap: .75rem; padding: .8rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.source-number { flex-shrink: 0; font-size: .85rem; }
.source-body { min-width: 0; }
.source-body h2, .source-body h3 { margin: 0; font-size: 1.05rem; }
.source-title { display: block; font-weight: 700; overflow-wrap: anywhere; }
#concerns h2 a, #concerns .source-title { display: block; padding: .2rem 0; }
.source-meta { display: block; }
.source p { margin: .4rem 0; }
.source details { margin-top: .35rem; }
.source summary { cursor: pointer; font-size: .92rem; color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.source summary:hover { color: var(--accent-hover); text-decoration-thickness: .15em; }
.source summary:active { color: var(--focus); }
#waiting { margin: 1.5rem 0; }
#waiting-position { font-weight: 700; padding: .9rem 1.15rem; background: var(--panel); border-radius: var(--radius); }
#waiting-trouble { color: var(--muted); }
.emergency, #error { background: var(--warning-fill); color: var(--warning-ink); padding: 1rem; overflow-wrap: anywhere; }
.emergency { border: 2px solid var(--warning-border); border-radius: var(--radius); }
#error { border-left: 4px solid var(--warning-border); margin: 1rem 0; }
#status { min-height: 1.6em; }
#status.visually-hidden { min-height: 0; }
#wrap-up, #report-panel { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.checkbox { display: flex; align-items: baseline; gap: .6rem; }
.checkbox input { flex-shrink: 0; accent-color: var(--accent); }
#delete-code { overflow-wrap: anywhere; }
.site-footer { background: var(--panel); padding: 2rem 1.25rem 2.5rem; font-size: .95rem; }
.site-footer > * { max-width: 41.5rem; margin-left: auto; margin-right: auto; }
.footer-note { margin-bottom: 1.5rem; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; }
.site-footer nav div { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.footer-label { margin: 0; font-weight: 700; }
.footer-credit { margin-top: 1.5rem; color: var(--muted); }
