:root {
  --paper: #f7f2e8;
  --paper-2: #fcf9f3;
  --ink: #1e1b16;
  --muted: #554e43;
  --rule: #d9cfbd;
  --line: #776d5d;
  --accent: #1d5c47;
  --accent-dark: #154635;
  --alert: #9b2c1f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(17px, 16px + 0.25vw, 18px)/1.6 var(--sans);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + .45vw, 1.45rem); margin-top: 1.6em; }
p, ul, ol, dl, table { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
strong { font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 10; }
.skip:focus { top: .5rem; color: var(--paper); }

/* layout */
.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: 68ch; }
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-top: .35rem; padding-bottom: .35rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; flex: none; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-head nav { display: flex; flex-wrap: nowrap; gap: 0 .9rem; font-size: .9375rem; white-space: nowrap; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
main { display: block; }
.hero { padding: 1.5rem 0 0; }
.sub { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
.answer { color: var(--ink); }
section.block { padding: 3rem 0; border-top: 1px solid var(--rule); }

/* tool */
.tool { margin: 1rem 0 0; }
.drop {
  border: 2px dashed var(--line); border-radius: 6px; background: var(--paper-2);
  padding: 1.5rem 1rem; text-align: center;
}
.drop.over { border-style: solid; border-color: var(--accent); background: #eaf1ec; }
#choose { width: 100%; }
.drop-title { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 .75rem; }
.formats { font-size: .9375rem; color: var(--muted); margin: .75rem 0 0; }
.catch, .offline { font-size: 1rem; margin: .9rem 0 0; }
.catch strong, .offline strong { font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 6px; border: 2px solid transparent;
  font: 700 1.0625rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: #efe8da; }
.btn.link-btn { background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; padding: .5rem 0; font-weight: 400; min-height: 44px; text-align: left; }
.btn[disabled] { cursor: not-allowed; }
.btn.planned { background: transparent; color: var(--muted); border: 2px dashed var(--line); font-weight: 700; white-space: normal; text-align: center; }

/* results */
.result { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.result h2 { font-size: clamp(1.35rem, 1.2rem + .8vw, 1.75rem); overflow-wrap: anywhere; outline-offset: 4px; }
.res-facts { color: var(--muted); font-size: .9375rem; margin-top: -.25rem; }
.res-grid { display: grid; gap: 1.25rem; }
.preview { display: block; max-width: 100%; max-height: 180px; width: auto; height: auto; border: 1px solid var(--rule); background: #fff; }
.verdict { margin: 0 0 1rem; }
.verdict-line { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin: 0 0 .35rem; }
.verdict.where { border-left: 4px solid var(--alert); padding: .25rem 0 .25rem 1rem; }
.verdict.where .verdict-line { color: var(--alert); }
.coords { font-size: 1.0625rem; margin-bottom: .4rem; overflow-wrap: anywhere; }
.small { font-size: .9375rem; color: var(--muted); }
.findings { display: grid; gap: .1rem; margin: 0 0 1.25rem; }
.findings > div { display: grid; grid-template-columns: minmax(0, 1fr); padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.findings dt { font-size: .875rem; color: var(--muted); font-weight: 700; }
.findings dd { margin: 0; overflow-wrap: anywhere; }
.thumb { display: block; margin-top: .5rem; max-width: 160px; height: auto; border: 1px solid var(--rule); }
.clean-row { margin: 1.25rem 0; }
.clean-row .btn { width: 100%; }
.clean-note { font-size: .9375rem; color: var(--muted); margin-top: .6rem; }
.proof { margin: 0 0 1.25rem; padding: 1rem; border: 2px solid var(--accent); border-radius: 6px; background: var(--paper-2); }
.checked { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--accent); margin-bottom: .4rem; line-height: 1.25; }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { display: flex; gap: .6rem; padding: .3rem 0; }
.checks .mark { font-weight: 700; color: var(--accent); min-width: 1.1em; }
.checks .fail .mark, .checks .fail { color: var(--alert); font-weight: 700; }
.queue { margin-top: 1.25rem; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-2); }
.queue p { margin-bottom: .25rem; font-size: 1rem; }
.queue-list { list-style: none; padding: 0; margin: 0; }
.queue-list .btn { overflow-wrap: anywhere; }
.queue-list [aria-current] { color: var(--ink); text-decoration: none; }
.another { margin-top: 1rem; }
.another .btn { width: 100%; }

details { margin: 1.25rem 0 0; }
summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
summary::marker { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: .5rem; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: .45rem .5rem; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
thead th { border-bottom: 2px solid var(--ink); font-size: .875rem; }
.tags-table { table-layout: fixed; font-family: var(--mono); font-size: .875rem; }
.tags-table thead th { font-family: var(--sans); }
.tags-table td:first-child { width: 42%; }
.tags-table tr.group th { font-family: var(--sans); background: #efe8da; font-size: .875rem; padding-top: .5rem; }

.results td { overflow-wrap: normal; }
.results td.file code { overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results, .results tbody, .results tr, .results td { display: block; width: 100%; }
  .results tr { padding: .75rem 0; border-bottom: 2px solid var(--rule); }
  .results td { border: 0; padding: .2rem 0; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; }
  .results td.file { display: block; padding-bottom: .4rem; }
  .results td::before { content: attr(data-label); font-weight: 700; font-size: .875rem; color: var(--muted); font-family: var(--sans); }
  .results td.file::before { content: none; }
}

/* upgrade */
.upgrade { margin-top: 2rem; padding: 1.1rem 1rem 1.25rem; border: 1px solid var(--line); border-radius: 6px; }
.upgrade h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.label { display: inline-block; font-size: .875rem; font-weight: 700; color: var(--ink); border: 1px solid var(--ink); padding: .05rem .45rem; border-radius: 3px; margin: 0 0 .6rem; }
.upgrade .btn { width: 100%; }
.upgrade p:last-child { margin: .7rem 0 0; font-size: .9375rem; color: var(--muted); }

/* content */
.block ul, .block ol { padding-left: 1.25rem; }
.block li { margin-bottom: .35rem; }
.compare th:first-child { width: 34%; }
.faq h3 { font-size: 1.2rem; }
.source { font-size: .875rem; color: var(--muted); }
.note { border-left: 4px solid var(--line); padding-left: 1rem; }

.site-foot { border-top: 1px solid var(--rule); margin-top: 2rem; padding: 2rem 0 3rem; font-size: .9375rem; color: var(--muted); }
.site-foot p { margin-bottom: .5rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .5rem; }
.site-foot nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.back { display: inline-flex; align-items: center; min-height: 44px; }
.draft { display: inline-block; font-size: .875rem; font-weight: 700; border: 1px solid var(--alert); color: var(--alert); padding: .1rem .5rem; border-radius: 3px; }

@media (min-width: 640px) {
  .drop { padding: 2.25rem 1.5rem; }
  .clean-row .btn, .another .btn, .upgrade .btn, #choose { width: auto; }
  .preview { max-height: 260px; }
  .findings > div { grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem; }
  .findings dt { font-size: .9375rem; }
  .hero { padding-top: 3rem; }
  section.block { padding: 5rem 0; }
}
@media (min-width: 900px) {
  .wrap { max-width: 52rem; }
  .res-grid.has-preview { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .drop { transition: background-color .15s, border-color .15s; }
}
@media (hover: none) { .drop-title.fine { display: none; } }
.results .small code { white-space: nowrap; }
