@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Forum&family=Josefin+Sans:wght@300;400;500&display=swap");

@font-face {
  font-family: "Rastanty Cortez";
  src: url("../assets/fonts/rastanty-cortez.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Perpetua Titling MT";
  src: url("../assets/fonts/perpetua-titling-mt-light.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
}

:root {
  --ivory: #f7f0e3;
  --parchment: #fff8ee;
  --sand: #ecd9b9;
  --gold: #b38a3b;
  --antique-gold: #8b6936;
  --rose: #a24b58;
  --sage: #6d7f49;
  --forest: #30452d;
  --ink: #3f3127;
  --card: rgba(255, 250, 244, 0.9);
  --border: rgba(139, 105, 54, 0.22);
  --shadow: 0 18px 40px rgba(73, 50, 27, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --image-radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Josefin Sans", Baskerville, "Palatino Linotype", "Book Antiqua", serif;
  background:
    linear-gradient(rgba(247, 240, 227, 0.94), rgba(247, 240, 227, 0.95)),
    radial-gradient(circle at top left, rgba(162, 75, 88, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(109, 127, 73, 0.12), transparent 30%),
    var(--ivory);
  min-height: 100vh;
}

.page-shell {
  width: min(1440px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 3rem 0 3.6rem;
}

.site-header {
  position: sticky;
  top: 40px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  margin-bottom: 0.9rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

body:not([data-page="home"]) .site-header {
  position: relative;
  top: auto;
}

.brand-mark {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
  flex-wrap: wrap;
}

.brand-mark,
.brand-mark:link,
.brand-mark:visited,
.brand-mark:hover,
.brand-mark:active {
  color: inherit;
  text-decoration: none;
}

.brand-script,
.hero h1,
.page-title {
  font-family: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", serif;
}

.brand-script {
  font-family: "Forum", "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.68rem;
  color: var(--antique-gold);
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-date {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(63, 49, 39, 0.62);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--forest);
  border-radius: 0;
  padding: 0.4rem 0.2rem;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--forest);
  padding: 0.3rem 0.35rem;
  border-radius: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, opacity 180ms ease;
  border: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--rose);
  opacity: 1;
}

.site-nav a:not(.is-active) {
  opacity: 0.78;
}

.page-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 105, 54, 0.34);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 249, 239, 0.93), rgba(255, 249, 239, 0.88)),
    radial-gradient(circle at top right, rgba(162, 75, 88, 0.06), transparent 28%);
  box-shadow: var(--shadow);
}

