:root {
  --milk: #f8f4ec;
  --ivory: #fffdf8;
  --warm-white: #fbf8f1;
  --champagne: #d6c1a1;
  --champagne-soft: #e7dac7;
  --taupe: #9a8a7c;
  --taupe-dark: #6f6258;
  --graphite: #282522;
  --soft-black: #11100f;
  --line: rgba(17, 16, 15, 0.14);
  --line-strong: rgba(17, 16, 15, 0.24);
  --shadow: 0 26px 70px rgba(45, 36, 28, 0.12);
  --shadow-light: 0 18px 42px rgba(45, 36, 28, 0.08);
  --container: 1180px;
  --serif: "Cormorant Garamond", serif;
  --script: "Marck Script", cursive;
  --sans: "Manrope", sans-serif;
  --transition: 320ms ease;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--graphite);
  background:
    radial-gradient(circle at 16% 10%, rgba(214, 193, 161, 0.2), transparent 28%),
    radial-gradient(circle at 85% 28%, rgba(154, 138, 124, 0.14), transparent 24%),
    linear-gradient(180deg, var(--milk), #f1eadf 48%, var(--warm-white));
  font-family: var(--sans);
  font-weight: 300;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 16, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 16, 15, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 72%);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  right: clamp(10px, 1.35vw, 18px);
  top: 22px;
  bottom: 22px;
  z-index: 20;
  width: 1px;
  opacity: var(--scroll-rail-opacity, 0);
  pointer-events: none;
  transition: opacity 260ms ease, height 120ms ease-out;
}

.page-shell::before {
  background: linear-gradient(180deg, transparent, rgba(17, 16, 15, 0.16) 16%, rgba(17, 16, 15, 0.16) 84%, transparent);
}

.page-shell::after {
  bottom: auto;
  height: calc((100vh - 44px) * var(--scroll-progress, 0));
  background: linear-gradient(180deg, rgba(214, 193, 161, 0.2), rgba(111, 98, 88, 0.74));
  box-shadow: 0 0 18px rgba(214, 193, 161, 0.2);
}

.page-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.23;
  background-image: radial-gradient(circle, rgba(17, 16, 15, 0.08) 0 0.5px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.container {
  width: min(calc(100% - 36px), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(74px, 9vw, 132px) 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.48), rgba(232, 221, 204, 0.32));
}

.section--overlap {
  margin-top: clamp(-88px, -7vw, -44px);
  z-index: 3;
}

.section-heading {
  max-width: 460px;
}

.section-heading--left {
  margin-bottom: 28px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--soft-black);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.92;
}

.section-date {
  display: grid;
  margin-bottom: 18px;
}

.section-date span {
  display: block;
}

.section-subtitle {
  margin: 0;
  color: rgba(40, 37, 34, 0.76);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0;
  text-transform: none;
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

p {
  color: rgba(40, 37, 34, 0.76);
  font-size: 1rem;
  line-height: 1.8;
}

.hero {
  --hero-image-left: -8%;
  --hero-image-width: 116%;
  --hero-image-scale: 1.02;
  --hero-frame-inset: max(18px, 3.2vw);
  --hero-content-bottom: clamp(92px, 13svh, 150px);
  --hero-title-size: clamp(3.2rem, 5.1vw, 6.1rem);
  --hero-content-gap: clamp(5px, 0.85vw, 13px);
  position: relative;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--soft-black);
}

.hero__image,
.hero__veil,
.hero__frame {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  left: var(--hero-image-left);
  width: var(--hero-image-width);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 44% 34%;
  filter: grayscale(0.18) saturate(0.75) contrast(1.04);
  transform-origin: center center;
  transform: scale(var(--hero-image-scale));
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 8, 7, 0.24), rgba(9, 8, 7, 0.18) 35%, rgba(9, 8, 7, 0.56)),
    radial-gradient(circle at 50% 38%, rgba(255, 253, 248, 0.14), transparent 34%);
}

.hero__frame {
  z-index: -1;
  inset: var(--hero-frame-inset);
  border: 1px solid rgba(255, 253, 248, 0.42);
  pointer-events: none;
}

