:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5eedf;
  background: #21104f;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: #21104f;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, #7041c7 0, transparent 35rem),
    linear-gradient(155deg, #4d2b92, #392078 45%, #21104f);
}

main {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(48px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

nav,
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

nav {
  padding-bottom: 24px;
  border-bottom: 1px solid #ffffff2b;
}

nav a {
  padding: 7px 0;
  font-weight: 650;
}

nav a[aria-current="page"] {
  color: #f5eedf;
  text-decoration: none;
}

.brand {
  margin: 32px 0 8px;
  color: #dacef2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  margin: 36px 0 8px;
  font-size: 23px;
  line-height: 1.3;
}

h3 {
  margin: 26px 0 6px;
  font-size: 18px;
  line-height: 1.4;
}

p {
  margin: 12px 0;
}

.lede {
  max-width: 62ch;
  margin: 18px 0 28px;
  font-size: clamp(18px, 3vw, 21px);
  line-height: 1.55;
}

.date {
  color: #dacef2;
  font-size: 15px;
}

.contact-card {
  margin: 28px 0;
  padding: 4px 24px 18px;
  border: 1px solid #ffffff38;
  border-radius: 18px;
  background: #ffffff0d;
  box-shadow: 0 20px 50px #12072b38;
}

a {
  color: #ffe09a;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

a:hover {
  color: #fff1c7;
}

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid #ffe09a;
  outline-offset: 5px;
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #ffffff2b;
  color: #dacef2;
  font-size: 15px;
}

@media (max-width: 420px) {
  main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-card {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