.page-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(179, 138, 59, 0.2);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.page-panel::after {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(380px, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.hero-copy {
  padding: 1rem 1rem 1rem 1.5rem;
}

.hero-home {
  min-height: calc(100vh - 7.2rem);
  grid-template-columns: 1fr;
  padding: 0.85rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.96;
  color: var(--antique-gold);
}

.hero-text {
  margin: 1.15rem 0 1.4rem;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-text-home {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(104, 58, 39, 0.88);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-details span {
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(139, 105, 54, 0.24);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.78);
  font-size: 0.92rem;
}

.hero-frame,
.ornate-showcase {
  position: relative;
  padding: 0.6rem;
  border-radius: calc(var(--radius-lg) - 8px);
  background: linear-gradient(135deg, rgba(239, 224, 196, 0.76), rgba(255, 249, 239, 0.92));
  border: 1px solid rgba(139, 105, 54, 0.14);
}

.hero-frame-home {
  width: 100%;
  min-height: calc(100vh - 9.7rem);
  height: 100%;
  padding: 0;
}

.hero-frame img,
.ornate-showcase img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 12px);
  border: 0;
  box-shadow: none;
}

.hero-frame-home img {
  min-height: calc(100vh - 9.7rem);
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.hero-frame::before,
.ornate-showcase::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(179, 138, 59, 0.16);
  border-radius: calc(var(--radius-lg) - 12px);
  pointer-events: none;
}

.hero-frame-home::before {
  inset: 12px;
}

.content-page {
  margin-top: 0.9rem;
  padding: 2rem;
}

.content-page-clean {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.content-page-clean::before {
  display: none;
}

.ornate-showcase-compact img {
  max-height: min(42vh, 320px);
  margin: 0 auto;
}

.ornate-showcase-full {
  padding: 0.75rem;
}

.ornate-showcase-full img {
  width: 100%;
  max-height: min(40vh, 300px);
}

.ornate-showcase-tall {
  min-height: 390px;
  padding: 0.55rem;
}

.ornate-showcase-tall img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  max-height: 450px;
  object-fit: cover;
  object-position: center;
}

.section-artwork {
  display: block;
  width: 100%;
  margin: 0 auto 1rem;
  border: 0;
  border-radius: var(--image-radius);
  box-shadow: none;
}

body[data-page="schedule"] .content-page,
body[data-page="wardrobe"] .content-page {
  padding-top: 0.45rem;
}

body[data-page="schedule"] .section-heading-compact,
body[data-page="wardrobe"] .section-heading-compact {
  max-width: 72rem;
  margin-bottom: 0;
}

body[data-page="schedule"] .page-title-compact,
body[data-page="wardrobe"] .page-title-compact {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  margin-bottom: 0.35rem;
}

body[data-page="schedule"] .section-subtext-inline,
body[data-page="wardrobe"] .section-subtext-inline {
  font-size: 0.96rem;
  line-height: 1.35;
  white-space: nowrap;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  font-style: italic;
  color: rgba(63, 49, 39, 0.72);
}

body[data-page="schedule"] .section-artwork,
body[data-page="wardrobe"] .section-artwork {
  margin-top: 0;
  margin-bottom: 0.45rem;
  border-radius: var(--radius-md);
}

body[data-page="schedule"] .event-grid,
body[data-page="wardrobe"] .attire-grid {
  margin-top: 0.75rem;
}

body[data-page="schedule"] .brand-script {
  font-family: var(--home-heading-font);
}

body[data-page="wardrobe"] .brand-script {
  font-family: var(--home-heading-font);
}

body[data-page="schedule"] .brand-date,
body[data-page="schedule"] .site-nav a,
body[data-page="schedule"] .mobile-menu a {
  font-family: var(--home-subtext-font);
}

body[data-page="wardrobe"] .brand-date,
body[data-page="wardrobe"] .site-nav a,
body[data-page="wardrobe"] .mobile-menu a {
  font-family: var(--home-subtext-font);
}

body[data-page="schedule"] .page-title-compact,
body[data-page="schedule"] .event-card h3 {
  font-family: var(--home-heading-font);
}

body[data-page="wardrobe"] .page-title-compact {
  font-family: var(--home-heading-font);
}

body[data-page="schedule"] .section-subtext-inline,
body[data-page="schedule"] .event-day,
body[data-page="schedule"] .event-tagline {
  font-family: var(--home-subtext-font);
}

body[data-page="wardrobe"] .section-subtext-inline {
  font-family: var(--home-subtext-font);
  color: rgba(63, 49, 39, 0.82);
}

body[data-page="schedule"] .page-title-compact {
  font-size: clamp(2.7rem, 5.8vw, 4.4rem);
  line-height: 0.96;
  margin-bottom: 0.25rem;
}

body[data-page="wardrobe"] .page-title-compact {
  font-family: var(--home-heading-font) !important;
  font-size: clamp(2.7rem, 5.8vw, 4.4rem) !important;
  line-height: 0.96 !important;
  margin-bottom: 0.25rem !important;
  color: var(--antique-gold) !important;
}

body[data-page="schedule"] .section-heading-compact .section-subtext-inline {
  display: inline-block;
  max-width: 78%;
  font-size: 0.55rem !important;
  line-height: 1.18 !important;
  letter-spacing: 0.02em;
  font-style: normal;
  color: rgba(63, 49, 39, 0.56);
}

body[data-page="wardrobe"] .section-heading-compact .section-subtext-inline {
  display: inline-block;
  max-width: 78%;
  font-size: 0.78rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-style: normal;
  color: rgba(63, 49, 39, 0.62);
}

body[data-page="wardrobe"] .attire-note {
  margin-top: 0.4rem;
}

body[data-page="wardrobe"] .attire-note a,
body[data-page="wardrobe"] .attire-note a:visited {
  color: var(--antique-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 105, 54, 0.22);
}

body[data-page="wardrobe"] .attire-note a:hover,
body[data-page="wardrobe"] .attire-note a:focus-visible {
  color: var(--rose);
  border-bottom-color: rgba(162, 75, 88, 0.28);
}

body[data-page="wardrobe"] .section-heading-compact {
  margin-bottom: 0.35rem;
}

body[data-page="wardrobe"] .itinerary-grid {
  margin-top: 0.5rem;
}

.itinerary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.itinerary-item {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  justify-items: center;
}

body[data-page="wardrobe"] .itinerary-item {
  align-content: start;
  width: auto;
}

body[data-page="wardrobe"] .itinerary-artwork-frame {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  padding: 0;
  overflow: visible;
}

body[data-page="wardrobe"] .itinerary-artwork {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: initial;
  clip-path: inset(1px 1px 1px 1px);
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  filter: none;
}

body[data-page="wardrobe"] .itinerary-item:first-child .itinerary-artwork,
body[data-page="wardrobe"] .itinerary-item:last-child .itinerary-artwork {
  clip-path: inset(1px 3px 1px 3px);
}

body[data-page="wardrobe"] .itinerary-item:first-child .itinerary-artwork {
  clip-path: inset(1px 6px 1px 6px);
}

body[data-page="wardrobe"] .itinerary-item:last-child .itinerary-artwork {
  clip-path: inset(1px 6px 1px 6px);
}

body[data-page="schedule"] .itinerary-artwork {
  border-radius: 0;
}

body[data-page="wardrobe"] .itinerary-artwork {
  border-radius: 0;
}

.itinerary-artwork-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.itinerary-artwork {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--image-radius);
  box-shadow: none;
}