.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: clamp(42px, 8vw, 92px);
  transform: translateX(-50%);
  background: rgba(255, 253, 248, 0.44);
}

.hero__frame::before {
  top: 0;
}

.hero__frame::after {
  bottom: 0;
}

.hero__content {
  position: absolute;
  top: auto;
  bottom: var(--hero-content-bottom);
  left: 50%;
  display: flex;
  max-height: calc(100svh - (var(--hero-frame-inset) * 2) - clamp(32px, 6svh, 84px));
  width: min(calc(100% - 44px), 860px);
  flex-direction: column;
  align-items: center;
  gap: var(--hero-content-gap);
  padding: 0 clamp(20px, 5vw, 72px);
  text-align: center;
  color: var(--ivory);
  transform: translateX(-50%);
}

.hero__meta {
  position: absolute;
  top: calc(var(--hero-frame-inset) + clamp(34px, 5vw, 86px));
  left: 50%;
  z-index: 1;
  display: grid;
  gap: clamp(2px, 0.4vw, 6px);
  width: min(calc(100% - 56px), 920px);
  color: var(--ivory);
  font-family: var(--serif);
  text-align: center;
  transform: translateX(-50%);
}

.hero__meta.reveal {
  transform: translate(-50%, 30px);
}

.hero__meta.reveal.is-visible {
  transform: translate(-50%, 0);
}

@media (min-width: 760px) and (max-height: 820px) {
  .hero {
    --hero-content-bottom: clamp(92px, 14svh, 132px);
    --hero-title-size: clamp(3rem, 4.85vw, 5rem);
    --hero-content-gap: clamp(3px, 0.6vw, 8px);
  }
}

.hero__kicker,
.hero__date,
.timeline-row p,
.location-list p,
.palette-item p {
  letter-spacing: 0.04em;
}

.hero__kicker {
  margin: 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.85rem, 4.2vw, 4.2rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__title {
  display: grid;
  justify-items: center;
  gap: 0;
  margin: 0;
  width: 100%;
  color: var(--ivory);
  font-size: var(--hero-title-size);
  line-height: 0.82;
  text-align: center;
  text-shadow: 0 18px 62px rgba(0, 0, 0, 0.24);
}

.hero__title span,
.hero__title em {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  text-align: center;
  white-space: nowrap;
}

.hero__title em {
  color: rgba(255, 253, 248, 0.84);
  font-family: var(--script);
  font-size: 0.45em;
  font-style: normal;
  line-height: 0.9;
}

.hero__date {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(2.6rem, 5vw, 5.3rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.editorial-grid {
  display: grid;
  position: relative;
  gap: 0;
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  align-items: stretch;
  min-height: clamp(560px, 48vw, 700px);
  padding: clamp(18px, 2.4vw, 34px);
  border: 1px solid rgba(17, 16, 15, 0.11);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.86), rgba(248, 244, 236, 0.7)),
    var(--milk);
  box-shadow: 0 30px 76px rgba(45, 36, 28, 0.1);
  isolation: isolate;
}

.editorial-grid::before,
.editorial-grid::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.editorial-grid::before {
  inset: clamp(10px, 1vw, 16px);
  border: 1px solid rgba(17, 16, 15, 0.09);
}

.editorial-grid::after {
  top: clamp(36px, 5vw, 72px);
  right: clamp(38px, 4.8vw, 76px);
  width: clamp(76px, 10vw, 150px);
  height: clamp(76px, 10vw, 150px);
  border-top: 1px solid rgba(79, 73, 45, 0.28);
  border-right: 1px solid rgba(79, 73, 45, 0.28);
}

.paper-card,
.timeline-card,
.palette-card,
.location-list,
.form-photo {
  border: 1px solid rgba(17, 16, 15, 0.11);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(10px);
}

.paper-card {
  position: relative;
  padding: clamp(32px, 5vw, 68px);
}

.paper-card::before,
.timeline-card::before,
.palette-card::before,
.rsvp-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(17, 16, 15, 0.075);
  pointer-events: none;
}

