:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --border: #E5E5E5;
  --accent: #0066FF;
  --code-bg: #F0F0F0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D0D;
    --surface: #161616;
    --text: #EBEBEB;
    --muted: #9A9A9A;
    --border: #262626;
    --accent: #66B3FF;
    --code-bg: #1F1F1F;
  }
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.logo-link {
  display: inline-block;
  margin-bottom: 40px;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.logo-link:hover {
  opacity: 0.7;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

.meta strong {
  color: var(--text);
  font-weight: 600;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 24px;
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 56px 0 20px;
  line-height: 1.25;
  color: var(--text);
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 36px 0 12px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text);
}

p {
  margin: 0 0 18px;
}

ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

li {
  margin-bottom: 10px;
}

li::marker {
  color: var(--muted);
}

li p {
  margin: 0 0 6px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.1s ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
  color: var(--text);
}

em {
  font-style: italic;
}

code {
  font-family: ui-monospace, "SF Mono", "Menlo", "Monaco", Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

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

footer a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

footer .sep {
  color: var(--border);
}

/* Landing page hero */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.hero .logo {
  height: 56px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 640px;
}

.hero p {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 40px;
}

.hero-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

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

@media (max-width: 640px) {
  .container {
    padding: 40px 20px 64px;
  }
  h1 {
    font-size: 2.125rem;
    letter-spacing: -0.02em;
  }
  h2 {
    font-size: 1.375rem;
    margin: 40px 0 16px;
  }
  h3 {
    font-size: 1.0625rem;
    margin: 28px 0 10px;
  }
  body {
    font-size: 1rem;
  }
  .lede {
    font-size: 1.0625rem;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.0625rem;
  }
  .logo {
    height: 24px;
  }
  .hero .logo {
    height: 44px;
  }
  footer {
    gap: 16px;
    margin-top: 64px;
  }
}
