/* Back to Feather — back-to-feather.al1e.dev */

:root {
  --bg: #0f1419;
  --bg-card: #1a222c;
  --bg-elevated: #232d3a;
  --text: #e8edf2;
  --text-muted: #9aa8b5;
  --accent: #5cb3ff;
  --accent-dim: #3d8fd4;
  --warn: #fbbf24;
  --border: #2d3a47;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
  --max: 640px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a { color: var(--text-muted); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  padding: 1.5rem 0 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.guide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guide-step {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.guide-step-text {
  flex: 1 1 220px;
  min-width: 0;
}

.guide-step-text h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.guide-step-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.guide-step-text .btn {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
}

.guide-step-img {
  flex: 0 0 auto;
  margin: 0;
}

.guide-step-img img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  background: var(--accent);
  color: #0a1628;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.hint {
  font-size: 0.85rem !important;
  color: #fde68a !important;
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid var(--warn);
  padding: 0.5rem 0.65rem;
  border-radius: 0 6px 6px 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0a1628;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn:hover { background: var(--accent-dim); text-decoration: none; }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg-card); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1.1rem;
  display: inline;
}

details.card { cursor: pointer; }
details.card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before {
  content: "▸";
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.15s;
}
details[open].card > summary::before { transform: rotate(90deg); }
details.card > *:not(summary) { margin-top: 1rem; cursor: default; }

.muted {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.verify-list {
  margin: 0.75rem 0 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.verify-list li { margin: 0.35rem 0; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg);
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
}

pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin: 0.5rem 0;
}

pre.hash {
  font-size: 0.75rem;
  word-break: break-all;
  white-space: pre-wrap;
}

.faq { font-size: 0.9rem; }

.faq dt {
  font-weight: 600;
  margin-top: 0.85rem;
}

.faq dt:first-child { margin-top: 0; }

.faq dd {
  color: var(--text-muted);
  margin: 0.2rem 0 0 0;
}

[id] { scroll-margin-top: 4rem; }

.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 500px) {
  .guide-step { flex-direction: column; }
  .guide-step-img { align-self: center; }
}
