/* Shared styles for guide pages, 404 and other static content.
   Kept dependency-free on purpose: no Tailwind CDN, no JS framework. */

:root {
  --purple: #6750A4;
  --purple-light: #9A82DB;
  --purple-dark: #4A3B7C;
  --purple-surface: #F3EDF7;
  --gold: #FFD700;
  --text: #1D1B20;
  --text-muted: #49454F;
  --border: rgba(103, 80, 164, 0.15);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--purple-surface);
  color: var(--text);
  font-family: Lexend, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Lora, Georgia, serif;
  line-height: 1.25;
  color: var(--purple-dark);
  margin: 0 0 12px;
}

h1 { font-size: clamp(28px, 4.4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 40px; }
h3 { font-size: 20px; margin-top: 28px; }

p, li { color: var(--text-muted); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 780px; margin: 0 auto; padding: 32px 20px 64px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.back:hover { background: var(--purple-dark); text-decoration: none; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lead { font-size: 19px; color: var(--text-muted); margin-top: 0; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  margin: 8px 8px 8px 0;
}
.cta:hover { background: var(--purple-dark); text-decoration: none; }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--purple);
  color: var(--purple);
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  margin: 8px 8px 8px 0;
}
.cta-secondary:hover { background: var(--purple-surface); text-decoration: none; }

.note {
  background: #FFF8E1;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15px;
}

.toc {
  background: var(--purple-surface);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0 8px;
}
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--purple-dark); font-size: 15px; }
.toc ol { margin: 0; }

.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.related h2 { margin-top: 0; font-size: 20px; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 10px; }

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #fff;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--purple-dark);
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 10px; }

footer.site {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 48px;
  font-size: 14px;
  color: var(--text-muted);
}
footer.site a { margin-right: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .card { padding: 22px; }
  .wrap { padding: 20px 14px 48px; }
}
