:root {
  color-scheme: light;
  --bg: #f5f6fb;
  --surface: #fff;
  --ink: #232443;
  --muted: #565974;
  --primary: #4c3788;
  --strong: #342461;
  --tint: #ece9fa;
  --line: #d7d9e8;
  --radius: 12px;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; font-size: 1rem; }
[hidden] { display: none !important; }
.frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
a { color: var(--primary); text-underline-offset: .2em; }
a:hover { color: var(--strong); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 3; left: 12px; top: 12px; transform: translateY(-150%); background: var(--surface); padding: 8px 16px; }
.skip-link:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.brand-stamp { width: 32px; height: 32px; border-radius: 8px; background: var(--strong); display: inline-flex; gap: 4px; justify-content: center; align-items: center; }
.brand-stamp i { background: #fff; width: 4px; height: 13px; border-radius: 2px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
nav a, .analytics-link { font-size: .875rem; font-weight: 650; display: inline-flex; align-items: center; min-height: 44px; }
nav [aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }
.intro { padding: 40px 0 24px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.13; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.25rem, 5.8vw, 3.5rem); }
h1 em { color: var(--primary); font-weight: inherit; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { max-width: 68ch; margin: 0 0 12px; }
.intro p { margin: 12px 0 0; color: var(--muted); font-size: 1.0625rem; }
.reading { max-width: 760px; margin: 56px 0; }
.reading h2 { margin: 36px 0 12px; }
.reading h3 { margin: 24px 0 8px; }
.reading > :first-child { margin-top: 0; }
.reading li + li { margin-top: 8px; }
.reading li { max-width: 65ch; }
.standalone { margin-top: 20px; }
.faq details { border-top: 1px solid var(--line); padding: 0 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-weight: 650; }
.faq details p { color: var(--muted); }
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 12px; }
.analytics-link { color: var(--primary); cursor: pointer; border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: .2em; }
.analytics-box { position: fixed; z-index: 2; bottom: 16px; right: 16px; width: min(390px, calc(100% - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.08); font-size: .9rem; }
button, input, select { font: inherit; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--primary); color: #fff; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--strong); color: #fff; }
.button.secondary { background: var(--surface); color: var(--primary); border-color: var(--line); }
.button.secondary:hover { background: var(--tint); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.muted { color: var(--muted); }
.caption { font-size: .875rem; }
@media (max-width: 640px) {
  .frame { width: calc(100% - 32px); }
  .mast-inner, .footer-inner { flex-wrap: wrap; padding-block: 8px; gap: 0 14px; }
  nav { gap: 0 12px; }
  .mast nav { padding-block: 0; }
  .intro { padding: 24px 0 20px; }
  .reading, .site-footer { margin-top: 40px; }
}
