@font-face {
  font-family: "Embassy BJ";
  src: url("../fonts/embassy-bt.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni 72 Book";
  src: url("../fonts/bodoni-72-book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Academy Engraved LET";
  src: url("../fonts/AcademyEngravedLetPlain.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-background: #f6f1e8;
  --color-text: #2a2520;
  --color-muted: #6d7d35;
  --color-accent: #b4c24c;
  --color-accent-dark: #899235;
  --section-space: clamp(3rem, 7vw, 6rem);
  --content-pad: clamp(1rem, 4vw, 2.5rem);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-bodoni: "Bodoni 72 Book", "Times New Roman", serif;
  --font-academy: "Academy Engraved LET", var(--font-bodoni);
  --font-serif-story: var(--font-bodoni);
  --font-source-serif: "Source Serif 4", "Times New Roman", serif;
  --font-script: "Embassy BJ", "Palatino Linotype", cursive;
  --font-sans: "Montserrat", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-sans-condensed: "Noto Sans Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-background);
  background-image: url("../decoraciones/Fondo-papel.png");
  background-repeat: repeat;
  background-size: 540px auto;
}

body.is-open {
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.is-hidden {
  visibility: hidden;
}

.envelope-screen {
  --envelope-color: #d9deb8;
  --envelope-button-top: 58%;
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--envelope-color);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.envelope-screen.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-stage {
  position: relative;
  width: min(100%, 23.625rem);
}

.envelope-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.envelope-screen.is-open .envelope-image {
  opacity: 0;
  transform: scale(0.985) translateY(0.5rem);
  transition: opacity 0.35s ease, transform 0.7s ease;
}

.seal-button {
  position: absolute;
  left: 50%;
  top: var(--envelope-button-top);
  z-index: 2;
  width: 5.75rem;
  height: 5.75rem;
  border: 0;
  border-radius: 50%;
  background: #f5f1d4;
  color: #a9b1d3;
  font-size: 1.15rem;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateX(-50%);
  box-shadow: 0 8px 20px rgba(54, 49, 35, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.seal-button:hover,
.seal-button:focus-visible {
  background: #fffdf1;
  transform: translateX(-50%) translateY(-0.2rem);
  box-shadow: 0 18px 30px rgba(54, 49, 35, 0.22);
}

@media (min-width: 700px) {
  .envelope-screen {
    --envelope-button-top: 58.5%;
  }

  .envelope-stage {
    width: min(100%, 24rem);
  }
}

.site-shell {
  opacity: 1;
  transition: opacity 0.8s ease;
  overflow-x: hidden;

  /* ── Canvas ── */
  --canvas-max: 67.5rem;
  --content-pad: clamp(1rem, 4vw, 2.5rem);

  /* ── Image & Icon scale ── */
  --img-logo:        clamp(18rem, 42vw, 34rem);
  --img-main:        min(100%, clamp(24rem, 78vw, 62rem));
  --img-gallery:     min(100%, clamp(28rem, 74vw, 62rem));
  --img-final:       min(100%, clamp(32rem, 80vw, 68rem));
  --img-icon:        clamp(5rem, 10vw, 7rem);

  /* ── Floral (overflow-by-design) ── */
  --floral-event-w:   min(150%, 87.5rem);
  --floral-rsvp-w:    min(150vw, 72rem);
  --floral-overlap-w: clamp(115%, 12vw + 100%, 135%);

  /* ── Typography ── */
  --type-script-xl:  clamp(4rem, 8vw, 7.125rem);
  --type-script-lg:  clamp(2.2rem, 6vw, 4rem);
  --type-serif-xl:   clamp(2rem, 5.5vw, 5rem);
  --type-time:       clamp(1.75rem, 4.3vw, 3.875rem);
  --type-body-lg:    clamp(1rem, 1.94vw, 1.75rem);
  --type-body-md:    clamp(0.875rem, 1.6vw, 1.28rem);
  --type-button:     clamp(0.875rem, 1.4vw, 1.25rem);

  /* ── Spacing ── */
  --space-section-y: clamp(2rem, 5vw, 4rem);
  --space-card-y:    clamp(2rem, 4vw, 3rem);
  --space-card-x:    clamp(1rem, 3vw, 2.5rem);

  /* ── Backward-compatible Aliases (Prevents regressions) ── */
  --logo-size:                  var(--img-logo);
  --photo-main-width:           var(--img-main);
  --photo-gallery-width:        var(--img-gallery);
  --photo-final-width:          var(--img-final);
  --icon-size:                  var(--img-icon);
  --floral-event-width:         var(--floral-event-w);
  --floral-rsvp-width:          var(--floral-rsvp-w);
  --floral-photo-overlap-width: var(--floral-overlap-w);
}

/* ── Laptop global scale overrides ── */
@media (min-width: 1200px) {
  .site-shell {
    --canvas-max: clamp(67.5rem, 82vw, 82rem);
    --content-pad: clamp(2rem, 3vw, 3rem);

    --img-logo:    clamp(34rem, 32vw, 42rem);
    --img-main:    min(100%, clamp(58rem, 85vw, 74rem));
    --img-gallery: min(100%, clamp(62rem, 80vw, 72rem));
    --img-final:   min(100%, clamp(64rem, 85vw, 78rem));
    --img-icon:    clamp(7rem, 6vw, 9rem);

    --type-script-xl:  clamp(7.125rem, 9vw, 8.5rem);
    --type-serif-xl:   clamp(5rem, 5.5vw, 6rem);
    --type-time:       clamp(3.875rem, 4.3vw, 4.5rem);
    --type-body-lg:    clamp(1.75rem, 2.2vw, 2rem);
    --type-button:     clamp(1.25rem, 1.5vw, 1.375rem);

    --space-section-y: clamp(3rem, 4vw, 5rem);
    --space-card-y:    clamp(2.5rem, 3vw, 3.5rem);
  }
}

/* ── Desktop Canvas cap ── */
@media (min-width: 1536px) {
  .site-shell {
    --canvas-max: 82rem;
  }
}

.site-shell.is-visible {
  visibility: visible;
}

.site-shell .section {
  position: relative;
  width: min(100%, var(--canvas-max));
  min-height: 100vh;
  margin-inline: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-shell .section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding-inline: var(--content-pad);
}

.section__inner--narrow {
  max-width: none;
}

.section--rsvp .section__inner--narrow {
  max-width: 38rem;
  margin-inline: auto;
}

.site-shell .hero {
  padding-block: 0;
  text-align: center;
  justify-content: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 1rem 1.5rem;
  position: relative;
  z-index: 1;
}

.hero__logo {
  width: var(--img-logo);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero__decor {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.hero__decor--top {
  top: 0;
}

.hero__decor--bottom {
  bottom: 0;
}

.section__decor {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.section--rsvp .section__decor--rsvp-mid {
  left: 50%;
  width: var(--floral-rsvp-width);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.section__decor--top {
  top: 0;
}

.section__decor--bottom {
  bottom: 0;
}

.eyebrow,
.hero__date {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--color-muted);
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
}

h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0;
  line-height: 1.7;
}

.script-heading,
.monogram__and,
.monogram__letter {
  font-family: var(--font-script);
}

.script-heading {
  color: var(--color-muted);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.1;
}

.monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: 12rem;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  border: 4px solid #111;
  border-radius: 50%;
}

.monogram--large {
  width: min(60vw, 17rem);
}

.monogram::before,
.monogram::after {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50% 50% 10% 50%;
  border: 3px solid #111;
  border-top: 0;
  border-right: 0;
}

.monogram::before {
  left: -0.3rem;
  top: 55%;
  transform: rotate(-35deg);
}

.monogram::after {
  right: -0.1rem;
  top: 18%;
  transform: rotate(140deg);
}

.monogram__letter {
  position: absolute;
  font-size: clamp(4rem, 12vw, 6.8rem);
  line-height: 1;
}

.monogram__letter--left {
  left: 1.15rem;
  top: 1.35rem;
}

.monogram__letter--right {
  right: 1.5rem;
  bottom: 0.5rem;
}

.monogram__and {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-style: italic;
}

.hero__intro {
  max-width: 34rem;
  margin: 1rem auto 0;
}

.photo-card {
  position: relative;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.photo-card__decor {
  position: absolute;
  top: -16%;
  left: 50%;
  transform: translateX(-50%);
  width: var(--floral-photo-overlap-width) !important;
  height: auto !important;
  max-width: none;
  z-index: 2;
  pointer-events: none;
}

.photo-card__img {
  position: relative;
  z-index: 1;
}


.section--photo {
  padding-block: 0;
  text-align: center;
  justify-content: center;
  min-height: auto;
  margin-bottom: clamp(2rem, 10vw, 5rem);
}

.photo__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: 0;
  position: relative;
  z-index: 1;
}

.photo__decor {
  display: none;
}

.photo-card--portrait {
  width: var(--img-main);
  margin: 0 auto;
}

.section--photo .photo-card__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.section--story {
  width: 100%;
  max-width: var(--canvas-max);
  height: auto;
  min-height: auto;
  margin: 0 auto clamp(0.75rem, 3vw, 1.5rem);
  padding: 8% 0;
  box-sizing: border-box;
  font-family: var(--font-serif-story);
}

.site-shell .section.section--story {
  padding-bottom: clamp(5rem, 18vw, 7rem);
}

.section--story>.story-panel {
  background-color: #fffbd3;
  width: min(82%, 100rem);
  max-width: 1200px;
  margin-inline: auto;
  height: 100rem;
  min-height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(3rem, 11vw, 4.8rem);
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: clamp(8rem, 14vw, 11rem);
  text-align: center;
}

@media (max-width: 380px) {
  .section--story>.story-panel {
    width: 87%;
  }
}

.section--story>.story-panel h2,
.section--story>.story-panel h3 {
  font-family: var(--font-serif-story);
  color: #7a7e43;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.18;
}

.section--story>.story-panel h2 {
  font-size: clamp(1.42rem, 4.3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.05rem, 3.4vw, 1.45rem);
}

.section--story>.story-panel>p br,
.section--story>.story-panel .story-message p br {
  display: none;
}

.site-shell .section--story>.story-panel .story-columns .story-message h2,
.site-shell .section--story>.story-panel .story-columns .story-message h3 {
  font-size: clamp(1.34rem, 3.9vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: clamp(0.75rem, 2.2vw, 1rem) !important;
}

.section--story>.story-panel>p {
  font-family: var(--font-serif-story);
  font-size: clamp(1.28rem, 4.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.22;
  margin-bottom: 1.25rem;
  margin-inline: auto;
  max-width: 33ch;
  text-align: center;
  color: #111111;
}

.section--story>.story-panel .story-message p {
  font-family: var(--font-serif-story);
  font-size: clamp(1.24rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 0;
  margin-inline: auto;
  max-width: 31ch;
  text-align: center;
  color: #111111;
}

.section--story .story-rings {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: min(65%, 440px);
  max-width: 440px;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.section--date {
  padding-top: clamp(64px, 14vw, 120px);
  margin-top: clamp(3rem, 15vw, 8rem);
}

.section--date .section__inner {
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.section--date>.section__inner>.script-heading {
  font-size: min(160px, 37vw);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.section--location {
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: -3px;
  margin-bottom: -3px;
}

.section--photo .section__inner,
.section--story .section__inner,
.section--date .section__inner,
.section--location .section__inner,
.section--gallery .section__inner,
.section--schedule .section__inner,
.section--rsvp .section__inner,
.section--closing .section__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--content-pad);
}

.section--location .section__inner {
  margin-top: clamp(2rem, 8vw, 4rem);
  margin-bottom: clamp(2rem, 8vw, 4rem);
}

.site-shell .section--closing {
  min-height: auto;
  padding-bottom: 2rem;
}

.details-grid,
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.section--gallery .section__inner {
  padding-top: 0;
}

.section--gallery .gallery-grid {
  margin-top: 0;
}

.section--schedule .details-grid {
  margin-bottom: 32px;
}

.section--story>.story-panel .story-columns {
  display: grid;
  gap: clamp(1.7rem, 5vw, 2.4rem);
  margin-top: clamp(1.8rem, 5.2vw, 2.3rem);
}


.section--story>.story-panel .story-columns .story-message,
.detail-card,
.event-card,
.countdown-card {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.event-card {
  padding-block: clamp(3rem, 10vw, 5rem);
}

.event-card>*:not(.event-card__decor) {
  position: relative;
  z-index: 1;
}

.event-card__decor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--floral-event-width) !important;
  max-width: none;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.event-card__decor--top {
  top: 0;
}

.event-card__decor--bottom {
  bottom: 0;
}

.section--story>.story-panel .story-columns .story-message h3,
.detail-card h3,
.event-card h3 {
  margin-bottom: 0.75rem;
}

.section--location p,
.section--schedule p,
.section--rsvp p,
.timeline__item p {
  max-width: 50rem;
  margin-inline: auto;
}

.section--story>.story-panel p {
  position: relative;
  z-index: 4;
}

.date-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 3vw, 2rem);
  margin: 1rem 0 2.75rem;
  text-align: center;
}

.date-highlight__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.date-highlight__item strong {
  font-size: min(42px, 10vw);
}

.date-highlight__line {
  width: clamp(2.5rem, 12vw, 5rem);
  height: 2px;
  background: currentColor;
}

.date-highlight__day {
  font-family: var(--font-academy);
  font-size: min(175px, 42vw);
  line-height: 0.96;
}

.countdown-card {
  margin-bottom: clamp(2.9rem, 7vw, 4.75rem);
}

.countdown-card h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 1.15rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(0.2rem, 2vw, 0.9rem);
  text-align: center;
  width: 100%;
}

.countdown-grid span {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 7vw, 2.05rem);
  line-height: 1.05;
}

.countdown-grid small {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.2vw, 0.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-card,
.detail-card,
.section--rsvp {
  text-align: center;
}

.event-card__icon,
.detail-card__icon,
.section-icon {
  width: var(--img-icon);
  height: auto;
  margin: 0 auto 1rem;
}

.detail-card__icon--dress {
  width: var(--img-icon);
}

.event-card__time {
  font-family: var(--font-sans);
  color: var(--color-muted);
  font-size: 1.8rem;
  font-weight: 700;
}

.section--date .date-highlight__line {
  height: 1px;
}

.section--date .date-highlight__item {
  letter-spacing: 0.12em;
  font-weight: 500;
}

.section--date .countdown-card h3 {
  font-size: min(80px, 19vw);
  font-family: var(--font-bodoni);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.section--date .countdown-grid span {
  font-size: clamp(28px, 3.704vw, 40px);
  font-weight: 500;
  color: var(--color-text);
}

.section--date .countdown-grid small {
  font-size: clamp(12px, 1.389vw, 15px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #111111;
  margin-top: 0.35rem;
  display: block;
}

.section--date .event-card--misa {
  padding-block: clamp(2.5rem, 8vw, 4rem);
}

.section--date .event-card__decor--top {
  top: clamp(9.8rem, 24vw, 12.2rem);
}

.section--date .event-card__icon {
  margin-bottom: 1.35rem;
}

.section--date .event-card .script-heading {
  margin-bottom: clamp(5px, 0.593vw, 6.4px);
  font-size: var(--type-script-xl);
  line-height: 1.12;
}

.section--date .event-card__time {
  font-size: var(--type-time);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: clamp(7px, 0.741vw, 8px);
}

.section--date .event-card h3 {
  font-size: var(--type-serif-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: clamp(-1px, -0.093vw, -0.64px);
  margin-bottom: clamp(10px, 1.185vw, 12.8px);
}

.section--date .event-card p:not(.script-heading):not(.event-card__time) {
  font-size: var(--type-body-lg);
  line-height: 1.5;
  color: #111111;
  max-width: 34ch;
  margin-inline: auto;
  font-weight: 700;
}

.section--date .event-card .button {
  margin-top: 1.25rem;
  font-size: var(--type-button);
  letter-spacing: 0.08em;
}

.section--location .event-card--location {
  padding-block: clamp(2.5rem, 8vw, 4rem);
}

.section--location .event-card__decor--bottom {
  top: clamp(11.5rem, 28vw, 14.5rem);
  bottom: auto;
}

.section--location .event-card__icon {
  margin-bottom: 1.35rem;
}

.section--location .event-card .script-heading {
  margin-bottom: 0.4rem;
  font-size: var(--type-script-xl);
  line-height: 1.12;
}

.section--location .event-card__time {
  font-size: var(--type-time);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.section--location .event-card h3 {
  font-size: var(--type-serif-xl);
  font-weight: 600;
  line-height: normal;
  letter-spacing: -3px;
  margin-bottom: 0.8rem;
  color: #111111;
}

.section--location .event-card p:not(.script-heading):not(.event-card__time) {
  font-size: var(--type-body-lg);
  line-height: 1.5;
  color: #111111;
  max-width: 34ch;
  margin-inline: auto;
  font-weight: 700;
}

.section--location .event-card .button {
  margin-top: 1.25rem;
  font-size: var(--type-button);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section--rsvp .script-heading {
  margin-bottom: 0.8rem;
  font-size: var(--type-script-xl);
  line-height: 1.12;
  position: relative;
  z-index: 2;
}

.section--rsvp p {
  font-size: var(--type-body-lg);
  line-height: 1.5;
  color: #111111;
  max-width: 36ch;
  margin-inline: auto;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.section--rsvp .button {
  font-size: var(--type-button);
  letter-spacing: 1px;
  align-self: center;
  margin-top: 1.5rem;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 13rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-0.15rem);
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section--schedule,
.section--schedule h2,
.section--schedule h3,
.section--schedule p,
.section--date .date-highlight,
.section--date .countdown-card,
.section--date .countdown-grid,
.section--location .event-card,
.section--location .event-card p:not(.script-heading) {
  font-family: var(--font-sans);
}

.section--schedule h2 {
  font-weight: 600;
  line-height: 1.2;
}

.section--schedule h3,
.timeline__item h3,
.section--location .event-card h3 {
  font-weight: 600;
  line-height: 1.2;
}

.section--schedule p,
.timeline__item p {
  font-weight: 400;
  line-height: 1.25;
}

.section--schedule .detail-card:not(.gift-card) h3 {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: min(2.5rem, 15.5vw);

  color: #a1ac4e;
  letter-spacing: -0.015em;
  word-spacing: -0.06em;
  line-height: 1.25;
  display: inline-block;
  transform: scaleX(0.9);
  transform-origin: center;
  text-rendering: optimizeLegibility;
}

.section--schedule .detail-card:not(.gift-card) p {
  color: #111111;
  font-weight: 500;
  font-size: clamp(1.05rem, 6vw, 2.0625rem) !important;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.timeline__item {
  padding: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.timeline__item h3 {
  margin-bottom: 0.35rem;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  width: 350px;
  height: 55px;
  margin-inline: auto;
}

.color-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.color-dot--blue {
  background: #c7dbf3;
}

.color-dot--yellow {
  background: #f2de96;
}

.color-dot--peach {
  background: #f2c8bb;
}

.color-dot--terracotta {
  background: #dc8757;
}

.color-palette-img {
  border: 0px solid #000000;
  margin-top: 30px !important;
  margin-bottom: 30px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

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

  .hero__inner {
    min-height: min(100svh, 52rem);
    justify-content: center;
    padding-top: clamp(4rem, 18vw, 7rem);
    padding-bottom: clamp(2rem, 10vw, 4rem);
  }

  .site-shell .section.section--rsvp {
    min-height: auto;
  }

  .site-shell .section.section--location {
    min-height: auto;
  }

  .site-shell .section.section--date {
    min-height: auto;
  }

  .section--location .section__inner {
    justify-content: flex-start;
    margin-top: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: clamp(2rem, 8vw, 3.5rem);
  }

  .site-shell .section--rsvp .section__inner {
    height: auto;
    justify-content: flex-start;
    padding-top: clamp(5.5rem, 16vw, 7rem);
    padding-bottom: clamp(2rem, 10vw, 3rem);
  }

  .section--date {
    padding-top: clamp(2.5rem, 12vw, 4rem);
    margin-top: clamp(2rem, 10vw, 3.5rem);
  }

  .section--date > .section__inner > .script-heading {
    font-size: clamp(4.25rem, 24vw, 5.75rem);
  }

  .date-highlight__day {
    font-size: clamp(5rem, 30vw, 7rem);
  }

  .section--date .countdown-card h3 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .section--story > .story-panel {
    height: auto;
    min-height: clamp(52rem, 145vw, 60rem);
  }

  .site-shell .section.section--gallery {
    min-height: auto;
  }

  .section--gallery .section__inner {
    height: auto;
    justify-content: flex-start;
    padding-top: 0;
  }

  .section--gallery .gallery-grid {
    margin-top: 0;
  }

  .site-shell .section.section--photo {
    min-height: auto;
  }

  .section--photo .section__inner {
    padding-inline: clamp(0.35rem, 1.5vw, 0.5rem);
  }

  .section--photo .photo__inner {
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
  }

  .section--photo .photo-card--portrait {
    width: 100%;
    max-width: none;
    aspect-ratio: 39 / 50;
    overflow: hidden;
  }

  .section--photo .photo-card--portrait .photo-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
  }

  .site-shell .section.section--schedule {
    --photo-schedule-mobile-overlap: clamp(0.75rem, 3vw, 1.75rem);
    min-height: auto;
    margin-top: 0;
    top: calc(var(--photo-schedule-mobile-overlap) * -1);
  }

  .section--schedule .section__inner {
    height: auto;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: clamp(1rem, 5vw, 2rem);
  }

  .section--schedule .details-grid {
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .site-shell .section.section--closing {
    min-height: auto;
    padding-bottom: clamp(1rem, 5vw, 2rem);
  }

  .section--closing .section__inner {
    height: auto;
    justify-content: flex-start;
    padding-inline: clamp(0.35rem, 1.5vw, 0.5rem);
    padding-top: 0;
    padding-bottom: 0;
  }

  .section--closing .photo-card--closing {
    width: 100%;
    margin: 0;
  }

  .section--closing .photo-card--closing .photo-card__img {
    display: block;
    width: 100%;
    height: auto;
  }

  .photo-card__decor {
    top: -35%;
    width: 135% !important;
  }
}

@media (min-width: 700px) {
  .site-shell .hero {
    --hero-logo-offset-top: clamp(11rem, 22vw, 15rem);
  }

  .hero__inner {
    justify-content: flex-start;
    padding-top: var(--hero-logo-offset-top);
    padding-bottom: clamp(3rem, 8vw, 5rem);
  }

  .site-shell .section.section--gallery {
    --gallery-photo-width: min(100%, 32rem);
    min-height: auto;
  }

  .section--gallery .section__inner {
    height: auto;
    justify-content: flex-start;
    padding-top: 0;
  }

  .section--gallery .gallery-grid {
    grid-template-columns: minmax(0, var(--gallery-photo-width));
    justify-content: center;
    margin-top: 0;
  }

  .site-shell .section.section--schedule {
    --gallery-schedule-overlap: clamp(1rem, 3vw, 2rem);
    min-height: auto;
    margin-top: 0;
    top: calc(var(--gallery-schedule-overlap) * -1);
  }

  .section--schedule .section__inner {
    height: auto;
    justify-content: flex-start;
    padding-top: 0;
  }

  .section--schedule .details-grid {
    margin-top: 0;
    margin-bottom: 0;
  }

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

@media (min-width: 960px) {
  .site-shell .hero {
    --hero-logo-offset-top: clamp(16rem, 30vh, 22rem);
  }

  .site-shell .section.section--gallery {
    --gallery-photo-width: min(100%, 34rem);
  }

  .site-shell .section.section--schedule {
    --gallery-schedule-overlap: clamp(1.25rem, 3vw, 2.25rem);
  }

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

@media (min-width: 1200px) {
  .section--gallery .gallery-grid {
    --gallery-photo-width: var(--photo-gallery-width);
  }

  .section--story>.story-panel {
    width: min(85%, 100rem);
  }

  .section--schedule .details-grid {
    width: min(100%, 100rem);
  }

  .section--rsvp .section__inner--narrow {
    max-width: 44rem;
    margin-inline: auto;
  }

  .section--rsvp .section__decor--rsvp-mid {
    width: var(--floral-rsvp-width);
    max-width: none;
  }
}

.section--rsvp .section__inner {
  padding-top: clamp(9rem, 24vw, 11rem);
}

@media (min-width: 700px) {

  .site-shell .section.section--date,
  .site-shell .section.section--location,
  .site-shell .section.section--rsvp {
    min-height: auto;
  }

  .section--date {
    padding-top: clamp(2rem, 5vw, 4rem);
    margin-top: clamp(2rem, 5vw, 4rem);
  }

  .section--date .section__inner {
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
  }

  .section--location .section__inner {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: clamp(1.5rem, 3.5vw, 2.75rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .site-shell .section--rsvp .section__inner {
    padding-top: clamp(2rem, 4vw, 3.25rem);
  }

  .section--date .event-card--misa,
  .section--location .event-card--location {
    padding-block: clamp(2rem, 4vw, 3rem);
  }

  .section--date .event-card__decor,
  .section--location .event-card__decor {
    width: var(--floral-event-width) !important;
  }

  .section--rsvp .section__decor--rsvp-mid {
    width: var(--floral-rsvp-width);
  }
}

.section--gallery .photo-card .photo-card__decor {
  top: auto;
  bottom: -16%;
}

.section--gallery .photo-card {
  width: 100%;
  margin: 0;
}

.section--gallery .photo-card__img {
  display: block;
  width: 100%;
  height: auto;

  object-fit: cover;
}

.section--schedule {
  position: relative;
  z-index: 10;
  margin-top: clamp(-4rem, -6vw, -1.75rem);
}

.section--schedule .details-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.25rem);
  width: min(100%, 100rem);
  height: 100rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4.5vw, 2.5rem);
  background: #fffbd3;
  border: 1px solid rgba(181, 175, 117, 0.28);
  border-radius: 0;
  box-shadow: 0 1rem 2.4rem rgba(119, 113, 77, 0.12);
}

.section--schedule .detail-card {
  width: 100%;
  margin: 0;
}

.section--schedule .gift-card {
  text-align: center;
}

.section--schedule .gift-card h1 {
  font-family: var(--font-bodoni);
  font-weight: 900;
  font-size: clamp(1.45rem, 4.5vw, 3.125rem);
  color: #111111;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.14;
}

.section--schedule .gift-card h2 {
  font-family: var(--font-bodoni);
  font-weight: 900;
  font-size: clamp(1.45rem, 4.5vw, 2.5625rem);
  color: #111111;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.14;
}

.section--schedule .gift-card p {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.04rem, 3.9vw, 2.0625rem);
  line-height: 1.24;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}

.section--schedule .gift-card p:last-child {
  margin-bottom: 0;
}

.section--closing .section__inner {
  align-items: center;
  padding-inline: clamp(0.35rem, 1.5vw, 0.5rem);
  padding-top: 0;
  padding-bottom: 0;
}

.section--closing .photo-card--closing {
  width: var(--img-final);
  margin: 0 auto;
}

.section--closing .photo-card--closing .photo-card__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}