:root {
  --sage: #97AB87;
  --sage-dark: #879C77;
  --brown: #E6D8C7;
  --brown-deep: #87665F;
  --cream: #f6f0df;
  --warm-gray: #87665F;
  --muted: #87665F;
  --line: rgba(135, 102, 95, 0.24);
  --shadow: 0 22px 70px rgba(74, 54, 45, 0.20);
  --content-width: 1120px;
  --hero-height: 124vh;
  --vines-height: 1448px;
  --font-body: "Lora", serif;
  --font-heading: "Great Vibes", cursive;
  --font-subheading: "Melloida-ExtraBold", sans-serif;
}

@font-face {
  font-family: "Great Vibes";
  src: url("assets/fonts/GreatVibes-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Melloida-ExtraBold";
  src: url("assets/fonts/Melloida-ExtraBold.ttf") format("truetype"), local("Melloida-ExtraBold");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("assets/fonts/Lora-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("assets/fonts/Lora-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 249, 233, 0.28), transparent 32%),
    linear-gradient(180deg, #7d9170 0%, #8ba07d 42%, #97ab87 100%);
  color: var(--warm-gray);
  font-family: var(--font-body);
  line-height: 1.58;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-height);
  z-index: -2;
  background: url("assets/monet-garden-web.webp") center 48% / cover no-repeat;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-height);
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(57, 46, 34, 0.24) 0%, rgba(57, 46, 34, 0.08) 24%, rgba(57, 46, 34, 0.28) 100%),
    radial-gradient(circle at 20% 20%, rgba(246, 240, 223, 0.12), transparent 30%);
}

body:not([data-route="welcome"])::before,
body:not([data-route="welcome"])::after {
  display: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--brown-deep);
  background: var(--cream);
  border-radius: 999px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 86px;
  padding: 18px 24px 0;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.35vw, 32px);
  width: min(100%, 850px);
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-subheading);
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 30px);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav a:hover,
.nav a:focus {
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(246, 240, 223, 0.45);
  border-radius: 999px;
  padding: 7px 11px 8px;
  color: var(--cream);
  background: rgba(47, 36, 25, 0.42);
  cursor: pointer;
}

.route {
  display: none;
  min-height: 100vh;
}

.route.is-active {
  display: block;
}

.hero,
.page-banner {
  background: transparent;
}

.hero {
  min-height: var(--hero-height);
  display: grid;
  place-items: center;
  padding: 28px 22px 72px;
  position: relative;
}

.hero::after,
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::after {
  background: transparent;
}

.page-banner::after {
  background: transparent;
}

.hero {
  position: relative;
}

.hero-inner {
  position: relative;
  z-index: 1;
  transform: translateY(-4vh);
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #fffdf3;
  font-family: var(--font-heading);
  font-size: clamp(72px, 9.2vw, 138px);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
}

.event-panel {
  --side-art-image: url("assets/branch.png");
  --side-art-position: left top;
  --side-art-repeat: repeat-y;
  --side-art-size: 68% auto;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0 24px;
  display: grid;
  place-items: stretch center;
  position: relative;
  isolation: isolate;
  background-color: #F6ECE0;
  color: var(--warm-gray);
}

.event-panel::before,
.event-panel::after,
.subpage::before,
.subpage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(246, 236, 224, 0.18), rgba(246, 236, 224, 0.28)),
    var(--side-art-image);
  background-position: center top, var(--side-art-position);
  background-repeat: no-repeat, var(--side-art-repeat);
  background-size: auto, var(--side-art-size);
}

.event-panel::before,
.subpage::before {
  left: 0;
}

.event-panel::after,
.subpage::after {
  right: 0;
  transform: scaleX(-1);
  transform-origin: center;
}

.event-panel::before {
  background-image:
    linear-gradient(180deg, rgba(246, 236, 224, 0.18), rgba(246, 236, 224, 0.28)),
    url("assets/lotus.jpeg");
  background-position: center top, calc(0% - 90px) top;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, auto 100%;
}

.event-panel::after {
  background-image:
    linear-gradient(180deg, rgba(246, 236, 224, 0.18), rgba(246, 236, 224, 0.28)),
    url("assets/fern1.png");
  background-position: center top, right top;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, auto 100%;
  transform: none;
}

.event-details {
  width: min(100%, var(--content-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: 132px 56px 72px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.2)),
    url("assets/cream-canvas.jpg") top left / 320px auto repeat;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.welcome-details {
  max-width: var(--content-width);
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 2.4vw, 52px);
  font-weight: 400;
  letter-spacing: 0;
}

.welcome-copy {
  max-width: 640px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.72;
}

.welcome-copy + .welcome-copy {
  margin-top: 24px;
}

.welcome-figure {
  width: min(100%, 760px);
  margin: 0 auto 28px;
}

.welcome-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(135, 102, 95, 0.18);
  box-shadow: 0 18px 32px rgba(113, 83, 63, 0.12);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.event-grid + .welcome-copy {
  margin-top: 28px;
}

