:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ink: #241943;
  --muted: #655d74;
  --purple: #3b217e;
  --aqua: #00b8ad;
  --paper: #fffaf2;
  --card: #ffffff;
  --border: #e5deed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

header {
  background: linear-gradient(135deg, #2b165f, #4b2a96);
  color: white;
}

.header-inner,
main,
footer {
  width: min(900px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner { padding: 36px 0 30px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: white;
  color: var(--purple);
  font-size: 1.8rem;
  box-shadow: 0 8px 22px rgb(0 0 0 / 18%);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}

nav a { color: #f4efff; }

main { padding: 34px 0 54px; }

.card {
  margin-bottom: 22px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 38px rgb(59 33 126 / 8%);
}

h1, h2 { line-height: 1.25; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { margin-top: 1.7em; font-size: 1.35rem; }
h2:first-child { margin-top: 0; }

.lead { color: var(--muted); font-size: 1.08rem; }
.meta { color: var(--muted); font-size: .94rem; }

a { color: var(--purple); text-underline-offset: 3px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary { background: var(--aqua); }

li + li { margin-top: 7px; }

footer {
  padding: 0 0 36px;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 520px) {
  .header-inner { padding-top: 26px; }
  .card { border-radius: 18px; }
}
