:root {
  --bg: #0f1115;
  --fg: #e8e6e3;
  --muted: #8a8f98;
  --line: #23262d;
  --card: #161920;
  --accent: #f6821f;
  --max: 60rem;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fafaf9; --fg: #1c1917; --muted: #6b7280; --line: #e7e5e4; --card: #ffffff; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  padding: 0 1.5rem;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; }

/* Header */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
}
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.logo span, h1 span { color: var(--accent); }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { text-decoration: none; color: var(--muted); font-size: 0.9375rem; }
nav a:hover { color: var(--fg); }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lede {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.5;
}
.eyebrow + h1 { margin-top: 0.75rem; }
.lede em { font-style: normal; color: var(--accent); }
.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* Sections */
section { padding: 3rem 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; }
section > .wrap > p.intro { margin-top: 0.625rem; max-width: 40rem; color: var(--muted); font-size: 1.0625rem; }

.grid { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; list-style: none; }
@media (min-width: 680px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}
.pillar { border-top: 1px solid var(--line); padding-top: 1rem; }
.num { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.pillar h3, .card h3 { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.pillar p, .card p { margin-top: 0.5rem; color: var(--muted); font-size: 0.975rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.card h3 { margin-top: 0; }

.about p { margin-top: 0.75rem; max-width: 44rem; font-size: 1.0625rem; }
.about p + p { color: var(--muted); }

dl.details { margin-top: 1.5rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 2rem; }
dl.details dt { color: var(--muted); }
dl.details dd a { color: var(--accent); text-decoration: none; }
dl.details dd a:hover { text-decoration: underline; }

/* Prose pages (privacy policy etc.) */
.prose { padding: 2rem 0 3.5rem; max-width: 44rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose .updated { margin-top: 0.75rem; color: var(--muted); }
.prose h2 { margin-top: 2rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.prose p, .prose ul { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.375rem; }
.prose a { color: var(--accent); }

/* Footer */
footer.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
footer.site ul { display: flex; gap: 1.25rem; list-style: none; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--fg); }

@media (max-width: 520px) {
  body { padding: 0 1.25rem; }
  header.site { column-gap: 0.75rem; padding: 1rem 0; }
  nav ul { gap: 0.75rem; }
  nav a { font-size: 0.875rem; }
  .hero { padding: 2rem 0 2.5rem; }
  .lede { margin-top: 1rem; }
  section { padding: 2.25rem 0; }
  .grid { margin-top: 1.25rem; gap: 0.875rem; }
  .grid.three { gap: 1.25rem; }
  .card { padding: 1rem 1.125rem; }
  dl.details { gap: 0.5rem 1.25rem; }
  .prose { padding: 1.25rem 0 2.5rem; }
  .prose h2 { margin-top: 1.75rem; }
}
.nowrap { white-space: nowrap; }
