:root {
  --bg: #edf6f7;
  --bg-cream: #fffaf2;
  --paper: rgba(255, 252, 246, 0.74);
  --paper-strong: rgba(255, 252, 246, 0.92);
  --ink: #17272e;
  --muted: #60747b;
  --muted-strong: #405960;
  --line: rgba(23, 39, 46, 0.14);
  --line-soft: rgba(23, 39, 46, 0.08);
  --blue: #a8c8d2;
  --blue-deep: #426a75;
  --sand: #e9dfcf;
  --palette-black: #050505;
  --palette-brown: #665039;
  --palette-taupe: #8f7665;
  --palette-beige: #d8ceb8;
  --palette-ivory: #e5dbcf;
  --palette-sage: #b7c5b3;
  --palette-olive: #596b3b;
  --shadow: 0 24px 80px rgba(25, 57, 66, 0.12);
  --shadow-soft: 0 14px 46px rgba(25, 57, 66, 0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --container: min(1160px, calc(100vw - 40px));
  --radius-xl: clamp(26px, 4vw, 48px);
  --radius-lg: 28px;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(168, 200, 210, 0.36), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 250, 242, 0.76), transparent 26rem),
    linear-gradient(180deg, var(--bg), #f7fbfb 46%, var(--bg-cream));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.5), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 50% 100%, rgba(232, 222, 207, 0.36), transparent 26rem);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.028;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
}

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

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

img {
  height: auto;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: calc(14px + env(safe-area-inset-top)) clamp(18px, 4vw, 58px) 14px;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease, min-height .25s ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  background: rgba(237, 246, 247, 0.78);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(20px);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  color: rgba(23, 39, 46, 0.74);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.section {
  position: relative;
  padding: clamp(76px, 10vw, 150px) 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100vw - 40px));
}

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 24px) 0 clamp(42px, 6vw, 76px);
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 70% 18%, rgba(168, 200, 210, .42), transparent 26rem),
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,0));
}

.hero-shell {
  width: var(--container);
  min-height: calc(100svh - var(--header-h) - 92px);
  min-height: calc(100dvh - var(--header-h) - 92px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(340px, .78fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.guest-greeting {
  margin: 0 0 clamp(14px, 2vw, 22px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 70px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(70px, 10.4vw, 162px);
  font-weight: 500;
  line-height: .76;
  letter-spacing: -.064em;
  text-wrap: balance;
}

.hero h1 span {
  display: inline-block;
  font-size: .58em;
  letter-spacing: -.02em;
  transform: translateY(-.04em);
}

.hero-date {
  margin: clamp(22px, 3vw, 34px) 0 0;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
}

.hero-actions,
.location-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(25, 57, 66, .13);
}

.btn-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg-cream);
}

.btn-ghost {
  background: rgba(255, 255, 255, .44);
  color: var(--ink);
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  justify-self: end;
  margin: 0;
  aspect-ratio: 3 / 4.35;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--paper-strong) url("assets/hero.jpg") center center / cover no-repeat;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 30%, rgba(12,26,32,.10)),
    linear-gradient(135deg, rgba(237,246,247,.22), rgba(255,250,242,.10));
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(.94) contrast(.98) brightness(1.02);
}

