:root {
  --bg: #f1e8db;
  --ink: #1c1a16;
  --ink-soft: #4a4438;
  --muted: #736b5e;
  --muted-light: #8a8272;
  --border: #ddd2ba;
  --surface: #fff;
  --purple: #8a6fc0;
  --purple-deep: #6d4fa3;
}

html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; }
::selection { background: var(--purple-deep); color: #fff; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}

.wordmark-sm {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.slashes { color: var(--purple); font-weight: 500; }
.wordmark .slashes { font-weight: inherit; }

.ghlink {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.ghlink:hover { color: var(--purple-deep); }

/* hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 64px;
}

.wordmark {
  margin: 0;
  font-size: clamp(56px, 10vw, 104px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tagline {
  margin: 20px 0 0;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.5;
}

/* install box */
.install {
  margin-top: 60px;
  width: min(680px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.install-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  min-width: 0;
  scrollbar-width: thin;
  text-align: left;
}

.install-cmd code { font: inherit; }

.prompt { color: var(--purple); flex-shrink: 0; }

.copy-btn {
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { border-color: var(--purple); color: var(--purple-deep); }
.copy-btn:focus-visible { outline: 2px solid var(--purple-deep); outline-offset: 2px; }
.copy-btn.is-copied { border-color: var(--purple); color: var(--purple-deep); }

.note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted-light);
  max-width: 560px;
  line-height: 1.6;
}
.note b { color: var(--ink-soft); }
.accent { color: var(--purple-deep); }

/* ctas */
.ctas {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cta:hover { border-color: var(--purple); color: var(--purple-deep); }

.footer {
  margin: 32px 0 0;
  font-size: 13px;
  color: var(--muted-light);
}
.footer a {
  color: var(--muted-light);
  text-decoration: underline;
  transition: color 0.15s ease;
}
.footer a:hover { color: var(--purple-deep); }

@media (max-width: 600px) {
  .topbar { padding: 22px 24px; }
  .install { flex-direction: column; align-items: stretch; gap: 12px; }
  .copy-btn { justify-content: center; }
}

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