:root {
  --paper: #fffdf4;
  --ink: #2d2a24;
  --sage: #a9c993;
  --sage-deep: #6f8e5f;
  --blue: #8eb9cf;
  --rose: #d9a5a7;
  --cream: #f7f0da;
  --shadow: rgba(77, 82, 58, 0.18);
  --title-font: "IM Fell English SC", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    linear-gradient(rgba(255, 253, 244, 0.34), rgba(255, 253, 244, 0.34)),
    url("assets/gingham-background.jpeg") center top / 535px auto repeat;
}

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 550px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 74px) 0 clamp(44px, 6vw, 88px);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  min-height: 100vh;
  transform: translateX(-50%);
  background:
    linear-gradient(rgba(246, 235, 205, 0.62), rgba(246, 235, 205, 0.7)),
    linear-gradient(rgba(169, 201, 147, 0.16), rgba(142, 185, 207, 0.08)),
    url("assets/hero-garden.webp") center / cover no-repeat,
    linear-gradient(rgba(255, 253, 244, 0.34), rgba(255, 253, 244, 0.34)),
    url("assets/gingham-background.jpeg") center top / 535px auto repeat;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(10px, 2vw, 22px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--title-font);
  font-weight: 700;
  line-height: 0.98;
  text-wrap: balance;
}

h3,
.eyebrow,
.note-kicker,
.panel-label,
.details strong,
.details span,
.route-panel strong,
.hero-cta,
.route-button {
  font-family: var(--title-font);
}

h1 {
  max-width: 680px;
  color: var(--blue);
  font-size: clamp(2.15rem, 4.8vw, 4.15rem);
  line-height: 1.04;
  text-shadow: 0 2px 18px rgba(255, 253, 244, 0.95);
}

h2 {
  max-width: 540px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.intro,
.garden-text p {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0;
  min-height: 48px;
  padding: 13px 30px;
  color: var(--sage-deep);
  background:
    linear-gradient(135deg, rgba(255, 253, 244, 0.94), rgba(247, 240, 218, 0.86));
  border: 1px solid rgba(111, 142, 95, 0.34);
  clip-path: polygon(5% 6%, 21% 0, 39% 4%, 59% 1%, 78% 5%, 96% 2%, 100% 26%, 96% 50%, 100% 74%, 94% 97%, 73% 94%, 54% 100%, 33% 96%, 14% 99%, 0 83%, 4% 61%, 0 39%);
  box-shadow: 0 13px 24px rgba(77, 82, 58, 0.14);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 700;
  animation: cta-breathe 4.6s ease-in-out infinite;
}

.hero-cta:hover {
  color: #5f7f52;
  transform: translateY(-2px) rotate(-1deg);
}

.hero-cta::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.invitation-card {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  margin: 0;
  padding: clamp(12px, 1.8vw, 18px);
  background: rgba(255, 253, 244, 0.78);
  clip-path: polygon(
    5% 2%,
    18% 0,
    34% 3%,
    50% 1%,
    67% 4%,
    84% 1%,
    97% 6%,
    99% 21%,
    96% 38%,
    100% 55%,
    96% 72%,
    98% 91%,
    86% 98%,
    69% 96%,
    52% 100%,
    34% 97%,
    17% 99%,
    3% 93%,
    0 76%,
    3% 58%,
    1% 41%,
    4% 22%
  );
  filter: drop-shadow(0 24px 34px rgba(72, 76, 55, 0.18));
}

.invitation-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(111, 142, 95, 0.18);
  clip-path: polygon(
    4% 3%,
    22% 0,
    43% 2%,
    62% 0,
    82% 3%,
    98% 10%,
    96% 31%,
    99% 53%,
    95% 75%,
    97% 92%,
    78% 99%,
    58% 96%,
    37% 100%,
    16% 97%,
    2% 90%,
    0 68%,
    3% 49%,
    0 27%
  );
  pointer-events: none;
}