.event-card {
  display: block;
  padding: 28px 24px;
  text-align: left;
  border: 1px solid rgba(135, 102, 95, 0.2);
  background: rgba(255, 251, 244, 0.62);
  box-shadow: 0 18px 32px rgba(113, 83, 63, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.event-card:hover,
.event-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(113, 83, 63, 0.12);
  border-color: rgba(135, 102, 95, 0.34);
}

.event-label {
  margin: 0 0 14px;
  font-family: var(--font-subheading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-deep);
}

.event-card .date {
  font-size: clamp(24px, 3vw, 31px);
}

.event-card .place {
  margin-top: 10px;
  font-size: clamp(18px, 2.2vw, 24px);
}

.welcome-actions {
  margin-top: 18px;
}

.date,
.place {
  margin: 0;
  font-family: var(--font-subheading);
  font-weight: 700;
  color: var(--warm-gray);
  line-height: 1.25;
}

.date {
  font-size: clamp(28px, 3.6vw, 36px);
}

.place {
  margin-top: 15px;
  font-size: clamp(22px, 2.8vw, 29px);
}

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(135, 102, 95, 0.50);
  border-radius: 999px;
  color: var(--brown-deep);
  background: rgba(135, 102, 95, 0.08);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  background: rgba(135, 102, 95, 0.14);
  border-color: rgba(135, 102, 95, 0.78);
}

.subpage {
  --side-art-image: url("assets/fern2.jpeg");
  --side-art-position: left center;
  --side-art-repeat: no-repeat;
  --side-art-size: cover;
  position: relative;
  isolation: isolate;
  background-color: #F6ECE0;
}

#story::before,
#story::after,
#american-wedding::before,
#american-wedding::after {
  top: 128px;
}

#story,
#american-wedding {
  --side-art-position: left top;
}

#story {
  --side-art-image: url("assets/branch.png");
  --side-art-repeat: repeat-y;
  --side-art-size: 68% auto;
}

#indian-wedding {
  --side-art-image: url("assets/lotus_tiled.jpeg");
  --side-art-position: left top;
  --side-art-repeat: repeat-y;
  --side-art-size: 72% auto;
}

#gallery {
  --side-art-position: left top;
}

#american-wedding {
  --side-art-image: url("assets/fern1.png");
  --side-art-position: right top;
  --side-art-repeat: no-repeat;
  --side-art-size: auto 100%;
}

#american-wedding::before {
  transform: scaleX(-1);
  transform-origin: center;
}

#american-wedding::after {
  transform: none;
}

.page-banner {
  position: relative;
  height: 128px;
  background: url("assets/monet-garden-web.webp") center 48% / cover no-repeat;
}

.content-panel {
  width: min(100%, var(--content-width));
  min-height: calc(100vh - 128px);
  margin: 0 auto;
  padding: 132px 56px 72px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.2)),
    url("assets/cream-canvas.jpg") top left / 320px auto repeat;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.story-panel {
  padding-top: 132px;
}

.story-layout {
  display: grid;
  gap: 42px;
}

.story-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 34px;
}

.story-block-reverse {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.content-panel > * {
  position: relative;
  z-index: 1;
}

h2 {
  margin: 0 0 38px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.story-copy {
  width: 100%;
  margin: 0;
  font-size: 17px;
}

.story-media {
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(113, 83, 63, 0.14);
}

.story-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
}

.story-media-bottom-focus img {
  object-position: center 72%;
}

.rich-copy {
  width: min(100%, 795px);
  margin: 0 auto;
  font-size: 17px;
}

.story-copy p,
.rich-copy p,
.section-intro,
.centered-copy p {
  margin: 0 0 28px;
}

h3 {
  margin: 48px 0 12px;
  color: var(--warm-gray);
  font-family: var(--font-subheading);
  font-size: 17px;
  font-weight: 700;
}

.narrow-panel,
.card-panel,
.dress-panel {
  max-width: var(--content-width);
}

.dress-sections {
  display: grid;
  gap: 44px;
  width: min(100%, 795px);
  margin: 0 auto;
}

.dress-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.65fr);
  align-items: start;
  gap: 30px;
  padding-top: 8px;
}

.dress-section-reverse {
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.45fr);
}

.dress-copy {
  width: 100%;
  margin: 0;
}

.dress-copy h3 {
  margin-top: 0;
}

.dress-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(100%, 340px);
  justify-self: end;
}

.dress-gallery-two-up {
  grid-template-columns: 1fr;
  width: min(100%, 340px);
}

.dress-section-reverse .dress-gallery {
  justify-self: start;
}

.dress-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(135, 102, 95, 0.055);
}

.dress-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.dress-figure-sari img {
  aspect-ratio: auto;
  object-fit: contain;
}

.dress-figure-churidar img {
  aspect-ratio: 2 / 3;
  object-position: center top;
}

.dress-gallery figcaption {
  padding: 14px 16px 16px;
  color: var(--brown-deep);
  font-size: 14px;
}

.dress-panel > h2 {
  width: min(100%, 795px);
  margin-left: auto;
  margin-right: auto;
}