.invitation-card {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  z-index: 4;
  width: min(100%, 430px);
  max-width: none;
  margin: clamp(38px, 5vw, 76px) 0 clamp(34px, 4vw, 62px) clamp(-92px, -5.4vw, -56px);
  padding: clamp(38px, 4.4vw, 62px) clamp(30px, 3.8vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 248, 0.88)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 56px rgba(45, 36, 28, 0.11);
  backdrop-filter: blur(6px);
}

.invitation-card::before {
  inset: clamp(12px, 1.2vw, 18px);
  border-color: rgba(17, 16, 15, 0.07);
}

.invitation-card::after {
  content: "";
  position: absolute;
  top: clamp(20px, 2.6vw, 34px);
  right: clamp(20px, 2.6vw, 34px);
  width: clamp(38px, 4.4vw, 64px);
  height: clamp(38px, 4.4vw, 64px);
  border-top: 1px solid rgba(79, 73, 45, 0.28);
  border-right: 1px solid rgba(79, 73, 45, 0.28);
  pointer-events: none;
}

.invitation-card h2 {
  max-width: 340px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  font-size: clamp(2.9rem, 4.7vw, 5.2rem);
  line-height: 0.9;
}

.invitation-card p {
  max-width: 300px;
  margin-bottom: 0;
  color: rgba(40, 37, 34, 0.82);
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  line-height: 1.82;
}

.editorial-photo,
.form-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
}

.editorial-photo {
  grid-column: 1 / 2;
  grid-row: 1;
  align-self: stretch;
  width: min(100%, 690px);
  height: 100%;
  min-height: clamp(500px, 43vw, 650px);
  padding: 0;
  border: 1px solid rgba(17, 16, 15, 0.08);
  border-radius: 52% 52% 6px 6px / 38% 38% 6px 6px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.32), rgba(214, 193, 161, 0.16)),
    var(--ivory);
  box-shadow: 0 28px 68px rgba(45, 36, 28, 0.12);
  transform: none;
}

.editorial-photo img,
.form-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.editorial-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: 49% 48%;
  filter: grayscale(0.02) saturate(1) contrast(1.02);
  transform: scale(1.07);
  transform-origin: 50% 50%;
  -webkit-mask-image: none;
  mask-image: none;
}

.editorial-photo::before,
.form-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 44%, transparent 50%, rgba(17, 16, 15, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.04), transparent 46%, rgba(17, 16, 15, 0.14));
}

.form-photo::before {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.08), transparent 42%, rgba(17, 16, 15, 0.06)),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(248, 244, 236, 0.22) 100%);
}

.editorial-photo::after,
.form-photo::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.1vw, 16px);
  z-index: 2;
  border: 1px solid rgba(255, 253, 248, 0.26);
  border-radius: inherit;
  pointer-events: none;
}

.photo-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--taupe-dark);
  background: var(--milk);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid rgba(17, 16, 15, 0.42);
  background: var(--soft-black);
  color: var(--ivory);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--soft-black);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(45, 36, 28, 0.1);
}

.split-layout,
.palette-layout,
.location-layout {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
}

.timeline-card {
  position: relative;
  display: grid;
  gap: 0;
  padding: clamp(30px, 4vw, 46px);
}

.timeline-card::before {
  left: clamp(118px, 15vw, 156px);
  inset-block: clamp(34px, 4.5vw, 52px);
  width: 1px;
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 16, 15, 0.22) 8%, rgba(17, 16, 15, 0.22) 92%, transparent);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(98px, 13vw, 140px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 38px);
  min-width: 0;
  align-items: start;
  min-height: auto;
  padding: clamp(16px, 2.5vw, 24px) 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 16, 15, 0.1);
  background: transparent;
  box-shadow: none;
  transition: transform var(--transition), color var(--transition);
}

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

.timeline-row:hover {
  transform: translateX(4px);
}

.timeline-row time {
  color: var(--soft-black);
  font-family: var(--serif);
  max-width: 100%;
  overflow-wrap: normal;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.95;
  white-space: nowrap;
}