.section-heading {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.section-heading-compact {
  max-width: 50rem;
  margin: 0 auto 1rem;
  text-align: center;
}

.page-title-compact {
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.section-subtext-inline {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  white-space: nowrap;
}

.section-heading h2,
.page-title {
  margin: 0;
  color: var(--forest);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.98;
  color: var(--antique-gold);
}

.section-heading p:last-child {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

body[data-page="travel"] .page-panel::before,
body[data-page="rsvp"] .page-panel::before,
body[data-page="faqs"] .page-panel::before {
  display: none;
}

body[data-page="travel"] .section-heading,
body[data-page="rsvp"] .section-heading,
body[data-page="faqs"] .section-heading {
  max-width: 68rem;
  margin-bottom: 1.2rem;
}

body[data-page="travel"] .page-title,
body[data-page="rsvp"] .page-title,
body[data-page="faqs"] .page-title {
  font-family: var(--home-heading-font);
  font-size: clamp(2.45rem, 4.2vw, 4rem);
  white-space: nowrap;
  color: var(--antique-gold);
}

body[data-page="travel"] .section-heading p:last-child,
body[data-page="rsvp"] .section-heading p:last-child,
body[data-page="faqs"] .section-heading p:last-child {
  font-family: var(--home-subtext-font);
  max-width: none;
  white-space: nowrap;
}

.event-grid,
.attire-grid,
.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.event-grid-compact,
.attire-grid-compact {
  margin-top: 1rem;
}

.event-grid-wide {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.event-card,
.attire-card,
.travel-card,
.cta-panel,
.faq-item {
  border: 1px solid rgba(139, 105, 54, 0.18);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: none;
}

.event-card,
.attire-card,
.travel-card,
.cta-panel {
  padding: 1.35rem;
}

.attire-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(139, 105, 54, 0.24);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.82);
  color: var(--antique-gold);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.attire-link:hover,
.attire-link:focus-visible {
  color: var(--rose);
  border-color: rgba(162, 75, 88, 0.3);
  background: rgba(255, 245, 236, 0.96);
}
.event-card h3,
.attire-card h3,
.travel-card h3,
.cta-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 2.2rem;
  color: var(--antique-gold);
  font-family: var(--home-heading-font);
}

.event-day,
.travel-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  font-family: var(--home-subtext-font);
}

.event-tagline {
  margin-top: 0;
  font-style: italic;
}

.cta-panel {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  padding: 0.95rem 1.4rem;
  border-radius: 0;
  background: #8b6936;
  color: #fffaf0;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(139, 105, 54, 0.3);
}

.cta-note {
  margin-top: 1rem;
  color: rgba(63, 49, 39, 0.8);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 0.3rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-size: 1.08rem;
  color: var(--forest);
  font-family: var(--home-subtext-font);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--antique-gold);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1rem;
  line-height: 1.7;
  font-family: "Josefin Sans", Baskerville, "Palatino Linotype", "Book Antiqua", serif;
}

