:root {
  color-scheme: light dark;
  --page: #f5f6f9;
  --surface: #fff;
  --text: #20222c;
  --accent: #4846ae;
  --action-text: #fff;
  --line: #dcdfe7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111318;
    --surface: #1c1e26;
    --text: #f0f1f7;
    --accent: #b5b2ff;
    --action-text: #211f42;
    --line: #363944;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 1.125rem/1.65 system-ui, sans-serif; }
main, header, footer { max-width: 53rem; margin: auto; padding: clamp(1rem,4vw,2.5rem); }
main { background: var(--surface); border: 1px solid var(--line); border-radius: 1.5rem; }
h1 { font-size: clamp(2rem,5vw,3.5rem); letter-spacing: -.04em; line-height: 1.08; }
h2 { letter-spacing: -.025em; line-height: 1.2; }
a { color: var(--accent); text-underline-offset: .15em; }
nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
nav a { padding-block: .4rem; }
nav a:first-child { color: var(--text); font-weight: 700; text-decoration: none; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .55rem 1.25rem; border-radius: .8rem; background: var(--accent);
  color: var(--action-text); font-weight: 650; text-decoration: none;
}
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
section { margin-top: 1.5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
img { max-width: 100%; }
@media (max-width: 55rem) { main { border-inline: 0; border-radius: 0; } }
@media (hover: hover) and (pointer: fine) { .cta:hover { filter: brightness(.94); } }
.cta:active { filter: brightness(.84); }