.timeline-row span {
  position: absolute;
  top: clamp(24px, 3vw, 34px);
  left: clamp(113px, 15vw, 151px);
  z-index: 1;
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid var(--taupe-dark);
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 0 7px rgba(255, 253, 248, 0.9);
}

.timeline-row p {
  margin: 0;
  padding-top: 0.32em;
  color: var(--taupe-dark);
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  font-weight: 500;
  text-align: left;
}

.palette-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 46px);
  padding: clamp(32px, 5vw, 58px);
}

.palette-item {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.palette-item span {
  width: clamp(66px, 8.6vw, 104px);
  aspect-ratio: 1;
  border: 1px solid rgba(17, 16, 15, 0.14);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow:
    inset 0 0 0 8px rgba(255, 253, 248, 0.22),
    0 16px 28px rgba(45, 36, 28, 0.08);
}

.palette-item p {
  margin: 0;
  color: var(--taupe-dark);
  font-size: 0.68rem;
  font-weight: 500;
}

.location-list {
  display: grid;
}

.location-list article {
  padding: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.location-list article:last-child {
  border-bottom: 0;
}

.location-list p {
  margin: 0 0 14px;
  color: var(--taupe-dark);
  font-size: 0.68rem;
  font-weight: 500;
}

.location-list h3 {
  margin-bottom: 10px;
}

.location-list span {
  display: block;
  margin-bottom: 22px;
  color: rgba(40, 37, 34, 0.68);
}

.location-list a {
  display: inline-flex;
  width: fit-content;
  margin-right: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid currentColor;
  color: var(--soft-black);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: color var(--transition), transform var(--transition);
}

.location-list a:hover,
.location-list a:focus-visible {
  color: var(--taupe-dark);
  transform: translateX(4px);
}

.section--wishes {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.36), rgba(248, 244, 236, 0.74));
}

.wishes-layout {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
}

.wish-list {
  display: grid;
  border: 1px solid rgba(17, 16, 15, 0.11);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-light);
}

.wish-list article {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.wish-list article:last-child {
  border-bottom: 0;
}

.wish-list h3 {
  margin-bottom: 14px;
}

.wish-list p {
  margin-bottom: 0;
}

.wish-badge {
  display: inline-flex;
  position: absolute;
  right: clamp(24px, 3vw, 38px);
  bottom: clamp(22px, 3vw, 34px);
  align-items: center;
  justify-content: center;
  min-width: 46px;
  margin: 0;
  border: 1px solid rgba(17, 16, 15, 0.16);
  padding: 6px 11px;
  color: var(--soft-black);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.wish-badge + h3 {
  padding-right: 56px;
}

.section--form {
  --rsvp-stable-height: clamp(1120px, 86vw, 1180px);
  border-top: 1px solid rgba(17, 16, 15, 0.06);
  background:
    linear-gradient(180deg, rgba(232, 221, 204, 0.48), rgba(255, 253, 248, 0.34) 46%, rgba(214, 193, 161, 0.22)),
    #efe6d8;
  box-shadow: inset 0 24px 54px rgba(45, 36, 28, 0.045);
}

.form-layout {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.form-photo {
  height: var(--rsvp-stable-height);
  min-height: 520px;
  background: var(--ivory);
}

.form-photo img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  object-position: 50% 68%;
  border-radius: 4px;
}

.rsvp-card {
  align-self: center;
  display: flex;
  min-height: var(--rsvp-stable-height);
  flex-direction: column;
  scroll-margin-top: 18px;
}

.rsvp-form {
  display: grid;
  align-content: start;
  gap: 18px;
}

.rsvp-conditional {
  display: grid;
  gap: 18px;
  animation: conditionalFade 260ms ease both;
}

.rsvp-conditional[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.field span,
.field legend {
  color: var(--taupe-dark);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 13px 0;
  background: transparent;
  color: var(--soft-black);
  transition: border-color var(--transition), background var(--transition);
}

.field textarea {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  resize: none;
  overflow-y: auto;
}

.field textarea::placeholder {
  color: rgba(40, 37, 34, 0.42);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--soft-black);
  background: rgba(255, 253, 248, 0.42);
}

.attendance-field {
  position: relative;
  gap: 10px;
}

.select-shell {
  position: relative;
  display: block;
}

.select-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), transparent 48%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.12), rgba(214, 193, 161, 0.1));
  pointer-events: none;
}

