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

:root {
  --bg: #0e100d;
  --fg: #e7e6df;
  --muted: #8f8e84;
  --faint: #7f7e75;
  --line: #23261f;
  --panel: #14160f;
  --accent: oklch(0.80 0.165 149);
  --accent-soft: oklch(0.80 0.165 149 / 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 24px 64px;
}

main { width: 100%; max-width: 560px; }

.prompt {
  margin: 0 0 44px;
  font-size: 15px;
  font-weight: inherit;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.prompt .host { color: var(--accent); }
.prompt .sym { color: var(--faint); }
.prompt .caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 4px;
  transform: translateY(2px);
  background: var(--accent);
  animation: blink 1.15s step-end infinite;
}

@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.list { display: flex; flex-direction: column; }

.key, .hint { margin: 0; }
.key { margin-top: 6px; }

.row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }

.row__head { display: flex; align-items: baseline; gap: 10px; }
.row__num {
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.row__label {
  margin: 0;
  font-size: 11px;
  font-weight: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.link {
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .arrow { color: var(--faint); }

.key {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  word-break: break-all;
  user-select: all;
}
.key--pgp { font-size: 13px; line-height: 1.8; letter-spacing: 0.02em; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  font: inherit;
  font-size: 12px;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn:hover {
  border-color: var(--muted);
  background: rgba(231, 230, 223, 0.05);
}

@media (pointer: coarse) {
  .btn { min-height: 44px; padding: 10px 16px; }
}

.hint { font-size: 12px; color: var(--faint); line-height: 1.6; }

.stamp {
  margin: 40px 0 0;
  font-size: 12px;
  color: var(--faint);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