.scroll-cue {
  position: absolute;
  left: clamp(20px, 4vw, 58px);
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(23, 39, 46, .62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-cue i {
  display: block;
  width: 54px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  animation: pulseLine 1.6s ease-in-out infinite;
}

@keyframes pulseLine {
  0%, 100% { transform: scaleX(.55); opacity: .55; }
  50% { transform: scaleX(1); opacity: 1; }
}

.intro h2,
.section-head h2,
.countdown-section h2,
.location h2,
.dresscode h2,
.evening h2,
.final h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.intro p,
.location-copy p,
.dresscode-copy p,
.evening-card p,
.final p {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
}

.signature {
  margin-top: 28px;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px) !important;
  line-height: 1.06;
  letter-spacing: -.025em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, .48fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-head .section-kicker {
  margin-bottom: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.info-card {
  min-height: 244px;
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.info-card span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.info-card h3 {
  margin: auto 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -.02em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.countdown-section {
  padding-top: 28px;
  text-align: center;
}

.countdown-section .container {
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.72), transparent 18rem),
    rgba(255, 255, 255, .34);
  box-shadow: var(--shadow);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.countdown div {
  padding: clamp(18px, 2.6vw, 26px) 12px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(237, 246, 247, .72);
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 500;
  line-height: .9;
}

.countdown span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.location-wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: stretch;
}

.location-copy {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

.small-note {
  font-size: 14px !important;
  color: rgba(96, 116, 123, .86) !important;
}

.location-card {
  min-height: 420px;
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 18%, rgba(168, 200, 210, .30), transparent 18rem),
    linear-gradient(135deg, rgba(255, 252, 246, .92), rgba(237, 246, 247, .82));
  box-shadow: var(--shadow);
}

.location-label {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.location-card h3 {
  margin: clamp(60px, 8vw, 100px) 0 14px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.052em;
}

.location-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.location-actions {
  margin-top: 28px;
}


.dresscode {
  padding-top: clamp(62px, 8vw, 120px);
}

.dresscode-wrap {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.dresscode-copy p {
  max-width: 620px;
}

.palette-card {
  padding: clamp(24px, 4.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 10%, rgba(255,255,255,.76), transparent 16rem),
    linear-gradient(135deg, rgba(255, 252, 246, .92), rgba(237, 246, 247, .74));
  box-shadow: var(--shadow);
}

.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.swatch {
  width: clamp(44px, 5vw, 68px);
  aspect-ratio: 1;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 14px 34px rgba(23,39,46,.12), inset 0 0 0 1px rgba(23,39,46,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.swatch:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 44px rgba(23,39,46,.16), inset 0 0 0 1px rgba(23,39,46,.04);
}

.swatch-black { background: var(--palette-black); }
.swatch-brown { background: var(--palette-brown); }
.swatch-taupe { background: var(--palette-taupe); }
.swatch-beige { background: var(--palette-beige); }
.swatch-ivory { background: var(--palette-ivory); }
.swatch-sage { background: var(--palette-sage); }
.swatch-olive { background: var(--palette-olive); }

.palette-card p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}

.evening {
  padding-top: 0;
}

.evening-card {
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(255,252,246,.92), rgba(237,246,247,.78)),
    radial-gradient(circle at 86% 24%, rgba(89,107,59,.16), transparent 20rem);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.evening-card h2 {
  margin: 0;
}

.evening-card p {
  max-width: 780px;
  margin: 20px auto 0;
}

.sparkle {
  position: fixed;
  z-index: 160;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--palette-beige);
  pointer-events: none;
  animation: sparkle-pop .8s ease forwards;
}

@keyframes sparkle-pop {
  0% { transform: translate(0,0) scale(.4); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(var(--spark-x), var(--spark-y)) scale(0); opacity: 0; }
}

.photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-rows: repeat(2, minmax(240px, 305px));
  gap: clamp(12px, 2vw, 18px);
}

.photo-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: clamp(24px, 3vw, 34px);
  background: var(--paper) center center / cover no-repeat;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.photo-grid figure:nth-child(1) { background-image: url("assets/photo-1.jpg"); }
.photo-grid figure:nth-child(2) { background-image: url("assets/photo-2.jpg"); }
.photo-grid figure:nth-child(3) { background-image: url("assets/photo-3.jpg"); }

.photo-grid figure::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 48%, rgba(20,40,48,.08));
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-grid img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(.94) contrast(.98) brightness(1.02);
  transition: transform .7s ease;
}

.photo-grid figure:hover img {
  transform: scale(1.035);
}

.photo-tall {
  grid-row: 1 / span 2;
}

.photo-tall img {
  object-position: center center;
}

.quote {
  padding: clamp(34px, 6vw, 76px) 0;
}

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.042em;
  text-align: center;
  text-wrap: balance;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.38);
  overflow: clip;
}

summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.final {
  text-align: center;
}

.final .final-actions {
  justify-content: center;
}

