/* ═══════════════════════════════════════════════════════════════════════
   Margarita & Luke — wedding website
   Palette and type scale measured from the reference layout:
     paper  #ffffff → #f4f3f1 → #ede5dd (rsvp)
     ink    #231f1a, soft #3a342e, hairline #c9c3b9
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Young Baroque';
  src: url('../fonts/young-baroque-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #f4f3f1;
  --paper-3: #ede5dd;
  --ink: #231f1a;
  --ink-soft: #3a342e;
  --rule: #c9c3b9;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', cursive;

  /* consistent breathing room without turning each section into a full screen */
  --bay: clamp(3.5rem, 7vh, 5rem);
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --home-section-space: clamp(3rem, 5.5vh, 4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18.6px;
  line-height: 1.29;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-home {
  background-image: url('../images/backgrounds/paper.png');
  background-position: center top;
  background-repeat: repeat;
  background-size: 720px auto;
}


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

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

/* ────────────────────────────── primitives ────────────────────────────── */

.wrap {
  width: min(100% - var(--gutter) * 2, 1230px);
  margin-inline: auto;
  text-align: center;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.4;
}

.italic {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0;
}

/* letterspaced caps — the workhorse label of the reference */
.label {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0;
  font-size: 1.143rem; /* 21.3px */
  line-height: 1.36;
}

.label--lg {
  font-size: 1.143rem;
}

.label--sm {
  font-size: 0.85rem; /* 15.8px */
  letter-spacing: 0.06em;
}

/* hairline outline button */
.ghost {
  display: inline-block;
  border: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  padding: 0.95em 2.1em;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.ghost:hover,
.ghost:focus-visible {
  background: var(--ink);
  color: var(--paper-2);
}

.calendar-menu {
  position: relative;
  display: inline-block;
  width: max-content;
  color: var(--ink);
  text-align: left;
}

.calendar-menu summary,
.event-button {
  display: inline-block;
  list-style: none;
  border: 1px solid var(--rule);
  padding: 0.65em 1.1em;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.calendar-menu summary::-webkit-details-marker {
  display: none;
}

.calendar-menu summary::after {
  content: '+';
  margin-left: 0.65rem;
}

.calendar-menu[open] summary::after {
  content: '\2212';
}

.calendar-menu summary:hover,
.calendar-menu summary:focus-visible,
.event-button:hover,
.event-button:focus-visible {
  background: var(--ink);
  color: var(--paper-2);
}

.calendar-menu__options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.45rem);
  left: 50%;
  width: max-content;
  min-width: 10.5rem;
  transform: translateX(-50%);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  box-shadow: 0 10px 24px rgba(35, 31, 26, 0.1);
}

.calendar-menu__options a {
  display: block;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}

.calendar-menu__options a + a {
  border-top: 1px solid var(--rule);
}

.calendar-menu__options a:hover,
.calendar-menu__options a:focus-visible {
  background: rgba(35, 31, 26, 0.07);
}


[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ───────────────────────────────── nav ───────────────────────────────── */

.nav {
  height: 4.5rem;
  background: var(--paper);
  padding: 1.5rem var(--gutter);
}

.nav ul,
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.8rem, 1.8vw, 1.8rem);
}

.nav a,
.foot a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav a:hover,
.foot a:hover,
.nav a:focus-visible,
.foot a:focus-visible {
  border-bottom-color: var(--rule);
}

.nav .is-current,
.foot .is-current {
  font-style: italic;
  font-weight: 600;
}

.nav__toggle,
.nav__brand {
  display: none;
}

@media (max-width: 900px) {
  html.nav-is-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.nav-is-open body {
    position: fixed;
    top: var(--nav-scroll-offset);
    right: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
  }

  .nav--collapsible {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: auto;
    min-height: calc(44px + 0.75rem + max(0.75rem, env(safe-area-inset-top)));
    padding: max(0.75rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 0.75rem max(var(--gutter), env(safe-area-inset-left));
  }

  .nav--collapsible.nav--open,
  .page-home.has-video-hero .nav.nav--collapsible.nav--open {
    z-index: 100;
  }

  .nav--collapsible .nav__brand,
  .nav--collapsible .nav__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
  }

  .nav--collapsible .nav__brand {
    margin-right: auto;
  }

  .nav__brand img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.22);
  }

  .nav--collapsible .nav__toggle {
    margin-left: auto;
    padding: 10px;
    cursor: pointer;
  }

  .nav__toggle:focus-visible,
  .nav__brand:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  .nav--collapsible.nav--open::before {
    content: '';
    position: fixed;
    inset: 0 0 auto;
    z-index: 2;
    height: calc(44px + 0.75rem + max(0.75rem, env(safe-area-inset-top)));
    background: var(--paper-2);
  }

  .nav--collapsible.nav--open .nav__brand,
  .nav--collapsible.nav--open .nav__toggle {
    position: fixed;
    z-index: 3;
    top: max(0.75rem, env(safe-area-inset-top));
  }

  .nav--collapsible.nav--open .nav__brand {
    left: max(var(--gutter), env(safe-area-inset-left));
  }

  .nav--collapsible.nav--open .nav__toggle {
    right: max(var(--gutter), env(safe-area-inset-right));
  }

  .nav--collapsible > ul {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: calc(44px + max(0.75rem, env(safe-area-inset-top)) + 1.25rem) 1.25rem;
    padding: calc(44px + max(0.75rem, env(safe-area-inset-top)) + 1.25rem) max(var(--gutter), env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    background: var(--paper-2);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
  }

  .nav--collapsible.nav--animate > ul {
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0.32s;
  }

  .nav--collapsible.nav--open > ul {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .nav--collapsible > ul a,
  .page-home.has-video-hero .nav.nav--collapsible > ul a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 0;
    color: var(--ink);
    font-size: 1.05rem;
    text-shadow: none;
  }


  @media (prefers-reduced-motion: reduce) {
    .nav--collapsible.nav--animate > ul {
      transition: none;
    }
  }
}


