:root {
  --bg: #1a212b;
  --panel: #232b38;
  --panel-border: #313b4a;
  --text: #ffffff;
  --text-muted: #9aa5b5;
  --accent: #ffb458;
  --accent-text: #0f1319;
  --ok: #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.1);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, 0.1);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.1);
  --font-heading: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
}

.site-header {
  width: 100%;
  max-width: 560px;
  margin-bottom: 48px;
}

.wordmark {
  display: inline-block;
  line-height: 0;
}

.wordmark img {
  display: block;
}

.verify-card {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 40px;
  flex: 1 0 auto;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

.input-row {
  display: flex;
  gap: 10px;
}

#cred-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

#cred-input:focus {
  outline: none;
  border-color: var(--accent);
}

#cred-input::placeholder {
  color: var(--text-muted);
}

button[type="submit"] {
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}

button[type="submit"]:hover {
  filter: brightness(1.05);
}

#result {
  margin-top: 28px;
}

.result-panel {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--panel-border);
}

.result-panel.status-active {
  border-color: var(--ok);
  background: var(--ok-bg);
}

.result-panel.status-revoked {
  border-color: var(--warn);
  background: var(--warn-bg);
}

.result-panel.status-notfound {
  border-color: var(--bad);
  background: var(--bad-bg);
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.status-active .result-heading { color: var(--ok); }
.status-revoked .result-heading { color: var(--warn); }
.status-notfound .result-heading { color: var(--bad); }

.result-message {
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.result-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 0.95rem;
}

.result-details dt {
  color: var(--text-muted);
}

.result-details dd {
  margin: 0;
  font-weight: 500;
}

.result-details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.loading {
  color: var(--text-muted);
}

.site-footer {
  width: 100%;
  max-width: 560px;
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .verify-card {
    padding: 28px 20px;
  }
  .input-row {
    flex-direction: column;
  }
}
