:root {
  --burgundy: #54202a;
  --eggshell: #fdf7ef;
  --manila: #f0e1c2;
  --manila-shadow: #d8c29b;
  --wax: #6c1f2e;
  --overlay: rgba(0, 0, 0, 0.35);
  --radius: 1.25rem;
  --transition: 250ms ease;
  --layout-width: 1200px;
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-script: 'Alex Brush', 'Playfair Display', 'Times New Roman', serif;
  color-scheme: dark;
}

.canvas {
  --layout-scale: min(1, calc(100vw / var(--layout-width)));
  overflow-x: hidden;
  zoom: var(--layout-scale);
}

@supports not (zoom: 1) {
  .canvas {
    width: calc(100% / var(--layout-scale));
    transform: scale(var(--layout-scale));
    transform-origin: top left;
  }
}

.canvas main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-frame {
  min-height: auto;
  display: grid;
  place-items: start center;
  padding: 2.5rem 1.5rem 2.5rem;
}

.frame-ornate {
  padding: 0;
  text-align: center;
  position: relative;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 1200 / 520;
  min-height: 420px;
  overflow: visible;
}

.frame-ornate::before {
  content: '';
  position: absolute;
  inset: -8%;
  background-image: url('../../public/images/svgs/border.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: scale(1.25);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
}

.ornate-frame path {
  vector-effect: non-scaling-stroke;
}

.script-title {
  font-family: var(--font-script);
  font-size: clamp(4.75rem, 7vw, 7.75rem);
  margin: 0;
  z-index: 2;
  line-height: 1.2;
  position: relative;
}

.hero-amp {
  display: block;
  line-height: 0.5;
  margin-top: 1.5rem;
  margin-bottom: -0.35rem;
}

.hero-date {
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  font-size: 1.75rem;
  margin: 0;
  position: relative;
  z-index: 2;
}

.hero-title-group {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  z-index: 2;
}

.save-the-date {
  display: flex;
  justify-content: center;
  padding: 0 6vw;
}

.save-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  width: min(1200px, 100%);
  aspect-ratio: auto;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  gap: clamp(2rem, 5vw, 4rem);
  column-gap: clamp(2.5rem, 6vw, 5rem);
}

.save-card .photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 1.25rem;
  grid-auto-flow: row;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}

.save-card .photo-grid img {
  border: 1px solid rgba(253, 247, 239, 0.4);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.save-card .photo-grid img:nth-child(1) {
  object-position: 35% center;
}

.save-card .photo-grid img:nth-child(2) {
  object-position: 40% 65%;
}

.save-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  justify-self: start;
}

.save-copy .script-title {
  margin-bottom: 2rem;
  position: static;
  transform: none;
}

.save-copy .save-title {
  font-size: clamp(2.5rem, 3.8vw, 3.6rem);
  line-height: 1;
}

.save-copy .save-line {
  display: block;
}

.save-copy .save-line:last-child {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  align-items: baseline;
}

.save-copy .save-emphasis {
  font-size: 2em;
  line-height: 0.95;
}

.save-copy .save-our {
  font-size: 1em;
}

.save-date,
.save-location {
  margin: 0.25rem 0;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.photo-banner {
  position: relative;
  height: 36vh;        /* fixed => no layout gaps */
  overflow: hidden;

  /* controls */
  --window: 100%;      /* 100% = show whole image vertically */
  --y: 0%;             /* 0% = align window to top, 100% = bottom */
}

.photo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  /* We want a window into the image */
  object-fit: cover;
  object-position: center 50%;

  /*
    Key idea:
    - To show only "window" percent of the image height inside the banner,
      we scale the image vertically by (100 / window).
    - Then we slide it by --y within the overflow-hidden banner.
  */
  transform-origin: center;
  transform:
    scaleY(calc(100% / var(--window)))
    translateY(calc((var(--y) - 50%) * (var(--window) / 100)));
}

/* “crop” by moving the image inside the fixed box */
.photo-banner img {
  transform: translateY(calc(var(--topCut) * -1)) translateY(calc(var(--bottomCut) * 1));
}

