:root {
  --bg: #f7f2f8;
  --surface: #fffaff;
  --surface-2: #efe3f1;
  --line: #d8c4dc;
  --text: #56465a;
  --muted: #756479;
  --accent: #7a5884;
  --accent-2: #9b78a4;
  --accent-soft: #e8d8eb;
  --focus: #6e4a78;
  --max: 1180px;
  --narrow: 820px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #684772; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), var(--narrow)); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 242, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--accent); font-weight: 760; letter-spacing: -0.02em; text-decoration: none; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.main-nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.hero { padding: 88px 0 68px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, var(--surface) 0%, var(--bg) 56%, var(--surface-2) 100%); }
.hero.compact { padding: 70px 0 56px; }
.home-hero { padding-top: 96px; }
.eyebrow { margin: 0 0 12px; color: var(--accent-2); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--accent); line-height: 1.12; letter-spacing: -0.035em; }
h1 { margin: 0 0 24px; font-size: 40px; font-weight: 760; }
h2 { margin: 0 0 18px; font-size: 28px; font-weight: 740; }
h3 { margin: 0 0 12px; font-size: 21px; }
p { margin: 0 0 18px; font-size: 16px; }
.lead { font-size: 20px; line-height: 1.58; color: #66536b; }
.article-flow { padding: 62px 0 84px; }
.content-section { padding: 0 0 38px; margin: 0 0 38px; border-bottom: 1px solid var(--line); }
.content-section:last-of-type { border-bottom: 0; }
.related { margin-top: 16px; padding: 30px 0 4px; border-top: 3px solid var(--accent-soft); }
.related ul, .topic-block ul { margin: 0; padding-left: 1.15rem; }
.related li, .topic-block li { margin: 7px 0; }
.related a, .topic-block a { font-weight: 650; }
.intro-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; padding: 72px 0; align-items: start; }
.callout { padding: 24px; border-left: 4px solid var(--accent-2); background: var(--surface-2); }
.callout strong { display: block; margin-bottom: 7px; color: var(--accent); }
.callout p { margin-bottom: 0; }
.topic-area { padding: 72px 0 84px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.topic-block { padding: 30px 0; border-top: 1px solid var(--line); }
.topic-block:nth-child(-n+2) { border-top: 3px solid var(--accent-soft); }
.topic-block p { color: var(--muted); }
.closing-section { padding: 72px 0 90px; }
.text-link { font-weight: 720; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-inner a { font-size: 14px; font-weight: 700; }
@media (max-width: 780px) {
  .shell, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { padding: 14px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
  .main-nav { justify-content: flex-start; gap: 7px 14px; }
  .hero, .home-hero, .hero.compact { padding: 58px 0 48px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .lead { font-size: 18px; }
  .intro-grid, .topic-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 24px; padding: 54px 0; }
  .topic-block:nth-child(2) { border-top: 1px solid var(--line); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  h1 { font-size: 40px; }
  .main-nav { font-size: 13px; }
}
