:root {
  --bg: #f5efe8;
  --bg-deep: #eadfd2;
  --surface: rgba(255, 255, 252, 0.95);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(250, 244, 238, 0.82);
  --line: rgba(204, 148, 163, 0.18);
  --line-strong: rgba(204, 148, 163, 0.28);
  --text: #5d5054;
  --muted: #908387;
  --accent: #cb7586;
  --accent-strong: #b45569;
  --heading: #9f262f;
  --accent-soft: #f1d6dd;
  --shadow: 0 24px 70px rgba(164, 129, 136, 0.08);
  --max-width: 920px;
  --radius: clamp(24px, 3vw, 30px);
  --shell-gutter: clamp(12px, 3vw, 24px);
  --shell-top-space: clamp(12px, 3vw, 20px);
  --panel-padding: clamp(20px, 4vw, 34px);
  --tile-padding: clamp(18px, 3vw, 22px);
  --body-size: clamp(1rem, 0.25vw + 0.96rem, 1.06rem);
}

@font-face {
  font-family: "Abramo Script";
  src: url("./assets/abramo-script.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(231, 217, 204, 0.65), transparent 28%),
    radial-gradient(circle at 100% 14%, rgba(244, 236, 228, 0.82), transparent 26%),
    linear-gradient(180deg, #f9f5ef 0%, #f1e8de 100%);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: var(--body-size);
  line-height: 1.65;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.page-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 62%, rgba(232, 210, 215, 0.12), transparent 20%),
    radial-gradient(circle at 96% 74%, rgba(239, 226, 219, 0.16), transparent 24%);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px) + 8px);
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.7;
  transform: translateX(-50%);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.scroll-cue-inner {
  display: grid;
  justify-items: center;
  gap: 6px;
  animation: scroll-cue-float 2200ms ease-in-out infinite;
}

body.hero-scroll-cue-hidden .scroll-cue {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

.scroll-cue-line {
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(159, 38, 47, 0), rgba(159, 38, 47, 0.5));
}

.scroll-cue-arrow {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(159, 38, 47, 0.7);
  border-bottom: 2px solid rgba(159, 38, 47, 0.7);
  transform: rotate(45deg);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(980px, calc(100% - 24px));
  margin: 14px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.78);
  box-shadow: 0 14px 34px rgba(156, 126, 124, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav a,
.button {
  text-decoration: none;
}

.brand {
  color: var(--accent-strong);
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: var(--accent-strong);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(204, 148, 163, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.site-shell {
  width: min(var(--max-width), calc(100% - (var(--shell-gutter) * 2)));
  margin: var(--shell-top-space) auto 0;
  padding-bottom: 64px;
}

.hero-card,
.panel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card::before,
.panel-card::before,
.hero-card::after,
.panel-card::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.hero-card::before,
.panel-card::before {
  top: -22px;
  left: -24px;
  width: clamp(108px, 20vw, 176px);
  aspect-ratio: 1;
  background-image: url("./assets/floral-corner-a.svg");
}

.hero-card::after,
.panel-card::after {
  right: -24px;
  bottom: -24px;
  width: clamp(94px, 17vw, 148px);
  aspect-ratio: 1;
  background-image: url("./assets/floral-corner-b.svg");
}

.hero-card::before {
  top: -2px;
  left: -2px;
  width: clamp(196px, 28vw, 320px);
  aspect-ratio: 523 / 746;
  background-image: url("./assets/hero-floral-reference.png");
  background-size: cover;
  background-position: top left;
  transform: translate3d(-34%, -34%, 0) scale(-0.84);
  transform-origin: center;
  transition:
    transform 1680ms cubic-bezier(0.22, 1, 0.36, 1) 260ms,
    opacity 1180ms ease 260ms;
}

.hero-card::after {
  right: -2px;
  bottom: -2px;
  width: clamp(220px, 33vw, 360px);
  aspect-ratio: 523 / 746;
  background-image: url("./assets/hero-floral-reference.png");
  background-size: cover;
  background-position: bottom right;
  transform: translate3d(34%, 34%, 0) scale(0.84);
  transition:
    transform 1680ms cubic-bezier(0.22, 1, 0.36, 1) 420ms,
    opacity 1180ms ease 420ms;
}

.panel-card::before {
  top: -6px;
  left: -6px;
  width: clamp(146px, 22vw, 206px);
  aspect-ratio: 523 / 746;
  background-image: url("./assets/hero-floral-reference.png");
  background-size: cover;
  background-position: top left;
  transform: translate3d(-22%, -22%, 0) scale(-0.66);
  transform-origin: center;
  transition: none;
}

.panel-card::after {
  right: -6px;
  bottom: -6px;
  width: clamp(164px, 25vw, 228px);
  aspect-ratio: 523 / 746;
  background-image: url("./assets/hero-floral-reference.png");
  background-size: cover;
  background-position: bottom right;
  transform: translate3d(22%, 22%, 0) scale(0.66);
  transform-origin: center;
  transition: none;
}

.card-inner,
.panel-card {
  position: relative;
}

.hero-card > *,
.panel-card > * {
  position: relative;
  z-index: 1;
}

.hero-card {
  width: 100vw;
  margin:
    calc(-1 * var(--shell-top-space))
    calc(50% - 50vw)
    clamp(18px, 3vw, 24px);
  min-height: 100svh;
  min-height: 100dvh;
  border-top: 0;
  border-inline: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 250, 246, 0.94)),
    radial-gradient(circle at 50% 22%, rgba(250, 228, 233, 0.2), transparent 28%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 18px);
  min-height: inherit;
  padding:
    clamp(72px, 9vw, 110px)
    clamp(18px, 4vw, 34px)
    clamp(56px, 8vw, 96px);
  text-align: center;
}

.hero-inner > * {
  max-width: 100%;
}

.hero-inner .eyebrow {
  margin-bottom: clamp(2.4rem, 6.2vh, 4.3rem);
  max-width: min(30rem, calc(100% - 4rem));
  position: relative;
  z-index: 1;
}

.hero-inner .hero-copy {
  margin-top: clamp(4.8rem, 13vh, 8.4rem);
}

.eyebrow,
.section-tag,
.tile-label {
  margin: 0;
  color: var(--muted);
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: clamp(0.68rem, 0.3vw + 0.64rem, 0.78rem);
  letter-spacing: clamp(0.18em, 0.35vw + 0.14em, 0.26em);
  text-transform: uppercase;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 10px);
  flex-wrap: nowrap;
  width: 100%;
  justify-self: stretch;
  margin: 0;
  color: var(--heading);
  line-height: 1.02;
  max-width: 100%;
}

