:root {
  --bg: #f3f0fa;
  --panel: #ffffff;
  --text: #16121f;
  --muted: #6a6478;
  --line: #d9d3e8;
  --purple: #7c3aed;
  --purple-deep: #6d28d9;
  --purple-dim: rgba(124, 58, 237, 0.12);
  --font: "DM Sans", sans-serif;
  --display: "Syne", sans-serif;
}

[data-theme="dark"] {
  --bg: #050508;
  --panel: #111018;
  --text: #f0eef6;
  --muted: #8b8798;
  --line: #1c1a26;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --purple-dim: rgba(168, 85, 247, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  transition: background 0.25s ease, color 0.25s ease;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", var(--display), sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
  background: #0a0a0f;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.theme {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.theme:hover {
  color: var(--text);
  border-color: rgba(124, 58, 237, 0.5);
  background: var(--purple-dim);
}

.theme svg {
  width: 18px;
  height: 18px;
  display: none;
}

html:not([data-theme="dark"]) .theme-moon,
html[data-theme="dark"] .theme-sun {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  min-height: 38px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(124, 58, 237, 0.5);
  color: var(--text);
}

.page-head {
  margin-bottom: 1.5rem;
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.guide {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.guide h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.guide p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.guide .mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88em;
  color: var(--text);
}

.guide p:last-child {
  margin-bottom: 0;
}

.guide ul {
  margin: 0.35rem 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide li {
  margin-bottom: 0.35rem;
}

.guide li:last-child {
  margin-bottom: 0;
}
