@font-face {
  font-family: Inter;
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/Inter-latin-400.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  font-weight: 500;
  font-style: normal;
  src: url("/fonts/Inter-latin-500.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-style: normal;
  src: url("/fonts/Inter-latin-600.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/IBMPlexMono-latin-400.woff2") format("woff2");
  font-display: swap;
}

:root {
  --canvas: #f7f7f7;
  --panel: #ffffff;
  --text: #141414;
  --muted: #4d4d4d;
  --line: #e2e2e2;
  --raised: #f0f0f0;
  --bad: #b42318;
  --ok: #087443;
  --warn: #b54708;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 22px;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { display: block; }

.bar {
  height: 4px;
  background: #000;
}
.top {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 0 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 8px; flex: 1; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: #141414; }
.who {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.who button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 40px 0 64px;
  flex: 1;
}
h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.lede { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }
h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.banner {
  border: 1px solid var(--line);
  border-left: 3px solid var(--bad);
  background: var(--panel);
  padding: 12px 16px;
  margin: 0 0 24px;
}
.banner.ok { border-left-color: var(--ok); }
.banner.warn { border-left-color: var(--warn); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
}
.card a.title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
}
.meta { color: var(--muted); font-size: 13px; line-height: 18px; }
.mono, code, .secret {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.secret {
  font-size: 16px;
  letter-spacing: 0.08em;
  background: var(--raised);
  padding: 12px 14px;
  word-break: break-all;
}
.qr { margin: 0 0 16px; }
.qr svg {
  width: 196px;
  height: 196px;
  background: #fff;
  border: 1px solid var(--line);
}

form.stack, .stack { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 12px;
  min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #141414; outline-offset: 1px; }
button.primary, a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: #141414;
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
}
button.primary:focus, a.primary:focus { outline: 2px solid #141414; outline-offset: 2px; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.check input { min-height: 0; }

table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }

.gate {
  min-height: calc(100vh - 4px);
  display: flex;
  flex-direction: column;
}
.gate main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(420px, calc(100% - 48px));
  padding-top: 8vh;
}
.gate .lockup { height: 36px; width: auto; margin-bottom: 28px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 20px 32px 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
footer p { margin: 0; }

.empty { color: var(--muted); }

@media (max-width: 720px) {
  .top { flex-wrap: wrap; padding: 16px; gap: 12px; }
  main { width: min(1040px, calc(100% - 32px)); }
  .nav { order: 3; width: 100%; overflow-x: auto; }
}
