:root {
  color-scheme: light dark;
  --ink: #17223b;
  --muted: #53617a;
  --paper: #f7f8fc;
  --surface: #ffffff;
  --brand: #4b46c8;
  --brand-dark: #312e87;
  --accent: #b93b74;
  --line: #d9deea;
  --focus: #ffbf47;
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--brand-dark); }
a:hover { text-decoration-thickness: .16em; }
a:focus-visible, .button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
  border-radius: .2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--surface);
}
.skip-link:focus { top: 1rem; }

header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
}

.nav, main, footer {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
}

.nav {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.025em;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

main { padding: clamp(2.5rem, 7vw, 6rem) 0; }

.hero {
  max-width: 58rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 38%),
    var(--surface);
  box-shadow: 0 1.2rem 3rem rgb(23 34 59 / 8%);
}

h1, h2, h3 {
  margin: 0 0 .75rem;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(2.4rem, 8vw, 5rem); }
h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { margin-top: 1.5rem; font-size: 1.25rem; }
p, li { max-width: 72ch; }
.lede { font-size: clamp(1.15rem, 3vw, 1.45rem); color: var(--muted); }
.eyebrow { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-block;
  padding: .7rem 1rem;
  border: 2px solid var(--brand);
  border-radius: .75rem;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--brand-dark); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.card h2, .card h3 { margin-top: 0; }

.notice {
  padding: 1rem 1.25rem;
  border-inline-start: .35rem solid var(--brand);
  background: var(--surface);
}

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 40rem) {
  .nav { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f4ff;
    --muted: #bdc7dc;
    --paper: #101525;
    --surface: #191f33;
    --brand: #aaa7ff;
    --brand-dark: #c8c7ff;
    --accent: #ef8db6;
    --line: #343c55;
  }
}
