*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 212, 143, 0.24), transparent 44%),
    radial-gradient(circle at 86% 0%, rgba(131, 170, 121, 0.2), transparent 40%),
    #f5efe4;
  color: #3a2b21;
  font-family: "Nunito", "Segoe UI", sans-serif;
  line-height: 1.62;
}

h1,
h2,
h3,
.closing__signature {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.22;
}

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

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

.hero__inner {
  width: min(980px, 100%);
  margin: 0 auto;
  background:
    linear-gradient(145deg, rgba(66, 95, 66, 0.93), rgba(125, 84, 58, 0.9)),
    #4f6c4d;
  border-radius: 22px;
  padding: clamp(1.2rem, 4vw, 2rem);
  color: #fffaf1;
  box-shadow: 0 14px 34px rgba(58, 41, 30, 0.2);
  position: relative;
  overflow: hidden;
}

.hero__inner::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  right: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}

.hero__kicker,
.hero h1,
.hero__subtitle,
.hero__signature,
.btn-main {
  position: relative;
  z-index: 1;
}

.hero__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f0d4a1;
}

.hero h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 8.7vw, 3.25rem);
}

.hero__subtitle {
  margin: 0.72rem 0 0;
  max-width: 34ch;
  color: rgba(255, 250, 241, 0.94);
}

.hero__signature {
  margin: 0.75rem 0 1.15rem;
  color: #f5e5c3;
  font-weight: 700;
}

.btn-main,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.58rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-main {
  border: 1px solid #c1914d;
  background: #d5a257;
  color: #3f2d1d;
}

.btn-main:hover,
.btn-main:focus-visible {
  background: #bc8a41;
  transform: translateY(-1px);
}

.page-layout {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 0.95rem 1.7rem;
  display: grid;
  gap: 1rem;
}

.intention,
.story,
.main-message,
.mini-gallery,
.surprise,
.closing {
  background: #fffaf3;
  border: 1px solid rgba(120, 87, 61, 0.2);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(64, 47, 36, 0.12);
}

.intention,
.main-message,
.surprise,
.closing {
  padding: 1.08rem 1rem;
}

.intention h2,
.main-message h2,
.surprise h2 {
  margin: 0;
  color: #5d3f2d;
  font-size: clamp(1.2rem, 4.8vw, 1.65rem);
}

.intention p,
.main-message p,
.surprise p {
  margin: 0.55rem 0 0;
  color: #6e4f3b;
}

.section-head__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #88644d;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  color: #5c3f2e;
  font-size: clamp(1.26rem, 5vw, 1.82rem);
}

.story,
.mini-gallery {
  padding: 1rem;
}

.story__grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.72rem;
}

.story-card {
  background: #fffef9;
  border: 1px solid rgba(126, 92, 66, 0.2);
  border-radius: 14px;
  padding: 0.52rem;
}

.story-card img {
  border-radius: 10px;
  height: 170px;
  object-fit: cover;
}

.story-card h3 {
  margin: 0.62rem 0 0;
  color: #62402d;
  font-size: 1.08rem;
}

.story-card p {
  margin: 0.33rem 0 0;
  color: #775742;
  font-size: 0.95rem;
}

.main-message {
  background: linear-gradient(160deg, #fff6e8, #fef1de);
}

.main-message p {
  font-size: clamp(1rem, 3.9vw, 1.13rem);
}

.mini-gallery__grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.mini-gallery__item {
  margin: 0;
  background: #fffdf8;
  border: 1px solid rgba(127, 94, 68, 0.2);
  border-radius: 12px;
  padding: 0.42rem;
}

.mini-gallery__item img {
  height: 122px;
  object-fit: cover;
  border-radius: 8px;
}

.mini-gallery__item figcaption {
  margin-top: 0.42rem;
  color: #755845;
  font-size: 0.84rem;
}

.surprise {
  border-style: dashed;
}

.surprise__card {
  margin-top: 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(122, 91, 65, 0.28);
  background: linear-gradient(145deg, #fce8c5, #f5dcae);
  padding: 0.86rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.surprise__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.62);
}

.surprise__card p {
  margin: 0;
  font-weight: 700;
  color: #5a402e;
}

.closing {
  text-align: center;
  background: linear-gradient(160deg, #fff8ec, #fdf1de);
}

.closing__text {
  margin: 0;
  color: #5f4331;
  font-size: clamp(1rem, 4vw, 1.18rem);
}

.closing__signature {
  margin: 0.48rem 0 0;
  color: #9e6640;
  font-size: clamp(1.4rem, 7.5vw, 2rem);
}

.footer {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 0.95rem 1.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.72rem;
  text-align: center;
  color: #7a5e4a;
}

.footer p {
  margin: 0;
  font-size: 0.88rem;
}

.btn-outline {
  border: 1px solid rgba(122, 87, 63, 0.38);
  background: transparent;
  color: #624130;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(210, 164, 98, 0.14);
  transform: translateY(-1px);
}

@media (min-width: 760px) {
  .hero {
    padding: 2.05rem 1.2rem 2.55rem;
  }

  .page-layout {
    padding: 0 1.2rem 2rem;
  }

  .story__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-card img {
    height: 180px;
  }

  .mini-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mini-gallery__item img {
    height: 120px;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
  }
}
