:root {
  color-scheme: light;
  --paper: #f7f1e3;
  --surface: #fffaf0;
  --ink: #171512;
  --muted: #5c554a;
  --purple: #4d2bdd;
  --purple-dark: #3218a8;
  --lime: #c8ff3d;
  --orange: #ff5b2e;
  --line: 2px solid var(--ink);
  font-family: "Inter Tight", "Arial Narrow", Arial, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 20rem;
  background:
    radial-gradient(circle at 12% 8%, rgb(200 255 61 / 10%), transparent 23rem),
    var(--paper);
}

a {
  color: var(--purple-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.upload-zone:focus-within {
  outline: 0.2rem solid var(--purple);
  outline-offset: 0.2rem;
}

.site-header {
  min-height: 4.5rem;
  padding: 0.8rem clamp(1rem, 5vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: var(--line);
  background: rgb(247 241 227 / 96%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 1.65rem;
  height: 1.65rem;
  border: var(--line);
  background: var(--purple);
  transform: rotate(-4deg);
}

.brand-mark span {
  position: absolute;
  z-index: -1;
  width: 0.8rem;
  height: 1.25rem;
  right: -0.45rem;
  bottom: -0.3rem;
  background: var(--orange);
  border: var(--line);
}

main {
  width: 100%;
}

h1,
h2,
h3,
.eyebrow,
.panel-kicker {
  font-family: "Arial Black", "Inter Tight", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.75rem, 6vw, 5.7rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: var(--line);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button:active:not(:disabled) {
  transform: translate(5px, 5px);
  box-shadow: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-primary {
  color: #fff;
  background: var(--purple);
}

.button-primary:hover:not(:disabled) {
  background: var(--purple-dark);
}

.button-secondary {
  background: var(--surface);
}

.button-small {
  min-height: 2.45rem;
  padding: 0.45rem 1rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.button-wide {
  width: 100%;
}

.verifier-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem 0.4rem;
  border: var(--line);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--lime);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.hero-copy {
  max-width: 39rem;
  margin-bottom: 1.1rem;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.hero-note {
  max-width: 35rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.verifier-panel {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: var(--line);
  box-shadow: 9px 9px 0 var(--purple);
  background: var(--surface);
}

.panel-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.3rem;
}

.panel-heading h2,
.panel-heading p {
  margin-bottom: 0;
}

.panel-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-transform: none;
}

.panel-kicker {
  margin-bottom: 0.2rem;
  color: var(--purple);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: var(--line);
  background: var(--orange);
  font-weight: 900;
}

.upload-zone {
  position: relative;
  display: flex;
  min-height: 13rem;
  padding: 1.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--ink);
  background: #f7f1e3;
  text-align: center;
  cursor: pointer;
}

.upload-zone.is-dragging,
.upload-zone:hover {
  background: #efffc4;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.upload-icon {
  display: grid;
  width: 3.6rem;
  height: 4.4rem;
  margin-bottom: 1rem;
  place-items: center;
  border: var(--line);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

.upload-title {
  font-size: 1.05rem;
  font-weight: 850;
}

.upload-detail {
  max-width: 100%;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.88rem;
}

.cf-turnstile {
  min-height: 4.5rem;
  margin: 1rem 0;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.is-error {
  color: #a62414;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--line);
  border-bottom: var(--line);
  background: var(--surface);
}

.fact-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.05rem 0.75rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
}

.fact-strip > div + div {
  border-left: var(--line);
}

.fact-strip strong,
.fact-strip span:last-child {
  grid-column: 2;
}

.fact-strip span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.fact-dot {
  grid-row: 1 / span 2;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  border: var(--line);
}

.fact-dot-lime { background: var(--lime); }
.fact-dot-purple { background: var(--purple); }
.fact-dot-orange { background: var(--orange); }

.verification-result {
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4.5rem);
}

.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-heading h2,
.result-heading .eyebrow {
  margin-bottom: 0;
}

.result-heading .eyebrow {
  margin-bottom: 1rem;
}

.result-badge {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border: var(--line);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--lime);
  font-weight: 900;
  text-transform: uppercase;
}

.result-badge.is-modified { background: var(--orange); }
.result-badge.is-indeterminate { background: #fff; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.result-card,
.warning-panel {
  padding: 1.35rem;
  border: var(--line);
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--ink);
}

.result-card h3,
.warning-panel h3 {
  margin-bottom: 1rem;
}

dl,
dd {
  margin: 0;
}

.result-card dl > div {
  padding: 0.7rem 0;
  border-top: 1px solid rgb(23 21 18 / 30%);
}

.result-card dt {
  margin-bottom: 0.12rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-card dd {
  overflow-wrap: anywhere;
  font-weight: 750;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.signature-results {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.signature-card {
  border-left: 0.55rem solid var(--purple);
}

.signature-card.is-modified {
  border-left-color: var(--orange);
}

.signature-card h3 {
  text-transform: none;
}

.warning-panel {
  margin-top: 1.25rem;
  background: #efffc4;
}

.warning-panel ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.legal-note {
  max-width: 58rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

main > h1,
main > p,
main > form,
main > div:not(.verifier-panel) {
  max-width: 52rem;
  margin-right: auto;
  margin-left: auto;
}

main > h1:first-child {
  margin-top: 4rem;
}

form:not(#verify-form) {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border: var(--line);
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--ink);
}

input:not([type="hidden"]):not([type="file"]),
textarea,
select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.7rem;
  border: var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.error-summary {
  padding: 1rem;
  border: var(--line);
  background: #ffd4c8;
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .verifier-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .verifier-panel {
    box-shadow: 6px 6px 0 var(--purple);
  }

  .fact-strip,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .fact-strip > div + div {
    border-top: var(--line);
    border-left: 0;
  }

  .result-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .result-badge {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .upload-zone {
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  }
}