.ornate-frame-hero {
  color: rgba(253, 247, 239, 0.9);
}

.ornate-frame-detail {
  color: rgba(253, 247, 239, 0.9);
}



/* Keep MC centered regardless of crop */
.photo-banner .monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-script);
  font-size: clamp(8rem, 5vw, 5.5rem); /* your clamp had 17rem typo */
  color: rgba(253, 247, 239, 0.9);
  pointer-events: none;
}

.our-story {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 3rem;
  padding: 0 6vw;
  align-items: stretch;
  background: var(--eggshell);
  color: var(--burgundy);
}

.photo-banner + .our-story {
  margin-top: 0;
}

.our-story + .photo-divider {
  margin-top: 0;
}

.story-card {
  padding: 0;
  max-width: none;
  align-self: stretch;
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.our-story .section-title {
  font-size: clamp(9rem, 12vw, 13rem);
  text-align: center;
  margin-bottom: 0;
}

.story-card p {
  margin: 0.5rem 0 0;
  text-align: center;
  margin-left: 0;
  font-size: 1.35rem;
  line-height: 1.45;
}

.story-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  align-items: stretch;
  justify-self: end;
}

.story-bars {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--burgundy) 0%, var(--burgundy) 60%, #7b3041 60%, #7b3041 100%);
  border-radius: 0;
  align-self: stretch;
}

.story-photos {
  display: grid;
  gap: 0;
  width: clamp(320px, 42vw, 520px);
  margin: 0;
  grid-auto-rows: 1fr;
  justify-items: stretch;
  align-content: stretch;
  aspect-ratio: 1 / 3;
}

.story-photos img {
  border: 1px solid rgba(253, 247, 239, 0.5);
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  display: block;
}

.photo-divider {
  position: relative;
}

.photo-divider img {
  width: 100%;
  height: 18vh;
  object-fit: cover;
  display: block;
  object-position: center 50%;
}

.photo-divider .monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 5vw, 5.5rem);
  color: rgba(253, 247, 239, 0.9);
}

.timeline {
  padding: 0 8vw;
}

.timeline .section-title {
  font-size: clamp(4.5rem, 6vw, 6.5rem);
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  margin: 0 0 2rem;
}

.section-title.centered {
  text-align: center;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  column-gap: 4rem;
  row-gap: 2.5rem;
  text-align: left;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: start;
}

.timeline-item {
  display: grid;
  grid-template-columns: 126px 1fr;
  column-gap: 1.25rem;
  row-gap: 0.4rem;
  align-items: start;
}

.timeline-icon {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 3;
  align-self: start;
}

.timeline-icon img {
  width: 90px;
  height: 90px;
}

.timeline-grid h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.2rem;
}

.timeline-grid p {
  margin: 0;
  max-width: 340px;
}

.timeline-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12rem;
}

.timeline-subtitle {
  font-style: italic;
  opacity: 0.9;
  letter-spacing: 0.12rem;
}

.details {
  padding: 2rem 6vw 2.5rem;
}

.details .section-title {
  font-size: clamp(4.5rem, 6vw, 6.5rem);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 260px));
  gap: 5rem 7rem;
  justify-content: center;
}

.detail-card {
  text-align: center;
}

.detail-card h3 {
  margin-top: 5.5rem;
}

.detail-card p {
  margin-top: 0.5rem;
}

/* Wedding details photo positioning controls (adjust per image). */
.detail-photo--ceremony {
  --detail-scale: 0.92;
  --detail-x: 7px;
  --detail-y: -4px;
}

.detail-photo--reception {
  --detail-scale: 0.92;
  --detail-x: 5px;
  --detail-y: -4px;
}

.detail-photo--venue {
  --detail-scale: 0.92;
  --detail-x: 7px;
  --detail-y: -4px;
}

.detail-frame {
  --detail-scale: 1;
  --detail-x: 0px;
  --detail-y: 0px;
  padding: 0;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 10 / 16.8;
  min-height: 432px;
  overflow: visible;
}