.section-intro,
.centered-copy p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 17px;
}

.rich-copy h3:first-child,
.stay-copy h3 {
  margin-top: 0;
}

.rich-copy p:last-child,
.accordion-panel .rich-copy p:last-child {
  margin-bottom: 0;
}

.page-attribution {
  margin: 56px auto 0;
  color: rgba(135, 102, 95, 0.82);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.rich-list {
  width: min(100%, 795px);
  margin: 0 auto 28px;
  padding-left: 24px;
}

.rich-list li + li {
  margin-top: 14px;
}

.rich-copy a {
  color: inherit;
}

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

.stay-copy {
  max-width: 620px;
  text-align: center;
}

.timeline {
  width: min(100%, 610px);
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--brown-deep);
  font-family: var(--font-subheading);
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0 0 6px;
}

.timeline-item p,
.info-card p,
.accordion-panel,
.gallery figcaption {
  margin: 0;
}

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

.cards.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.info-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(135, 102, 95, 0.055);
}

.info-card h3 {
  margin-top: 0;
  color: var(--brown-deep);
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--brown-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(135, 102, 95, 0.5);
}

.button-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.button-row .button,
.button-row .button-outline {
  margin-top: 18px;
}

.accordion {
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--brown-deep);
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.accordion-trigger::after {
  content: "+";
  float: right;
}

.accordion-trigger.is-open::after {
  content: "–";
}

.accordion-panel {
  display: none;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.accordion-panel.is-open {
  display: block;
}

.accordion-panel .rich-copy {
  padding-top: 4px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(135, 102, 95, 0.055);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 14px 16px 16px;
  color: var(--brown-deep);
  font-size: 14px;
}

@media (max-width: 840px) {
  .site-header {
    justify-content: center;
    padding: 14px 18px 0;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .content-panel {
    padding-left: 34px;
    padding-right: 34px;
  }

  .event-details {
    padding-left: 34px;
    padding-right: 34px;
  }

  .dress-section,
  .dress-section-reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(58px, 17vw, 82px);
  }

  .page-banner {
    height: 112px;
  }

  #story::before,
  #story::after,
  #american-wedding::before,
  #american-wedding::after {
    top: 112px;
  }

  .content-panel {
    width: min(calc(100% - 68px), var(--content-width));
    min-height: calc(100vh - 112px);
    padding: 72px 16px 52px;
  }

  .event-panel {
    min-height: calc(100vh - 112px);
    padding: 0;
  }

  .event-details {
    width: min(calc(100% - 68px), var(--content-width));
    min-height: calc(100vh - 112px);
    padding: 72px 16px 52px;
  }

  .story-panel {
    padding-top: 78px;
  }

  .story-layout {
    gap: 28px;
  }

  .story-block,
  .story-block-reverse {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .dress-sections {
    gap: 30px;
  }

  .eyebrow {
    font-size: clamp(26px, 8vw, 38px);
  }

  h2 {
    margin-bottom: 28px;
    font-size: clamp(30px, 8.8vw, 40px);
  }

  h3 {
    margin: 40px 0 10px;
    font-size: 15px;
  }

  .story-copy,
  .rich-copy,
  .section-intro,
  .centered-copy p {
    font-size: 15px;
    line-height: 1.52;
  }

  .welcome-copy {
    font-size: 15px;
    line-height: 1.64;
  }

  .rich-list,
  .gallery figcaption,
  .dress-gallery figcaption {
    font-size: 14px;
  }

  .page-attribution {
    font-size: 10px;
  }

  .event-card {
    padding: 22px 18px;
  }

  .event-card .date {
    font-size: 21px;
  }

  .event-card .place {
    font-size: 17px;
  }

  .date {
    font-size: 24px;
  }

  .place {
    font-size: 18px;
  }

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

  .cards,
  .cards.two-up,
  .gallery {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .event-panel {
    min-height: calc(100vh - 112px);
    padding: 0;
  }
}

@media (max-width: 480px) {
  .content-panel,
  .event-details {
    width: min(calc(100% - 52px), var(--content-width));
    padding-left: 14px;
    padding-right: 14px;
  }

  h2 {
    font-size: clamp(28px, 10vw, 34px);
  }

  h3 {
    font-size: 14px;
  }

  .story-copy,
  .rich-copy,
  .section-intro,
  .centered-copy p,
  .welcome-copy,
  .rich-list {
    font-size: 14px;
  }

  .date {
    font-size: 22px;
  }

  .place {
    font-size: 17px;
  }

  .button-row {
    display: grid;
  }

  .event-card {
    padding: 20px 16px;
  }

  .event-card .date {
    font-size: 19px;
  }

  .event-card .place {
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .content-panel,
  .event-details {
    width: min(calc(100% - 60px), var(--content-width));
    padding-left: 12px;
    padding-right: 12px;
  }

  .story-copy,
  .rich-copy,
  .section-intro,
  .centered-copy p,
  .welcome-copy,
  .rich-list {
    font-size: 13.5px;
  }

  .event-card {
    padding: 18px 14px;
  }
}