.invitation-card img {
  width: 100%;
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
  clip-path: polygon(
    6% 2%,
    21% 1%,
    38% 3%,
    55% 0,
    73% 3%,
    94% 2%,
    99% 17%,
    96% 36%,
    99% 55%,
    96% 78%,
    99% 94%,
    82% 98%,
    63% 96%,
    44% 100%,
    25% 97%,
    5% 99%,
    1% 82%,
    3% 62%,
    0 44%,
    3% 23%
  );
}

.sprig,
.floating {
  position: absolute;
  z-index: 3;
  mix-blend-mode: multiply;
}

.sprig-left {
  left: min(1vw, 16px);
  top: 5vh;
  width: clamp(86px, 12vw, 150px);
  animation: butterfly-float 6.5s ease-in-out infinite;
}

.sprig-right {
  right: 43%;
  top: 7vh;
  width: clamp(62px, 8vw, 100px);
  transform: rotate(8deg);
}

.story-band {
  position: relative;
  padding: clamp(52px, 8vw, 88px) 20px;
  background:
    linear-gradient(90deg, rgba(247, 240, 218, 0.9), rgba(255, 253, 244, 0.96)),
    radial-gradient(circle at 16% 22%, rgba(217, 165, 167, 0.28), transparent 34%);
  border-block: 1px solid rgba(111, 142, 95, 0.22);
}

.details {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(111, 142, 95, 0.28);
  background: rgba(111, 142, 95, 0.26);
}

.details article {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 253, 244, 0.9);
}

.details span,
.details small {
  color: var(--sage-deep);
  font-size: 1rem;
}

.details strong {
  margin-top: 10px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.details small {
  margin-top: 8px;
}

.peter {
  left: max(-28px, calc((100vw - 1180px) / 2 - 42px));
  bottom: -42px;
  width: clamp(96px, 14vw, 176px);
  animation: bunny-hop 4.8s ease-in-out infinite;
}

.bee {
  right: max(24px, calc((100vw - 1020px) / 2));
  top: 18px;
  width: clamp(62px, 9vw, 100px);
  animation: bee-buzz 3.2s ease-in-out infinite;
}

.garden {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(330px, 1.18fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.party-info {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 98px) 0 clamp(70px, 9vw, 124px);
  isolation: isolate;
}

.party-info::before {
  content: "";
  position: absolute;
  inset: 28px -7vw auto;
  height: calc(100% - 28px);
  z-index: -2;
  background:
    radial-gradient(circle at 12% 22%, rgba(217, 165, 167, 0.24), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(142, 185, 207, 0.18), transparent 28%),
    linear-gradient(rgba(255, 253, 244, 0.38), rgba(247, 240, 218, 0.58));
}

.info-deco {
  position: absolute;
  z-index: 2;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.info-deco-bird {
  right: 4%;
  top: 24px;
  width: clamp(54px, 7vw, 88px);
  transform: rotate(10deg);
}

.info-deco-ladybird {
  left: 2%;
  top: 190px;
  width: clamp(58px, 8vw, 96px);
  transform: rotate(-14deg);
}

.section-heading {
  margin: 0 auto clamp(28px, 4vw, 46px);
  text-align: center;
  width: min(820px, 100%);
}

.section-heading h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
}

.map-panel,
.route-panel,
.parking,
.wishlist {
  background:
    linear-gradient(135deg, rgba(255, 253, 244, 0.96), rgba(247, 240, 218, 0.9));
  border: 1px solid rgba(111, 142, 95, 0.26);
  box-shadow: 0 22px 58px rgba(77, 82, 58, 0.12);
}

.party-info h3 {
  margin: 0 0 18px;
  color: var(--sage-deep);
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
}

.travel-layout,
.parking-wishlist {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  margin-top: clamp(28px, 4vw, 42px);
}

.travel-layout {
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.9fr);
}

.parking-wishlist {
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
}

.map-panel,
.route-panel,
.parking,
.wishlist {
  position: relative;
  padding: clamp(22px, 3.8vw, 36px);
  overflow: hidden;
}

.map-panel p,
.route-panel p,
.parking p,
.wishlist p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.map-panel iframe {
  width: 100%;
  height: clamp(260px, 34vw, 390px);
  margin: 20px 0 18px;
  border: 8px solid rgba(255, 253, 244, 0.9);
  box-shadow: 0 0 0 1px rgba(111, 142, 95, 0.28), 0 14px 32px rgba(77, 82, 58, 0.12);
  filter: sepia(0.12) saturate(0.92);
}

.route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  color: var(--paper);
  background: var(--sage-deep);
  border: 1px solid rgba(45, 42, 36, 0.12);
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(77, 82, 58, 0.14);
}