.select-shell::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(17, 16, 15, 0.58);
  border-bottom: 1px solid rgba(17, 16, 15, 0.58);
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
  transition: border-color var(--transition), transform var(--transition);
}

.select-shell select {
  position: relative;
  width: 100%;
  min-height: 58px;
  appearance: none;
  border: 1px solid rgba(17, 16, 15, 0.16);
  border-radius: 8px;
  padding: 16px 52px 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(248, 244, 236, 0.52));
  color: var(--graphite);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(45, 36, 28, 0.045);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

.select-shell select:hover {
  border-color: rgba(17, 16, 15, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 244, 236, 0.64));
  box-shadow: 0 18px 38px rgba(45, 36, 28, 0.075);
}

.select-shell select:focus {
  outline: 0;
  border-color: rgba(111, 98, 88, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(214, 193, 161, 0.18));
  color: var(--soft-black);
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.74),
    0 0 0 4px rgba(214, 193, 161, 0.22),
    0 20px 42px rgba(45, 36, 28, 0.08);
}

.select-shell:focus-within::after {
  border-color: var(--soft-black);
  transform: translateY(-40%) rotate(225deg);
}

.field--choice {
  grid-template-columns: 1fr;
  gap: 12px;
}

.field--choice legend {
  margin-bottom: 2px;
}

.field--choice label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.field--choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--soft-black);
}

