:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.72);
  --fg-faint: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.12);
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.7;
}

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
  text-decoration: none;
  color: var(--fg);
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 3px;
}

.brand-mark span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
}

.brand-mark span.off {
  background: var(--fg-faint);
  opacity: 0.35;
}

nav.site a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--fg-dim);
  font-size: 15px;
}

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

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

h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  font-weight: 600;
}

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

p, li {
  color: var(--fg-dim);
}

.lede {
  font-size: 19px;
  color: var(--fg);
  margin: 0 0 24px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin: 6px 0;
}

.muted {
  color: var(--fg-faint);
  font-size: 14px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 16px 0;
}

.card h3 {
  margin-top: 0;
}

.button {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.button:hover {
  opacity: 0.85;
}

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

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

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

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

@media (max-width: 560px) {
  .container { padding: 40px 20px 72px; }
  h1 { font-size: 32px; }
  h2 { font-size: 20px; }
  header.site { margin-bottom: 40px; }
  nav.site a { margin-left: 14px; font-size: 14px; }
}