.hero-title span {
  font-family: "Abramo Script", "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(3.45rem, 11.8vw, 7.8rem);
  font-weight: 500;
  font-synthesis: weight;
  text-shadow:
    0.01em 0 0 currentColor,
    -0.01em 0 0 currentColor;
  min-width: 0;
}

.hero-title small {
  display: inline-block;
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: clamp(0.82rem, 2.2vw, 1.3rem);
  letter-spacing: 0.18em;
  color: var(--muted);
  transform: translateY(-0.3em);
}

.hero-date {
  margin: clamp(0.3rem, 1.4vh, 0.85rem) 0 0;
  color: var(--heading);
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: clamp(0.86rem, 0.36vw + 0.8rem, 0.96rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy {
  width: min(32rem, 100%);
  max-width: 100%;
  margin: 0;
  color: rgba(144, 131, 135, 0.78);
  font-size: clamp(0.92rem, 0.24vw + 0.88rem, 0.98rem);
  line-height: 1.85;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.hero-actions,
.form-actions,
.mail-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  width: min(100%, 32rem);
  justify-content: center;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: clamp(46px, 6vw, 50px);
  padding: 0 clamp(18px, 2.8vw, 22px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #cf7988 0%, #b65468 100%);
  border-color: rgba(180, 85, 105, 0.28);
  box-shadow: 0 14px 28px rgba(182, 84, 104, 0.16);
}

.button-secondary {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.92);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 22px);
}

.panel-card {
  padding: var(--panel-padding);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 247, 242, 0.92));
  min-width: 0;
}

.panel-wide {
  grid-column: auto;
}

.panel-card::before,
.panel-card::after {
  opacity: 0.62;
}

.hero-card::before,
.hero-card::after {
  opacity: 0;
  will-change: transform, opacity;
}

.hero-corners-active .hero-card::before {
  opacity: 0.94;
  transform: translate3d(0, 0, 0) scale(-1);
}

.hero-corners-active .hero-card::after {
  opacity: 0.94;
  transform: translate3d(0, 0, 0) scale(1);
}

.section-heading {
  display: grid;
  gap: clamp(10px, 1.8vw, 12px);
  margin-bottom: clamp(18px, 3vw, 24px);
  justify-items: center;
  text-align: center;
  width: 100%;
  padding-inline: clamp(0.75rem, 4vw, 5rem);
}