.detail-frame::before {
  content: '';
  position: absolute;
  inset: -18%;
  background-image: url('../../public/images/svgs/border.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(90deg) scale(2.5);
  transform-origin: center;
  pointer-events: none;
  z-index: 3;
}

.detail-frame .detail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 42px;
  position: relative;
  z-index: 2;
  display: block;
  transform: translate(var(--detail-x), var(--detail-y)) scale(var(--detail-scale));
}

.travel,
.faq {
  display: flex;
  justify-content: center;
  padding: 0 6vw;
}

.card {
  background: var(--eggshell);
  color: var(--burgundy);
  padding: 3rem;
  max-width: 680px;
  width: 100%;
  border-radius: 1rem;
  text-align: center;
}

.centered {
  text-align: center;
}

.registry {
  background-image: url('../../public/images/actual-images/OhioEngagement-103.jpg');
  background-size: cover;
  background-position: center 60%;
  padding: 14rem 6vw;
  position: relative;
}

.registry::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(84, 32, 42, 0.75);
}

.registry-overlay {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  font-size: 1.05rem;
}

.registry .section-title {
  font-size: clamp(4.5rem, 6vw, 6.5rem);
}

.faq-list {
  display: grid;
  gap: 1.5rem;
  text-align: left;
}

.faq-ribbon {
  width: 36px;
  margin: 0.5rem auto;
  display: block;  
}

.faq-list h3 {
  margin-bottom: 0.5rem;
}

.rsvp {
  padding: 0 6vw 4rem;
  margin-top: 3rem;
}

.rsvp .signature {
  font-family: var(--font-script);
  font-size: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

.rsvp-gate {
  margin: 0 auto 1.5rem;
  max-width: 520px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel .card {
  font-size: 1.1rem;
  border-radius: 0;
  max-width: 1520px;
}

.travel .section-title {
  font-size: clamp(4.5rem, 6vw, 6.5rem);
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.5rem auto 0;
  max-width: 760px;
}

.collage-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(253, 247, 239, 0.4);
}

.collage-grid .collage-large {
  grid-row: span 2;
  height: 100%;
}

.collage-grid .collage-wide {
  grid-column: span 2;
}

.collage-wide-low {
  grid-column: span 2;
  object-position: bottom;
}

.photo-collage {
  margin-bottom: 4rem;
}

.faq {
  background: var(--eggshell);
  color: var(--burgundy);
  padding: 4rem 6vw;
  min-height: 90vh;
  font-size: 1.15rem;
}

.faq .card {
  background: transparent;
  max-width: 860px;
  padding: 0;
  text-align: left;
}

.faq .section-title {
  font-size: clamp(5rem, 7vw, 8rem);
}

.registry {
  margin-bottom: -1.25rem;
}

.photo-banner,
.our-story,
.photo-divider {
  margin: 0;
}

.photo-banner + .our-story,
.our-story + .photo-divider {
  margin-top: -1.25rem;
}

section.rsvp .section-title.centered {
  font-size: clamp(1.75rem, 3.5vw, 3rem) !important;
  margin: 0 0 2rem !important;
}

.rsvp .centered {
  font-size: 1.35rem;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  background: var(--burgundy);
  color: var(--eggshell);
  line-height: 1.7;
  min-height: 100vh;
}

[data-dev-only]:not(.dev-only-visible) {
  display: none;
}

.reveal-item {
  opacity: 0;
  translate: 0 16px;
  will-change: opacity, translate;
  transition: opacity 320ms ease-out, translate 320ms ease-out;
}

.reveal-item.is-revealed {
  opacity: 1;
  translate: 0 0;
}

.reveal-stagger .reveal-word {
  display: inline-block;
  opacity: 0;
  translate: 0 10px;
  transition: opacity 320ms ease-out, translate 320ms ease-out;
  transition-delay: var(--reveal-word-delay, 0ms);
}

.reveal-item.is-revealed.reveal-stagger .reveal-word {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item.is-revealed {
    opacity: 1;
    translate: none;
    animation: none;
  }

  .reveal-stagger .reveal-word,
  .reveal-item.is-revealed.reveal-stagger .reveal-word {
    opacity: 1;
    translate: none;
    transition: none;
  }
}


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

a {
  color: var(--eggshell);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--eggshell);
  color: var(--burgundy);
  z-index: 10;
}

