:root {
  --sage: #aebf96;
  --sage-light: #dfe8cf;
  --olive: #526b46;
  --olive-dark: #2f4432;
  --lemon: #f1ce4f;
  --lemon-soft: #fff2a6;
  --cream: #fff8e7;
  --paper: #f7f1df;
  --terracotta: #b77755;
  --ink: #263226;
  --muted: #6d775f;
  --line: rgba(82, 107, 70, 0.24);
  --shadow: 0 26px 80px rgba(50, 68, 41, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(241, 206, 79, 0.2), transparent 22rem),
    linear-gradient(180deg, var(--cream), var(--paper) 52%, #eef2df);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(82, 107, 70, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 107, 70, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 85%, transparent);
}

main > section:not(.hero) {
  animation: section-rise 760ms ease both;
}

main > section:nth-of-type(3) {
  animation-delay: 120ms;
}

main > section:nth-of-type(4) {
  animation-delay: 220ms;
}

@supports (animation-timeline: view()) {
  main > section:not(.hero) {
    animation: section-rise linear both;
    animation-range: entry 8% cover 30%;
    animation-timeline: view();
  }
}

a {
  color: inherit;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94svh;
  overflow: hidden;
  place-items: center;
  padding: 112px clamp(20px, 6vw, 88px) 116px;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: slow-drift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 248, 231, 0.12), transparent 27rem),
    linear-gradient(90deg, rgba(25, 45, 26, 0.64), rgba(25, 45, 26, 0.12) 47%, rgba(255, 248, 231, 0.16)),
    linear-gradient(180deg, rgba(20, 38, 26, 0.25), transparent 34%, rgba(247, 241, 223, 0.5) 100%);
}

.hero-content {
  width: min(980px, 100%);
  color: var(--cream);
  text-align: center;
  animation: reveal-up 850ms ease both;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--lemon-soft);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  text-shadow: 0 18px 54px rgba(28, 41, 25, 0.42);
  font-size: 9.2rem;
  font-weight: 400;
  line-height: 0.82;
}

.hero-date {
  margin: 26px auto 34px;
  max-width: 680px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

section:not(.hero) {
  padding: clamp(70px, 8vw, 118px) clamp(20px, 6vw, 88px);
}

.intro,
.details,
.palette,
.gifts {
  width: min(1180px, 100%);
  margin: 0 auto;
}

section.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: clamp(20px, 3vw, 40px);
}

.intro .section-label,
.intro-copy {
  width: min(820px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-label {
  color: var(--terracotta);
}

h2 {
  margin: 0;
  color: var(--olive-dark);
  font-size: 4.4rem;
  font-weight: 400;
  line-height: 0.98;
}

.intro-copy p {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
}

section.details {
  display: grid;
  gap: 26px;
  align-items: start;
  padding-top: clamp(20px, 3vw, 42px);
  padding-bottom: clamp(30px, 4vw, 54px);
}

.details-heading {
  display: grid;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.details-heading .section-label {
  margin-bottom: 12px;
}

.details-heading p {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.12rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 248, 231, 0.9), rgba(238, 240, 216, 0.62)),
    rgba(255, 248, 231, 0.78);
  box-shadow: 0 18px 56px rgba(50, 68, 41, 0.12);
  text-align: center;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.detail-card:hover {
  border-color: rgba(183, 119, 85, 0.36);
  box-shadow: 0 24px 64px rgba(50, 68, 41, 0.16);
  transform: translateY(-4px);
}

.detail-card::after {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  content: "";
  background: rgba(241, 206, 79, 0.2);
}

.detail-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--terracotta);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-card strong {
  display: block;
  color: var(--olive-dark);
  font-size: 1.58rem;
  font-weight: 400;
  line-height: 1.06;
}

.detail-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

section.palette {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding-top: clamp(30px, 4vw, 54px);
  text-align: center;
}

.palette-copy {
  max-width: 760px;
}

.palette-description {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 1.14rem;
}

.palette-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid rgba(183, 119, 85, 0.42);
  border-left: 8px solid var(--terracotta);
  border-radius: 8px;
  padding: 20px 24px;
  color: var(--olive-dark);
  background: rgba(255, 248, 231, 0.88);
  box-shadow: 0 18px 48px rgba(50, 68, 41, 0.1);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-align: center;
  text-transform: uppercase;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.palette-note span {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 6px solid #ed1b2f;
  border-radius: 50%;
  background: var(--cream);
  position: relative;
}

.palette-note span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: #ed1b2f;
  transform: translate(-50%, -50%) rotate(45deg);
}

