@font-face {
  font-family: Fredoka;
  src: url("/fonts/fredoka-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f4efe8;
  --muted: #c9c2d4;
  --card: #1a2140;
  --link: #9ec5ff;
  --button: linear-gradient(90deg, #2f7bff, #ff8a2a 62%, #ff7aa8);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: #f7f4ff;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(47, 157, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 50% at 100% 8%, rgba(255, 122, 40, 0.38), transparent 58%),
    radial-gradient(ellipse 40% 30% at 70% 100%, rgba(255, 79, 154, 0.16), transparent 70%),
    #070814;
}

a {
  color: var(--link);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.wordmark {
  color: #fff;
  font-family: Fredoka, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  -webkit-text-stroke: 1px rgba(36, 28, 58, 0.35);
  paint-order: stroke fill;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.button,
.button-secondary {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.nav a:hover,
.nav a:active,
.nav a:focus-visible,
.button:hover,
.button:active,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:active,
.button-secondary:focus-visible {
  background: var(--button);
  box-shadow: none;
}

.hero {
  margin: 12px auto 0;
  width: min(1040px, calc(100% - 32px));
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero img {
  width: 100%;
  height: auto;
}

.banner {
  margin: 8px auto 0;
  width: min(1040px, calc(100% - 32px));
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.banner img {
  width: 100%;
  height: auto;
}

.intro,
.card {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 48px;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--button) border-box;
  border: 1px solid transparent;
  color: var(--ink);
  border-radius: 24px;
  padding: 32px 28px 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.intro a:not(.button),
.card a {
  color: var(--link);
}

.intro {
  text-align: center;
}

.lede {
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0 0 12px;
}

.intro p,
.card p,
.card li {
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

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

.card h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.card h2 {
  margin: 1.6em 0 0.4em;
  font-size: 1.25rem;
}

.card h3 {
  margin: 1.2em 0 0.3em;
  font-size: 1.05rem;
}

.updated {
  margin: 0 0 18px;
  color: var(--muted);
}

.card ul {
  padding-left: 1.2em;
}

.site-footer {
  padding: 0 0 36px;
  color: rgba(247, 244, 255, 0.78);
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro,
  .card {
    padding: 24px 18px 28px;
  }
}
