:root {
  --bg: #ffffff;
  --fg: #111318;
  --muted: #5b6472;
  --border: #e6e8ec;
  --accent: #1f5eff;
  --code-bg: #f7f8fa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  padding: 1.5rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--fg);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.hero {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 2.5rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.snippet {
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--code-bg);
}

.snippet-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--border);
}

.snippet-title {
  margin-left: 0.5rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

pre {
  margin: 0;
  padding: 1.25rem 1rem;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #24292f;
}

.contact {
  margin: 0;
  color: var(--muted);
}

.contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

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

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

@media (max-width: 480px) {
  .site-header,
  .hero,
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
