﻿@font-face {
  font-family: "Arsenica Regular";
  src: url("/assets/fonts/arsenica-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AnastasiaScriptC";
  src: url("/assets/fonts/anastasiascriptc.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/coromont/CormorantGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Wedding Digits";
  src: url("/assets/fonts/arsenica-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+003A, U+007C;
}
:root {
  --ink: #24231f;
  --muted: #69665e;
  --paper: #ffffff;
  --soft: #eeeee9;
  --cream: #f5f3ee;
  --olive: #8f8975;
  --olive-dark: #eeeee9;
  --line: rgba(36, 35, 31, 0.14);
  --copy-size: clamp(24px, 3vw, 40px);
  --button-size: clamp(17px, 1.8vw, 25px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
}

a {
  color: inherit;
}

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

.nowrap {
  white-space: nowrap;
}

.title-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: clamp(165px, 22vw, 265px);
  place-items: center;
  padding: 38px clamp(18px, 4vw, 48px) 30px;
}


.title-hero h1,
.page-hero h1,
.story-intro h1 {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-wedding-hero {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 54px 18px;
  color: #f7f4eb;
  background: linear-gradient(rgba(32, 38, 30, 0.42), rgba(32, 38, 30, 0.42)), url("/assets/hero-flowers-clean.png") center center / cover;
  text-align: center;
  box-sizing: border-box;
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  overflow: hidden;
}

.home-wedding-hero__content {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
}

.home-title-block {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  transform: translateX(-7px);
}

.home-wedding-hero__eyebrow,
.home-wedding-hero__date {
  margin: 0;
  color: #f7f4eb;
  font-size: var(--copy-size);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.home-wedding-hero__eyebrow {
  text-transform: uppercase;
}

.home-wedding-hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 20px auto 22px;
  color: #f7f4eb;
  font-family: "AnastasiaScriptC", "Snell Roundhand", "Bickham Script Pro", cursive;
  font-size: clamp(84px, 14vw, 190px);
  font-weight: 400;
  line-height: 0.88;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.22);
}

.home-wedding-hero h1 span {
  display: block;
  margin: -0.06em 0 -0.02em;
  font-family: "AnastasiaScriptC", "Snell Roundhand", "Bickham Script Pro", cursive;
  font-size: 0.62em;
  font-style: normal;
  line-height: 1;
}

.amp {
  font-family: "AnastasiaScriptC", "Snell Roundhand", "Bickham Script Pro", cursive;
  font-size: 1.25em;
  line-height: 0;
}

.home-wedding-hero__date {
  font-family: "Arsenica Regular", Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
}

.home-wedding-hero__note {
  max-width: 740px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  color: #f7f4eb;
  font-size: var(--copy-size);
  line-height: 1.25;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.welcome-copy {
  background: var(--soft);
  text-align: center;
}

.welcome-copy p {
  max-width: 780px;
  margin: 0 auto 16px;
  color: var(--ink);
  font-size: var(--copy-size);
  line-height: 1.25;
}

.welcome-copy p:last-child {
  margin-bottom: 0;
}

.paragraph-divider {
  display: block;
  margin: -10px auto 4px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

.title-hero h1 {
  position: relative;
  z-index: 1;
  font-family: "AnastasiaScriptC", "Snell Roundhand", "Bickham Script Pro", cursive;
  font-size: clamp(76px, 13vw, 176px);
  font-weight: 400;
  line-height: 0.92;
  text-align: center;
  text-transform: none;
}

.mobile-name-break {
  display: none;
}

.title-hero h1 span {
  white-space: nowrap;
}

.date-band {
  display: grid;
  min-height: clamp(96px, 15vw, 188px);
  place-content: center;
  gap: 10px;
  background: var(--soft);
  text-align: center;
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.date-band p {
  margin: 0;
}

.wedding-date {
  color: var(--muted);
  font-family: "Arsenica Regular", Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.photo-panel {
  min-height: clamp(300px, 35vw, 445px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: linear-gradient(rgba(36, 40, 28, 0.2), rgba(36, 40, 28, 0.2)), url("/assets/hero-flowers-clean.png") center / cover;
}

.photo-intro {
  background-image: linear-gradient(rgba(36, 40, 28, 0.2), rgba(36, 40, 28, 0.2)), url("/assets/hero-flowers-clean.png");
}

.overlay-note {
  max-width: 780px;
  color: #fff;
  text-align: center;
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.22;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.overlay-note p {
  margin: 0;
  color: #fff;
  font: inherit;
  line-height: inherit;
  text-shadow: inherit;
}

.section-pad {
  padding: clamp(56px, 9vw, 110px) clamp(22px, 5vw, 72px);
}

.section-narrow {
  width: min(1024px, calc(100% - 44px));
  margin-inline: auto;
}

.card-grid {
  width: min(1180px, calc(100% - 96px));
  margin: clamp(48px, 7vw, 72px) auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.image-card {
  transition: transform 260ms ease, box-shadow 260ms ease;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  color: #fff;
  background: #ddd;
  text-decoration: none;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28));
}

.image-card span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-transform: uppercase;
}

.image-card:hover img,
.image-card:focus-visible img,
.story-gallery a:hover img,
.story-gallery a:focus-visible img {
  filter: brightness(1.05);
  transform: scale(1.035);
}

.home-copy {
  background: var(--soft);
  text-align: center;
}

.kicker {
  margin: 0 0 18px;
  color: var(--olive-dark);
  font-size: var(--copy-size);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
}

.home-copy h2 {
  max-width: 880px;
  margin: 0 auto 28px;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

p {
  color: var(--muted);
  font-size: var(--copy-size);
  line-height: 1.72;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 24px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 210px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  padding: 0 30px;
  color: #fff;
  background: var(--olive);
  font-size: var(--button-size);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  transform: translateY(-1px);
}

.button--light {
  color: var(--olive-dark);
  background: transparent;
}

.button--cream {
  color: var(--olive-dark);
  background: var(--cream);
  border-color: var(--cream);
}

.nav-pill {
  position: fixed;
  top: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(36, 35, 31, 0.18);
  border-radius: 999px;
  font-size: var(--button-size);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.back-link {
  left: 18px;
}

.rsvp-link {
  right: 18px;
}

.registry {
  min-height: clamp(480px, 58vw, 744px);
  display: grid;
  place-items: center;
  padding: 86px 24px;
  background: linear-gradient(rgba(31, 42, 25, 0.38), rgba(31, 42, 25, 0.38)), url("/assets/registry-flowers.jpg") center / cover;
  text-align: center;
}

.registry-content {
  max-width: 620px;
  color: #fff;
}

.registry h2,
.registry p,
.registry .kicker {
  color: #fff;
}

.registry h2 {
  margin-bottom: 18px;
  text-transform: uppercase;
}

.registry .button {
  margin-top: 24px;
}

.page-hero {
  min-height: clamp(300px, 39vw, 520px);
  display: grid;
  place-items: center;
  padding: 80px 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(36, 35, 31, 0.28), rgba(36, 35, 31, 0.28)), url("/assets/card-atmosphere.jpg") center / cover;
}

.page-hero h1 {
  font-size: clamp(46px, 7vw, 92px);
}

.section-hero {
  min-height: clamp(280px, 39vw, 520px);
  display: grid;
  place-items: center;
  padding: 72px 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(36, 35, 31, 0.46), rgba(36, 35, 31, 0.46)), var(--hero-image) center / cover;
}

.section-hero h2 {
  color: #fff;
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 1;
  text-transform: uppercase;
}

.section-hero--place {
  --hero-image: url("/assets/card-place-pin.jpg");
  background-image: linear-gradient(rgba(36, 35, 31, 0.5), rgba(36, 35, 31, 0.5)), url("/assets/card-place-pin.jpg");
  background-position: center center;
}

.section-hero--schedule {
  --hero-image: url("/assets/timetable.jpg");
  background-position: center 54%;
}

.section-hero--details {
  --hero-image: url("/assets/card-details.png");
  background-position: center;
}

.invite-panel {
  display: grid;
  place-items: center;
}

.soft-card {
  width: min(760px, 100%);
  min-height: 320px;
  display: grid;
  place-items: center;
  gap: 32px;
  padding: clamp(34px, 7vw, 72px);
  color: #fff;
  background: var(--olive);
  text-align: center;
}

.soft-card p {
  max-width: 440px;
  margin: 0;
  color: #fff;
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: var(--copy-size);
  line-height: 1.35;
}

.feature-image img,
.split-block img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 7px;
}

.details-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  margin-bottom: 64px;
}

.info-card,
.split-text {
  padding: clamp(32px, 6vw, 62px);
  background: var(--cream);
  text-align: center;
}

.info-card h2,
.split-text h2 {
  margin: 0 0 12px;
  font-size: 22px;
  text-transform: none;
}

.info-card p,
.split-text p {
  margin: 0 0 28px;
}

.info-card p:last-child,
.split-text p:last-child {
  margin-bottom: 0;
}

.travel-hero {
  min-height: clamp(280px, 42vw, 520px);
  display: grid;
  place-items: center;
  margin: 0 0 72px;
  color: #fff;
  background: linear-gradient(rgba(40, 38, 30, 0.24), rgba(40, 38, 30, 0.24)), url("/KateAndrewWedding/details/Desktop.png") center 57% / cover;
}

.travel-hero h2 {
  text-transform: uppercase;
}

.split-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 72px;
  overflow: hidden;
  border-radius: 7px;
}

.split-block img {
  height: 100%;
  min-height: 360px;
  border-radius: 0;
}

.venue-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  padding: clamp(64px, 9vw, 112px) 0;
}

.text-emphasis {
  color: var(--ink);
  font-size: var(--copy-size);
  line-height: 1.45;
}

.venue-copy h2 {
  margin-bottom: 8px;
  text-transform: uppercase;
}

.venue-copy p {
  max-width: 560px;
}

.venue-copy .button {
  margin-top: 14px;
}

.venue-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.venue-photos img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 7px;
}

.venue-photos img:first-child {
  object-position: center 45%;
}

.venue-photos img:last-child {
  object-position: center 42%;
}

.schedule-section {
  padding: clamp(62px, 9vw, 112px) 0;
  text-align: center;
}

.section-title {
  margin-bottom: clamp(32px, 6vw, 64px);
  font-size: clamp(34px, 5.6vw, 66px);
  text-transform: uppercase;
}

.timeline-item {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--ink);
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-item h3 {
  margin: 0 0 24px;
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4.8vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

.timeline-dot {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  text-transform: none;
}

.timeline-item p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink);
  font-size: var(--copy-size);
  line-height: 1.5;
}

.details-section {
  width: min(1320px, calc(100% - clamp(36px, 5vw, 72px)));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(64px, 9vw, 112px) 0;
}

.detail-card {
  min-height: 0;
  padding: clamp(30px, 4vw, 48px);
  background: var(--cream);
  border-radius: 2px;
  text-align: center;
}

.venue-copy .paragraph-divider {
  margin: -8px auto 20px;
}

.detail-card h2 {
  margin-bottom: 22px;
  text-align: center;
  text-transform: uppercase;
}

.detail-card p {
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.detail-card--gift {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--soft);
}

.detail-card--transfer {
  background: #eeeee9;
  border-radius: 4px;
}

.detail-card--contacts {
  background: var(--cream);
  border-radius: 4px;
}

.guest-rsvp {
  min-height: clamp(560px, 66vw, 820px);
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 86px) 22px;
  background: linear-gradient(rgba(36, 35, 31, 0.35), rgba(36, 35, 31, 0.35)), url("/assets/anketa.jpg") center 48% / cover;
}