.footer {
  padding: 34px 20px calc(46px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

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

@media (min-width: 1280px) {
  .hero-photo {
    width: min(100%, 540px);
  }

  .photo-grid {
    grid-template-rows: repeat(2, 325px);
  }
}

@media (max-width: 1040px) {
  :root {
    --container: min(960px, calc(100vw - 36px));
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    gap: 30px;
  }

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

  .location-wrap,
  .dresscode-wrap {
    grid-template-columns: 1fr;
  }

  .location-copy {
    position: static;
  }
}

@media (max-width: 767px) {
  :root {
    --container: calc(100vw - 32px);
    --header-h: 66px;
    --radius-lg: 22px;
  }

  body {
    background:
      linear-gradient(180deg, #edf6f7, #f7fbfb 45%, #fffaf2),
      radial-gradient(circle at 50% 0%, rgba(168, 200, 210, .36), transparent 22rem);
  }

  .site-header {
    min-height: var(--header-h);
    padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 10px) 0 28px;
  }

  .hero::before {
    display: none;
  }

  .hero-shell {
    width: 100%;
    min-height: calc(100svh - var(--header-h) - 38px);
    min-height: calc(100dvh - var(--header-h) - 38px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 16px 0;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #dfeff2;
  }

  .hero-photo::before {
    background:
      linear-gradient(180deg, rgba(237,246,247,.80) 0%, rgba(237,246,247,.36) 27%, rgba(237,246,247,.18) 52%, rgba(237,246,247,.95) 100%),
      linear-gradient(90deg, rgba(237,246,247,.50), rgba(237,246,247,.12));
  }

  .hero-photo img {
    object-position: center bottom;
  }

  .hero-copy {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 22px 16px 20px;
    border: 1px solid rgba(255,255,255,.70);
    border-radius: 28px;
    background: rgba(255, 252, 246, .58);
    box-shadow: 0 18px 70px rgba(25,57,66,.12);
    backdrop-filter: blur(14px);
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: .20em;
  }

  .guest-greeting {
  margin: 0 0 clamp(14px, 2vw, 22px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 70px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero h1 {
    font-size: clamp(62px, 18vw, 98px);
    line-height: .82;
    letter-spacing: -.056em;
  }

  .hero-date {
    margin-top: 18px;
    font-size: clamp(13px, 3.5vw, 16px);
    letter-spacing: .07em;
  }

  .hero-text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions,
  .location-actions,
  .final-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .intro h2,
  .section-head h2,
  .countdown-section h2,
  .location h2,
  .dresscode h2,
  .evening h2,
  .final h2 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .intro p,
  .location-copy p,
  .dresscode-copy p,
  .evening-card p,
  .final p {
    font-size: 16px;
  }

  .signature {
    font-size: clamp(28px, 9vw, 38px) !important;
  }

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

  .info-card {
    min-height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 18px;
    padding: 20px;
  }

  .info-card span {
    grid-row: 1 / span 2;
    padding-top: 8px;
  }

  .info-card h3,
  .info-card p {
    margin: 0;
  }

  .countdown-section {
    padding-top: 10px;
  }

  .countdown-section .container {
    padding: 26px 16px;
    border-radius: 28px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .countdown div {
    padding: 18px 8px;
    border-radius: 18px;
  }

  .countdown strong {
    font-size: clamp(42px, 14vw, 58px);
  }

  .countdown span {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .location-card {
    min-height: 360px;
    padding: 26px 20px;
    border-radius: 28px;
  }

  .location-card h3 {
    margin-top: 72px;
    font-size: clamp(50px, 15vw, 68px);
  }

  .dresscode-wrap {
    gap: 22px;
  }

  .palette-card {
    padding: 22px 16px;
    border-radius: 28px;
  }

  .palette-row {
    gap: 10px;
  }

  .swatch {
    width: clamp(40px, 11vw, 48px);
  }

  .evening-card {
    padding: 28px 18px;
    border-radius: 28px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }

  .photo-grid figure,
  .photo-tall {
    grid-row: auto;
    aspect-ratio: 4 / 5;
    border-radius: 26px;
  }

  .photo-grid figure:nth-child(2),
  .photo-grid figure:nth-child(3) {
    aspect-ratio: 3 / 2;
  }

  .quote {
    padding: 28px 0;
  }

  blockquote {
    font-size: clamp(38px, 11vw, 56px);
    text-align: left;
  }

  summary {
    min-height: 58px;
    padding: 16px 18px;
  }

  details p {
    padding: 0 18px 18px;
  }
}

@media (max-width: 380px) {
  :root {
    --container: calc(100vw - 28px);
  }

  .hero-shell {
    padding-inline: 14px;
  }

  .hero-copy {
    padding: 18px 14px;
    border-radius: 24px;
  }

  .guest-greeting {
  margin: 0 0 clamp(14px, 2vw, 22px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 70px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero h1 {
    font-size: clamp(54px, 17vw, 72px);
  }

  .hero-date,
  .hero-text {
    font-size: 14px;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 12px) 0 24px;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-copy {
    max-width: 640px;
  }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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


/* Personal invitation opening screen */
.personal-page .site-header {
  display: none;
}

.personal-opening {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(32px, 7vw, 86px) 20px;
  overflow: clip;
  isolation: isolate;
}

.personal-opening::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 24% 14%, rgba(168, 200, 210, .50), transparent 30rem),
    radial-gradient(circle at 82% 80%, rgba(233, 223, 207, .62), transparent 28rem),
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(237,246,247,.62));
}

.personal-opening::after {
  content: '';
  position: absolute;
  inset: clamp(18px, 3vw, 36px);
  z-index: -1;
  border: 1px solid rgba(23, 39, 46, .12);
  border-radius: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.06));
  pointer-events: none;
}

.personal-opening-inner {
  width: min(860px, calc(100vw - 40px));
  margin: 0 auto;
  text-align: center;
}

.personal-kicker {
  margin: 0 0 clamp(22px, 4vw, 40px);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.personal-opening h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 12vw, 154px);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.personal-opening h1 .personal-salutation {
  display: block;
  margin: 0 0 clamp(14px, 2.8vw, 26px);
  color: var(--muted-strong);
  font-family: var(--sans);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.personal-date {
  margin: clamp(28px, 4vw, 46px) 0 0;
  color: var(--muted-strong);
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.personal-text {
  max-width: 720px;
  margin: clamp(20px, 3vw, 30px) auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  text-wrap: balance;
}

.personal-text strong {
  color: var(--ink);
  font-weight: 700;
}

.personal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 44px);
}

.personal-mini-note {
  margin: clamp(18px, 3vw, 26px) 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .personal-opening {
    padding: 34px 18px;
  }

  .personal-opening::after {
    inset: 12px;
    border-radius: 28px;
  }

  .personal-opening-inner {
    width: min(100%, 360px);
  }

  .personal-opening h1 {
    font-size: clamp(52px, 18vw, 78px);
    line-height: .9;
  }

  .personal-text {
    font-size: 16px;
  }

  .personal-actions .btn {
    width: 100%;
  }
}
