:root {
  color-scheme: light dark;
  --accent: #6d5dfb;
  --background: #f7f7fa;
  --border: #e5e5ec;
  --muted: #646477;
  --surface: #ffffff;
  --text: #17171d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  margin: 0;
}

header {
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--background) 90%, transparent);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}

.header-inner,
main,
footer {
  margin: 0 auto;
  max-width: 860px;
  padding-left: 22px;
  padding-right: 22px;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--accent); }

main { padding-bottom: 72px; padding-top: 54px; }
article[hidden] { display: none; }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

h1 { font-size: clamp(34px, 7vw, 54px); letter-spacing: -2px; line-height: 1.08; margin: 10px 0 14px; }
h2 { font-size: 22px; letter-spacing: -0.4px; line-height: 1.25; margin: 0 0 14px; }
p, li { font-size: 16px; }
.intro { color: var(--muted); font-size: 18px; margin-bottom: 34px; max-width: 690px; }

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin: 12px 0;
  padding: 24px;
}

ul { padding-left: 22px; }
a { color: var(--accent); }
footer { color: var(--muted); font-size: 13px; padding-bottom: 42px; }

@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 14px; padding-top: 14px; }
  main { padding-top: 34px; }
  section { border-radius: 16px; padding: 19px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111116;
    --border: #30303a;
    --muted: #aaaabd;
    --surface: #1a1a21;
    --text: #f4f4f8;
  }
}