.section-heading > div {
  display: grid;
  justify-items: center;
  min-width: 0;
  width: 100%;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  font-weight: 500;
  line-height: 0.95;
  color: var(--heading);
}

.section-intro {
  width: min(34rem, 100%);
  max-width: 100%;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.info-grid,
.stay-layout {
  display: grid;
  gap: clamp(12px, 2.4vw, 16px);
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.quickfacts-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.info-tile,
.stay-card,
.mail-preview,
.feedback-box {
  border: 1px solid rgba(204, 148, 163, 0.14);
  border-radius: clamp(20px, 2.8vw, 24px);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.info-tile,
.stay-card {
  padding: var(--tile-padding);
  text-align: center;
}

.info-tile h3,
.stay-card h3 {
  margin: 10px 0 8px;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  font-weight: 500;
  line-height: 0.98;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.info-tile p,
.stay-card p,
.timeline p,
.timeline h3,
.check-list li,
.form-hint,
.feedback-box,
.mail-preview pre {
  line-height: 1.7;
}

.info-tile p,
.stay-card p,
.dresscode-copy,
.dresscode-modal-lead,
.dresscode-modal-copy,
.form-hint,
.feedback-box,
.mail-preview pre {
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 0;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  position: relative;
  --timeline-axis: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 8px;
  left: var(--timeline-axis);
  width: 2px;
  background: rgba(204, 148, 163, 0.22);
}

.program-pills {
  display: grid;
  justify-items: center;
  width: min(100%, 760px);
  margin: 0 auto clamp(22px, 4vw, 30px);
  gap: 10px;
}

.program-pill {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.82rem 1.4rem;
  border: 1px solid rgba(204, 148, 163, 0.16);
  border-radius: 999px;
  text-align: center;
  font-family: "Cormorant Garamond", "Georgia", serif;
  line-height: 1.05;
  text-wrap: balance;
}

.program-pill-soft {
  min-width: 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: 0.08em;
}

.program-pill-strong {
  min-width: 0;
  background: rgba(241, 214, 221, 0.34);
  color: var(--heading);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.timeline-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 18px);
  padding: 0 0 clamp(24px, 3.6vw, 32px);
  position: relative;
}

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

.timeline-marker {
  position: relative;
  width: 30px;
  min-height: 100%;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 4px;
  left: var(--timeline-axis);
  width: 14px;
  height: 14px;
  border: 3px solid rgba(203, 117, 134, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%);
}

.timeline-content {
  display: grid;
  gap: 8px;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.timeline-time-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--accent);
}

.timeline-clock,
.timeline-pin {
  display: none;
}

.timeline-time {
  margin: 0;
  color: var(--accent);
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(1.42rem, 2.4vw, 1.76rem);
  font-weight: 600;
  color: var(--heading);
  overflow-wrap: anywhere;
  line-height: 1;
}

.timeline-location,
.timeline-copy {
  margin: 0;
}

.timeline-location {
  display: block;
  align-items: center;
  color: var(--muted);
  font-size: clamp(0.92rem, 0.45vw + 0.9rem, 1rem);
}

.timeline-copy {
  color: var(--muted);
  font-size: clamp(0.96rem, 0.45vw + 0.94rem, 1.02rem);
  max-width: 38rem;
}

.stay-layout {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.stay-list,
.info-hints-grid {
  display: grid;
  gap: clamp(12px, 2.4vw, 16px);
}

.stay-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.info-hints-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.stay-item,
.hint-card,
.dresscode-card {
  background: rgba(255, 255, 255, 0.84);
}

.stay-distance {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.92rem;
  text-align: center;
}

.dresscode-card {
  border: 1px solid rgba(204, 148, 163, 0.14);
  border-radius: clamp(20px, 2.8vw, 24px);
  padding: var(--tile-padding);
  text-align: center;
}

.dresscode-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.tag-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  margin-top: 20px;
}

.tag-pill {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(204, 148, 163, 0.16);
  border-radius: 18px;
  background: rgba(250, 238, 242, 0.62);
  color: var(--accent-strong);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.tag-pill:hover,
.tag-pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(180, 85, 105, 0.28);
  background: rgba(248, 228, 233, 0.82);
  box-shadow: 0 10px 22px rgba(182, 84, 104, 0.12);
  outline: none;
}

.tag-pill-title {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--heading);
}

.tag-pill-hint {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.dresscode-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 20px);
  overflow-y: auto;
}

