/* Daniela & Diego reference artwork. Media Library selections override these URLs. */
:root {
  --color-cream: #f0e9dc;
  --color-cream-deep: #ded6c8;
  --color-paper: #f7f2e9;
  --color-olive: #77775e;
  --color-olive-dark: #56583f;
  --color-burgundy: #4a1918;
  --color-burgundy-light: #672923;
  --color-ink: #231f1b;
  --color-muted: #5b554d;
  --color-gold: #a49b6a;
  --color-white: #fffdf7;
  --ddw-cover-paper: url("../images/cover-paper.webp");
  --ddw-light-paper: url("../images/light-paper.webp");
  --ddw-olive-paper: url("../images/olive-paper.webp");
  --ddw-wine-paper: url("../images/wine-paper.webp");
  --ddw-envelope-image: url("../images/envelope.webp");
  --ddw-dress-gown-image: url("../images/dress-gown.png");
  --ddw-dress-suit-image: url("../images/dress-suit.png");
}

body {
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  line-height: 1.65;
}

.ddw-paper {
  background-color: var(--color-paper);
  background-image: var(--ddw-light-paper);
  background-position: center;
  background-size: cover;
}

.ddw-olive {
  background-color: var(--color-olive);
  background-image: var(--ddw-olive-paper);
  background-position: center;
  background-size: cover;
}

.ddw-burgundy {
  background-color: var(--color-burgundy);
  background-image: var(--ddw-wine-paper);
  background-position: center;
  background-size: cover;
}

.ddw-kicker,
.ddw-typewriter {
  font-family: var(--font-typewriter);
  text-transform: none;
}

.ddw-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.ddw-script-heading {
  overflow-wrap: anywhere;
  font-size: clamp(3.1rem, 12vw, 6.5rem);
  letter-spacing: 0;
  line-height: 1.08;
}