.faq-sections {
  display: grid;
  gap: 1.4rem;
}

.faq-section {
  display: grid;
  gap: 0.85rem;
}

.faq-section-questions-only {
  padding-top: 0.15rem;
}

.faq-section > h2,
.travel-copy-block h2 {
  margin: 0 0 0.15rem;
  font-family: var(--home-subtext-font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(104, 58, 39, 0.72);
}

.faq-section > p {
  margin: 0;
  line-height: 1.75;
  font-family: "Josefin Sans", Baskerville, "Palatino Linotype", "Book Antiqua", serif;
}

.faq-bullet-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-family: "Josefin Sans", Baskerville, "Palatino Linotype", "Book Antiqua", serif;
}

.faq-bullet-list li + li {
  margin-top: 0.35rem;
}

.faq-item a,
.faq-item a:visited,
.faq-section a,
.faq-section a:visited {
  color: var(--antique-gold);
  text-decoration-color: rgba(139, 105, 54, 0.38);
}

.faq-item a:hover,
.faq-item a:focus-visible,
.faq-section a:hover,
.faq-section a:focus-visible {
  color: var(--rose);
  text-decoration-color: rgba(162, 75, 88, 0.45);
}

.faq-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
}

.faq-shop-grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--home-subtext-font);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(104, 58, 39, 0.72);
}

.travel-copy {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
}

.travel-copy-block {
  display: grid;
  gap: 0.7rem;
}

.travel-copy-block h2 {
  line-height: 1.25;
}

.travel-copy-block p {
  margin: 0;
  max-width: 50rem;
  line-height: 1.82;
  color: rgba(63, 49, 39, 0.82);
  font-family: "Josefin Sans", Baskerville, "Palatino Linotype", "Book Antiqua", serif;
}

.rsvp-message {
  margin: 0 auto;
  max-width: 30rem;
  line-height: 1.75;
  color: rgba(63, 49, 39, 0.82);
}

@media (max-width: 960px) {
  .hero,
  .event-grid,
  .attire-grid,
  .travel-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.3rem;
  }

  .site-nav.is-open {
    display: grid;
    gap: 0.4rem;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  .hero-home {
    min-height: auto;
    padding: 0.7rem;
  }

  .hero-frame-home,
  .hero-frame-home img {
    min-height: auto;
  }

  .ornate-showcase-compact img {
    max-height: min(46vh, 360px);
  }

  .section-subtext-inline {
    white-space: normal;
  }

  .ornate-showcase-tall {
    min-height: 320px;
  }

  .ornate-showcase-tall img {
    min-height: 300px;
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 0.5rem, 1440px);
    padding-top: 2.7rem;
  }

  .hero,
  .content-page {
    padding: 1.2rem;
  }

  .hero h1,
  .page-title {
    font-size: 3.1rem;
  }

  .brand-script {
    font-size: 1.4rem;
  }

  .brand-date {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .site-header {
    top: 34px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.5rem;
  }

  .page-panel {
    border-radius: 20px;
  }

  .page-panel::before {
    inset: 6px;
    border-radius: 14px;
  }

  .hero {
    gap: 1.1rem;
  }

  .hero-details {
    gap: 0.55rem;
  }

  .hero-details span {
    width: 100%;
    text-align: center;
    padding: 0.7rem 0.85rem;
  }

  .hero-frame,
  .ornate-showcase {
    padding: 0.7rem;
  }

  .hero-frame-home {
    padding: 0;
  }

  .hero-frame::before,
  .ornate-showcase::before {
    inset: 5px;
    border-radius: 12px;
  }

  .hero-frame-home::before {
    inset: 8px;
  }

  .faq-item summary {
    padding-right: 1.8rem;
    line-height: 1.45;
  }

  .faq-item summary::after {
    position: absolute;
    right: 0;
    top: 0.95rem;
  }

  .faq-item {
    position: relative;
  }

  body::before,
  body::after {
    height: 22px;
    background-size: auto 22px;
    background-repeat: repeat-x;
  }

  .ornate-showcase-compact img {
    max-height: none;
  }

  .ornate-showcase-tall {
    min-height: auto;
  }

  .ornate-showcase-tall img {
    min-height: auto;
    max-height: none;
    height: auto;
    object-fit: contain;
  }
}