.hero {
  position: relative;
  min-height: 150vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, var(--overlay) 70%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 960px;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.hero-heading {
  font-size: clamp(2.5rem, 8vw, 6rem);
  margin: 0;
  font-weight: 700;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.hero-heading span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-address {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.countdown {
  width: min(100%, 420px);
  border-radius: var(--radius);
  border: 1px solid rgba(253, 247, 239, 0.35);
  padding: 1.25rem;
  background: rgba(253, 247, 239, 0.08);
}

.countdown-label {
  margin: 0 0 0.75rem;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.countdown-grid span {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  padding: 0.75rem 0.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(253, 247, 239, 0.35);
}

.hero-cta {
  display: flex;
  justify-content: center;
}

.hero-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-menu a {
  text-decoration: none;
  border: 1px solid rgba(253, 247, 239, 0.55);
  border-radius: 999px;
  padding: 0.5rem 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}

.hero-menu a:hover,
.hero-menu a:focus-visible {
  background: rgba(253, 247, 239, 0.15);
}

main {
  position: relative;
  background: var(--burgundy);
  z-index: 1;
}

.section {
  padding: clamp(2rem, 8vw, 5rem) clamp(1.5rem, 7vw, 6rem);
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(253, 247, 239, 0.05), rgba(84, 32, 42, 0.95));
  border-top: none;
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  top: 25%;
  height: 50%;
  left: clamp(1.25rem, 4vw, 3.75rem);
  right: clamp(1.25rem, 4vw, 3.75rem);
  background-image:
    linear-gradient(to right, rgba(253, 247, 239, 0.3), rgba(253, 247, 239, 0.3)),
    linear-gradient(to right, rgba(253, 247, 239, 0.3), rgba(253, 247, 239, 0.3));
  background-position: left center, right center;
  background-size: 1px 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.section:first-of-type::before,
.section + .section::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 50%;
  width: min(55%, 520px);
  height: 1px;
  transform: translateX(-50%);
  background: rgba(253, 247, 239, 0.35);
  pointer-events: none;
  z-index: 1;
}

.section.alt {
  background: radial-gradient(circle at 80% 10%, rgba(253, 247, 239, 0.04), rgba(84, 32, 42, 0.92));
}

.section-header {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(60%, 240px);
  height: 3px;
  background: rgba(253, 247, 239, 0.6);
  transform: translateX(-50%);
  border-radius: 999px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  opacity: 0.8;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.travel-grid article,
.registry-panel,
.rsvp-form,
.meal-options,
.rsvp-summary {
  border-radius: var(--radius);
  border: 1px solid rgba(253, 247, 239, 0.2);
  background: rgba(253, 247, 239, 0.05);
  padding: 1.5rem;
  text-align: left;
}

.travel-grid h3 {
  margin-top: 0;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-list li {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  text-align: center;
  align-items: center;
  font-weight: 600;
  flex-wrap: wrap;
}

.schedule-time {
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  min-width: auto;
  font-weight: inherit;
}

.schedule-event {
  font-weight: inherit;
  max-width: 520px;
}

.schedule-separator {
  opacity: 0.75;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  grid-auto-flow: dense;
}

.photo-grid.real {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
  max-width: 1680px;
  margin: 0 auto;
}

.photo-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(253, 247, 239, 0.2);
  padding-bottom: 100%;
  background: rgba(253, 247, 239, 0.04);
}

.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid.real .photo-tile {
  padding-bottom: 0;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  border-color: transparent;
  background: rgba(253, 247, 239, 0.08);
  position: relative;
  overflow: hidden;
}

.photo-grid.real .photo-tile::after {
  content: '';
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 60%, rgba(84, 32, 42, 0.85) 100%);
}

.registry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.registry-actions .btn {
  flex: 1 1 180px;
}

@media (max-width: 900px) {
  .save-card {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    column-gap: 2rem;
  }

  .save-card .photo-grid,
  .save-copy {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-frame .script-title {
    font-size: clamp(3.25rem, 10vw, 5rem);
  }

  .hero-date {
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
  }

  .photo-banner {
    height: 24vh;
  }

  .save-card {
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
    column-gap: 1.5rem;
  }

  .save-the-date {
    padding: 0 4vw;
  }

  .save-card {
    justify-items: center;
  }

  .save-card .photo-grid {
    width: 120%;
    max-width: none;
    gap: 0.75rem;
    justify-self: center;
  }

  .save-copy {
    justify-self: center;
    transform: translateX(20%);
  }

  .save-copy .script-title {
    margin-bottom: 1.25rem;
  }

  .save-copy .save-title {
    font-size: clamp(2rem, 6vw, 2.6rem);
  }

  .our-story {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0 0 0 4vw;
  }

  .our-story .section-title {
    font-size: clamp(4rem, 12vw, 6rem);
    margin-bottom: 0;
  }

  .story-card p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .story-gallery {
    grid-template-columns: 20px auto;
    justify-self: end;
  }

  .story-photos {
    width: min(70vw, 560px);
    grid-auto-rows: 1fr;
    align-content: stretch;
  }

  .photo-grid.real .photo-tile {
    aspect-ratio: 4 / 3;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .details {
    overflow-x: hidden;
  }

  .details-grid {
    gap: 2.5rem 3.5rem;
  }

  .detail-card h3 {
    margin-top: 2.75rem;
  }

  .detail-card p {
    margin-top: 0.25rem;
  }
}

.photo-tile:hover,
.photo-tile.active {
  border-color: rgba(253, 247, 239, 0.35);
  background: rgba(253, 247, 239, 0.08);
}

.text-link {
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(253, 247, 239, 0.6);
  padding-bottom: 0.15rem;
}

.registry-panel {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 247, 239, 0.65);
  background: transparent;
  color: var(--eggshell);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn:hover,
.btn:focus-visible {
  background: rgba(253, 247, 239, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.envelope-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.envelope-prompt {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-align: center;
}

.envelope-prompt.revealed {
  color: rgba(253, 247, 239, 0.9);
}

.envelope-button {
  position: relative;
  width: min(440px, 92vw);
  border: none;
  border-radius: 1.5rem;
  padding: 0;
  background: transparent;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease;
  overflow: hidden;
}

.envelope-button:hover,
.envelope-button:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.55);
}

.envelope-button.opened {
  transform: translateY(-2px) scale(0.99);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.4);
}

.envelope-photo {
  display: block;
  position: relative;
  width: 100%;
}

.envelope-photo img {
  width: 100%;
  display: block;
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.envelope-tag {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(253, 247, 239, 0.92);
  color: var(--burgundy);
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

.rsvp-form.is-collapsed {
  display: none;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

input,
textarea,
select {
  border-radius: 0.9rem;
  border: 1px solid rgba(253, 247, 239, 0.35);
  background: rgba(253, 247, 239, 0.08);
  color: var(--eggshell);
  padding: 0.85rem 1rem;
  font: inherit;
}

input[type='radio'] {
  width: auto;
  padding: 0;
  accent-color: var(--eggshell);
}

input::placeholder,
textarea::placeholder {
  color: rgba(253, 247, 239, 0.65);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(253, 247, 239, 0.75);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.meal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.meal-options legend {
  margin: 0 0 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  flex-basis: 100%;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rsvp-summary {
  display: none;
}

.rsvp-summary.visible {
  display: block;
}

.rsvp-summary pre {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 0.85rem;
  background: rgba(253, 247, 239, 0.05);
  border: 1px dashed rgba(253, 247, 239, 0.4);
  color: var(--eggshell);
  white-space: pre-wrap;
}

.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background: rgba(253, 247, 239, 0.06);
  border-top: none;
  position: relative;
  z-index: 1;
}

.invitation-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.envelope-stage {
  margin: 0;
  position: relative;
  width: min(560px, 92vw);
  border-radius: 1.75rem;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  overflow: hidden;
  background: rgba(253, 247, 239, 0.08);
  border: 1px solid rgba(253, 247, 239, 0.2);
  cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.envelope-stage:hover,
.envelope-stage:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

#envelope-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.2;
}
