:root {
  --bg: #0c1117;
  --bg-soft: #111823;
  --panel: #131c29;
  --border: #223046;
  --text: #e6edf3;
  --muted: #93a4b8;
  --accent: #e0a83e;
  --accent-soft: rgba(224, 168, 62, 0.12);
  --accent-ink: #16120a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 22px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(60% 80% at 70% 0%, var(--accent-soft), transparent 70%);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.tagline {
  max-width: 640px;
  margin: 20px 0 28px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  background: var(--bg-soft);
}

.btn:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.install-snippet {
  display: inline-block;
  margin: 0;
  padding: 14px 18px;
  background: #0a0e14;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--accent);
}

.install-snippet code {
  background: none;
  border: none;
  padding: 0;
}

/* Sections */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
}

.section-lead {
  max-width: 680px;
  color: var(--muted);
  margin: -8px 0 28px;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-ghost {
  border-style: dashed;
  background: transparent;
}

/* Chips */

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--bg);
}

/* Project cards */

.project-card h3 a {
  color: var(--text);
}

.project-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.project-tagline {
  color: var(--accent) !important;
  font-weight: 500;
}

.project-install code {
  color: var(--text);
}

.tags {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 6px;
}

/* Responsive */

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 44px;
  }

  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .section {
    padding: 44px 0;
  }
}