.page-home .nav,
.page-home main > section,
.page-home .foot {
  background: transparent;
}

/* ─────────────────────────── homepage video ─────────────────────────── */

.page-home.has-video-hero .nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  height: auto;
  background: var(--paper-2) url('../images/backgrounds/paper.png') repeat center top / 720px auto;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home.video-hero-ready .nav {
  position: fixed;
}

.page-home.has-video-hero .nav.nav--over-video {
  background: transparent;
}

.page-home.has-video-hero .nav.nav--over-video a {
  color: #fff;
  text-shadow: 0 1px 5px rgb(0 0 0 / 45%);
}

.page-home.has-video-hero .nav.nav--over-video a:hover,
.page-home.has-video-hero .nav.nav--over-video a:focus-visible {
  border-bottom-color: currentColor;
}

.page-home main > .video-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 30rem;
  overflow: hidden;
  background: #233f47;
  color: #fff;
}

.video-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-hero__actions {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(7rem, 25svh, 14rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  transform: translateX(-50%);
}


.video-hero__controls {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  gap: 0.5rem;
}

.video-hero .video-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 2px;
  background: rgb(14 32 37 / 45%);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.video-hero .video-hero__button:hover,
.video-hero .video-hero__button:focus-visible {
  background: rgb(14 32 37 / 75%);
  color: #fff;
}

.video-hero .video-hero__button:disabled {
  opacity: 0.6;
  cursor: default;
}

.video-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 64px;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-shadow: 0 1px 5px rgb(0 0 0 / 60%);
  transform: translateX(-50%);
}

.video-hero__scroll:hover,
.video-hero__scroll:focus-visible {
  text-decoration: none;
}

.video-hero__scroll-arrow {
  display: block;
  flex: none;
  opacity: 1;
  animation: video-hero-scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes video-hero-scroll-pulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.video-hero .video-hero__button:focus-visible,
.video-hero__scroll:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.video-hero__status {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1rem);
  width: min(32rem, calc(100vw - 2 * var(--gutter)));
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 1px 5px rgb(0 0 0 / 60%);
}

.video-hero [hidden] {
  display: none;
}

#countdown {
  scroll-margin-top: var(--video-nav-height, 4.5rem);
}

/* Cap landscape framing in narrow desktop windows; mobile rotates the same source. */
@media (min-width: 901px) and (max-aspect-ratio: 4/5) {
  .video-hero__video {
    left: 50%;
    width: 240%;
    transform: translateX(-50%);
    object-fit: contain;
  }
}

@media (max-width: 900px) {
  .page-home main > .video-hero {
    min-height: 0;
    padding: 0;
  }

  .page-home .video-hero__video {
    inset: 50% auto auto 50%;
    width: 100vh;
    width: 100svh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .page-home .video-hero__actions {
    bottom: max(calc(8rem + env(safe-area-inset-bottom)), calc(clamp(9rem, 28svh, 17rem) - 4.5rem));
  }

  .page-home .video-hero__scroll-arrow {
    width: 30px;
    height: 30px;
  }

  .page-home.has-video-hero .nav.nav--over-video:not(.nav--open) .nav__toggle {
    color: #fff;
    filter: drop-shadow(0 1px 3px rgb(0 0 0 / 45%));
  }

  .page-home.has-video-hero .nav.nav--over-video:not(.nav--open) .nav__brand img {
    filter: drop-shadow(0 1px 3px rgb(0 0 0 / 45%));
  }
}

@media (max-width: 560px) {
  .video-hero__controls {
    flex-direction: column;
    align-items: stretch;
  }

}

@media (prefers-reduced-motion: reduce) {
  .page-home.has-video-hero .nav {
    transition: none;
  }

  .video-hero__scroll-arrow {
    animation: none;
  }
}


.amp,
.hero__amp,
.panel__amp {
  font-family: 'Young Baroque', cursive;
  font-style: normal;
  font-weight: 550;
}

.nav .amp {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
}



/* ───────────────────────────── countdown ───────────────────────────── */

.countdown {
  background: var(--paper-2);
  padding: clamp(4.5rem, 10vh, 6rem) var(--gutter) var(--home-section-space);
  display: grid;
  place-items: center;
}

.countdown__cap {
  font-size: clamp(1.875rem, 3.5vw, 2.1875rem);
  margin: 0 0 1.5rem;
}

.countdown__clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 40rem);
  margin-inline: auto;
}

