:root {
  --brand-purple: #5b21b6;
  --brand-orange: #f59e0b;
  --accent: #5b21b6;
  --background: #ffffff;
  --surface: #f5f3ff;
  --text: #1c1b1f;
  --text-secondary: #57536a;
  --border: #e4e0f0;
  --content-max-width: 680px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #a78bfa;
    --background: #0f0b1a;
    --surface: #1c1530;
    --text: #f4f2fa;
    --text-secondary: #b5aec8;
    --border: #2e2645;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

header.site {
  background: var(--brand-purple);
  color: #fff;
}

header.site .inner,
main,
footer.site .inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

header.site .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.wordmark {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark .dot {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: var(--brand-orange);
}

header.site nav { display: flex; gap: 20px; }
header.site nav a { color: #fff; text-decoration: none; opacity: 0.9; }
header.site nav a:hover,
header.site nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.lede { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 24px; }
.meta { color: var(--text-secondary); font-size: 0.95rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}
footer.site .inner { padding-top: 20px; padding-bottom: 32px; }
footer.site a { color: var(--text-secondary); }