.palette-note:hover {
  box-shadow: 0 22px 56px rgba(50, 68, 41, 0.12);
  transform: translateY(-2px);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 14px;
  width: min(1040px, 100%);
}

.swatches span {
  display: grid;
  min-height: 160px;
  align-items: end;
  border: 1px solid rgba(47, 68, 50, 0.18);
  border-radius: 8px;
  padding: 14px;
  color: var(--olive-dark);
  background: var(--swatch);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.swatches span:hover {
  box-shadow: 0 18px 42px rgba(50, 68, 41, 0.14);
  transform: translateY(-5px);
}

.gifts {
  padding-top: clamp(30px, 5vw, 62px);
}

.gifts-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(48px, 6vw, 78px) clamp(24px, 7vw, 96px);
  overflow: visible;
  color: var(--muted);
  background: rgba(255, 248, 231, 0.78);
  box-shadow: 0 24px 72px rgba(50, 68, 41, 0.12);
  text-align: center;
}

.gifts-card .section-label {
  color: var(--muted);
}

.gifts-card h2 {
  margin-top: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
}

.gifts-card p {
  max-width: 660px;
  margin: 24px auto 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.26rem);
  font-weight: 700;
  line-height: 1.5;
}

.gifts-card p + p {
  max-width: 700px;
  margin-top: 18px;
}

.lemon {
  position: absolute;
  width: 82px;
  height: 58px;
  border-radius: 54% 46% 52% 48%;
  background: var(--lemon);
  box-shadow: 0 12px 30px rgba(50, 68, 41, 0.12);
  transform: rotate(-16deg);
}

.lemon::before {
  position: absolute;
  right: -13px;
  top: 0;
  z-index: -1;
  width: 44px;
  height: 30px;
  border-radius: 60% 40% 62% 38%;
  content: "";
  background: rgba(82, 107, 70, 0.72);
  transform: rotate(22deg);
}

.lemon-top {
  top: -26px;
  left: clamp(52px, 9vw, 128px);
  animation: lemon-float 5.8s ease-in-out infinite;
}

.lemon-bottom {
  right: clamp(52px, 9vw, 128px);
  bottom: -28px;
  animation: lemon-float-alt 6.4s ease-in-out infinite;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 6vw, 88px);
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.footer a {
  text-decoration: none;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-drift {
  from {
    transform: scale(1.03) translate3d(-10px, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(10px, -8px, 0);
  }
}

@keyframes lemon-float {
  0%,
  100% {
    transform: rotate(-16deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-10deg) translate3d(0, -7px, 0);
  }
}

@keyframes lemon-float-alt {
  0%,
  100% {
    transform: rotate(14deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(9deg) translate3d(0, 7px, 0);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 92svh;
    align-items: center;
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 6.8rem;
  }

  .hero-date {
    font-size: 1.05rem;
  }

  h2 {
    font-size: 3.25rem;
  }

  .intro-copy p {
    font-size: 1.1rem;
  }

  .intro,
  .details,
  .palette,
  .gifts {
    grid-template-columns: 1fr;
  }

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

  .palette {
    display: grid;
  }

  .swatches {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
  }

  .swatches span {
    min-height: 110px;
    padding: 10px;
  }

  .gifts-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 88svh;
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.45rem;
  }

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

  .swatches span {
    min-height: 92px;
    align-items: end;
    writing-mode: initial;
  }

  .palette-note {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .gifts-card {
    padding: 44px 22px 48px;
  }

  .gifts-card p {
    margin-top: 18px;
    font-size: 0.98rem;
  }

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

  .lemon {
    width: 68px;
    height: 48px;
  }

  .lemon::before {
    right: -11px;
    width: 36px;
    height: 24px;
  }

  .lemon-top {
    top: -22px;
    left: 28px;
  }

  .lemon-bottom {
    right: 28px;
    bottom: -23px;
  }

  .footer {
    display: grid;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