.route-button:hover {
  background: #5f7f52;
}

.route-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  transform: rotate(0.5deg);
}

.route-panel h3 {
  margin-bottom: 0;
}

.route-card {
  position: relative;
  min-height: 148px;
  padding: 22px 20px 20px 82px;
  background: rgba(255, 253, 244, 0.82);
  border: 1px solid rgba(111, 142, 95, 0.22);
  box-shadow: 0 12px 28px rgba(77, 82, 58, 0.08);
}

.route-card:nth-of-type(2) {
  transform: rotate(-1deg);
}

.route-card:nth-of-type(3) {
  transform: rotate(0.8deg);
}

.route-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.22rem;
}

.route-icon {
  position: absolute;
  left: 18px;
  top: 28px;
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  animation: route-wiggle 4s ease-in-out infinite;
}

.route-icon img {
  width: 56px;
  max-width: none;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 8px 7px rgba(77, 82, 58, 0.12));
}

.route-train .route-icon {
  animation-delay: 0.45s;
}

.route-bus .route-icon {
  animation-delay: 0.9s;
}

@keyframes route-wiggle {
  0%,
  100% {
    transform: translateX(0) rotate(-2deg);
  }
  35% {
    transform: translateX(4px) rotate(2deg);
  }
  65% {
    transform: translateX(-2px) rotate(-1deg);
  }
}

@keyframes butterfly-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(-9deg);
  }
  30% {
    transform: translate(7px, -7px) rotate(-4deg);
  }
  62% {
    transform: translate(-3px, 5px) rotate(-13deg);
  }
}

@keyframes bunny-hop {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  38% {
    transform: translateY(-9px) rotate(-2deg);
  }
  58% {
    transform: translateY(2px) rotate(1deg);
  }
}

@keyframes bee-buzz {
  0%,
  100% {
    transform: translate(0, 0) rotate(16deg);
  }
  25% {
    transform: translate(5px, -5px) rotate(22deg);
  }
  52% {
    transform: translate(-4px, 3px) rotate(11deg);
  }
  76% {
    transform: translate(3px, 5px) rotate(18deg);
  }
}

@keyframes cta-breathe {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-3px) rotate(0.7deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sprig-left,
  .route-icon,
  .peter,
  .bee,
  .hero-cta {
    animation: none;
  }
}

.parking p + p {
  margin-top: 14px;
}

.panel-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  color: var(--sage-deep);
  background: rgba(169, 201, 147, 0.16);
  border: 1px solid rgba(111, 142, 95, 0.22);
  font-size: 0.95rem;
  font-weight: 700;
}

.map-panel {
  transform: rotate(-0.35deg);
}

.map-panel::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 96px;
  height: 86px;
  background: url("assets/butterfly-blue.jpg") center / contain no-repeat;
  opacity: 0.35;
  mix-blend-mode: multiply;
  transform: rotate(9deg);
}

.parking {
  padding-left: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(111, 142, 95, 0.18) 0 12px, transparent 12px),
    linear-gradient(135deg, rgba(255, 253, 244, 0.96), rgba(247, 240, 218, 0.9));
  transform: rotate(0.35deg);
}

.parking::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 142px;
  height: 142px;
  background: url("assets/ladybird.jpg") center / contain no-repeat;
  opacity: 0.18;
  mix-blend-mode: multiply;
  transform: rotate(-18deg);
}

.wishlist {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 165, 167, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 244, 0.96), rgba(247, 240, 218, 0.92));
  transform: rotate(-0.6deg);
}

.wishlist img {
  position: absolute;
  right: 20px;
  top: 12px;
  width: 118px;
  margin: 0;
  mix-blend-mode: multiply;
  opacity: 0.58;
  transform: rotate(8deg);
}