.countdown__unit {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.countdown__unit + .countdown__unit::before {
  content: ':';
  position: absolute;
  top: 0.1rem;
  left: 0;
  transform: translateX(-50%);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  line-height: 1;
}

.countdown__value {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: clamp(0.72rem, 1.2vw, 0.86rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────────────────────────── story ─────────────────────────────── */

.story {
  background: var(--paper-2);
  padding: var(--home-section-space) var(--gutter);
  display: grid;
  place-items: center;
}

.story__gallery {
  display: grid;
  grid-template-columns: 2rem minmax(0, 42rem) 2rem;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.75rem);
  width: min(100%, 48rem);
  margin-inline: auto;
}

.story__slides {
  position: relative;
  aspect-ratio: 491 / 368;
}

.story__slide {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 55%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition:
    opacity 0.45s ease,
    transform 0.55s ease;
}

.story__slide.is-current {
  inset: 0 15%;
  width: auto;
  z-index: 2;
  opacity: 1;
  transform: none;
  box-shadow: 0 10px 30px rgba(35, 31, 26, 0.16);
}

.story__slide.is-prev {
  left: 0;
  z-index: 1;
  opacity: 0.24;
  transform: translateX(-16%) scale(0.9);
  box-shadow: 0 8px 20px rgba(35, 31, 26, 0.12);
}

.story__slide.is-next {
  right: 0;
  z-index: 1;
  opacity: 0.24;
  transform: translateX(16%) scale(0.9);
  box-shadow: 0 8px 20px rgba(35, 31, 26, 0.12);
}

.story__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.story__nav {
  position: relative;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(35, 31, 26, 0.38);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.story__nav--prev {
  transform: translateX(-2.0rem);
}

.story__nav--next {
  transform: translateX(2.0rem);
}

.story__nav:hover {
  border-color: rgba(35, 31, 26, 0.65);
  background: rgba(255, 255, 255, 0.28);
}

.story__nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.story__nav--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.story__nav--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.video-hero__title,
.story__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.story__title {
  margin-top: 2.2rem;
}

.story__copy {
  margin: 1.6rem auto 0;
  max-width: 90ch;
  font-size: 1.143rem;
  line-height: 1.5;
}

/* ─────────────────────────────── details ─────────────────────────────── */

.details {
  background: var(--paper-2);
  padding: var(--bay) var(--gutter);
  display: grid;
  gap: var(--bay);
}

.panel {
  width: min(100%, 1230px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule);
}

.panel__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.6rem;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.4rem);
}

/* the text cell keeps the hairline that divides it from the image */
.panel:not(.panel--flip) .panel__text {
  border-right: 1px solid var(--rule);
}

.panel--flip .panel__text {
  border-left: 1px solid var(--rule);
}

.panel__script {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.05rem);
}

.panel__text .italic {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 38ch;
}


.panel__addr {
  font-size: 1rem;
}

.panel__date {
  margin: 0;
  font-weight: 500;
  font-size: 1.143rem;
}

.event-meta {
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 1.143rem;
}

.event-meta div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}

.event-meta dt {
  font-weight: 600;
}

.event-meta dt::after {
  content: ':';
}

.event-meta dd {
  margin: 0;
}


.panel__actions {
  display: grid;
  justify-items: center;
  column-gap: 1rem;
  row-gap: 0.55rem;
  margin-top: 0.75rem;
}

.panel__actions > .calendar-menu,
.panel__actions > .event-button {
  width: 11.75rem;
}

.panel__actions .calendar-menu summary {
  width: 100%;
  text-align: center;
}

.panel__actions > .event-button {
  text-align: center;
}

