body {
  padding: 0 1rem 2rem;
}

.home-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.home-topbar .brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-pine-dark);
  text-decoration: none;
}

.home-topbar-actions {
  display: flex;
  gap: 0.5rem;
}

main {
  max-width: 1000px;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
}

.hero-copy {
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  color: var(--color-pine-dark);
}

.hero-tagline {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 auto 1.25rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.hero-media {
  width: 100%;
  max-width: 340px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Default hero (no image configured yet in Site Admin): a festive placeholder card
   instead of an empty gap, so the page still looks finished out of the box. */
.hero-media:empty {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 1px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--color-pine), var(--color-pine-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media:empty::after {
  content: "🎁";
  font-size: 4.5rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 0 2rem;
}

.step {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  text-align: center;
}

.step-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.step h2 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.step p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.home-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 0 1rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.hero-invite-hint {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1rem auto 0;
  max-width: 46ch;
}

@media (min-width: 640px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 3rem 0 4rem;
  }

  .hero-copy {
    text-align: left;
    flex: 1 1 380px;
  }

  .hero-tagline,
  .hero-invite-hint {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-media {
    flex: 1 1 320px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