.guest-form {
  position: relative;
  isolation: isolate;
  width: min(620px, 100%);
  padding: clamp(48px, 6vw, 68px);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(36, 35, 31, 0.14);
}

.guest-form > * {
  position: relative;
  z-index: 1;
}

.guest-form h2 {
  margin-bottom: 14px;
  text-align: center;
}

.guest-form .kicker,
.form-lead {
  text-align: center;
}

.form-lead {
  max-width: 540px;
  margin: 0 auto 36px;
}

.guest-form fieldset {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
  padding: 0;
  border: 0;
}

.guest-form legend,
.field-label {
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: var(--copy-size);
  font-weight: 700;
  line-height: 1.2;
}

.guest-form label {
  color: var(--ink);
  font-size: var(--copy-size);
  line-height: 1.45;
}

.guest-form input[type="radio"] {
  width: 24px;
  height: 24px;
  margin: 0 12px 0 0;
  vertical-align: -5px;
  accent-color: var(--olive-dark);
}

.field-hint {
  margin: -6px 0 16px;
  color: var(--muted);
}

.guest-form input[type="text"],
.guest-form textarea {
  width: 100%;
  border: 1px solid rgba(36, 35, 31, 0.24);
  border-radius: 7px;
  padding: 18px 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: var(--copy-size);
}

