:root {
  color-scheme: light dark;
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif;
  color: #1d1b24;
  background: #f7f4fb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgb(210 174 255 / 35%), transparent 32rem),
    radial-gradient(circle at 90% 30%, rgb(252 187 215 / 28%), transparent 28rem),
    #f7f4fb;
}

main {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.hero {
  padding: 12vh 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #7440a8;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 590px;
  margin: 28px 0 0;
  color: #5d5865;
  font-size: 1.18rem;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgb(116 64 168 / 16%);
  border-radius: 24px;
  color: inherit;
  background: rgb(255 255 255 / 68%);
  box-shadow: 0 20px 50px rgb(58 32 82 / 8%);
  text-decoration: none;
  backdrop-filter: blur(20px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  border-color: rgb(116 64 168 / 42%);
  transform: translateY(-3px);
}

.card span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 720;
}

.card small {
  color: #68626e;
  font-size: 0.95rem;
  line-height: 1.45;
}

.top {
  margin-bottom: 72px;
}

.top a {
  color: #7440a8;
  font-weight: 700;
  text-decoration: none;
}

article h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

article > p,
section p {
  color: #4f4a55;
  font-family: "SF Pro Text", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.updated {
  margin-bottom: 42px;
  color: #766f7c;
  font-size: 0.92rem;
}

section {
  margin-top: 42px;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

a {
  color: #6d349e;
  text-underline-offset: 0.18em;
}

@media (max-width: 580px) {
  main {
    width: min(100% - 30px, 720px);
    padding: 48px 0;
  }

  .hero {
    padding-top: 8vh;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .top {
    margin-bottom: 48px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f4eff8;
    background: #17131c;
  }

  body {
    background:
      radial-gradient(circle at 12% 8%, rgb(119 68 160 / 30%), transparent 32rem),
      radial-gradient(circle at 90% 30%, rgb(140 62 102 / 22%), transparent 28rem),
      #17131c;
  }

  .eyebrow,
  .top a,
  a {
    color: #d6a8ff;
  }

  .lede,
  article > p,
  section p,
  .card small,
  .updated {
    color: #c9c0ce;
  }

  .card {
    border-color: rgb(225 194 255 / 15%);
    background: rgb(38 30 45 / 72%);
    box-shadow: 0 20px 50px rgb(0 0 0 / 20%);
  }
}
