:root {
  --bg: #0d0b0a;
  --surface: #1c1917;
  --surface-2: #292524;
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --accent: #fb923c;
  --accent-strong: #c2410c;
  --border: #44403c;
  --radius: 20px;
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafaf9;
    --surface: #ffffff;
    --surface-2: #f5f5f4;
    --text: #1c1917;
    --text-muted: #57534e;
    --accent: #c2410c;
    --accent-strong: #9a3412;
    --border: #d6d3d1;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.wordmark span { color: var(--accent); }

nav.site a { color: var(--text-muted); text-decoration: none; font-weight: 600; margin-left: 20px; }
nav.site a:hover { color: var(--text); }

/* Hero: the one thing that leads. */
.hero { padding-block: 72px 56px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 88px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 0 0 20px;
  max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--text-muted); max-width: 52ch; margin: 0 0 32px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.badge small { display: block; font-weight: 500; font-size: 12px; opacity: 0.75; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding: 0; list-style: none; }
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  padding-block: 24px 72px;
}
.feature {
  min-inline-size: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature svg { color: var(--accent); }
.feature h2 { font-size: 20px; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* Document pages (privacy). */
.doc { max-width: 72ch; padding-block: 40px 72px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(36px, 7vw, 56px); line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--text-muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text-muted); font-weight: 600; }

footer.site {
  border-top: 1px solid var(--border);
  padding-block: 28px 40px;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
footer.site a { color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .feature { transition: border-color 200ms ease-out; }
  .feature:hover { border-color: var(--accent); }
}