.guest-form input[type="text"] {
  min-height: 58px;
  margin-bottom: 12px;
}

.guest-form textarea {
  min-height: 130px;
  margin-bottom: 28px;
  resize: vertical;
}

.guest-form ::placeholder {
  color: rgba(36, 35, 31, 0.48);
}

.guest-form .button {
  width: 100%;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.guest-form .button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.form-status {
  min-height: 1.4em;
  margin: 18px 0 0;
  color: var(--ink);
  text-align: center;
  font-size: var(--button-size);
  line-height: 1.35;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(22px, 6vw, 86px);
}

.story-photo {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
}

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

.story-intro h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.92;
}

.story-intro p {
  max-width: 620px;
}

.story-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  padding-left: 0;
  padding-right: 0;
}

.story-timeline article {
  padding: clamp(34px, 5vw, 64px);
  background: var(--soft);
}

.story-timeline span {
  display: block;
  margin-bottom: 28px;
  color: var(--olive-dark);
  font-size: var(--copy-size);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.story-timeline h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.6vw, 46px);
}

.quote-band {
  padding: clamp(64px, 10vw, 120px) 24px;
  text-align: center;
}

.quote-band p {
  max-width: 860px;
  margin: 0 auto;
  color: var(--ink);
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1.05;
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 82px;
}

