:root {
  --bg: #f4eef9;
  --ink: #1f1529;
  --muted: #6b5f7a;
  --card: #fff;
  --line: #d8cce6;
  --side: #2a1845;
  --accent: #5b2d8e;
  --gold: #b8943a;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: var(--side);
  color: #f3eafc;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.site-brand strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.site-brand em { font-style: normal; color: var(--gold); font-size: 0.8rem; }
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #5b2d8e;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(184, 148, 58, 0.4);
}
.site-nav nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav nav a {
  color: #e4d6f5;
  text-decoration: none;
  font-size: 0.92rem;
}
.site-nav nav a:hover { color: #fff; }

.hero {
  padding: 56px 28px 48px;
  max-width: 760px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}
.lead { margin: 0 0 12px; color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.hero-note { margin: 0; font-weight: 600; }

.block { padding: 40px 28px 56px; max-width: 1100px; }
.block.alt { background: #fff; max-width: none; padding-left: max(28px, calc((100% - 1100px) / 2 + 28px)); padding-right: max(28px, calc((100% - 1100px) / 2 + 28px)); }
.block h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.7rem;
}
.intro { margin: 0 0 28px; color: var(--muted); max-width: 640px; }

.cards, .families {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.cards article, .families article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
}
.block.alt .families article { background: var(--bg); }
.cards h3, .families h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.cards p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.families ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
  max-width: 640px;
}
.steps li { display: grid; gap: 4px; padding-left: 8px; border-left: 3px solid var(--gold); }
.steps strong { font-size: 1.02rem; }
.steps span { color: var(--muted); font-size: 0.95rem; }

.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px;
  background: var(--side);
  color: #e4d6f5;
}
.site-foot p { margin: 6px 0 0; color: #b8a8c9; font-size: 0.9rem; }
.panel-link {
  color: var(--gold);
  font-size: 0.85rem;
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-nav { flex-direction: column; align-items: flex-start; }
  .hero, .block { padding-left: 20px; padding-right: 20px; }
}
