:root {
  --bg: #0b0b0f;
  --surface: #14141a;
  --border: #24242e;
  --text: #f2f2f5;
  --muted: #8f8fa3;
  --accent: #7c6cff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --border: #e6e6ec;
    --text: #15151a;
    --muted: #6b6b7b;
    --accent: #5747e8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Site mark (icon + name) — identical on every page */
.mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark .logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--border);
}

.mark .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mark span {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Top navigation */
nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  font-size: 0.95rem;
  margin-top: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

nav.site-nav a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}

/* Headings */
h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 40px 0 12px;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 48ch;
}

h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
  margin: 40px 0 12px;
}

h3 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 24px 0 6px;
}

p, ul, ol {
  margin: 0 0 16px;
}

ul, ol {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

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

/* Highlighted placeholders (unfilled content) */
.placeholder {
  background: var(--surface);
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 0.05em 0.35em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85em;
}

/* Footer */
footer {
  margin-top: 56px;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 58ch;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