.wishlist .route-button {
  margin-top: 20px;
  position: relative;
  padding-right: 36px;
}

.wishlist .route-button::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.garden-text {
  padding: 6px 0;
}

.invitation-note {
  position: relative;
  padding: clamp(24px, 4vw, 42px) clamp(22px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 253, 244, 0.92), rgba(247, 240, 218, 0.86));
  border: 1px solid rgba(111, 142, 95, 0.28);
  box-shadow: 0 22px 70px rgba(77, 82, 58, 0.12);
}

.invitation-note::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(169, 201, 147, 0.42);
  pointer-events: none;
}

.note-kicker {
  margin: 0 0 14px;
  color: var(--sage-deep);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 700;
}

.invitation-note h2 {
  max-width: 100%;
  color: var(--blue);
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.invitation-note p {
  max-width: 100%;
  margin: 18px 0 0;
}

.invitation-note blockquote {
  margin: 24px 0 0;
  color: var(--sage-deep);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.invitation-note .signature {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
}

.illustration-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}

.illustration-grid figure {
  min-height: 190px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(255, 253, 244, 0.86);
  border: 1px solid rgba(111, 142, 95, 0.22);
}

.illustration-grid .large {
  grid-row: span 2;
}

.illustration-grid figure:last-child {
  min-height: 100%;
}

.illustration-grid img {
  max-height: 360px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.illustration-grid figure:not(.large) img {
  max-height: 230px;
}

.closing {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 54px 20px 78px;
  text-align: center;
  background: rgba(255, 253, 244, 0.72);
}

.closing p {
  width: min(680px, 100%);
  margin: 0;
  color: var(--sage-deep);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.closing img {
  position: absolute;
  mix-blend-mode: multiply;
}

.closing img:first-child {
  left: 2%;
  top: 20px;
  width: clamp(48px, 7vw, 82px);
  transform: rotate(-12deg);
}

.closing img:nth-child(2) {
  right: 10%;
  bottom: 44px;
  width: clamp(72px, 10vw, 118px);
  transform: rotate(10deg);
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(620px, calc(100% - 28px));
    padding-top: 42px;
  }

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

  .intro {
    margin-inline: auto;
  }

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

  .invitation-card {
    width: min(82vw, 390px);
    justify-self: center;
  }

  .sprig-left {
    left: -10px;
    top: 20px;
    width: 84px;
  }

  .sprig-right {
    right: 12px;
    top: 110px;
  }

  .details,
  .garden,
  .travel-layout,
  .parking-wishlist {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .route-panel,
  .parking,
  .wishlist {
    transform: none;
  }

  .details article {
    min-height: 126px;
    text-align: center;
  }

  .garden {
    width: min(620px, calc(100% - 28px));
  }

  .garden-text {
    text-align: center;
  }

  .garden-text p,
  h2 {
    margin-inline: auto;
  }

  .illustration-grid {
    grid-template-columns: 1fr 1fr;
  }

  .illustration-grid .large {
    grid-column: 1 / -1;
  }

  .illustration-grid .large {
    width: min(78%, 360px);
    justify-self: center;
  }
}

@media (max-width: 520px) {
  body {
    background-size: auto;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.75rem);
  }

  .invitation-card {
    width: min(74vw, 330px);
  }

  .eyebrow {
    font-size: 1rem;
  }

  .intro,
  .garden-text p {
    font-size: 1rem;
  }

  .story-band {
    padding-inline: 14px;
  }

  .peter,
  .bee {
    opacity: 0.82;
  }

  .illustration-grid {
    gap: 10px;
  }

  .illustration-grid figure {
    min-height: 150px;
    padding: 14px;
  }

  .illustration-grid .large {
    width: min(72%, 300px);
  }

  .wishlist img {
    right: 12px;
    top: 12px;
    width: 78px;
  }

  .info-deco-ladybird {
    left: -24px;
    top: 72px;
    width: 72px;
  }

  .closing {
    min-height: 230px;
  }
}
