:root {
  --navy: #0b1d4d;
  --blue: #1d4ed8;
  --sky: #3b82f6;
  --mist: #bfe0ff;
  --cream: #fff7ed;
  --apricot: #ffb36c;
  --coral: #ff7a59;
  --ember: #d94f36;
  --rose: #e85f6c;
  --wine: #8f2742;
  --plum: #681f3a;
  --gold: #ffd58a;
  --blush: #fff0e6;
  --ink: #102452;
  --muted: #5d4f61;
  --line: rgba(143, 39, 66, .18);
  --shadow: 0 26px 90px rgba(104, 31, 58, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 12%, rgba(255, 179, 108, .30), transparent 24rem),
    radial-gradient(circle at 94% 34%, rgba(232, 95, 108, .18), transparent 27rem),
    linear-gradient(180deg, #fff8ef 0%, #f4f9ff 44%, #fff2e6 100%);
  font-family: Avenir, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  font-size: 25px;
  font-weight: 600;
}

.brand-mark {
  width: 55px;
  height: 55px;
  padding: 6px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(145deg, #5881e1, #08132b);
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(11, 29, 77, .22);
}

.nav-spacer {
  flex: 1;
}

.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(143, 39, 66, .18);
  border-radius: 999px;
  background: rgba(255, 246, 235, .78);
  color: var(--wine);
  text-decoration: none;
  font-weight: 780;
  box-shadow: 0 12px 30px rgba(11, 29, 77, .08);
}

.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blush), white 14%);
  color: var(--wine);
  font-size: 13px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 89, .14);
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.blog-hero {
  padding: clamp(64px, 9vw, 118px) 0 clamp(52px, 7vw, 88px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 213, 138, .58), transparent 18rem),
    radial-gradient(circle at 83% 24%, rgba(232, 95, 108, .20), transparent 23rem),
    linear-gradient(90deg, rgba(255, 248, 239, .62), rgba(255, 255, 255, .12) 58%),
    url("/assets/moonbeam-blue/hero-background-clean.png") center bottom / cover no-repeat;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.blog-hero h1,
.post-header h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.04;
}

.lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
  font-weight: 520;
}

.hero-art {
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 24%;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(104, 31, 58, .22);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.post-list-section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.post-card a {
  display: grid;
  min-height: 260px;
  align-content: start;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(143, 39, 66, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 213, 138, .28), transparent 11rem),
    rgba(255, 250, 244, .78);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(104, 31, 58, .10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.post-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(104, 31, 58, .14);
}

.post-card time,
.post-header time {
  color: var(--wine);
  font-size: 13px;
  font-weight: 850;
}

.post-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.04;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
  font-weight: 540;
}

.post-card span {
  margin-top: 28px;
  color: var(--ember);
  font-weight: 850;
}

.post-page {
  padding: clamp(54px, 8vw, 92px) 0 clamp(72px, 10vw, 124px);
}

.post-header {
  max-width: 860px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--wine);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.article-body {
  max-width: 760px;
  padding-top: clamp(28px, 5vw, 56px);
}

.article-body h2 {
  margin: 46px 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.68;
  font-weight: 520;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding-left: 24px;
}

.article-body strong {
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 44px 24px 52px;
  background: linear-gradient(90deg, rgba(255, 247, 237, .92), rgba(255, 240, 230, .84));
}

.footer-link {
  color: rgba(16, 36, 82, .72);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.nav-link:focus-visible,
.brand:focus-visible,
.post-card a:focus-visible,
.back-link:focus-visible,
.footer-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral), white 18%);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 1080px);
  }

  .nav {
    padding-top: 14px;
  }

  .brand {
    font-size: 20px;
  }

  .nav-link {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 14px;
  }

  .blog-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-self: start;
    width: min(68vw, 280px);
  }
}