.dresscode-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(91, 71, 79, 0.28);
  backdrop-filter: blur(5px);
}

.dresscode-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  padding:
    clamp(22px, 4vw, 34px)
    clamp(18px, 4vw, 30px)
    clamp(18px, 4vw, 28px);
  border: 1px solid rgba(204, 148, 163, 0.22);
  border-radius: clamp(24px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 245, 246, 0.96));
  box-shadow: 0 28px 80px rgba(123, 86, 97, 0.18);
}

.dresscode-modal-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 24px);
}

.dresscode-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(204, 148, 163, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.dresscode-close:hover,
.dresscode-close:focus-visible {
  outline: none;
  border-color: rgba(180, 85, 105, 0.28);
  background: rgba(250, 238, 242, 0.9);
}

.dresscode-dialog h3 {
  margin: 10px 0 8px;
  text-align: center;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 500;
  line-height: 0.98;
  color: var(--heading);
}

.dresscode-modal-lead,
.dresscode-modal-copy {
  margin: 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}

.dresscode-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(14px, 2.4vw, 18px);
}

.dresscode-modal-section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(18px, 3vw, 22px);
  border: 1px solid rgba(204, 148, 163, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.dresscode-modal-section .tile-label {
  margin-bottom: 0;
  text-align: center;
}

.dresscode-example-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dresscode-example-list li {
  padding: 12px 14px;
  border: 1px solid rgba(204, 148, 163, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  line-height: 1.7;
  text-align: center;
}

.closing-panel {
  padding: clamp(22px, 4vw, 28px) clamp(18px, 4vw, 24px);
}

.closing-copy {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  color: var(--heading);
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.08;
}

.stay-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d4db 0%, #c96f82 100%);
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2.6vw, 18px);
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(204, 148, 163, 0.14);
  border-radius: clamp(22px, 3vw, 26px);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(6px);
}

.field {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.field span,
.fieldset legend {
  color: var(--muted);
  font-size: 0.94rem;
}

.field input:not([type="radio"]),
.field textarea {
  width: 100%;
  border: 1px solid rgba(204, 148, 163, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  font-size: max(16px, 1rem);
  padding: clamp(14px, 2.6vw, 15px) clamp(14px, 3vw, 16px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.field input:not([type="radio"]):focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(180, 85, 105, 0.34);
  box-shadow: 0 0 0 4px rgba(203, 117, 134, 0.12);
  background: #ffffff;
}

.fieldset {
  display: grid;
  align-content: start;
  min-height: 100%;
  min-width: 0;
  border: 1px solid rgba(204, 148, 163, 0.16);
  border-radius: clamp(20px, 3vw, 22px);
  padding: clamp(14px, 3vw, 16px);
  background: rgba(255, 255, 255, 0.84);
}

.fieldset legend {
  padding: 0 8px;
}

.fieldset-attendance {
  gap: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  min-width: 0;
}

.choice + .choice {
  margin-top: 12px;
}

.choice-grid .choice + .choice {
  margin-top: 0;
}

.choice input {
  accent-color: var(--accent-strong);
}

.choice-card {
  gap: 14px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid rgba(204, 148, 163, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.choice-card:hover,
.choice-card:focus-within {
  border-color: rgba(180, 85, 105, 0.24);
  box-shadow: 0 10px 24px rgba(180, 85, 105, 0.08);
  background: #ffffff;
}

.choice-card:has(input:checked) {
  border-color: rgba(180, 85, 105, 0.34);
  box-shadow: 0 12px 28px rgba(180, 85, 105, 0.1);
  background: rgba(255, 250, 252, 0.98);
}

.choice-card input {
  flex: 0 0 auto;
  margin: 0;
}

.choice-card span {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}

.guest-name-fields {
  gap: 10px;
}

.guest-name-hint {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.94rem;
}

.guest-name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.field-wide,
.form-actions,
.mail-preview,
.feedback-box {
  grid-column: 1 / -1;
}

.form-actions {
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(204, 148, 163, 0.14);
}

.form-hint {
  margin: 0;
  flex: 1 1 260px;
  color: var(--muted);
}

.feedback-box,
.mail-preview {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 24px);
}

.feedback-box {
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 236, 240, 0.84));
}

.mail-preview-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--heading);
}

.mail-preview pre {
  margin: 18px 0 0;
  padding: 18px;
  overflow: auto;
  border-radius: 18px;
  background: rgba(248, 240, 241, 0.86);
  color: var(--text);
  font-family: "Consolas", "Courier New", monospace;
  font-size: clamp(0.9rem, 0.2vw + 0.86rem, 0.96rem);
  white-space: pre-wrap;
}

