:root {
  --paper: #f7f5f0;
  --ink: #1f2421;
  --slate: #4a524d;
  --white: #ffffff;
  --pine: #1b4a3c;
  --pine-deep: #133830;
  --sand: #efebe2;
  --stone: #6b716c;
  --line: #d9d4c8;
  --real: #e6f2ea;
  --real-ink: #0c3a2a;
  --maybe: #fbf3dc;
  --maybe-ink: #4a3a0a;
  --bad: #fbe9e6;
  --bad-ink: #7a1f17;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-size: 16px; }
body { margin: 0; }
a { color: var(--pine); text-decoration: underline; text-underline-offset: 0.15em; }
a.button, a.logo { text-decoration: none; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--pine);
  color: var(--white);
  padding: 0.5rem 0.75rem;
}
.skip:focus { top: 0.5rem; z-index: 5; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.reading { max-width: 42rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-footer { background: var(--sand); }
.header-row, .footer-row { display: flex; align-items: center; gap: 0.5rem; min-height: 3rem; }
.logo { color: var(--pine); font-weight: 700; letter-spacing: -0.02em; }
.menu { margin-left: auto; }
.menu summary { list-style: none; min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; content: ""; position: relative; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }
.nav-links, .footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; padding: 0.25rem 0 0.75rem; }
.nav-links a, .footer-links a { color: var(--pine); }
.footer-links span { color: var(--ink); }
h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.25rem; line-height: 1.2; font-weight: 700; margin: 0 0 0.75rem; }
.lede, .helper, .source, .smallprint { color: var(--slate); }
.hero { padding-top: 0.35rem; }
.check-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
legend { font-weight: 600; margin-bottom: 0.5rem; }
.choice { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.choice input { width: 1.25rem; min-height: 1.25rem; }
input, select, textarea {
  width: 100%;
  min-height: 3rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 0.4rem;
  padding: 0.5rem 0.75rem;
}
textarea { min-height: 6rem; }
.button, button, .menu summary {
  font: inherit;
  font-weight: 600;
  min-height: 3rem;
  min-width: 3rem;
  border-radius: 0.4rem;
  border: 2px solid var(--pine);
  background: var(--pine);
  color: var(--white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--pine-deep); border-color: var(--pine-deep); }
.button-secondary, .choice { background: var(--white); color: var(--pine); }
.button-secondary:hover, .choice:hover { background: var(--white); color: var(--pine-deep); border-color: var(--pine-deep); }
.actions, .choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sector-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.sector-list li { margin: 0 0 0.75rem; }
.sector-list a { display: flex; align-items: center; min-height: 44px; min-width: 44px; }
.field-error { color: #7a1f1f; margin: 0.2rem 0 0.6rem; }
[aria-invalid="true"] { outline: 2px solid #7a1f1f; outline-offset: 2px; }
.choice { width: 100%; justify-content: space-between; }
.card, .result, .help, .panel, .example { background: var(--white); border: 1px solid var(--line); border-radius: 0.6rem; padding: 1.5rem; margin: 1.5rem 0; }
.result-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin: 0; }
.mark { width: 1.5rem; height: 1.5rem; flex: none; }
.result-real .result-label { color: var(--real-ink); }
.result-couldnt .result-label { color: var(--maybe-ink); }
.result-not_them .result-label { color: var(--bad-ink); }
.result-real { background: var(--real); }
.result-couldnt { background: var(--maybe); }
.result-not_them { background: var(--bad); }
.example-label { font-weight: 600; margin: 1rem 0 0; }
.domain { font-weight: 600; }
.echo, pre, code { font-family: ui-monospace, "Courier New", monospace; overflow-wrap: anywhere; white-space: pre-wrap; max-width: 100%; }
.note { font-weight: 600; }
.grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.honeypot { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
form:not(.check) input, form:not(.check) select, form:not(.check) textarea { max-width: 36rem; }
[data-form-error] { color: var(--bad-ink); }
.error { color: var(--bad-ink); font-weight: 600; }
.site-footer { padding: 2rem 0 3rem; margin-top: 3rem; }
@media (min-width: 800px) {
  html { font-size: 18px; }
  h1 { font-size: 2.5rem; }
  .menu summary { display: none; }
  .nav-links { display: flex; padding: 0; margin-left: auto; }
  .header-row { gap: 1rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