body[data-page="home"] {
  background: var(--ivory);
  overflow-x: hidden;
}

body[data-page="home"]::before,
body[data-page="home"]::after {
  display: none;
}

body[data-page="home"] main {
  margin: 0;
  padding: 0;
}

.home-overview {
  position: relative;
  padding: 2rem 1.2rem 3rem;
  background:
    radial-gradient(circle at top center, rgba(244, 230, 207, 0.34), transparent 42%),
    linear-gradient(rgba(247, 240, 227, 0.95), rgba(247, 240, 227, 0.98)),
    var(--ivory);
  overflow: hidden;
}

body[data-page="home"] {
  --home-heading-font: "Rastanty Cortez", "Cormorant Garamond", "Times New Roman", serif;
  --home-subtext-font: "Perpetua Titling MT", "Palatino Linotype", "Book Antiqua", serif;
}

body[data-page="schedule"],
body[data-page="wardrobe"],
body[data-page="travel"],
body[data-page="rsvp"],
body[data-page="faqs"] {
  --home-heading-font: "Rastanty Cortez", "Cormorant Garamond", "Times New Roman", serif;
  --home-subtext-font: "Perpetua Titling MT", "Palatino Linotype", "Book Antiqua", serif;
  background:
    url("../assets/images/bottom-wallpaper.jpeg"),
    radial-gradient(circle at top center, rgba(244, 230, 207, 0.038), transparent 42%),
    linear-gradient(rgba(247, 240, 227, 0.999), rgba(247, 240, 227, 0.9995)),
    var(--ivory);
  background-position:
    center top,
    center top,
    center top;
  background-repeat:
    repeat,
    no-repeat,
    no-repeat,
    no-repeat;
  background-size:
    320px auto,
    auto,
    auto,
    auto;
}

body[data-page="schedule"] .content-page-clean {
  background: transparent;
}

body[data-page="schedule"] .content-page-clean::before {
  display: none;
}

body[data-page="schedule"] .content-page-clean > * {
  position: static;
  z-index: auto;
}

.home-overview-inner {
  position: relative;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.home-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/bottom-wallpaper.jpeg");
  background-position: center top;
  background-repeat: repeat;
  background-size: 310px auto;
  opacity: 0.34;
  pointer-events: none;
}

.home-overview-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(104, 58, 39, 0.72);
}

.home-overview-title {
  margin: 0;
  font-family: var(--home-heading-font);
  font-size: clamp(2.7rem, 5.8vw, 4.4rem);
  line-height: 0.96;
  color: var(--antique-gold);
}

.home-overview-text {
  margin: 0.7rem auto 1.5rem;
  max-width: 36rem;
  font-family: var(--home-subtext-font);
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(63, 49, 39, 0.78);
}

.home-overview-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-overview-link {
  display: block;
  padding: 1.15rem 1rem;
  border: 1px solid rgba(255, 248, 238, 0.42);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 248, 0.34) 0%,
    rgba(247, 240, 227, 0.2) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 12px 32px rgba(139, 105, 54, 0.09);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.home-overview-link:hover,
.home-overview-link:focus-visible {
  border-color: rgba(255, 250, 244, 0.56);
  background: linear-gradient(
    180deg,
    rgba(255, 252, 248, 0.42) 0%,
    rgba(247, 240, 227, 0.28) 100%
  );
  transform: translateY(-1px);
}

