:root {
  --bg: #fff7fb;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --ink: #3f2645;
  --muted: #7a5e7d;
  --primary: #ef4f9a;
  --secondary: #f7d26a;
  --accent: #c788ff;
  --line: rgba(63, 38, 69, 0.12);
  --shadow: 0 24px 60px rgba(239, 79, 154, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(247, 210, 106, 0.32), transparent 24rem),
    radial-gradient(circle at top right, rgba(239, 79, 154, 0.18), transparent 26rem),
    linear-gradient(180deg, #fff5fb 0%, #fffdf8 100%);
}

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

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.topbar__brand,
.topbar__link {
  font-family: "Baloo 2", cursive;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.topbar__brand {
  letter-spacing: 0.03em;
}

.hero {
  padding: 1rem 0 2rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", cursive;
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 0.2rem;
}

h3 {
  font-size: 1.4rem;
}

.hero__copy,
.detail-card p,
.form-note,
figcaption,
.wish-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero__copy {
  max-width: 34rem;
  font-size: 1.05rem;
  margin: 1rem 0 1.5rem;
}

.hero__actions,
.details__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.35rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), #ff886f);
  color: #fff;
  box-shadow: var(--shadow);
}

.button--secondary {
  background: rgba(247, 210, 106, 0.22);
  color: var(--ink);
  border-color: rgba(247, 210, 106, 0.48);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero__photo-card,
.card,
.gallery-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(33, 53, 71, 0.08);
}

.hero__photo-card {
  padding: 1rem;
  transform: rotate(2deg);
  position: relative;
}

.hero__photo-card::before {
  content: "Princess Party";
  position: absolute;
  top: -0.8rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--secondary), #ffe9a8);
  color: #7c4e00;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
}

.hero__photo-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}

.hero__photo-note {
  margin-top: 0.85rem;
  font-size: 0.94rem;
  color: var(--muted);
}

main {
  display: grid;
  gap: 1.5rem;
}

.card,
.countdown,
.wishes,
.rsvp {
  padding: 1.5rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.countdown__grid,
.details__grid,
.gallery__grid,
.wish-wall {
  display: grid;
  gap: 1rem;
}

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

.countdown__item {
  padding: 1.2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(239, 79, 154, 0.12), rgba(199, 136, 255, 0.09));
  text-align: center;
}

.countdown__value {
  display: block;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.countdown__label {
  color: var(--muted);
  font-weight: 700;
}

.details__grid {
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  margin-bottom: 1rem;
}

.detail-card {
  padding: 1.2rem;
  text-align: center;
}

.details__note {
  margin-bottom: 1rem;
}

.detail-card p {
  margin: 0.6rem 0 0;
}

.rsvp-form,
.wish-form {
  display: grid;
  gap: 1rem;
}

.guest-counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.counter-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.counter-card__label {
  font-weight: 800;
}

.counter-control {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
}

.counter-control__button {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ff87bb);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
}

.counter-control__value {
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(59, 180, 161, 0.26);
  border-color: rgba(59, 180, 161, 0.45);
}

.gallery__grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 1rem;
  background: var(--surface-strong);
}

.wish-wall {
  margin-top: 1.2rem;
}

.wish-card {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  white-space: pre-wrap;
}

.wish-card h3 {
  margin-bottom: 0.45rem;
}

.wish-card p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero__content,
  .details__grid,
  .gallery__grid,
  .countdown__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .hero__content,
  .details__grid,
  .gallery__grid,
  .countdown__grid {
    grid-template-columns: 1fr;
  }

  .guest-counters {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .topbar {
    margin-bottom: 1rem;
  }
}