.ddw-button {
  min-height: 3.25rem;
  padding-inline: 1.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* The embossed artwork itself forms the border; no synthetic frame is layered over it. */
.ddw-hero {
  min-height: 45rem;
  min-height: 100svh;
  background-color: var(--color-paper);
  background-image: var(--ddw-cover-paper);
  background-position: center;
  background-size: 100% 100%;
}

.ddw-hero__frame,
.ddw-hero__seal {
  display: none;
}

.ddw-hero__content .ddw-kicker {
  margin-bottom: clamp(1rem, 4vw, 2.5rem);
  font-size: 0.68rem;
}

.ddw-hero__content {
  width: min(100%, 70rem);
  padding-inline: var(--space-sm);
}

.ddw-hero__title {
  font-size: clamp(4rem, 18vw, 10rem);
  line-height: 0.98;
}

.ddw-ampersand {
  color: var(--color-ink);
  font-size: 0.55em;
}

.ddw-hero__details {
  right: clamp(2.25rem, 8vw, 8rem);
  bottom: clamp(5.5rem, 22vw, 9.5rem);
  left: clamp(2.25rem, 8vw, 8rem);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* On phones the olive spread becomes a deliberate vertical composition. */
.ddw-intro {
  min-height: 43rem;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.ddw-intro__layout {
  gap: clamp(2rem, 8vw, 5rem);
}

.ddw-intro__heading {
  max-width: 100%;
}

.ddw-intro__heading .ddw-script-heading {
  max-width: 16ch;
  color: var(--color-white);
  font-size: clamp(3.4rem, 13vw, 7rem);
}

.ddw-intro__photo {
  width: min(68vw, 20rem);
  aspect-ratio: 3 / 4;
}

.ddw-intro__copy {
  width: min(100%, 30rem);
}

.ddw-intro__copy p {
  font-size: clamp(0.82rem, 2.6vw, 1rem);
  letter-spacing: 0.015em;
  line-height: 1.75;
  text-transform: none;
}

.ddw-intro__guest-list {
  max-width: 26rem;
  font-size: 0.8rem;
  text-transform: none;
}

.ddw-intro__date {
  font-family: var(--font-typewriter);
  font-size: 0.82rem;
}

/* The supplied burgundy envelope sits behind an off-white printed card. */
.ddw-editorial::after {
  background: rgb(0 0 0 / 18%);
}

.ddw-editorial__composition {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.ddw-envelope {
  --ddw-static-transform: rotate(-5deg);
  z-index: 0;
  width: min(65vw, 20rem);
  aspect-ratio: 561 / 701;
  margin: 0 0 -5rem -15vw;
  border: 0;
  background: transparent var(--ddw-envelope-image) center / contain no-repeat;
  box-shadow: none;
}

.ddw-invitation-card {
  z-index: 1;
  width: min(90vw, 32rem);
  padding: clamp(2.5rem, 8vw, 4.5rem) clamp(1.4rem, 5vw, 3.5rem);
  border: 0.5rem double #e9e4da;
  background-color: var(--color-paper);
  text-align: center;
}

.ddw-invitation-card::before {
  inset: 0.35rem;
  border-color: #d8d1c2;
}

.ddw-invitation-card__names {
  font-size: clamp(3rem, 13vw, 5.5rem);
  line-height: 1.05;
}

.ddw-invitation-card__names span {
  color: var(--color-ink);
}

.ddw-invitation-card__message {
  font-size: 0.78rem;
  letter-spacing: 0.005em;
  line-height: 1.65;
  text-transform: none;
}

.ddw-parents {
  margin-block: var(--space-xl);
}

.ddw-parents span,
.ddw-invitation-card__venue span {
  font-size: 0.68rem;
  text-transform: none;
}

.ddw-parents p,
.ddw-invitation-card__venue strong {
  font-family: var(--font-typewriter);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
}

.ddw-invitation-card__date {
  font-family: var(--font-typewriter);
  font-size: clamp(1.3rem, 6vw, 2rem);
}

/* A light/photo split echoes the next spread in the printed reference. */
.ddw-countdown-panel {
  min-height: 42rem;
}

.ddw-countdown-panel__photo {
  width: min(65vw, 18rem);
}

.ddw-countdown-panel .ddw-script-heading {
  font-size: clamp(2.9rem, 11vw, 5rem);
}

.ddw-countdown strong {
  font-family: var(--font-typewriter);
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 400;
}

.ddw-countdown span {
  font-size: 0.65rem;
  text-transform: none;
}

.ddw-schedule-card {
  width: min(87vw, 27rem);
}

.ddw-schedule-card h2 {
  font-size: clamp(3.3rem, 11vw, 5rem);
  line-height: 1.05;
}

.ddw-schedule-list span {
  font-family: var(--font-typewriter);
  font-size: 0.88rem;
}

.ddw-schedule-list time {
  font-size: 0.75rem;
}

.ddw-passes {
  min-height: 40rem;
  min-height: 82svh;
}

.ddw-passes__number strong {
  font-family: var(--font-typewriter);
  font-size: clamp(7rem, 32vw, 14rem);
}

.ddw-passes__number span,
.ddw-passes__public {
  font-size: 0.8rem;
  text-transform: none;
}

.ddw-dress {
  min-height: 40rem;
}

.ddw-dress .ddw-kicker {
  display: none;
}

.ddw-dress__level {
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}

.ddw-dress__inner > p:not(.ddw-kicker) {
  font-size: 0.83rem;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.ddw-dress__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 2vw, 1rem);
  margin-block: var(--space-xl);
}

.ddw-dress__figure {
  display: block;
  width: min(7.5rem, 31vw);
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.ddw-dress__figure--gown {
  background-image: var(--ddw-dress-gown-image);
}

.ddw-dress__figure--suit {
  background-image: var(--ddw-dress-suit-image);
}

.ddw-gifts {
  background-color: var(--color-olive);
  background-image: var(--ddw-olive-paper);
  background-position: center;
  background-size: cover;
}

.ddw-gifts__editorial::after {
  background: transparent;
}

.ddw-gifts__card {
  width: min(82vw, 24rem);
  min-height: 31rem;
  padding-block: var(--space-2xl);
}

.ddw-gifts__lead {
  font-size: 0.82rem;
  text-transform: none;
}

.ddw-gifts__card > p:not(.ddw-kicker) {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
}

.ddw-gifts__photo {
  width: min(70vw, 23rem);
  aspect-ratio: 3 / 4;
}

.ddw-gallery {
  min-height: 35rem;
}

.ddw-gallery::after {
  background: rgb(0 0 0 / 6%);
}

.ddw-polaroid {
  width: min(59vw, 19rem);
  padding: var(--space-xs);
}

.ddw-polaroid__image {
  aspect-ratio: 3 / 2;
}

.ddw-rsvp {
  padding-top: clamp(4rem, 10vw, 8rem);
}

.ddw-rsvp__photo {
  width: min(70vw, 27rem);
  aspect-ratio: 4 / 3;
}

.ddw-rsvp__lead,
.ddw-rsvp__deadline {
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.ddw-rsvp__deadline strong {
  font-weight: 700;
}

.ddw-modal__name {
  font-family: var(--font-typewriter);
  font-size: 1.1rem;
}

/* A narrower phone needs independent sizes, not a reduced desktop spread. */
@media (max-width: 22.49rem) {
  .ddw-hero__title {
    font-size: clamp(3.5rem, 19vw, 4.5rem);
  }

  .ddw-hero__details {
    right: 2rem;
    left: 2rem;
    font-size: 0.62rem;
  }

  .ddw-invitation-card {
    padding-inline: 1rem;
  }

  .ddw-schedule-card {
    padding-inline: 1.25rem;
  }

	.ddw-schedule-list li {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.25rem;
	}

	.ddw-schedule-list--single li {
		align-items: center;
		text-align: center;
	}
}

@media (min-width: 48rem) {
  .ddw-hero__title {
    font-size: clamp(5rem, 11vw, 10rem);
  }

  .ddw-intro__layout {
    grid-template-columns: 0.9fr 1fr;
  }

  .ddw-intro__heading {
    grid-column: 1 / -1;
  }

  .ddw-intro__photo {
    width: min(36vw, 23rem);
  }

  .ddw-editorial__composition {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 0;
  }

  .ddw-envelope {
    width: min(40vw, 29rem);
    margin: 3rem -4rem 0 0;
    justify-self: end;
  }

  .ddw-invitation-card {
    width: min(47vw, 34rem);
  }

  .ddw-layout-editorial-left .ddw-envelope {
    margin: 3rem 0 0 -4rem;
  }

  .ddw-polaroid {
    width: min(33vw, 21rem);
  }

  .ddw-rsvp__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 64rem) {
  .ddw-intro__layout {
    grid-template-columns: 0.8fr 1fr 0.85fr;
  }

  .ddw-intro__heading {
    grid-column: auto;
  }

  .ddw-intro__photo {
    width: min(29vw, 23rem);
  }

  .ddw-intro__copy {
    align-self: center;
  }

  .ddw-editorial {
    min-height: 68rem;
  }

  .ddw-envelope {
    width: min(35vw, 30rem);
  }

  .ddw-invitation-card {
    width: min(40vw, 35rem);
  }

  .ddw-countdown-panel,
  .ddw-schedule-panel {
    min-height: 52rem;
  }

  .ddw-gifts__editorial,
  .ddw-gifts__portrait {
    min-height: 45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ddw-envelope,
  .ddw-invitation-card,
  .ddw-schedule-card,
  .ddw-gifts__card,
  .ddw-polaroid {
    scroll-behavior: auto;
  }
}