.field--choice label span {
  color: var(--graphite);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

.rsvp-form__actions {
  padding-top: 10px;
}

.rsvp-form__actions[hidden] {
  display: none;
}

.form-message {
  min-height: 28px;
  margin: 0;
  color: var(--taupe-dark);
  font-size: 0.9rem;
}

@keyframes conditionalFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message.is-error {
  color: #7d382c;
}

.footer {
  position: relative;
  z-index: 30;
  padding: clamp(74px, 9vw, 126px) 0;
  background: var(--soft-black);
  color: var(--ivory);
}

.footer__inner {
  text-align: center;
}

.footer p,
.footer span,
.footer a {
  color: rgba(255, 253, 248, 0.72);
}

.footer p {
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer h2 {
  margin-bottom: 26px;
  color: var(--ivory);
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: center;
}

.footer a {
  border-bottom: 1px solid rgba(255, 253, 248, 0.42);
}

.footer__social {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 50%;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.footer__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer__social:hover,
.footer__social:focus-visible {
  border-color: rgba(255, 253, 248, 0.86);
  background: rgba(255, 253, 248, 0.08);
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal--delay {
  transition-delay: 130ms;
}

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

.hero__content.reveal.is-visible {
  transform: translateX(-50%);
}

.is-missing img,
.is-missing .hero__veil {
  display: none;
}

.is-missing .photo-placeholder {
  display: grid;
}

@media (min-width: 760px) {
  .section-date {
    max-width: none;
  }

  .section-date span:first-child {
    white-space: nowrap;
  }

  .split-layout .section-heading {
    max-width: none;
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  }

  .invitation-card {
    margin: 0;
    margin: clamp(38px, 5vw, 76px) 0 clamp(34px, 4vw, 62px) clamp(-92px, -5.4vw, -56px);
  }

  .editorial-photo {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .split-layout,
  .palette-layout,
  .location-layout {
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  }

  .palette-card {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
  }

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

  .location-list article {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .location-list article:last-child {
    border-right: 0;
  }

  .form-layout {
    grid-template-columns: minmax(280px, 0.74fr) minmax(360px, 0.86fr);
  }

  .rsvp-card {
    scroll-margin-top: 132px;
  }

  .wishes-layout {
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  }

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

  .wish-list article {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .wish-list article:last-child {
    border-right: 0;
  }
}

@media (min-width: 1120px) {
  .section--overlap {
    margin-top: -118px;
  }
}

@media (min-width: 1440px) {
  .hero {
    --hero-image-scale: 1.055;
  }
}

@media (max-width: 1440px) {
  .hero {
    --hero-content-bottom: clamp(88px, 12svh, 132px);
    --hero-title-size: clamp(3rem, 5vw, 5.5rem);
  }
}

@media (max-width: 1024px) {
  .hero {
    --hero-content-bottom: clamp(84px, 11svh, 118px);
    --hero-title-size: clamp(2.8rem, 7vw, 5rem);
    --hero-content-gap: clamp(4px, 0.75vw, 10px);
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 0.56fr) minmax(260px, 0.44fr);
    min-height: clamp(520px, 58vw, 640px);
    padding: clamp(16px, 2.2vw, 26px);
  }

  .invitation-card {
    width: min(100%, 370px);
    margin-left: clamp(-72px, -5vw, -44px);
    padding: clamp(30px, 3.6vw, 46px);
  }

  .invitation-card h2 {
    font-size: clamp(2.55rem, 5.2vw, 4.1rem);
  }

  .editorial-photo {
    min-height: clamp(470px, 58vw, 590px);
  }
}

@media (max-width: 768px) {
  .hero {
    --hero-content-bottom: clamp(78px, 10svh, 104px);
    --hero-title-size: clamp(2.45rem, 11.5vw, 4.1rem);
    --hero-content-gap: clamp(4px, 1vw, 8px);
  }
}

@media (min-width: 1920px) {
  .hero {
    --hero-image-left: -9%;
    --hero-image-width: 118%;
    --hero-image-scale: 1.085;
  }
}

@media (max-width: 759px) {
  .hero {
    min-height: 100svh;
    --hero-content-bottom: clamp(78px, 10svh, 102px);
    --hero-title-size: clamp(2.35rem, 12vw, 4rem);
    --hero-content-gap: clamp(4px, 1.2vw, 8px);
  }

  .hero__meta {
    top: calc(var(--hero-frame-inset) + clamp(46px, 8.8svh, 78px));
    width: min(calc(100% - 40px), 520px);
    gap: 2px;
  }

  body::before,
  .page-texture {
    display: none;
  }

  .hero__image {
    left: 0;
    width: 100%;
    object-position: 52% 32%;
  }

  .hero__title {
    line-height: 0.9;
  }

  .hero__title span,
  .hero__title em {
    white-space: normal;
  }

  .hero__content,
  .hero__content.reveal.is-visible {
    top: auto;
    bottom: var(--hero-content-bottom);
    transform: translateX(-50%);
  }

  .hero__kicker {
    font-size: clamp(1.42rem, 6.5vw, 2.65rem);
  }

  .hero__date {
    font-size: clamp(2.24rem, 10vw, 3.44rem);
  }

  .paper-card,
  .palette-card {
    padding: 28px 22px;
    backdrop-filter: none;
  }

  .section--overlap {
    margin-top: -62px;
  }

  .editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: clamp(620px, 148vw, 760px);
    padding: clamp(14px, 4vw, 22px);
    margin-inline: calc((100vw - 100%) / -2);
    overflow: hidden;
  }

  .editorial-grid::after {
    top: clamp(28px, 8vw, 44px);
    right: clamp(24px, 7vw, 38px);
  }

  .invitation-card {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: center;
    width: min(calc(100% - 64px), 300px);
    margin: 0 0 clamp(34px, 8vw, 56px);
    padding: clamp(22px, 5.8vw, 30px) clamp(20px, 5.5vw, 28px);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(255, 253, 248, 0.88)),
      rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(45, 36, 28, 0.1);
    backdrop-filter: blur(4px);
  }

  .invitation-card::before {
    inset: 10px;
  }

  .invitation-card h2 {
    max-width: 240px;
    margin-bottom: clamp(12px, 3vw, 18px);
    font-size: clamp(2.15rem, 10vw, 3.15rem);
    line-height: 0.94;
  }

  .invitation-card p {
    max-width: 230px;
    font-size: clamp(0.86rem, 3.2vw, 0.96rem);
    line-height: 1.58;
  }

  .editorial-photo {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 100%;
    margin-inline: 0;
    border-radius: 46% 46% 4px 4px / 25% 25% 4px 4px;
  }

  .editorial-photo img {
    object-position: 46% 46%;
    transform: scale(1.08);
    transform-origin: 46% 46%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .editorial-photo::before {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.02), transparent 42%, rgba(17, 16, 15, 0.2)),
      radial-gradient(circle at 54% 48%, transparent 52%, rgba(17, 16, 15, 0.16) 100%);
  }

  .timeline-card {
    padding: 24px 20px;
    backdrop-filter: none;
  }

  .timeline-card::before {
    left: 88px;
    inset-block: 28px;
  }

  .editorial-photo {
    transform: none;
  }

  .rsvp-form__actions .button {
    width: 100%;
  }

  .rsvp-card {
    min-height: 780px;
  }

  .form-photo {
    height: auto;
  }

  .timeline-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 24px;
    padding: 15px 0;
    min-height: 0;
  }

  .timeline-row time {
    font-size: 1.78rem;
  }

  .timeline-row span {
    top: 24px;
    left: 83px;
  }

  .timeline-row p {
    text-align: left;
  }

  .form-photo {
    min-height: 430px;
  }

  .palette-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    --hero-content-bottom: clamp(78px, 10svh, 98px);
    --hero-title-size: clamp(2.2rem, 11vw, 3.35rem);
    --hero-content-gap: 4px;
  }

  .hero__content {
    width: min(calc(100% - 32px), 520px);
    padding: 0 12px;
  }

  .editorial-grid {
    min-height: clamp(590px, 154vw, 690px);
  }

  .invitation-card {
    width: min(calc(100% - 72px), 238px);
    margin-bottom: clamp(28px, 7vw, 44px);
    padding: 20px 18px;
  }

  .invitation-card::before {
    inset: 8px;
  }

  .invitation-card h2 {
    max-width: 190px;
    font-size: clamp(1.86rem, 9.8vw, 2.38rem);
  }

  .invitation-card p {
    max-width: 190px;
    font-size: clamp(0.84rem, 3.5vw, 0.92rem);
  }
}

/* Invitation editorial overlay */
#invitation {
  padding-block: clamp(78px, 9vw, 136px);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.22), rgba(232, 221, 204, 0.24) 48%, rgba(255, 253, 248, 0.18)),
    radial-gradient(circle at 50% 18%, rgba(214, 193, 161, 0.16), transparent 42%);
}

