@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --ink: #202124;
  --ink-soft: #5f6368;
  --rule: #dadce0;
  --surface: #f8f9fa;
  --accent: #1a73e8;
  --accent-surface: #e8f0fe;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #202124;
    --ink: #e8eaed;
    --ink-soft: #9aa0a6;
    --rule: #3c4043;
    --surface: #303134;
    --accent: #8ab4f8;
    --accent-surface: #2a3950;
  }
}

:root[data-theme="dark"] {
  --bg: #202124;
  --ink: #e8eaed;
  --ink-soft: #9aa0a6;
  --rule: #3c4043;
  --surface: #303134;
  --accent: #8ab4f8;
  --accent-surface: #2a3950;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
}

.reed-landing {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto', system-ui, sans-serif;
  min-height: 100vh;
  padding: 0 1.5rem;
}

.reed-landing a {
  color: inherit;
}

.theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  background: var(--surface);
  color: var(--ink);
}

.icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: block;
  }
}

.hero {
  max-width: 44rem;
  margin: 0 auto;
  padding: 6rem 0 4rem;
  text-align: center;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.wordmark .beta {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.hero h1 {
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.tagline {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto 2.75rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.cta.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.3), 0 1px 3px 1px rgba(26, 115, 232, 0.15);
}

.cta.primary:hover {
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.4), 0 4px 8px 3px rgba(26, 115, 232, 0.15);
}

.cta.ghost {
  border: 1px solid var(--rule);
  color: var(--accent);
  background: var(--bg);
}

.cta.ghost:hover {
  background: var(--accent-surface);
}

.prose {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

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

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

.prose a:hover {
  text-decoration: underline;
}

.principles {
  max-width: 50rem;
  margin: 0 auto;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 3rem;
}

.principle .index {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.principle h3 {
  font-weight: 500;
  font-size: 1.375rem;
  margin: 0.6rem 0 0.6rem;
}

.principle p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.install {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}

.install h2 {
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}

.install p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.install pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.install code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink);
  background: none;
}

.install .note {
  font-size: 0.875rem;
  margin-top: 2rem;
}

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

.install .note a:hover {
  text-decoration: underline;
}

footer {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--rule);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

footer .dot {
  margin: 0 0.6rem;
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