.panel__actions--quad {
  width: min(100%, 24.2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.panel__actions--quad > .calendar-menu,
.panel__actions--quad > .event-button {
  width: 100%;
}

.panel__actions--quad > .event-button,
.panel__actions--quad .calendar-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.panel__actions--wedding {
  width: min(100%, 24.2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.panel__actions--wedding > .calendar-menu,
.panel__actions--wedding > .event-button {
  width: 100%;
}

.panel__actions--wedding > .event-button--dress {
  grid-column: 1 / -1;
  justify-self: center;
  width: 11.75rem;
}

.panel__text .panel__event-copy {
  max-width: 52ch;
}

.panel__figure {
  margin: 0;
  aspect-ratio: 604 / 804;
}

.panel__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.event-page .panel__text {
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3.5vw, 3rem);
}

.event-page .panel__figure {
  position: relative;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: auto;
}

.event-page .panel__figure img {
  position: absolute;
  inset: 0;
}

.schedule-dialog {
  width: min(calc(100% - 2rem), 52rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(35, 31, 26, 0.3);
}

.schedule-dialog::backdrop {
  background: rgba(35, 31, 26, 0.62);
  backdrop-filter: blur(2px);
}

.schedule-sheet {
  position: relative;
  min-height: 100%;
  padding: clamp(3.5rem, 7vw, 5.75rem) clamp(1.75rem, 7vw, 5.25rem);
  background-color: #eee9e1;
  background-image: url('../images/backgrounds/floral-paper.png');
  background-position: center;
  background-size: cover;
}

.attire-dialog {
  width: min(calc(100% - 2rem), 64rem);
}

.attire-sheet {
  position: relative;
  padding: clamp(3.25rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--paper-2);
}

.attire-sheet__event,
.attire-sheet__title {
  margin: 0;
  text-align: center;
}

.attire-sheet__title {
  margin-top: 0.45rem;
  font-size: clamp(1.75rem, 3vw, 2.05rem);
  font-weight: 400;
  line-height: 1;
}

.attire-sheet__description {
  max-width: 33rem;
  margin: 1rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  line-height: 1.5;
  text-align: center;
}

.attire-sheet__image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--rule);
}
.arrival-sheet {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.arrival-sheet__content {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 52rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

.arrival-sheet__section h3,
.parking-option h4 {
  margin: 0;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.arrival-sheet__section h3 {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}

.arrival-sheet__section > p {
  margin: 0.85rem 0 0;
}

.parking-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.parking-option {
  padding: 1rem;
  border: 1px solid var(--rule);
}

.parking-option h4 {
  font-size: 0.82rem;
}

.parking-option h4 span {
  display: block;
  margin-top: 0.25rem;
}

.parking-option p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

.details-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.details-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.details-contact:hover,
.details-contact:focus-visible {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.65;
}

.details-contact strong {
  font-weight: 600;
}


.schedule-dialog__close {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.schedule-dialog__close:hover {
  opacity: 0.6;
}

.schedule-dialog__close:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.schedule-sheet__date,
.schedule-sheet__place {
  margin: 0;
  text-align: center;
}

.schedule-sheet__title {
  margin: 0.7rem 0;
  font-size: clamp(1.75rem, 3vw, 2.05rem);
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.schedule-sheet__place {
  font-size: 0.95rem;
}

.event-timeline {
  position: relative;
  width: min(100%, 35rem);
  margin: clamp(2.2rem, 5vw, 3.5rem) auto 0;
  padding: 0;
  display: grid;
  gap: 1.45rem;
  list-style: none;
}

.event-timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: calc(6rem + 0.75rem);
  transform: translateX(-50%);
  width: 1px;
  background: var(--rule);
}

.event-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 6rem 1.5rem minmax(0, 1fr);
  align-items: start;
}


.event-timeline time {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0.1rem;
  font-size: 0.84rem;
  font-style: italic;
  text-align: right;
}

.event-timeline div {
  grid-column: 3;
  grid-row: 1;
}

.event-timeline h3,
.event-timeline p {
  margin: 0;
}

.event-timeline h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.event-timeline p {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.4;
}

.sched {
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.sched div {
  display: grid;
  gap: 0.25rem;
}

.sched dt,
.sched dd {
  margin: 0;
  font-weight: 500;
  font-size: 1.143rem;
  line-height: 1.3;
}


/* ────────────────────────────── registry ────────────────────────────── */

.registry {
  background: var(--paper-2);
  padding: var(--bay) var(--gutter);
}

.registry__lede {
  max-width: 46ch;
  margin: 1.5rem auto 2.4rem;
  font-size: 1.143rem;
  line-height: 1.55;
}

.registry__panel {
  width: min(100%, 1230px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule);
}

.registry__figure {
  position: relative;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
}

.registry__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.registry__content {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--rule);
  text-align: center;
}


/* ────────────────────────── wedding party ────────────────────────── */

.wedding-party-page {
  flex: 1;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) clamp(5rem, 11vh, 8rem);
}

.wedding-party__head {
  text-align: center;
}

.wedding-party__lede {
  max-width: 64ch;
  margin: 1.25rem auto 0;
  font-size: 1.143rem;
  line-height: 1.5;
}

.wedding-party {
  width: min(100%, 1120px);
  margin: clamp(4rem, 8vh, 6rem) auto 0;
  display: grid;
  gap: clamp(3.5rem, 7vh, 5.5rem);
}

.wedding-party__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.wedding-party__row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wedding-party__member {
  text-align: center;
}


.wedding-party__photo {
  width: clamp(9rem, 14vw, 11.5rem);
  margin: 0 auto 1.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--ink-soft);
}

.wedding-party__photo span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.wedding-party__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wedding-party__photo--hannah img {
  object-position: center 74%;
  transform: scale(1.08);
}

.wedding-party__member h2 {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

.wedding-party__role {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: normal;
}

.wedding-party__fact {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.25;
}
/* ─────────────────────────────── r.s.v.p. ─────────────────────────────── */

.rsvp {
  background: var(--paper-3);
  padding: var(--home-section-space) var(--gutter);
  display: grid;
  place-items: center;
}

.rsvp__lede {
  margin: 1.4rem 0 2.4rem;
  font-size: 1.143rem;
}

.rsvp__mark {
  width: 120px;
  margin: 3.4rem auto 2.4rem;
  mix-blend-mode: normal;
}

/* form — same hairline vocabulary as the panels */

.form {
  width: min(100%, 620px);
  margin-inline: auto;
  text-align: left;
  display: grid;
  gap: 1.7rem;
  margin-top: 2.8rem;
}

.form[hidden] {
  display: none;
}

.form .ghost {
  justify-self: center;
  margin-top: 0.6rem;
}

.field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label,
.field legend {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  padding: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7rem;
}

.form input[type='text'],
.form input[type='email'],
.form input[type='tel'],
.form textarea {
  font-family: var(--serif);
  font-size: 1.143rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.75em 0.9em;
  width: 100%;
  transition: border-color 0.3s ease;
}

.form textarea {
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.3rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  border: 1px solid var(--rule);
  padding: 0.85em 1em;
  transition: border-color 0.3s ease;
}

.choice:hover {
  border-color: var(--ink);
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice__box {
  flex: none;
  width: 13px;
  height: 13px;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.choice__box i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.25s ease;
}

.choice input:checked + .choice__box i {
  transform: scale(1);
}

.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.choice__text {
  font-size: 1rem;
  font-weight: 500;
}

.form__error {
  margin: 0;
  font-style: italic;
  color: #8c2f22;
  font-size: 1rem;
}

.thanks__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.8rem;
}

/* ─────────────────────────────── footer ─────────────────────────────── */

.foot {
  background: var(--paper-2);
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) 2rem;
  display: grid;
  justify-items: center;
  gap: 1.8rem;
  text-align: center;
}

.foot__brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.foot__mark {
  width: 90px;
  height: auto;
}

.foot__message {
  margin: 0;
}

.foot__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem clamp(1.2rem, 3vw, 2.4rem);
}

.foot .foot__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: none;
}

.foot__contact strong {
  font-weight: 600;
}

.foot__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════
   RSVP PAGE (rsvp.html)
   A cream card floating on a soft blurred texture, per the reference.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --card: #f1efea;
  --line: #8c8781;
  --choice: #d6d3cf;
  --solid: #2b2a28;
}

