:root {
  --ivory: #fff8eb;
  --cream: #f9ead2;
  --gold: #d6a842;
  --deep-gold: #9c6f1f;
  --maroon: #7a1424;
  --wine: #4a0b17;
  --red: #b52a33;
  --saffron: #f0a035;
  --ink: #2b1515;
  --muted: #80605d;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(74, 11, 23, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(214, 168, 66, 0.2), transparent 18rem),
    radial-gradient(circle at 84% 18%, rgba(181, 42, 51, 0.16), transparent 20rem),
    linear-gradient(135deg, #fff8eb 0%, #f9ead2 48%, #fff3de 100%);
}

body::before {
  position: fixed;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(156, 111, 31, 0.28);
  border-radius: 34px;
  content: "";
  pointer-events: none;
}

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

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

.rangoli {
  position: fixed;
  z-index: -1;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(214, 168, 66, 0.22);
  border-radius: 50%;
  opacity: 0.7;
  animation: ornamentalDrift 34s linear infinite;
}

.rangoli::before,
.rangoli::after {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(122, 20, 36, 0.2);
  border-radius: 22% 78% 28% 72% / 70% 26% 74% 30%;
  content: "";
}

.rangoli::after {
  inset: 64px;
  border-color: rgba(214, 168, 66, 0.34);
  transform: rotate(45deg);
}

.rangoli-left {
  top: -92px;
  left: -92px;
}

.rangoli-right {
  right: -98px;
  bottom: -98px;
  animation-direction: reverse;
}

.hero,
main {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 0 52px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.brand {
  display: inline-grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--ivory);
  font-family: "Cinzel", serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--maroon), var(--wine));
  border: 2px solid rgba(214, 168, 66, 0.7);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(74, 11, 23, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand:hover {
  box-shadow: 0 18px 42px rgba(74, 11, 23, 0.28);
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--deep-gold);
  transform: translateY(-2px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  align-items: center;
  flex: 1;
  gap: clamp(34px, 6vw, 76px);
  padding-top: clamp(24px, 5vw, 64px);
}

.overline {
  margin: 0 0 14px;
  color: var(--deep-gold);
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--maroon);
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 730px;
  margin-bottom: 24px;
  font-size: clamp(4.5rem, 10vw, 8.8rem);
  letter-spacing: -0.06em;
}

h1 span {
  color: var(--gold);
  font-size: 0.72em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5.8vw, 5.1rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.8;
}

.hero-content.is-visible .overline,
.hero-content.is-visible h1,
.hero-content.is-visible .hero-text,
.hero-content.is-visible .date-pill,
.hero-content.is-visible .countdown {
  animation: refinedEntrance 760ms ease both;
}

.hero-content.is-visible h1 {
  animation-delay: 80ms;
}

.hero-content.is-visible .hero-text {
  animation-delay: 160ms;
}

.hero-content.is-visible .date-pill {
  animation-delay: 240ms;
}

.hero-content.is-visible .countdown {
  animation-delay: 320ms;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 20px;
  color: var(--maroon);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(214, 168, 66, 0.34);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(74, 11, 23, 0.11);
}

.date-pill span {
  color: var(--deep-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date-pill strong {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}

.countdown div {
  padding: 16px 12px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 235, 0.72));
  border: 1px solid rgba(214, 168, 66, 0.34);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(74, 11, 23, 0.1);
  transition: transform 220ms ease, border-color 220ms ease;
}

.countdown div:hover {
  border-color: rgba(214, 168, 66, 0.58);
  transform: translateY(-3px);
}

.countdown strong {
  display: block;
  color: var(--maroon);
  font-family: "Cinzel", serif;
  font-size: 2rem;
  line-height: 1;
}

.countdown span {
  color: var(--deep-gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait-card {
  position: relative;
  padding: clamp(14px, 2vw, 22px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(214, 168, 66, 0.24), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 243, 222, 0.74));
  border: 1px solid rgba(214, 168, 66, 0.42);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.portrait-card.is-visible {
  animation: photoFloat 7s ease-in-out infinite;
}

.portrait-card::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(122, 20, 36, 0.18);
  border-radius: 25px;
  content: "";
  pointer-events: none;
}

.arch-frame {
  position: relative;
  overflow: hidden;
  background: rgba(255, 248, 235, 0.9);
  border: 9px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
}

.arch-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.24) 45%, transparent 72%);
  content: "";
  opacity: 0;
  transform: translateX(-100%);
}

