:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --text: #1f2937;
  --muted: #4b5563;
  --bg-start: #faf5ff;
  --bg-end: #e0e7ff;
  --code-bg: #eef2ff;
  --code-border: #c7d2fe;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  line-height: 1.65;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.brand {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.article-nav {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

.article-nav a {
  color: var(--purple-dark);
  text-decoration: none;
  font-weight: 600;
}

.article-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

h2 {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1.2rem;
  color: var(--purple-dark);
  margin: 2rem 0 0.6rem;
}

h3 {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1.05rem;
  color: var(--purple);
  margin: 1.5rem 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--indigo-dark);
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

ol,
ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.5rem;
}

pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  color: #312e81;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

pre code {
  font-size: inherit;
  background: none;
  padding: 0;
}

:not(pre) > code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.guide-list li {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e9d5ff;
  border-radius: 0.75rem;
}

.guide-list a {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--purple-dark);
  text-decoration: none;
}

.guide-list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-list p {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.ad-slot {
  margin: 1.5rem 0;
  min-height: 90px;
}

.faq dt {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 600;
  margin: 1rem 0 0.25rem;
}

.faq dd {
  margin: 0;
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 600;
  background: var(--indigo);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
}

.cta:hover {
  background: var(--indigo-dark);
  color: #fff;
}

footer {
  margin-top: 3rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.85rem;
  color: #6b7280;
}

footer a {
  color: var(--purple-dark);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
