@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/bricolage-grotesque-latin.woff2) format('woff2');
}
:root {
  --bg: oklch(0.145 0 0);
  --surface: oklch(0.205 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --text: oklch(0.985 0 0);
  --text-secondary: oklch(0.708 0 0);
  --fail: oklch(0.704 0.191 22.216);
  --fail-bg: oklch(0.205 0.04 22.216);
  --accent: #0dbd8b;
  --accent-hover: #0fd39b;
  --ring: oklch(0.556 0 0);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 3rem 1.5rem;
  line-height: 1.5;
}
.container { max-width: 520px; margin: 0 auto; }
h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 1.75rem 0 0.5rem;
}
.subtitle { color: var(--text-secondary); margin-bottom: 2.5rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
h1, .subtitle, .card {
  animation: rise-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.subtitle { animation-delay: 0.08s; }
.card { animation-delay: 0.16s; }
.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  animation: rise-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.steps li:nth-child(1) { animation-delay: 0.2s; }
.steps li:nth-child(2) { animation-delay: 0.28s; }
.steps li:nth-child(3) { animation-delay: 0.36s; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.1rem;
}
.steps strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
a.button, button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: oklch(0.145 0 0);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s ease, box-shadow 0.2s;
}
a.button:hover, button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px oklch(0 0 0 / 30%);
}
a.button:active, button:active { transform: translateY(0); box-shadow: none; }
a.button img { height: 1em; margin-bottom: -0.1em; filter: brightness(0); }
a.button.secondary img { filter: none; }
a.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  transition: border-color 0.2s;
}
a.button.secondary:hover { background: var(--surface); border-color: var(--ring); box-shadow: none; }
.hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.9rem;
}
.identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-wrap: anywhere;
}
.identity img, .identity .initial {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: 0.25s;
}
.identity .initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.identity .name { font-size: 1.15rem; font-weight: 700; }
.identity code {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
}
pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.error {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--fail-bg);
  border: 1px solid var(--fail);
  color: var(--fail);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
  animation: shake 0.4s ease;
}
@keyframes shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
footer a { color: var(--text-secondary); text-decoration: underline; }
.footer-logo {
  height: 0.85em;
  opacity: 0.7;
  vertical-align: baseline;
  margin-bottom: -0.05em;
}
footer p + p { margin-top: 0.35rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