.site-footer {
  padding: 0 0 32px;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: card-reveal 800ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 120ms;
}

.reveal:nth-child(3) {
  animation-delay: 240ms;
}

.reveal:nth-child(4) {
  animation-delay: 360ms;
}

.reveal:nth-child(5) {
  animation-delay: 480ms;
}

.preview-static .reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

.preview-static .hero-card::before {
  opacity: 0.94;
  transform: translate3d(0, 0, 0) scale(-1);
  transition: none;
}

.preview-static .hero-card::after {
  opacity: 0.94;
  transform: translate3d(0, 0, 0) scale(1);
  transition: none;
}

@keyframes card-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-cue-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.56;
  }

  50% {
    transform: translateY(6px);
    opacity: 0.84;
  }
}

@media (max-width: 920px) {
  .hero-inner {
    min-height: inherit;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 20px;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .fieldset,
  .field,
  .field-wide,
  .form-actions,
  .mail-preview,
  .feedback-box {
    grid-column: 1 / -1;
  }

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

  .program-pills,
  .timeline {
    width: 100%;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 10px 12px 12px;
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(204, 148, 163, 0.12);
  }

  .program-pills {
    gap: 10px;
    margin-bottom: 24px;
  }

  .program-pill {
    width: 100%;
  }

  .site-shell {
    width: calc(100% - 16px);
    margin-top: 12px;
    padding-bottom: 48px;
  }

  .hero-card {
    margin-top: -12px;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-inner {
    min-height: inherit;
    padding: 84px 24px 56px;
  }

  .hero-inner .eyebrow {
    margin-bottom: clamp(1.6rem, 4.4vh, 2.8rem);
    max-width: min(25rem, calc(100% - 2.75rem));
  }

  .hero-inner .hero-copy {
    margin-top: clamp(3.6rem, 9vh, 5.8rem);
  }

  .hero-title span {
    font-size: clamp(3.35rem, 14.8vw, 5.15rem);
  }

  .hero-title small {
    font-size: 0.84rem;
  }

  .hero-copy {
    max-width: 22rem;
    font-size: 0.92rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button,
  .form-actions .button {
    flex: 1 1 100%;
  }

  .form-actions {
    align-items: stretch;
  }

  .panel-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .timeline {
    --timeline-axis: 11px;
  }

  .timeline-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    padding-left: 0;
  }

  .timeline-marker {
    width: 24px;
    min-height: 100%;
  }

  .timeline-marker::before {
    left: var(--timeline-axis);
  }

  .timeline-head {
    gap: 8px 14px;
  }

  .info-tile h3,
  .stay-card h3 {
    font-size: 1.65rem;
  }

  .timeline-time {
    font-size: 0.98rem;
  }

  .timeline-item h3 {
    font-size: 1.42rem;
  }

  .hero-card::before,
  .panel-card::before {
    top: -18px;
    left: -18px;
    width: 118px;
  }

  .hero-card::after,
  .panel-card::after {
    right: -18px;
    bottom: -18px;
    width: 102px;
  }

  .hero-card::before {
    top: 0;
    left: 0;
    width: 172px;
  }

  .hero-card::after {
    right: 0;
    bottom: 0;
    width: 196px;
  }

  .panel-card::before {
    top: -6px;
    left: -6px;
    width: 134px;
  }

  .panel-card::after {
    right: -6px;
    bottom: -6px;
    width: 150px;
  }

  .dresscode-dialog {
    width: min(100%, 720px);
  }

  .dresscode-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 12px);
  }

  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .rsvp-form {
    padding: 16px 14px;
    border-radius: 22px;
  }

  .choice {
    align-items: flex-start;
  }

  .choice-card {
    min-height: 0;
    padding: 14px 15px;
  }

  .hero-inner {
    padding:
      clamp(54px, 9.5svh, 66px)
      clamp(16px, 5vw, 22px)
      clamp(48px, 8.5svh, 58px);
    gap: clamp(0.15rem, 0.8svh, 0.45rem);
  }

  .hero-inner .eyebrow {
    margin-bottom: clamp(1.35rem, 3.6svh, 2rem);
    display: inline-block;
    width: auto;
    max-width: calc(100% - 0.25rem);
    font-size: clamp(0.48rem, 2.35vw, 0.62rem);
    line-height: 1.15;
    letter-spacing: 0.11em;
    white-space: nowrap;
  }

  .hero-inner .hero-copy {
    margin-top: clamp(4.2rem, 12svh, 6.6rem);
    width: min(17.75rem, 100%);
    max-width: none;
  }

  .hero-title {
    gap: clamp(0.05rem, 0.7vw, 0.24rem);
    margin: 0;
    max-width: min(20rem, 100%);
  }

  .hero-title span {
    font-size: clamp(3.15rem, 14.2vw, 4.2rem);
  }

  .hero-title small {
    font-size: clamp(0.52rem, 2vw, 0.64rem);
  }

  .hero-date {
    margin-top: clamp(0.8rem, 2svh, 1.2rem);
  }

  .hero-copy {
    font-size: clamp(0.72rem, 0.26rem + 1.2vw, 0.82rem);
    line-height: 1.75;
  }

  .section-intro {
    font-size: 0.95rem;
  }

  .mail-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .form-hint {
    text-align: center;
  }

  .dresscode-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .scroll-cue {
    bottom: max(14px, env(safe-area-inset-bottom, 0px) + 6px);
  }
}