.home-overview-link-title {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--home-heading-font);
  font-size: 2.25rem;
  line-height: 0.98;
  color: var(--antique-gold);
}

.home-overview-link-copy {
  display: block;
  font-family: var(--home-subtext-font);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: rgba(63, 49, 39, 0.76);
}

/* Responsive Site Layer */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--image-radius);
}

body {
  overflow-x: hidden;
}

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.brand-mark {
  max-width: 100%;
}

.brand-script {
  font-size: 1.38rem;
}

.brand-date {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.menu-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
}

.site-nav {
  display: none !important;
}

.mobile-menu {
  display: none;
  width: 100%;
  padding-top: 0.35rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(247, 240, 227, 0.96);
}

.mobile-menu.open {
  display: grid;
  gap: 0.35rem;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--forest);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.88;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible,
.mobile-menu a.is-active {
  color: var(--rose);
  opacity: 1;
}

.event-grid,
.attire-grid,
.travel-grid,
.rsvp-form {
  grid-template-columns: 1fr;
}

.section-subtext-inline {
  white-space: normal;
}

body[data-page="home"] .site-header {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1rem);
  margin: 0;
  z-index: 100;
}

body[data-page="home"] .mobile-menu {
  background: rgba(247, 240, 227, 0.94);
}

body[data-page="home"] .hero-home {
  position: relative;
  width: 100vw;
  min-height: 0;
  height: auto;
  aspect-ratio: 1600 / 1070;
  border-radius: 20px;
  background-color: rgba(247, 240, 227, 0.9);
  background-image:
    url("../assets/images/landing-page.jpg"),
    linear-gradient(
      90deg,
      rgba(247, 240, 227, 0.9) 0%,
      rgba(247, 240, 227, 0.78) 10%,
      rgba(247, 240, 227, 0) 24%,
      rgba(247, 240, 227, 0) 76%,
      rgba(247, 240, 227, 0.78) 90%,
      rgba(247, 240, 227, 0.9) 100%
    ),
    url("../assets/images/landing-page.jpg");
  background-position: center center, center center, center center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 100% auto, auto, cover;
  overflow: hidden;
}