#invitation.section--overlap {
  margin-top: 0;
}

#invitation .editorial-grid {
  display: grid;
  position: relative;
  width: min(calc(100% - 36px), var(--container));
  grid-template-columns: 1fr;
  min-height: clamp(500px, 44vw, 640px);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 58px) 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: none;
  isolation: isolate;
}

#invitation .editorial-grid::before {
  content: none;
}

#invitation .editorial-grid::after {
  content: none;
}

#invitation .editorial-photo {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: none;
  clip-path: none;
}

#invitation .editorial-photo img {
  position: absolute;
  top: 0;
  right: clamp(-58px, -4vw, -18px);
  bottom: 0;
  left: auto;
  width: min(78%, 900px);
  height: 112%;
  object-fit: cover;
  object-position: 54% 48%;
  filter: grayscale(0.02) saturate(0.98) contrast(1.03);
  transform: scale(0.94);
  transform-origin: 54% 48%;
  -webkit-mask-image:
    radial-gradient(ellipse 88% 82% at 53% 47%, #000 0 47%, rgba(0, 0, 0, 0.82) 61%, rgba(0, 0, 0, 0.32) 79%, transparent 100%),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.12) 9%, rgba(0, 0, 0, 0.72) 21%, #000 34%, #000 68%, rgba(0, 0, 0, 0.28) 84%, transparent 100%),
    linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.14) 9%, rgba(0, 0, 0, 0.82) 23%, #000 34%, #000 72%, rgba(0, 0, 0, 0.2) 89%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 88% 82% at 53% 47%, #000 0 47%, rgba(0, 0, 0, 0.82) 61%, rgba(0, 0, 0, 0.32) 79%, transparent 100%),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.12) 9%, rgba(0, 0, 0, 0.72) 21%, #000 34%, #000 68%, rgba(0, 0, 0, 0.28) 84%, transparent 100%),
    linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.14) 9%, rgba(0, 0, 0, 0.82) 23%, #000 34%, #000 72%, rgba(0, 0, 0, 0.2) 89%, transparent 100%);
  mask-composite: intersect;
}

