:root {
  --ink: #000;
  --paper: #fff;
  --cream: #fffbd5;
  --button: #d9d9d9;
  --rule: 2px solid var(--ink);
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Familjen Grotesk", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }

.site-shell {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
  border-bottom: var(--rule);
}

.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.site-header a:last-child {
  font-size: 18px;
  text-underline-offset: 4px;
}

main { padding: 86px 0 100px; }

.home-main { max-width: 760px; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.3;
}

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

h1, h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 80px);
  line-height: .96;
}

h2 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.05;
}

.lede {
  max-width: 680px;
  margin-bottom: 40px;
  font-size: 24px;
}

.action-link,
.file-button,
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border: var(--rule);
  padding: 8px 16px;
  color: var(--ink);
  background: var(--button);
  font: inherit;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.text-button { background: var(--paper); }

.action-link:hover,
.file-button:hover,
.text-button:hover,
.action-link:focus-visible,
.file-button:focus-visible,
.text-button:focus-visible { background: var(--cream); }

.verify-main { padding-top: 70px; }

.verify-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 54px;
}

.verify-intro .lede { margin-bottom: 0; }

.mini-note {
  margin: 0;
  padding: 16px 18px;
  border-left: var(--rule);
  font-size: 18px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.upload-card {
  min-height: 230px;
  border: var(--rule);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
}

.upload-card.is-dragging { background: var(--cream); }

.upload-card h2 { margin-bottom: 8px; font-size: 32px; }
.upload-card p { margin-bottom: 18px; }

.file-name {
  display: block;
  min-height: 28px;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-footer .file-button { flex: 0 0 auto; }

.example-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}

.example-row p { margin: 0; font-size: 17px; }

.result-panel {
  border: var(--rule);
  padding: 26px;
  background: var(--paper);
}

.result-panel[data-state="success"] { background: var(--cream); }
.result-panel[data-state="failure"],
.result-panel[data-state="unsupported"] { color: var(--paper); background: var(--ink); }

.result-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.status-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-top: 4px;
  border: var(--rule);
  font-size: 20px;
  line-height: 1;
}

.result-panel[data-state="success"] .status-mark { background: var(--ink); color: var(--paper); }
.result-panel[data-state="failure"] .status-mark,
.result-panel[data-state="unsupported"] .status-mark { border-color: var(--paper); }

.result-heading h2 { margin-bottom: 8px; }
.result-message { margin-bottom: 28px; }

.checks {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
  border-top: 1px solid currentColor;
}

.check-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
}

.check-icon { font-weight: 700; }
.check-label, .check-detail { display: block; }
.check-label { font-weight: 700; }
.check-detail { font-size: 17px; overflow-wrap: anywhere; }

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 8px;
}

.details div { min-width: 0; }
.details dt { font-size: 16px; }
.details dd { margin: 0; overflow-wrap: anywhere; }

.privacy-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: var(--rule);
  font-size: 17px;
}

.site-footer {
  padding: 20px 0 30px;
  border-top: var(--rule);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  line-height: 1.4;
}

[hidden] { display: none !important; }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 30px, 620px); }
  main { padding: 56px 0 72px; }
  .site-header { padding-top: 18px; }
  .site-header a:last-child { font-size: 16px; }
  .verify-intro, .upload-grid { grid-template-columns: 1fr; }
  .verify-intro { gap: 28px; margin-bottom: 34px; }
  .upload-card { min-height: 210px; }
  .details { grid-template-columns: 1fr; }
}
