@font-face {
  font-family: Kufam;
  src: url('/brand/kufam.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: Horsemen;
  src: url('/brand/horsemen.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --card: #141414;
  --field: #0a0a0a;
  --text: #fafafa;
  --muted: #b8b8b8;
  --mint: #66ffc8;
  --pink: #eb38cf;
  --button: #a82292;
  --button-hover: #bd259f;
  --line: #393440;
  --display: Horsemen, Kufam, sans-serif;
  --body: Kufam, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 15px/1.65 var(--body);
}
a { color: var(--mint); text-underline-offset: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.site-header, .site-footer { background: #000; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 83px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
  font: 15px/1.7 var(--display);
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark img { width: 66px; height: auto; }
.wordmark span { border-left: 1px solid var(--line); padding-left: 18px; }
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--pink);
  padding: 7px 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.byline:hover { background: var(--mint); border-color: var(--mint); color: #000; }
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.footer-inner { min-height: 62px; font-size: 11px; color: var(--muted); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--mint); }

.home {
  background:
    linear-gradient(0deg, var(--background), transparent 28%),
    linear-gradient(90deg, #000b, #0007 50%, #0007),
    url('/brand/hero.webp') center 44% / cover no-repeat;
}
.home-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .88fr);
  gap: clamp(30px, 6.5vw, 92px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 100px);
}
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; }
.hero h1 {
  color: var(--mint);
  font: clamp(29px, 3.7vw, 55px)/1.92 var(--display);
  text-transform: uppercase;
  text-shadow: 0 4px 22px #eb38cf60;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
  color: var(--text);
  font-size: .71em;
  line-height: 1.95;
}
.intro {
  max-width: 38ch;
  margin: 24px 0 31px;
  color: var(--text);
  font-size: clamp(14px, 1.3vw, 17px);
  text-shadow: 0 2px 10px #000;
}
.mission {
  display: inline-block;
  margin: 0;
  padding: 13px 15px 11px;
  background: #000;
  color: var(--mint);
  border: 3px solid var(--pink);
  box-shadow: 4px 4px 0 #eb38cf55;
  font-weight: 700;
}
.credit { color: var(--muted); font-size: 12px; margin: 17px 0 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(22px, 3.2vw, 39px);
  overflow-wrap: anywhere;
}
.lookup-card { border: 2px solid var(--pink); box-shadow: 6px 6px 0 #eb38cf40, 0 12px 48px #0008; }
.card-header { display: flex; gap: 12px; align-items: center; }
.card-header img { flex-shrink: 0; }
.card h2 { font-size: clamp(20px, 2.4vw, 28px); }
.card h3 { font-size: 20px; }
.card-intro { color: var(--muted); margin: 10px 0 18px; font-size: 13px; }
form { display: grid; gap: 13px; }
label { display: grid; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--field);
  color: var(--text);
  width: 100%;
  padding: 9px 11px;
  font-size: 16px;
  font-weight: 400;
  min-height: 44px;
}
input::placeholder { color: #a7a1ac; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); }
textarea { min-height: 86px; resize: vertical; }
.city-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .42fr); gap: 12px; }
details { border-top: 1px solid var(--line); padding-top: 12px; }
summary { color: var(--mint); cursor: pointer; font-size: 13px; font-weight: 600; }
.details-fields { margin-top: 12px; }
button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: var(--button);
  border: 2px solid var(--pink);
  padding: 9px 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 46px;
}
button:hover:not(:disabled) { background: var(--button-hover); }
button:disabled { opacity: .55; cursor: default; }
.secondary-button { color: var(--mint); background: transparent; border-color: var(--mint); }
.secondary-button:hover:not(:disabled) { color: var(--text); background: var(--line); }
.form-footnote { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.error, .notice { color: #ffb9c5; margin: 0; font-size: 13px; }
.notice { margin-bottom: 16px; }
.content, .admin-content { padding-block: 44px 68px; }
.result-card { max-width: 700px; border-top: 3px solid var(--pink); }
.result-card[data-status="confirmed"] { border-top-color: var(--mint); }
.result-card[data-status="confirmed"] h1 { color: var(--mint); }
.card h1, .admin-title h1 { font-size: clamp(26px, 4.2vw, 45px); line-height: 1.28; }
.back { display: inline-block; margin-bottom: 20px; font-size: 13px; }
.muted { color: var(--muted); font-size: 12px; }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; margin-block: 25px; }
dt { font-weight: 700; }
dd { margin: 0; }
.refine { border: 1px solid var(--line); padding: 13px 16px; margin-block: 23px; }
.refine p { color: var(--muted); font-size: 13px; }
.refine button { justify-self: start; }
.report form, .queue-item form { margin-top: 14px; }
.admin-content { max-width: 920px; }
.admin-content > .card { margin-bottom: 20px; }
.admin-title { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.admin-title p { color: var(--muted); }
.admin-content h2 + form, .result-card h1 + form { margin-top: 20px; }
.queue { list-style: none; padding: 0; }
.queue li { display: flex; flex-wrap: wrap; gap: 8px 17px; border-top: 1px solid var(--line); padding: 9px 0; }
.queue li span { color: var(--muted); }
.queue-item { padding-block: 16px; border-top: 1px solid var(--line); }
.queue-item:first-of-type { margin-top: 18px; }
.actions, .columns { display: flex; flex-wrap: wrap; gap: 12px; }
.columns > label { flex: 1 1 160px; }
.check { display: flex; align-items: start; }
.check input { width: 18px; min-height: 18px; accent-color: var(--pink); }

@media (max-width: 820px) {
  .wrap { width: min(550px, calc(100% - 40px)); }
  .home {
    background:
      linear-gradient(0deg, var(--background), transparent 66%),
      linear-gradient(#0008, #0004),
      url('/brand/hero-mobile.webp') center top / 100% auto no-repeat;
  }
  .home-inner { grid-template-columns: 1fr; gap: 31px; padding-block: 34px 43px; }
  .hero h1 { font-size: clamp(26px, 6.9vw, 42px); }
  .intro { margin-block: 18px 21px; }
  .header-inner { min-height: 69px; }
  .wordmark { gap: 11px; font-size: 12px; }
  .wordmark img { width: 52px; }
  .wordmark span { padding-left: 11px; }
}

@media (max-width: 450px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { gap: 8px; }
  .wordmark { font-size: 10px; }
  .wordmark img { width: 43px; }
  .byline { font-size: 10px; padding: 5px 7px; gap: 5px; }
  .hero h1 { font-size: clamp(22px, 6.6vw, 29px); }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 9px; }
}

.source-comparison { margin-top: 22px; }
.source-evidence { list-style: none; padding: 0; }
.source-evidence li { border-top: 1px solid var(--line); padding: 10px 0; }
.source-evidence p { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.source-evidence button { min-height: 36px; padding: 4px 8px; font-size: 12px; }
.result-link-form { display: inline-flex; }
.result-link-form button { min-height: 34px; padding: 4px 9px; font-size: 12px; }
.queue li { align-items: center; }