.page-rsvp {
  background-color: var(--paper-2);
  background-image: url('../images/backgrounds/floral-paper.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.page-rsvp .nav,
.page-rsvp .rsvppage__head,
.page-rsvp .foot {
  background: transparent;
}

.rsvppage__head {
  background: var(--paper-2);
  text-align: center;
  padding: clamp(3rem, 7vh, 5rem) var(--gutter) clamp(2.5rem, 5.5vh, 4rem);
}

.page-title {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: none;
}

.section-page-head {
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) 0;
  text-align: center;
}

.section-page-head + .details,
.section-page-head + .tg-explore {
  padding-top: clamp(2.5rem, 5vh, 3.5rem);
}

.rsvppage__lede {
  margin: 1.5rem auto 0;
  max-width: 48ch;
  font-size: 1.143rem;
  line-height: 1.45;
}

.rsvppage__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.card {
  width: min(100%, 672px);
  background: var(--card);
  padding: clamp(1.6rem, 4vw, 2.5rem);
}

.rform {
  display: grid;
  gap: 1.65rem;
}

.rfield {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.rfield__label {
  font-size: 1.03rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.022em;
  line-height: 1.35;
  color: var(--ink);
  padding: 0;
}

.rfield__hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.rfield__aside {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.rfield__label b {
  font-weight: 500;
}

.rform input[type='text'],
.rform input[type='tel'],
.rform input[type='email'],
.rform textarea {
  font-family: var(--serif);
  font-size: 1.143rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7em 0.8em;
  width: 100%;
  min-height: 50px;
  transition: border-color 0.3s ease;
}

.rform textarea {
  resize: vertical;
  min-height: 92px;
}

.rform input:focus,
.rform textarea:focus {
  outline: none;
  border-color: var(--ink);
}

/* the two filled attendance blocks */
.rfield--choice {
  gap: 0.4rem;
}

.rchoice {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55em 1.1em;
  background: var(--choice);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.rchoice:hover {
  border-color: var(--line);
}

.rchoice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rchoice__text {
  font-size: 1.03rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.022em;
  color: var(--ink);
}

.rchoice:has(input:checked) {
  border-color: var(--ink);
  background: #cbc7c2;
}

.rchoice:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.rsubmit {
  width: 100%;
  min-height: 58px;
  margin-top: 0.4rem;
  background: var(--solid);
  color: #f4f3f1;
  border: 0;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 1.143rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.rsubmit:hover,
.rsubmit:focus-visible {
  background: #171614;
}

.rform__note {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.card .thanks {
  text-align: center;
  padding: 2rem 0;
}

/* ─────────────────────── invite-code RSVP (ported from save-the-date) ─────────────────────── */

.rsvp-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.3rem);
  text-align: center;
  margin: 0 0 1.5rem;
}

#rsvp-form {
  --rsvp-note-gap: 0.3rem;
}

#attending-details:not([hidden]),
#entree-section {
  display: grid;
  gap: inherit;
}

#entree-section:empty {
  display: none;
}

.rfield--guests {
  gap: var(--rsvp-note-gap);
}

/* A fieldset's legend sits outside its grid, so give it the same hint gap. */
.rfield--guests > legend {
  margin-bottom: var(--rsvp-note-gap);
}

.rfield--guests > .rfield__hint {
  margin: 0;
}

.rform select {
  font-family: var(--serif);
  font-size: 1.143rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7em 0.8em;
  width: 100%;
  min-height: 50px;
  transition: border-color 0.3s ease;
}

.rform select:focus {
  outline: none;
  border-color: var(--ink);
}

.guest-select {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guest-select .rchoice {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.rchoice__check {
  color: #2e6b3e;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.rchoice:has(input:checked) .rchoice__check {
  opacity: 1;
  transform: scale(1);
}

.guest-select__summary {
  margin: 0;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}


.menu-list__name {
  display: block;
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0.022em;
  color: var(--ink);
}

.menu-list__hint {
  display: block;
  margin-top: var(--rsvp-note-gap, 0.3rem);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
}

.rform__note--notice {
  padding: 0.85em 1.1em;
  margin-bottom: 1em;
  background: var(--choice);
  border-radius: 6px;
  font-style: italic;
}

.review-dialog {
  width: min(calc(100% - 2rem), 40rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(35, 31, 26, 0.3);
}

.review-dialog::backdrop {
  background: rgba(35, 31, 26, 0.62);
  backdrop-filter: blur(2px);
}

.review-dialog__close {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.review-dialog__close:hover {
  opacity: 0.6;
}

.review-sheet {
  position: relative;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 2.5rem);
}

.review-sheet h2 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  margin: 0 0 1.25rem;
  text-align: center;
}

.review-sheet dl {
  display: grid;
  grid-template-columns: minmax(120px, 40%) 1fr;
  gap: 0.6rem 1rem;
  margin: 0 0 1.75rem;
}

.review-sheet dt {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.022em;
  font-size: 0.92rem;
}

.review-sheet dd {
  margin: 0;
}

.review-sheet__actions {
  display: grid;
  gap: 0.75rem;
}

.review-sheet__edit {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  min-height: 50px;
  font-family: var(--serif);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  cursor: pointer;
}

.review-sheet__edit:hover {
  border-color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════
   INTERIOR PAGES (details.html)
   Heading held in a left column, content stacked in an offset right one.
   ═══════════════════════════════════════════════════════════════════════ */

.page-interior {
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.event-page,
.registry-page,
.things-page,
.wedding-party-page {
  flex: 1;
}

.interior {
  flex: 1;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) clamp(5rem, 11vh, 8rem);
}

.interior__aside {
  text-align: center;
}

.interior__body {
  width: min(100%, 920px);
  margin: clamp(3rem, 7vh, 5rem) auto 0;
  display: grid;
  gap: 1rem;
}

.qa {
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.12);
}

.qa__q {
  min-height: 4.25rem;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  transition: background-color 0.25s ease;
}

.qa__q::-webkit-details-marker {
  display: none;
}

.qa__q:hover,
.qa__q:focus-visible {
  background: rgba(35, 31, 26, 0.045);
}

.qa__icon {
  flex: none;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s ease;
}

.qa[open] .qa__icon {
  transform: rotate(45deg);
}

.qa__answer {
  padding: 1.4rem 1.35rem 1.6rem;
  border-top: 1px solid var(--rule);
}

.qa__a {
  margin: 0;
  font-size: 1.143rem;
  font-style: italic;
  line-height: 1.58;
}

.qa__a a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qa__button {
  margin-top: 1.25rem;
  padding: 0.72em 1.45em;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   TRAVEL & ACCOMMODATIONS (travel.html)
   ═══════════════════════════════════════════════════════════════════════ */

.travel-page {
  flex: 1;
  background: var(--paper-2);
}

.travel-head {
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) clamp(2.5rem, 5vh, 3.75rem);
  text-align: center;
}

.travel-head__lede {
  max-width: 80ch;
  margin: 1.35rem auto 0;
  font-size: 1.143rem;
  line-height: 1.5;
}

.travel-head__booking {
  max-width: 80ch;
  margin: 1.15rem auto 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.travel-hero {
  width: min(calc(100% - (2 * var(--gutter))), 1160px);
  margin: 0 auto clamp(4rem, 9vh, 7rem);
  aspect-ratio: 2314 / 730;
  overflow: hidden;
}

.travel-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.travel-arrivals {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  background: var(--paper-3);
}

.travel-section-title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 400;
  text-align: center;
}

.travel-accordions {
  width: min(100%, 920px);
  margin: clamp(2.5rem, 5vh, 3.5rem) auto 0;
  display: grid;
  gap: 1rem;
}

.travel-hotels {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) clamp(5rem, 11vh, 8rem);
  background: var(--paper-2);
}

.travel-hotels__head {
  margin-bottom: clamp(2.5rem, 5vh, 3.75rem);
  text-align: center;
}

.travel-hotels__intro {
  max-width: 80ch;
  margin: 1.25rem auto 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

.hotel-pick {
  width: min(100%, 1160px);
  margin: 0 auto clamp(3rem, 6vh, 4.5rem);
}

.hotel-pick__title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.hotel-pick__card {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(26rem, 1.17fr);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.hotel-pick__gallery {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--paper-3);
}

.hotel-pick__viewport,
.hotel-pick__slide {
  position: absolute;
  inset: 0;
}

.hotel-pick__slide {
  margin: 0;
}

.hotel-pick__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-pick__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(35, 31, 26, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.hotel-pick__nav::before {
  content: '';
  width: 0.58rem;
  height: 0.58rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.hotel-pick__nav--prev {
  left: 1rem;
}

.hotel-pick__nav--prev::before {
  transform: translate(0.1rem, 0.45rem) rotate(-135deg);
}

.hotel-pick__nav--next {
  right: 1rem;
}

.hotel-pick__nav--next::before {
  transform: translate(-0.1rem, 0.45rem) rotate(45deg);
}

.hotel-pick__nav:hover,
.hotel-pick__nav:focus-visible {
  background: var(--paper);
  border-color: var(--ink);
}

.hotel-pick__status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.hotel-pick__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hotel-pick__eyebrow {
  margin: 0 0 0.7rem;
}

.hotel-pick__name {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.1;
}

.hotel-pick__address {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hotel-pick__copy {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.hotel-pick__details {
  width: 85%;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hotel-pick__details div {
  padding: 0.75rem 0;
}


.hotel-pick__details div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.hotel-pick__details dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hotel-pick__details dd {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.hotel-pick__booking {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.hotel-pick__actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hotel-pick__content .event-button:disabled {
  background: none;
  color: var(--ink);
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .hotel-pick__card {
    grid-template-columns: 1fr;
  }

  .hotel-pick__gallery {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .hotel-pick__details {
    grid-template-columns: 1fr;
  }

  .hotel-pick__details div + div {
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }
}

.hotel-card__price {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}


.hotel-card .newport-card__copy {
  flex: 1;
}

/* Best of Newport */
.newport-head__intro {
  max-width: 60ch;
  margin: 1.35rem auto 0;
  font-size: 1.143rem;
  line-height: 1.5;
}

.newport-guide {
  padding: clamp(2.5rem, 5vh, 3.5rem) var(--gutter) clamp(4rem, 9vh, 7rem);
  background: var(--paper-2);
}

.newport-grid {
  width: min(100%, 1160px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.newport-card {
  min-width: 0;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper-2);
}

.newport-card__figure {
  width: 100%;
  margin: 0 0 1.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
}

.newport-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}


.newport-card__title {
  margin: 0;
  font-size: 1.143rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.newport-card__address {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.newport-card__copy {
  max-width: 52ch;
  margin: 1.35rem 0 0;
  font-size: 1.03rem;
  line-height: 1.55;
}

.newport-card .event-button {
  min-width: 8.5rem;
  margin-top: 1.75rem;
  text-align: center;
}

.newport-dining {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  background: var(--paper-3);
}

.newport-dining__title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 400;
  text-align: center;
}

.newport-dining__key {
  margin: 0.9rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
}

.newport-dining__key img,
.newport-favorite strong img {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.newport-dining__grid {
  width: min(100%, 1160px);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
}

.newport-list h3 {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.newport-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.newport-list li {
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}

.newport-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.newport-list strong,
.newport-list span {
  display: block;
}

.newport-list .amp {
  display: inline;
}

.newport-favorite strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.newport-list strong {
  font-weight: 600;
}

.newport-list span {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .newport-dining__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .newport-grid {
    grid-template-columns: 1fr;
  }

  .travel-hero {
    aspect-ratio: 16 / 9;
  }

}

/* ═══════════════════════════════════════════════════════════════════════
   GALLERY (gallery.html)
   Plates mounted on the grainy floral plate, full-bleed behind everything.
   ═══════════════════════════════════════════════════════════════════════ */

.page-gallery {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper-2);
  background-image: url('../images/backgrounds/floral-paper.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* the nav and footer sit on the texture rather than their own panel */
.page-gallery .nav,
.page-gallery .foot {
  background: transparent;
}

.gal {
  flex: 1;
  padding: clamp(1.25rem, 3vh, 2.25rem) clamp(1.25rem, 5vw, 5rem) clamp(4rem, 10vh, 7rem);
}

.gal__head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}


.gal__script {
  margin: 0.35rem 0 0;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  color: var(--ink-soft);
}

.gal__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.35rem);
  width: min(100%, 1180px);
  margin-inline: auto;
}

.gal__grid--little-us {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 1180px);
}

.gal__mixed {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: min(100%, 1180px);
  margin-inline: auto;
}

.gal__mixed .gal__grid {
  width: 100%;
}

.gal__grid--landscapes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gal__back {
  margin: 0.85rem 0 0;
}

.gal__back a {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.gal__back a:hover,
.gal__back a:focus-visible {
  color: var(--ink);
}

.gallery-collections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  width: min(100%, 1180px);
  margin-inline: auto;
}

.collection-card {
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.collection-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  filter: drop-shadow(0 2px 4px rgba(35, 31, 26, 0.13));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.collection-card__folder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--rule);
  clip-path: polygon(0 7%, 30% 7%, 36% 1%, 100% 1%, 100% 100%, 0 100%);
}

.collection-card:hover .collection-card__media,
.collection-card:focus-visible .collection-card__media {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 3px 5px rgba(35, 31, 26, 0.17));
}

.collection-card:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.collection-card__folder img {
  position: absolute;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  background: var(--paper-3);
  clip-path: polygon(0 7%, 30% 7%, 36% 1%, 100% 1%, 100% 100%, 0 100%);
  object-fit: cover;
}

.collection-card__placeholder {
  display: grid;
  place-items: center;
}

.collection-card__placeholder span,
.gallery-placeholder span {
  display: grid;
  place-items: center;
  width: clamp(4.75rem, 8vw, 6.5rem);
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.collection-card__placeholder span {
  position: absolute;
  inset: 1px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--paper-3);
  clip-path: polygon(0 7%, 30% 7%, 36% 1%, 100% 1%, 100% 100%, 0 100%);
}

.collection-card__placeholder span::before {
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  content: '';
}

.collection-card__copy {
  padding: 1rem 0.35rem 0;
}

.collection-card__copy h2,
.collection-card__copy p {
  margin: 0;
}

.collection-card__copy h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.15;
}

.collection-card__copy p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-style: italic;
}

.collection-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: gap 0.25s ease, background-color 0.35s ease, color 0.35s ease;
}

.collection-card:hover .collection-card__action,
.collection-card:focus-visible .collection-card__action {
  gap: 0.55rem;
  background: var(--ink);
  color: var(--paper-2);
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  grid-template-rows: 1fr auto 1fr;
  min-width: 0;
  margin: 0;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--rule);
  background: var(--paper-3);
  color: var(--ink-soft);
  text-align: center;
  box-shadow: 0 4px 14px rgba(35, 31, 26, 0.06);
}

.gallery-placeholder span {
  align-self: end;
}

.gallery-placeholder figcaption {
  align-self: start;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-style: italic;
}

.plate {
  margin: 0;
  break-inside: avoid;
  overflow: hidden;
  background: none;
  padding: 0;
  border: 0;
  box-shadow: 0 4px 14px rgba(35, 31, 26, 0.09);
  cursor: zoom-in;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.plate--fill {
  aspect-ratio: 2 / 3;
}

.plate--fill img {
  height: 100%;
  object-fit: cover;
}

.plate--landscape {
  aspect-ratio: 3 / 2;
}

.plate--landscape img {
  height: 100%;
  object-fit: cover;
}

.gal__grid--little-us .plate--landscape {
  grid-column: span 2;
}

.plate:hover,
.plate:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(35, 31, 26, 0.12);
}

/* ──────────────────────────────── lightbox ──────────────────────────────── */

.lb[hidden] {
  display: none;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.lb__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(28, 26, 23, 0.9);
  cursor: zoom-out;
}

.lb__panel {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1000px);
  max-height: 88vh;
}

.lb__panel img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.lb__nav,
.lb__close {
  position: absolute;
  border: 0;
  background: none;
  color: #f4f3f1;
  font-family: var(--serif);
  cursor: pointer;
  line-height: 1;
  padding: 0.35em 0.5em;
  transition: opacity 0.25s ease;
  opacity: 0.75;
}

.lb__nav:hover,
.lb__close:hover,
.lb__nav:focus-visible,
.lb__close:focus-visible {
  opacity: 1;
}

.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.lb__nav--prev {
  left: clamp(0.4rem, 2.5vw, 2.4rem);
}

.lb__nav--next {
  right: clamp(0.4rem, 2.5vw, 2.4rem);
}

.lb__close {
  top: clamp(0.6rem, 2.5vh, 1.8rem);
  right: clamp(0.6rem, 2.5vw, 2rem);
  font-size: clamp(2rem, 3vw, 2.6rem);
}

/* ───────────────────────────── responsive ───────────────────────────── */

@media (max-width: 900px) {
  :root {
    font-size: 93.75%;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --bay: clamp(3rem, 6.5vh, 4.5rem);
    --home-section-space: clamp(2.75rem, 5vh, 3.75rem);
  }

  body {
    font-size: 1.16rem;
  }

  .rsvp .ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5em 1.4em;
    font-size: 0.85rem;
  }

  .countdown {
    padding-top: clamp(3.5rem, 8vh, 5rem);
  }

  .card {
    padding: 1.35rem;
  }

  .section-page-head,
  .interior,
  .travel-head,
  .travel-arrivals,
  .travel-hotels,
  .wedding-party-page,
  .newport-dining {
    padding-top: var(--bay);
  }

  .rsvppage__head {
    padding-block: clamp(2.6rem, 6vh, 4rem) 2rem;
  }

  .rsvppage__stage {
    padding-top: clamp(2rem, 5vh, 3.5rem);
  }

  .foot__brand {
    max-width: 100%;
    gap: 0.65rem;
  }

  .foot__mark {
    width: 54px;
  }

  .foot__message {
    font-size: clamp(0.7rem, 2.8vw, 0.78rem);
    letter-spacing: 0.045em;
    white-space: nowrap;
  }

  .foot__contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 28rem);
    gap: 0.65rem 0.6rem;
  }

  .foot .foot__contact {
    min-width: 0;
    justify-content: center;
    gap: 0.3rem;
    padding: 0;
    font-size: clamp(0.78rem, 3.1vw, 0.88rem);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .foot__contact[href^='mailto:'] {
    grid-column: 1 / -1;
    font-size: 0.88rem;
  }

  .foot__icon {
    width: 0.75rem;
    height: 0.75rem;
  }

  .foot .foot__nav {
    display: none;
  }

  .nav {
    height: auto;
  }


  .panel,
  .panel--flip {
    grid-template-columns: 1fr;
  }

  /* stack: image always sits above its text */
  .panel:not(.panel--flip) .panel__text {
    border-right: 0;
    border-top: 1px solid var(--rule);
    order: 2;
  }

  .panel--flip .panel__text {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .panel:not(.panel--flip) .panel__figure {
    order: 1;
  }

  .event-page .panel__figure {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

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

  .registry__figure {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

  .registry__content {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .wedding-party__row,
  .wedding-party__row--three {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .statement,
  .story,
  .registry,
  .rsvp,
  .countdown {
    min-height: 0;
  }

  .interior {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    padding-bottom: clamp(3.3rem, 7.3vh, 5.3rem);
  }

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

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

  .gal__grid--little-us .plate--landscape {
    grid-column: span 1;
  }

  /* fixed attachment is unreliable on mobile Safari; also swap the busy
     floral texture for flat cream paper and a solid nav on mobile, where
     the stretched photo background looks worse than plain paper. */
  .page-gallery {
    background-attachment: scroll;
    background-image: none;
    background-color: var(--paper-2);
  }

  .page-gallery .nav {
    background: var(--paper);
  }

  .lb__panel {
    /* leave room on each side so the prev/next arrows aren't crowded
       against the photo */
    max-width: 82vw;
  }

  .panel__actions--quad,
  .panel__actions--wedding {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    column-gap: 0.65rem;
    row-gap: 0.5rem;
  }

  .panel__actions > .event-button,
  .panel__actions > .calendar-menu {
    min-width: 0;
  }

  .panel__actions > .event-button,
  .panel__actions .calendar-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 100%;
    padding: 0.6em 0.55em;
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .panel__actions--wedding > .event-button--dress {
    grid-column: auto;
    width: 100%;
  }

  .panel__actions--wedding > [data-open-schedule] {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: calc((100% - 0.65rem) / 2);
  }

  .review-dialog {
    width: min(calc(100% - 1.5rem), 40rem);
    max-width: calc(100% - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }

  .review-dialog__close {
    top: 0.2rem;
    right: 0.35rem;
    width: 44px;
    height: 44px;
  }

  .review-sheet {
    min-width: 0;
    padding: 3.25rem 1rem 1.25rem;
    overflow-wrap: anywhere;
  }

  .review-sheet dl {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 0.55rem 0.65rem;
    margin-bottom: 1.25rem;
  }

  .review-sheet dt,
  .review-sheet dd {
    min-width: 0;
  }

  .review-sheet__actions {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  .review-sheet__actions > button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* the "Our Story" carousel's main photo grows without moving the
     arrows or resizing the peeking side photos (their position/width
     rules are untouched) */
  .story__slide.is-current {
    transform: scale(1.18);
  }

  .foot {
    gap: 0.9rem;
    padding: clamp(1.25rem, 3vh, 2rem) var(--gutter) 1.25rem;
  }

  .share-details,
  .rsvp {
    padding-bottom: clamp(2rem, 3.7vh, 2.7rem);
  }

  .gal {
    padding-bottom: clamp(2.7rem, 6.7vh, 4.7rem);
  }

  .sharepage__stage,
  .rsvppage__stage {
    padding-bottom: clamp(1.7rem, 4vh, 3rem);
  }

  .details,
  .registry {
    padding-bottom: clamp(2.3rem, 4.7vh, 3.3rem);
  }

  .travel-hotels,
  .wedding-party-page {
    padding-bottom: clamp(3.3rem, 7.3vh, 5.3rem);
  }

  .newport-dining {
    padding-bottom: clamp(2.7rem, 6vh, 4.7rem);
  }
}

@media (max-width: 560px) {
  .page-rsvp {
    background-attachment: scroll;
  }
}

@media (max-width: 560px) {
  .field-row,
  .choices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .schedule-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .schedule-sheet {
    padding-inline: 1.5rem;
  }

  .attire-sheet {
    padding: 3.25rem 1rem 1rem;
  }

  .arrival-sheet {
    padding-inline: 1rem;
  }

  .parking-options {
    grid-template-columns: 1fr;
  }


  .event-timeline::before {
    left: calc(4.75rem + 0.65rem);
  }

  .event-timeline li {
    grid-template-columns: 4.75rem 1.3rem minmax(0, 1fr);
  }

  .event-timeline time {
    font-size: 0.76rem;
  }
}
