*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-subtle: #1a1a1a;
  --border: #262626;
  --text: #e5e5e5;
  --text-muted: #888;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --max-width: 960px;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 8rem 1.5rem 6rem;
  text-align: center;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.beta-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 4rem 1.5rem 8rem;
}

.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--bg-elevated);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Page / Post */
.page-container,
.post-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.page-header h1,
.post-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.post-header time {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.page-content,
.post-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-content h2,
.post-content h2 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content h3,
.post-content h3 {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p,
.post-content p {
  margin-bottom: 1rem;
}

.page-content ul,
.post-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li,
.post-content li {
  margin-bottom: 0.5rem;
}

.page-content code,
.post-content code {
  background: var(--bg-subtle);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.post-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-back a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-back a:hover {
  color: var(--text);
}

/* Changelog list */
.changelog-list {
  list-style: none;
  padding: 0;
}

.changelog-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:first-child {
  padding-top: 0;
}

.changelog-entry time {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.changelog-entry h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.changelog-entry h2 a {
  color: var(--text);
}

.changelog-entry h2 a:hover {
  color: var(--accent);
}

.changelog-entry p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 0 1.5rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .features {
    padding: 2rem 1.5rem 5rem;
  }
}
