:root {
  --ivory: #fff9f4;
  --shell: #ffe9ec;
  --rose: #d97493;
  --rose-deep: #a94266;
  --gold: #b88635;
  --gold-soft: #ead4a1;
  --ink: #342920;
  --sage: #50614f;
  --line: rgba(184, 134, 53, 0.3);
  --shadow: 0 24px 70px rgba(92, 55, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 18px 22px auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 233, 236, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(77, 45, 35, 0.12);
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(184, 134, 53, 0.18);
  border-radius: 50%;
  background: var(--shell);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 28px);
  color: #6f5649;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  padding: 104px clamp(18px, 5vw, 72px) 54px;
  background:
    linear-gradient(90deg, rgba(255, 249, 244, 0.4), rgba(255, 233, 236, 0.74)),
    radial-gradient(circle at 86% 20%, rgba(234, 212, 161, 0.5), transparent 30%),
    linear-gradient(135deg, var(--ivory), #fff0f3 60%, #f8f1e6);
}

.hero-media {
  width: min(100%, 430px);
  justify-self: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: white;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 853 / 1280;
  object-fit: cover;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h1 {
  max-width: 680px;
  color: var(--gold);
  font-size: clamp(3.4rem, 7.2vw, 7rem);
  line-height: 0.9;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 640px;
  margin: 28px 0 0;
  color: #59453a;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions,
.rsvp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(184, 134, 53, 0.18);
}

.button.primary {
  background: var(--gold);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.45);
  color: var(--gold);
}

section {
  scroll-margin-top: 98px;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

h2 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.8vw, 5.2rem);
  line-height: 0.95;
}

.event-band {
  border-block: 1px solid var(--line);
  background: var(--shell);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(184, 134, 53, 0.18);
}

.event-grid article,
.gallery-grid article,
.atelier-list div {
  background: rgba(255, 245, 247, 0.92);
  padding: clamp(22px, 4vw, 38px);
}

.stat {
  display: block;
  margin-bottom: 12px;
  color: var(--rose);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 700;
  line-height: 0.78;
}

h3 {
  color: var(--gold);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1;
}

p {
  color: #6a5549;
  line-height: 1.65;
}

.details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--shell);
}

.details div {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffe4ea;
  padding: 26px;
}

.detail-icon {
  width: fit-content;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gold);
  color: var(--rose-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 700;
}

.details p {
  margin: 0 0 4px;
  color: var(--sage);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1;
}

.atelier {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(30px, 5vw, 62px);
  background:
    linear-gradient(rgba(52, 41, 32, 0.85), rgba(52, 41, 32, 0.85)),
    url("assets/huntress-invitation.jpeg") center 18% / cover;
}

.atelier h2,
.atelier h3,
.atelier p {
  color: white;
}

.atelier .eyebrow {
  color: var(--gold-soft);
}

.atelier-copy p {
  max-width: 620px;
}

.atelier-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-self: start;
  background: rgba(234, 212, 161, 0.35);
  border: 1px solid rgba(234, 212, 161, 0.35);
}

.atelier-list div {
  background: rgba(255, 249, 244, 0.1);
  backdrop-filter: blur(14px);
}

.gallery {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--shell), #fff4f6 52%, var(--shell));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(10px, 1.6vw, 18px);
}

.gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 134, 53, 0.28);
  background: rgba(255, 245, 247, 0.78);
  box-shadow: 0 18px 50px rgba(92, 55, 43, 0.12);
  isolation: isolate;
  opacity: 0.62;
  transform: translateY(34px) scale(0.985);
  transition: opacity 800ms ease, transform 800ms ease;
}

.gallery-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card-accent {
  border-color: rgba(80, 97, 79, 0.32);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(0.9);
  transform: scale(1.08);
  transition: filter 1000ms ease, transform 1000ms ease;
}

.gallery-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 233, 236, 0.2), rgba(255, 233, 236, 0.42)),
    rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: opacity 900ms ease, backdrop-filter 900ms ease;
}

.gallery-card.is-visible {
  opacity: 1;
  transform: none;
}

.gallery-card.is-visible img {
  filter: blur(0) saturate(1.02);
  transform: scale(1);
}

.gallery-card.is-visible::before {
  opacity: 0;
  backdrop-filter: blur(0);
}

.rsvp {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(255, 233, 236, 0.98), rgba(255, 240, 243, 0.96)),
    radial-gradient(circle at 12% 50%, rgba(184, 134, 53, 0.26), transparent 28%);
}

.rsvp h2 {
  color: var(--gold);
  text-transform: uppercase;
}

.rsvp p {
  max-width: 540px;
}

@media (max-width: 980px) {
  .hero,
  .atelier {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: -1;
  }

  .hero-media {
    width: min(100%, 520px);
  }

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

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

  .gallery-card-large {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .site-header {
    inset: 10px 10px auto;
    padding: 8px;
  }

  nav {
    gap: 9px;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .event-grid,
  .details,
  .atelier-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card-large {
    grid-column: auto;
  }

  .details div {
    min-height: 138px;
  }
}