.story-gallery a {
  transition: transform 260ms ease, box-shadow 260ms ease;
  overflow: hidden;
  border-radius: 7px;
  aspect-ratio: 4 / 5;
  background: var(--soft);
}

.story-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 132px;
  padding: 32px clamp(24px, 5vw, 56px);
  background: var(--soft);
  text-align: center;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
  color: var(--ink);
  font-family: "Wedding Digits", "Cormorant Garamond", Georgia, serif;
  font-size: var(--copy-size);
  line-height: 1;
}

.footer-k {
  display: inline-block;
  transform: translateX(8px);
}

.footer a {
  color: var(--ink);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

      .card-grid {
    width: min(640px, calc(100% - 52px));
    gap: 20px;
  }

  .details-cards,
  .split-block,
  .story-hero,
  .story-timeline,
  .venue-section {
    grid-template-columns: 1fr;
  }

  .details-section {
    width: min(540px, calc(100% - 44px));
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .venue-copy {
    text-align: center;
  }

  .venue-copy p {
    margin-inline: auto;
  }

  .two-col {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .split-block--reverse img {
    order: 2;
  }

  .section-hero {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .home-wedding-hero {
    min-height: 100svh;
    padding: 54px 18px;
  }

  .home-wedding-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 30px;
    height: 30px;
    border-right: 3px solid rgba(247, 244, 235, 0.9);
    border-bottom: 3px solid rgba(247, 244, 235, 0.9);
    transform: translateX(-50%) rotate(45deg);
    animation: scroll-cue 1.5s ease-in-out infinite;
    transition: opacity 240ms ease;
  }

  .has-scrolled .home-wedding-hero::after {
    opacity: 0;
    animation: none;
  }

  .section-hero--place {
    background-position: center 68%;
  }

  .home-wedding-hero h1 {
    font-size: clamp(72px, 22vw, 116px);
  }

  .home-wedding-hero h1 span {
    display: block;
    margin: 0.05em 0;
  }

  .home-wedding-hero__note {
    font-size: var(--copy-size);
  }

  .title-hero h1 {
  font-size: clamp(62px, 19vw, 92px);
  }

  .mobile-name-break {
    display: block;
  }
.photo-panel {
    min-height: 245px;
  }

  .overlay-note {
    font-size: 25px;
  }

  .card-grid,
  .story-gallery {
    grid-template-columns: 1fr;
    width: calc(100% - 44px);
  }

  .image-card {
    aspect-ratio: 1 / 1.08;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .registry {
    min-height: 520px;
  }

  .section-hero {
    min-height: 260px;
    padding: 44px 18px;
  }

  .section-hero h2 {
    font-size: clamp(38px, 12vw, 62px);
  }

  .guest-rsvp {
    min-height: 100svh;
  }

  .venue-photos {
    display: none;
  }

  .venue-photos img {
    min-height: 300px;
    max-height: 430px;
  }

  .guest-form {
    width: min(520px, calc(100% - 20px));
    padding: 38px 24px;
  }

  .guest-form legend,
  .field-label {
    font-size: var(--copy-size);
  }

  .guest-form label {
    font-size: var(--copy-size);
  }

  .story-hero {
    padding-top: 38px;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
  }
}

@keyframes scroll-cue {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, -4px) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 8px) rotate(45deg);
  }
}






.reveal-card {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 950ms ease, transform 950ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.guest-rsvp.reveal-card {
  transform: translateY(24px);
  transition-duration: 620ms;
}

@media (hover: hover) and (pointer: fine) {
  .image-card:hover,
  .story-gallery a:hover {
    box-shadow: 0 20px 44px rgba(36, 35, 31, 0.16);
    transform: translateY(-4px);
  }
}

@media (hover: none) {
  .image-card:active,
  .story-gallery a:active {
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-card {
    opacity: 1;
    transform: none;
  }
}
