:root {
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --accent: #2a8c63;
  --accent-soft: #e8f4ee;
  --border: #ececef;
  --code-bg: #f6f6f7;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --fg: #ececec;
    --muted: #8e8e93;
    --accent: #4eb98a;
    --accent-soft: #1d3a2d;
    --border: #2c2c2e;
    --code-bg: #2c2c2e;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

header.site .logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--accent);
}

header.site .brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header.site .tag {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

h1 {
  font-size: 38px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: 22px;
  margin: 44px 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  margin: 24px 0 10px;
  font-weight: 600;
}

p {
  margin: 0 0 14px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 36px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin: -6px 0 32px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.15s ease;
}

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

ul,
ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

li {
  margin: 6px 0;
}

code,
pre {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  background: var(--code-bg);
  border-radius: 6px;
}

code {
  padding: 1px 6px;
  font-size: 0.92em;
}

pre {
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}

pre code {
  padding: 0;
  background: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

footer.site {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a {
  color: var(--muted);
  border-bottom-color: transparent;
}

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

/* Landing-only */
.hero {
  text-align: center;
  padding: 24px 0 32px;
}

.hero .icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 44px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero .tagline {
  font-size: 21px;
  color: var(--muted);
  margin-bottom: 32px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 48px 0;
}

.feature {
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.feature .icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.cta {
  text-align: center;
  margin: 48px 0 0;
}

.cta a.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--accent);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 17px;
  border: 0;
}

.cta a.button:hover {
  background: #237352;
}