@media (max-width: 767px) {
  body::before,
  body::after {
    display: none;
  }

  body[data-page="schedule"] {
    background:
      url("../assets/images/bottom-wallpaper.jpeg"),
      radial-gradient(circle at top center, rgba(244, 230, 207, 0.05), transparent 52%),
      linear-gradient(rgba(247, 240, 227, 0.997), rgba(247, 240, 227, 0.999)),
      var(--ivory);
    background-position:
      center top,
      center top,
      center top;
    background-repeat:
      repeat,
      no-repeat,
      no-repeat,
      no-repeat;
    background-size:
      250px auto,
      auto,
      auto,
      auto;
  }

  body[data-page="wardrobe"],
  body[data-page="travel"],
  body[data-page="rsvp"],
  body[data-page="faqs"] {
    background:
      url("../assets/images/bottom-wallpaper.jpeg"),
      radial-gradient(circle at top center, rgba(244, 230, 207, 0.05), transparent 52%),
      linear-gradient(rgba(247, 240, 227, 0.997), rgba(247, 240, 227, 0.999)),
      var(--ivory);
    background-position:
      center top,
      center top,
      center top;
    background-repeat:
      repeat,
      no-repeat,
      no-repeat,
      no-repeat;
    background-size:
      250px auto,
      auto,
      auto,
      auto;
  }

  body[data-page="home"] .site-header {
    top: 28px;
    width: calc(100% - 1rem);
    gap: 0.6rem;
    padding: 0;
  }

  body[data-page="home"] .brand-mark {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
  }

  body[data-page="home"] .brand-script {
    font-family: var(--home-heading-font);
    font-size: 1.46rem;
    letter-spacing: 0.01em;
    color: var(--antique-gold);
  }

  .brand-script {
    color: #7b5727;
    text-shadow: 0 0 1px rgba(247, 240, 227, 0.28);
  }

  body[data-page="home"] .brand-date {
    display: inline;
    flex: 0 1 auto;
    font-family: var(--home-subtext-font);
    font-size: 0.56rem;
    letter-spacing: 0.03em;
    color: rgba(63, 49, 39, 0.58);
    white-space: nowrap;
  }

  .home-overview-link-title {
    font-size: 2.4rem;
  }

  body[data-page="home"] .hero-home {
    min-height: calc(100vw * 1070 / 1600 + 4.5rem);
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    background-color: rgba(247, 240, 227, 0.9);
    background-image: none;
    overflow: hidden;
  }

  body[data-page="home"] .hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../assets/images/landing-page.jpg");
    background-position: center top 4.5rem;
    background-repeat: no-repeat;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
  }

  body[data-page="home"] .hero-home::after {
    display: none;
  }

  body[data-page="schedule"] .content-page,
  body[data-page="wardrobe"] .content-page {
    padding-top: 0.7rem;
  }

  .itinerary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .itinerary-artwork-frame {
    min-height: auto;
    width: 88%;
  }

  body[data-page="wardrobe"] .itinerary-artwork-frame {
    width: auto;
    max-width: 100%;
  }

  .itinerary-artwork {
    width: 100%;
    max-height: none;
    height: auto;
  }

  body[data-page="wardrobe"] .itinerary-artwork {
    width: auto;
    max-width: 100%;
  }

  .event-copy {
    width: 100%;
  }

  body[data-page="schedule"] .section-subtext-inline,
  body[data-page="wardrobe"] .section-subtext-inline {
    white-space: normal;
  }

  body[data-page="travel"] .page-title,
  body[data-page="rsvp"] .page-title,
  body[data-page="faqs"] .page-title,
  body[data-page="travel"] .section-heading p:last-child,
  body[data-page="rsvp"] .section-heading p:last-child,
  body[data-page="faqs"] .section-heading p:last-child {
    white-space: normal;
  }

  .home-overview {
    margin-top: 0;
    padding: 1.1rem 1rem 1.9rem;
  }

  .home-overview::before {
    background-size: 230px auto;
    opacity: 0.3;
  }

  .home-overview-text {
    margin-bottom: 1.1rem;
  }

  .home-overview-links {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .home-overview-link {
    padding: 1rem 0.9rem;
    border-radius: 18px;
  }

  .faq-shop-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none !important;
  }

  .site-header {
    flex-wrap: nowrap;
  }

  .brand-mark {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .brand-script {
    font-family: var(--home-heading-font);
    font-size: 1.72rem;
  }

  .brand-date {
    font-family: var(--home-subtext-font);
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    color: rgba(63, 49, 39, 0.62);
  }

  .site-nav {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.6rem;
    white-space: nowrap;
  }

  .site-nav a {
    font-family: var(--home-subtext-font);
    font-size: 0.78rem;
  }

  .mobile-menu {
    display: none !important;
  }

  body[data-page="home"] .site-header {
    width: calc(100% - 2rem);
    top: 40px;
  }

  body[data-page="home"] .hero-home {
    min-height: 100vh;
    height: 100vh;
    aspect-ratio: auto;
    background-position: center center, center center, center center;
    background-size: contain, auto, cover;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
  }

  .brand-script {
    font-family: var(--home-heading-font);
    font-size: 1.9rem;
  }

  .brand-date {
    font-family: var(--home-subtext-font);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    color: rgba(63, 49, 39, 0.6);
  }

  .site-nav a {
    font-family: var(--home-subtext-font);
    font-size: 0.82rem;
  }

  body[data-page="home"] .site-header {
    width: min(1100px, calc(100% - 48px));
    top: 48px;
  }
}

@media (max-width: 767px) {
  .brand-script {
    font-family: var(--home-heading-font) !important;
    font-size: 1.52rem !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    color: #6f4d22 !important;
    text-shadow: 0 0 1px rgba(247, 240, 227, 0.35);
  }

  .brand-date {
    font-family: var(--home-subtext-font) !important;
    font-size: 0.54rem !important;
    letter-spacing: 0.03em !important;
    color: rgba(63, 49, 39, 0.62) !important;
  }
}