@media (max-width: 420px) {
  .site-shell {
    width: calc(100% - 10px);
  }

  .hero-inner {
    padding:
      clamp(46px, 8.8svh, 58px)
      clamp(14px, 4.8vw, 18px)
      clamp(44px, 8svh, 56px);
  }

  .hero-inner .eyebrow {
    margin-bottom: clamp(1.15rem, 3.2svh, 1.7rem);
    width: auto;
    max-width: calc(100% - 0.25rem);
    font-size: clamp(0.46rem, 2.15vw, 0.56rem);
    letter-spacing: 0.09em;
    white-space: nowrap;
  }

  .hero-inner .hero-copy {
    margin-top: clamp(3.8rem, 10.8svh, 5.8rem);
    width: min(15.5rem, 100%);
  }

  .program-pill-soft {
    font-size: 1rem;
  }

  .program-pill-strong {
    font-size: 1.14rem;
    line-height: 1.15;
    padding-inline: 1rem;
  }

  .panel-card {
    padding: 18px 14px;
  }

  .hero-title {
    gap: clamp(0.02rem, 0.6vw, 0.12rem);
    max-width: min(18rem, 100%);
  }

  .hero-title span {
    font-size: clamp(2.75rem, 13.5vw, 3.4rem);
  }

  .hero-title small {
    font-size: clamp(0.48rem, 1.8vw, 0.56rem);
    letter-spacing: 0.14em;
  }

  .hero-date {
    margin-top: clamp(0.65rem, 1.8svh, 0.95rem);
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 8.4vw, 2.3rem);
  }

  .eyebrow,
  .section-tag,
  .tile-label,
  .hero-date {
    letter-spacing: 0.16em;
  }

  .hero-copy,
  .section-intro,
  .info-tile p,
  .stay-card p {
    font-size: 0.93rem;
  }

  .hero-copy {
    font-size: clamp(0.68rem, 0.24rem + 1vw, 0.76rem);
  }

  .hero-card::before {
    width: 146px;
  }

  .hero-card::after {
    width: 164px;
  }

  .timeline {
    --timeline-axis: 10px;
  }

  .timeline-item {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-marker::before {
    left: var(--timeline-axis);
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .timeline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item h3 {
    font-size: 1.3rem;
  }

  .timeline-time {
    font-size: 0.92rem;
  }

  .hero-card::before,
  .panel-card::before {
    width: 102px;
  }

  .hero-card::after,
  .panel-card::after {
    width: 88px;
  }

  .panel-card::before {
    width: 116px;
  }

  .panel-card::after {
    width: 128px;
  }

  .dresscode-dialog {
    padding: 18px 14px 14px;
  }
}

@media (max-height: 680px) and (min-width: 561px) {
  .hero-inner {
    padding-block: clamp(44px, 8svh, 60px);
  }

  .hero-inner .hero-copy {
    margin-top: clamp(2.8rem, 8.6svh, 4.8rem);
  }

  .hero-inner .eyebrow {
    margin-bottom: clamp(1rem, 2.8svh, 1.6rem);
  }

  .hero-title span {
    font-size: clamp(2.5rem, 12vw, 3.35rem);
  }

  .hero-date {
    margin-top: clamp(0.45rem, 1.4svh, 0.7rem);
  }

  .dresscode-modal {
    place-items: start center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-inner {
    animation: none;
  }
}