.portrait-card.is-visible .arch-frame::after {
  animation: softSheen 1400ms ease 600ms both;
}

.arch-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.portrait-card p {
  position: relative;
  margin: 16px 0 0;
  color: var(--deep-gold);
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

main {
  display: grid;
  gap: clamp(34px, 7vw, 78px);
  padding-bottom: 78px;
}

.intro-card,
.details,
.rituals,
.photo-section,
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(214, 168, 66, 0.32);
  border-radius: 32px;
  box-shadow: 0 20px 54px rgba(74, 11, 23, 0.1);
  backdrop-filter: blur(18px);
}

.intro-card {
  max-width: 930px;
  margin: 0 auto;
  text-align: center;
}

.intro-card p:not(.overline),
.detail-grid p,
.ritual-list p,
.photo-section p,
.closing p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.section-title {
  max-width: 620px;
  margin-bottom: 34px;
}

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

.detail-grid article,
.ritual-list article {
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 248, 235, 0.86), rgba(255, 255, 255, 0.66));
  border: 1px solid rgba(214, 168, 66, 0.26);
  border-radius: 24px;
}

.detail-grid span,
.ritual-list span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  border-radius: 999px;
}

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

.ritual-list article {
  min-height: 100%;
}

.ritual-list p {
  margin-bottom: 0;
}

.photo-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}

.wedding-seal {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 36px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(214, 168, 66, 0.2) 0 20%, transparent 21% 100%),
    linear-gradient(145deg, rgba(255, 248, 235, 0.9), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(214, 168, 66, 0.42);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.wedding-seal::before,
.wedding-seal::after {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(122, 20, 36, 0.18);
  border-radius: 30% 70% 28% 72% / 68% 26% 74% 32%;
  content: "";
}

.wedding-seal::after {
  inset: 52px;
  border-color: rgba(214, 168, 66, 0.38);
  transform: rotate(45deg);
}

.wedding-seal span,
.wedding-seal strong,
.wedding-seal p {
  position: relative;
  z-index: 1;
}

.wedding-seal span {
  align-self: end;
  color: var(--deep-gold);
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wedding-seal strong {
  color: var(--maroon);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(4.4rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1;
}

.wedding-seal p {
  align-self: start;
  margin: 0;
  color: var(--deep-gold);
  font-family: "Cinzel", serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.closing {
  text-align: center;
}

.closing a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 24px;
  color: var(--ivory);
  font-weight: 900;
  background: linear-gradient(135deg, var(--maroon), var(--wine));
  border: 1px solid rgba(214, 168, 66, 0.58);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(74, 11, 23, 0.24);
}

.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes refinedEntrance {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ornamentalDrift {
  to {
    transform: rotate(360deg);
  }
}

@keyframes photoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes softSheen {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  30% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-layout,
  .photo-section {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    width: min(540px, 100%);
    margin: 0 auto;
  }

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

  .ritual-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body::before {
    inset: 10px;
    border-radius: 24px;
  }

  .hero,
  main {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 22px 0 40px;
  }

  .nav {
    align-items: center;
  }

  .brand {
    width: 54px;
    height: 54px;
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .hero-layout {
    gap: 24px;
    padding-top: 28px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(3.35rem, 17vw, 5rem);
    letter-spacing: -0.055em;
  }

  .hero-text {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .date-pill {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 24px;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .countdown div {
    padding: 11px 4px;
    border-radius: 16px;
  }

  .countdown strong {
    font-size: 1.28rem;
  }

  .countdown span {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .portrait-card {
    padding: 12px;
    border-radius: 24px;
  }

  .portrait-card::before {
    inset: 7px;
    border-radius: 18px;
  }

  .arch-frame {
    border-width: 7px;
    border-radius: 18px;
  }

  .portrait-card p {
    margin-top: 12px;
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .intro-card,
  .details,
  .rituals,
  .photo-section,
  .closing {
    border-radius: 24px;
  }

  .photo-section {
    gap: 22px;
  }

  .wedding-seal {
    min-height: 240px;
    padding: 28px;
    border-radius: 24px;
  }

  .wedding-seal::before {
    inset: 18px;
  }

  .wedding-seal::after {
    inset: 42px;
  }
}

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