#invitation .editorial-photo::before {
  content: none;
}

#invitation .editorial-photo::after {
  content: none;
}

#invitation .invitation-card {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  z-index: 6;
  width: min(40vw, 460px);
  max-width: calc(100% - clamp(52px, 7vw, 112px));
  margin: 0 0 clamp(46px, 5.6vw, 78px) 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
  text-shadow: none;
}

#invitation .invitation-card::before {
  content: none;
}

#invitation .invitation-card::after {
  content: none;
}

#invitation .invitation-card h2 {
  max-width: 460px;
  margin: 0 0 18px;
  padding-top: 0;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.92;
  color: var(--soft-black);
}

#invitation .invitation-card h2 span {
  display: block;
}

#invitation .invitation-card p {
  max-width: 300px;
  margin: 0;
  color: rgba(40, 37, 34, 0.76);
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 759px) {
  #invitation {
    padding-block: clamp(64px, 15vw, 98px);
  }

  #invitation.section--overlap {
    margin-top: 0;
  }

  #invitation .editorial-grid {
    width: min(calc(100% - 28px), 520px);
    grid-template-columns: 1fr;
    min-height: clamp(500px, 122vw, 640px);
    padding: clamp(26px, 7vw, 42px) 0;
  }

  #invitation .editorial-grid::before {
    content: none;
  }

  #invitation .editorial-grid::after {
    content: none;
  }

  #invitation .editorial-photo {
    justify-self: center;
    width: 100%;
    min-height: inherit;
    margin: 0;
    border-radius: 0;
    clip-path: none;
  }

  #invitation .editorial-photo img {
    top: -4%;
    right: -10%;
    width: 118%;
    height: 108%;
    object-fit: cover;
    object-position: 51% 47%;
    transform: scale(0.92);
    transform-origin: 54% 47%;
    -webkit-mask-image:
      radial-gradient(ellipse 92% 84% at 55% 45%, #000 0 47%, rgba(0, 0, 0, 0.82) 61%, rgba(0, 0, 0, 0.32) 79%, transparent 100%),
      linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.14) 9%, rgba(0, 0, 0, 0.72) 22%, #000 34%, #000 68%, rgba(0, 0, 0, 0.28) 84%, transparent 100%),
      linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.14) 9%, rgba(0, 0, 0, 0.82) 23%, #000 34%, #000 72%, rgba(0, 0, 0, 0.2) 89%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      radial-gradient(ellipse 92% 84% at 55% 45%, #000 0 47%, rgba(0, 0, 0, 0.82) 61%, rgba(0, 0, 0, 0.32) 79%, transparent 100%),
      linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.14) 9%, rgba(0, 0, 0, 0.72) 22%, #000 34%, #000 68%, rgba(0, 0, 0, 0.28) 84%, transparent 100%),
      linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.14) 9%, rgba(0, 0, 0, 0.82) 23%, #000 34%, #000 72%, rgba(0, 0, 0, 0.2) 89%, transparent 100%);
    mask-composite: intersect;
  }

  #invitation .invitation-card {
    align-self: end;
    justify-self: start;
    width: min(calc(100% - 70px), 292px);
    max-width: none;
    margin: 0 0 clamp(8px, 3vw, 18px) 0;
    padding: 0;
    text-align: left;
  }

  #invitation .invitation-card h2 {
    font-size: clamp(2.45rem, 10.5vw, 3.15rem);
  }

  #invitation .invitation-card p {
    max-width: 250px;
    font-size: 1rem;
    line-height: 1.8;
  }
}

@media (max-width: 390px) {
  #invitation .editorial-grid {
    width: min(calc(100% - 24px), 390px);
  }

  #invitation .invitation-card p {
    max-width: 226px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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