@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* Light only, like lukso.network. */
:root {
  --bg: #f4f2f3;
  --surface: #ffffff;
  --surface-2: #f9f9f9;
  --text: #1d1d1f;
  --muted: #656565;
  --faint: #7f7f7f;
  --line: #ededed;
  --line-strong: #e0e0e0;
  --ink: #1d1d1f;
  --on-ink: #ffffff;
  --pink: linear-gradient(100deg, #c9468e, #e86aa6 55%, #b9478f);
  --bad-bg: #fdf0f3;
  --bad-line: #f5cdd8;
  --bad-ink: #a3123e;
  --warn-bg: #fdf6ee;
  --warn-line: #f0dcc2;
  --warn-ink: #7a4a10;
  --ok-bg: #f0f8f3;
  --ok-line: #cfe8d8;
  --ok-ink: #1e6a3d;
  --code-bg: #f2f2f2;
  --r-lg: 1.5rem;
  --r-md: 1rem;
  --r-sm: 0.75rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}
.wordmark { font-weight: 600; letter-spacing: -0.01em; }
.topbar-note { color: var(--muted); font-size: 0.85rem; }

.wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 72px 16px 80px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
h2 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h3 { font-size: 1rem; font-weight: 500; margin: 0 0 0.3em; }

.masthead { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 0.9rem; }
.accent {
  background: var(--pink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lede { color: var(--muted); font-size: 1.12rem; margin: 0; }
.muted { color: var(--muted); }

.notice {
  margin: 0 auto 16px;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.notice strong { color: var(--text); font-weight: 600; }

.check-form {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
}
.check-form label { display: block; font-weight: 500; margin-bottom: 12px; }
.field-row { display: flex; gap: 10px; }
.field-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  padding: 13px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.field-row input::placeholder { color: var(--faint); }
.field-row input:focus { background: var(--surface); border-color: var(--ink); outline: none; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.help { margin: 12px 0 0 6px; color: var(--muted); font-size: 0.86rem; }

button {
  font: inherit;
  font-weight: 500;
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 12px 28px;
  background: var(--ink);
  color: var(--on-ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
button:hover { background: #3a3a3c; border-color: #3a3a3c; }
button:disabled { opacity: 0.5; cursor: progress; }
button.secondary,
button.copy {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
button.secondary { padding: 10px 22px; }
button.copy { padding: 6px 14px; font-size: 0.82rem; flex-shrink: 0; }
button.secondary:hover,
button.copy:hover { background: var(--surface-2); border-color: var(--ink); }

.result {
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
}
.result h2 { margin-top: 0.1em; margin-bottom: 0.3em; }
.result h2:focus { outline: none; }
.loading { margin: 0; color: var(--muted); }
.loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .loading::before { animation: none; }
  button, .field-row input { transition: none; }
}

.verdict { border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 22px; border: 1px solid; }
.verdict p { margin: 0; }
.verdict-label { font-size: 0.78rem; font-weight: 600; margin-bottom: 4px !important; opacity: 0.85; }
.verdict-A .verdict { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.verdict-B .verdict { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.verdict-C .verdict { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }

.steps { padding-left: 1.4em; margin: 0 0 14px; font-weight: 500; }
.steps li { margin-bottom: 8px; padding-left: 4px; }
.extra { padding-left: 1.2em; margin: 0 0 22px; color: var(--muted); }
.extra li { margin-bottom: 6px; }

.to-clear { background: var(--surface-2); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 22px; }
.to-clear p { margin: 0 0 8px; font-size: 0.9rem; }
.to-clear ul { list-style: none; margin: 0; padding: 0; }
.to-clear li { margin-top: 12px; }
.key-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.key { flex: 1; min-width: 0; display: block; padding: 8px 12px; font-size: 0.78rem; user-select: all; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }

.who { display: block; font-weight: 500; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 0.78rem; color: var(--muted); font-weight: 500; background: var(--surface-2); }
tbody th { font-weight: normal; }
.addr { display: block; margin-top: 2px; font-size: 0.74rem; background: none; padding: 0; color: var(--faint); }
tr.flagged { background: var(--bad-bg); }
.perms { font-size: 0.8rem; overflow-wrap: anywhere; }
td code { white-space: nowrap; }

.chip { display: inline-block; white-space: nowrap; font-size: 0.76rem; font-weight: 500; padding: 3px 10px; border-radius: 100px; border: 1px solid; }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.chip.bad { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }

.meta { font-size: 0.82rem; color: var(--muted); margin: 18px 0; }

.info {
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
.info h2:not(:first-child) { margin-top: 1.8em; }
.info ul { padding-left: 1.2em; }
.info li { margin-bottom: 8px; }
.callout { background: var(--surface-2); border-radius: var(--r-md); padding: 14px 18px; }

.addresses { margin-top: 16px; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 18px; }
.addresses summary { cursor: pointer; font-weight: 500; }
.addresses dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 2px; font-size: 0.86rem; }
.addresses dt { color: var(--muted); }
.addresses dd { margin: 0; }
.addresses dd code { background: none; padding: 0; }

.foot { margin-top: 40px; text-align: center; color: var(--faint); font-size: 0.85rem; }

@media (max-width: 560px) {
  .wrap { padding-top: 44px; }
  .topbar-note { display: none; }
  .check-form, .result, .info { padding: 22px 18px; border-radius: var(--r-md); }
  .field-row { flex-direction: column; }
  .addresses dl { grid-template-columns: 1fr; }
  .addresses dd { margin-bottom: 8px; }
  .table-wrap { border: 0; border-radius: 0; }
  thead { display: none; }
  table, tbody, tr, th, td { display: block; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  tr.flagged { border-radius: var(--r-sm); padding: 10px 8px; }
  th, td { border: 0; padding: 3px 4px; }
}
