/* Firm Footing: shared styles. No framework, no web fonts: system serif
   and sans stacks keep the site fast and avoid sending visitors to a
   font CDN. */

:root {
  --paper: #f6f3ec;
  --card: #fffdf8;
  --ink: #1d2622;
  --muted: #56615b;
  --line: #dcd5c8;
  --accent: #1e5b4f;
  --accent-dark: #164339;
  --accent-tint: #e3eee9;
  --marker: #f2d27a;
  --focus: #c98a10;

  --brick: #8f3a27;
  --brick-bg: #f7e6df;
  --amber: #7a5100;
  --amber-bg: #fbefd6;
  --green: #2c6449;
  --green-bg: #e2efe6;
  --slate: #34505f;
  --slate-bg: #e3ebf0;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Classes that set display (like .btn) would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
  .brand-tag { display: none; }
  .site-nav { gap: 14px; font-size: 0.9rem; }
}

/* Buttons */

.btn {
  display: inline-block;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.7em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-quiet {
  background: transparent;
  color: var(--accent);
}
.btn-quiet:hover { background: var(--accent-tint); color: var(--accent-dark); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

/* Hero */

.hero { padding: 48px 0 32px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 48px;
  align-items: start;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.mark {
  background: linear-gradient(transparent 62%, var(--marker) 62%);
  padding: 0 2px;
}

.lede { font-size: 1.15rem; color: #2c3833; max-width: 34em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.hero-actions .small { color: var(--muted); font-size: 0.92rem; }

.dated {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 20px 22px;
}

.dated h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.dated .checked {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
}

.timeline li:first-child { border-top: 0; }

.timeline .when {
  font-family: var(--serif);
  font-weight: 600;
}

.timeline .future .when { color: var(--accent); }

@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Sections */

.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 20px; }
}

.plain-list { padding-left: 1.2em; margin: 0; }
.plain-list li { margin-bottom: 0.5em; }

.about {
  max-width: 44em;
}

.placeholder-note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* FAQ */

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  max-width: 46em;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
}

.faq details p { margin: 10px 0 0; }

/* Checker */

.check-section { padding: 16px 0 48px; scroll-margin-top: 12px; }

.check-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  max-width: 760px;
}

@media (max-width: 760px) {
  .check-card { padding: 22px 18px; }
}

.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.progress-track {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }

.step legend {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0;
  margin-bottom: 8px;
}

.step .hint { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }

.options { display: grid; gap: 10px; }

.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
}

.option:hover { border-color: #b9b09f; }

.option input {
  margin: 0.25em 0 0;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  accent-color: var(--accent);
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.option .opt-title { display: block; font-weight: 600; }
.option .opt-detail { display: block; color: var(--muted); font-size: 0.92rem; }

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.step-actions .right { display: flex; gap: 16px; align-items: center; margin-left: auto; }

.form-error {
  color: var(--brick);
  font-weight: 600;
  margin: 14px 0 0;
}

.fine {
  font-size: 0.85rem;
  color: var(--muted);
}

.check-form > .fine { margin: 22px 0 0; }

/* Results */

/* The results get focus so screen readers announce them; no outline needed on the whole block. */
.results:focus { outline: none; }

.verdict {
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 24px;
  border-left: 5px solid currentColor;
}

.verdict .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.verdict h2 { color: var(--ink); font-size: 1.55rem; margin-bottom: 10px; }
.verdict p { color: var(--ink); margin-bottom: 0.6em; }
.verdict p:last-child { margin-bottom: 0; }

.verdict-already { color: var(--brick); background: var(--brick-bg); }
.verdict-likely { color: var(--amber); background: var(--amber-bg); }
.verdict-possible { color: var(--amber); background: #fdf6e6; }
.verdict-unlikely { color: var(--green); background: var(--green-bg); }
.verdict-registered { color: var(--slate); background: var(--slate-bg); }

.result-block { margin-bottom: 26px; }
.result-block h3 { margin-bottom: 10px; }

.reasons { padding-left: 1.2em; margin: 0; }
.reasons li { margin-bottom: 0.6em; }

.basics { list-style: none; padding: 0; margin: 0; }

.basics li {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.basics li:first-child { border-top: 0; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  text-align: center;
  align-self: start;
}

.tag-have { background: var(--green-bg); color: var(--green); }
.tag-missing { background: var(--brick-bg); color: var(--brick); }

.basics .why { display: block; color: var(--muted); font-size: 0.92rem; }

.next-steps { padding-left: 1.3em; margin: 0; }
.next-steps li { margin-bottom: 0.7em; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 8px 0 28px;
}

/* Signup */

.signup {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.field .optional { font-weight: 400; color: var(--muted); }

.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  max-width: 28em;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #b8b0a1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  max-width: 40em;
}

.consent input {
  margin-top: 0.3em;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  accent-color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-done {
  background: var(--green-bg);
  border-radius: 8px;
  padding: 16px 18px;
}

/* Long-form pages (guide, privacy, terms) */

.page-head {
  padding: 40px 0 8px;
}

.page-head .checked { color: var(--muted); font-size: 0.92rem; }

.prose {
  max-width: 44em;
  padding-bottom: 48px;
}

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
}

.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; }

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.prose th { font-family: var(--serif); }

.sources li { font-size: 0.95rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer p { max-width: 52em; }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.footer-links a { color: var(--ink); }

/* Print: just the result */

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .hero, .section, .site-footer, .progress, .result-actions, .signup, .no-print { display: none !important; }
  .check-section { padding: 0; }
  .check-card { border: 0; padding: 0; max-width: none; }
  .verdict { border: 1px solid #999; }
  a { color: inherit; }
}
