:root {
  --ink: #173b4d;
  --ink-deep: #0b2a38;
  --secondary-ink: #3b6389;
  --cornflower: #7fa7d2;
  --powder: #dfeefa;
  --sky: #c5ddf1;
  --ivory: #fffaf0;
  --paper: #fffdf8;
  --gold: #d7b46a;
  --gold-pale: #f0dfb5;
  --sage: #93a28d;
  --shadow-soft: 0 28px 80px rgba(11, 42, 56, 0.14);
  --shadow-card: 0 18px 50px rgba(11, 42, 56, 0.11);
  --radius-large: 42px;
  --radius-card: 30px;
  --content: min(1180px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: light;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font: 400 18px/1.68 "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

h2,
h3 {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.eyebrow,
.button,
.text-link,
.site-header,
.card-kicker {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  max-width: calc(100% - 24px);
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  border-bottom: 0;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.site-header a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-link {
  justify-content: flex-start;
  color: var(--ink-deep);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-header nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover {
  background: rgba(223, 238, 250, 0.78);
}

.site-header nav a[href="#rsvp"] {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--ink-deep);
  border-radius: 9px;
  background: var(--ink-deep);
  color: var(--ivory);
}

.site-header nav a[href="#rsvp"]::after {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(calc(100svh - 74px), 900px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 54px);
  padding: clamp(72px, 9vw, 118px) max(24px, calc((100% - 1180px) / 2)) 92px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.96) 0 4rem, transparent 4.15rem),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.78) 0 2.4rem, transparent 2.55rem),
    linear-gradient(145deg, var(--paper) 0 42%, var(--powder) 100%);
}

.hero::before,
.hero::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 610px;
  padding: 24px 0;
}

.hero-copy::before {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 18px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(223, 238, 250, 0.72);
  color: var(--ink-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8ch;
  margin-bottom: 20px;
  color: var(--ink-deep);
  font: 700 clamp(4rem, 6.5vw, 6.9rem)/0.88 "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  letter-spacing: -0.075em;
  overflow-wrap: anywhere;
  text-shadow: 2px 3px 0 rgba(215, 180, 106, 0.22);
}

.hero-lede {
  max-width: 34ch;
  margin-bottom: 18px;
  color: rgba(23, 59, 77, 0.9);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.hero-lede strong {
  color: var(--ink-deep);
  font-weight: 850;
}

.hero-date {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 30px;
  padding: 4px 0;
  border: 0;
  color: var(--ink-deep);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-date span {
  margin-inline: 0.25em;
  color: var(--secondary-ink);
}

.button {
  min-height: 56px;
  padding: 16px 28px;
  border: 2px solid var(--ink-deep);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-deep);
  color: var(--ivory);
  box-shadow: 8px 8px 0 var(--gold);
  font: 900 0.88rem/1.15 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.105em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  background: #204e62;
  transform: translate(-2px, -2px);
  box-shadow: 11px 11px 0 var(--gold);
}

.hero .rsvp-cta {
  width: min(100%, 430px);
  min-height: 66px;
  padding-inline: 24px;
  font-size: clamp(0.9rem, 1.25vw, 1rem);
}

.button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 5px;
  box-shadow: 0 0 0 2px var(--ink-deep);
}

.helper {
  margin: 22px 0 0;
  color: var(--secondary-ink);
  font-size: 0.98rem;
  font-weight: 650;
}

.invitation-art {
  position: relative;
  z-index: 2;
  width: min(60vw, 750px);
  margin: 0 -8vw 0 -3vw;
  align-self: center;
}

.invitation-art::before {
  display: none;
}

.invitation-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 22px rgba(11, 42, 56, 0.18));
}

.hero-ribbon {
  display: none;
}

.hero-stardust {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-stardust span {
  position: absolute;
  z-index: 1;
  width: 13px;
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  opacity: 0.72;
}

.hero-stardust span:nth-child(1) { top: 13%; left: 46%; }
.hero-stardust span:nth-child(2) { top: 27%; right: 7%; width: 18px; }
.hero-stardust span:nth-child(3) { right: 42%; bottom: 13%; width: 10px; }
.hero-stardust span:nth-child(4) { top: 8%; right: 31%; width: 8px; }
.hero-stardust span:nth-child(5) { right: 3%; bottom: 32%; width: 12px; }

.details,
.attendance,
.extras,
.registry,
.rsvp {
  position: relative;
  padding-block: clamp(88px, 10vw, 140px);
}

.section-intro,
.details-list,
.secondary-action,
.attendance-grid,
.extras-grid,
.rsvp-shell {
  width: var(--content);
  margin-inline: auto;
}

.section-intro {
  max-width: 780px;
  margin-bottom: clamp(38px, 6vw, 68px);
  text-align: center;
}

.section-intro h2,
.rsvp h2 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 4.2vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-intro > p:not(.eyebrow) {
  max-width: 62ch;
  margin-inline: auto;
  color: rgba(23, 59, 77, 0.78);
}

.details {
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(197, 221, 241, 0.42), transparent 24rem),
    radial-gradient(circle at 8% 82%, rgba(240, 223, 181, 0.34), transparent 20rem),
    var(--paper);
}

.details::after {
  display: none;
}

.details-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.details-list::before {
  display: none;
}

.detail-item {
  position: relative;
  min-width: 0;
  padding: 34px clamp(24px, 3vw, 36px);
  overflow-wrap: anywhere;
  border: 0;
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.detail-item::before {
  display: none;
}

.detail-item dt {
  margin-bottom: 12px;
  color: var(--ink-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.detail-item dd {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 720;
  line-height: 1.55;
}

.secondary-action {
  margin-bottom: 0;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(223, 238, 250, 0.78);
  color: var(--ink-deep);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.105em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.text-link:hover {
  background: rgba(197, 221, 241, 0.86);
  color: #285d74;
  transform: translateY(-1px);
}

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

.attendance {
  overflow: hidden;
  background: var(--powder);
}

.attendance::before,
.attendance::after {
  position: absolute;
  width: clamp(280px, 24vw, 330px);
  aspect-ratio: 1;
  background: url("assets/cloud-blue-watercolor-31.png") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 14px 18px rgba(59, 99, 137, 0.12));
  opacity: 0.86;
  pointer-events: none;
}

.attendance::before {
  top: 14px;
  left: 10px;
}

.attendance::after {
  right: -18px;
  bottom: -18px;
  transform: scale(0.7);
  transform-origin: right bottom;
  opacity: 0.7;
}

.attendance-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.attendance-card {
  position: relative;
  isolation: isolate;
  height: clamp(460px, 43vw, 520px);
  min-height: 0;
  overflow: hidden;
  display: grid;
  border: 0;
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.attendance-card:only-child {
  width: min(100%, 860px);
  justify-self: center;
}

.mode-art,
.mode-copy {
  grid-area: 1 / 1;
}

.mode-art {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

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

.attendance-card::after {
  display: none;
}

.attendance-card[data-attendance-mode="in-person"]::before,
.attendance-card[data-attendance-mode="virtual"]::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.attendance-card[data-attendance-mode="in-person"]::before {
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.99) 0 35%, rgba(255, 253, 248, 0.88) 44%, transparent 64%);
}

.attendance-card[data-attendance-mode="virtual"]::before {
  background: linear-gradient(270deg, rgba(255, 253, 248, 0.99) 0 35%, rgba(255, 253, 248, 0.88) 44%, transparent 64%);
}

.mode-copy {
  position: relative;
  z-index: 2;
  width: min(46%, 470px);
  align-self: center;
  padding: clamp(44px, 6vw, 72px);
  overflow-wrap: anywhere;
}

.attendance-card[data-attendance-mode="virtual"] .mode-copy {
  justify-self: end;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(223, 238, 250, 0.88);
  color: var(--ink-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.3;
}

.attendance-card h3 {
  max-width: 15ch;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.attendance-card p {
  color: rgba(23, 59, 77, 0.82);
  line-height: 1.52;
}

.attendance-card strong {
  color: var(--ink-deep);
}

.link-replacement,
.registry-url {
  margin-top: 20px;
  padding-top: 0;
  border: 0;
  color: var(--secondary-ink) !important;
  font-size: 0.92rem;
  font-weight: 650;
}

.extras {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 84%, rgba(147, 162, 141, 0.16), transparent 22rem),
    radial-gradient(circle at 90% 18%, rgba(240, 223, 181, 0.42), transparent 24rem),
    var(--ivory);
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 28px);
}

.extra-card {
  position: relative;
  min-width: 0;
  min-height: 610px;
  padding: 40px clamp(26px, 3vw, 38px) 330px;
  overflow: hidden;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 40px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transform: none;
  transition: box-shadow 0.2s ease;
}

.extra-art {
  position: absolute;
  right: -30%;
  bottom: -7%;
  z-index: 0;
  width: 148%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(59, 99, 137, 0.13));
  pointer-events: none;
}

.extra-card h3,
.extra-card p {
  position: relative;
  z-index: 1;
}

.extra-card:nth-child(2) .extra-art {
  right: -34%;
  width: 156%;
}

.extra-card:nth-child(3) .extra-art {
  right: -27%;
  width: 146%;
}

.extra-card:hover {
  box-shadow: 0 22px 58px rgba(11, 42, 56, 0.14);
  transform: none;
}

.extra-card:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 620px);
}

.extra-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-align: center;
}

.extra-card p {
  margin-bottom: 0;
  color: rgba(23, 59, 77, 0.76);
  text-align: center;
}

.registry {
  overflow: hidden;
  border: 0;
  background: var(--powder);
}

.registry-stage {
  position: relative;
  isolation: isolate;
  width: var(--content);
  min-height: 620px;
  margin-inline: auto;
  overflow: hidden;
  display: grid;
  border: 0;
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.registry-stage::after {
  display: none;
}

.registry-art,
.registry .section-intro {
  grid-area: 1 / 1;
}

.registry-art {
  min-width: 0;
  height: 100%;
  margin: 0;
}

.registry-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.registry .section-intro {
  position: relative;
  z-index: 1;
  width: min(49%, 560px);
  max-width: none;
  margin: 0;
  align-self: center;
  padding: clamp(42px, 6vw, 72px);
  text-align: left;
}

.registry .section-intro::before {
  position: absolute;
  inset: 0 -22% 0 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.99) 0 70%, transparent);
  content: "";
}

.registry .section-intro > p:not(.eyebrow) {
  margin-inline: 0;
}

.registry-url {
  width: min(100%, 470px);
  margin-inline: 0 !important;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}

.secondary-button {
  background: var(--paper);
  color: var(--ink-deep);
  box-shadow: 8px 8px 0 var(--gold);
}

.secondary-button:hover {
  background: var(--ivory);
}

.rsvp {
  isolation: isolate;
  min-height: 700px;
  overflow: hidden;
  padding-block: clamp(72px, 8vw, 104px);
  border: 0;
  background:
    radial-gradient(circle at 82% 36%, rgba(215, 180, 106, 0.2), transparent 26rem),
    radial-gradient(circle at 6% 100%, rgba(127, 167, 210, 0.18), transparent 30rem),
    var(--ink-deep);
  color: var(--ivory);
}

.rsvp::before {
  position: absolute;
  top: 80px;
  left: 6%;
  width: 10px;
  aspect-ratio: 1;
  background: var(--gold);
  box-shadow: 88px 58px 0 -2px var(--gold), 42px 168px 0 -3px var(--gold), 260px -22px 0 -3px var(--gold);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  content: "";
  opacity: 0.76;
}

.rsvp-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(410px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.rsvp-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: clamp(28px, 4vw, 52px) 0;
  text-align: left;
}

.rsvp .eyebrow {
  border-color: rgba(255, 250, 240, 0.38);
  background: rgba(223, 238, 250, 0.11);
  color: var(--ivory);
}

.rsvp h2 {
  max-width: 10ch;
  color: var(--paper);
  font-size: clamp(3rem, 5.4vw, 5.6rem);
}

.rsvp-copy > p:not(.eyebrow) {
  color: rgba(255, 250, 240, 0.84);
}

.rsvp .rsvp-cta {
  width: min(100%, 480px);
  min-height: 70px;
  margin-block: 18px 10px;
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--ink-deep);
  box-shadow: 9px 9px 0 var(--cornflower);
}

.rsvp .rsvp-cta:hover {
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--cornflower);
}

.contact-host {
  margin: 30px 0 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.template-reminder {
  max-width: 56ch;
  margin: 26px 0 0;
  padding-top: 0;
  border: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.finale-art {
  position: relative;
  z-index: 1;
  width: min(62vw, 810px);
  margin: -40px -13vw -80px -6vw;
}

.finale-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 36px rgba(0, 0, 0, 0.28));
}

.site-footer {
  padding: 28px 20px;
  border-top: 0;
  background: #071f2b;
  color: rgba(255, 250, 240, 0.76);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

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

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.motion-ready .reveal.is-visible,
.motion-reduced .reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .extra-card.reveal.is-visible {
  transform: none;
}

.motion-ready .extra-card.reveal {
  transform: none;
  transition: opacity 0.46s ease, box-shadow 0.2s ease;
}

.capture-ready .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.motion-ready .hero-art.is-visible img {
  animation: balloon-drift 8s ease-in-out infinite;
}

.motion-ready .finale-art.is-visible img {
  animation: moon-drift 10s ease-in-out infinite;
}

.motion-ready .hero-stardust span {
  animation: star-twinkle 3.6s ease-in-out infinite;
}

.motion-ready .hero-stardust span:nth-child(2n) { animation-delay: -1.4s; }
.motion-ready .hero-stardust span:nth-child(3n) { animation-delay: -2.5s; }

@keyframes balloon-drift {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(0, -12px, 0) rotate(-0.8deg); }
}

@keyframes moon-drift {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -9px, 0); }
}

@keyframes star-twinkle {
  0%,
  100% { opacity: 0.35; transform: scale(0.76) rotate(0); }
  50% { opacity: 0.9; transform: scale(1.1) rotate(45deg); }
}

[hidden] {
  display: none !important;
}

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

.template-mode-banner {
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--gold-pale);
  color: var(--ink-deep);
  font-size: 0.9rem;
  text-align: center;
}

.template-mode-banner strong {
  flex: 0 0 auto;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header nav a[data-rsvp-jump] {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--ink-deep);
  border-radius: 9px;
  background: var(--ink-deep);
  color: var(--ivory);
}

.site-header nav a[data-rsvp-jump]::after {
  display: none;
}

.sound-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(11, 42, 56, 0.1);
  color: var(--ink-deep);
  font: 800 0.76rem/1 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.sound-toggle[aria-pressed="true"] {
  background: var(--gold-pale);
}

.sound-icon {
  width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--powder);
  font-size: 0.9rem;
}

.demo-label,
.template-inline-note {
  width: fit-content;
  margin: -6px 0 14px;
  color: var(--secondary-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-inline-note {
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(240, 223, 181, 0.38);
  text-transform: none;
}

.owner-note {
  max-width: 62ch;
  margin: 26px auto 0;
  padding: 14px 17px;
  border: 0;
  border-radius: 12px;
  background: rgba(240, 223, 181, 0.34);
  color: var(--ink-deep) !important;
  font-size: 0.86rem;
  line-height: 1.5 !important;
}

.mode-copy .owner-note {
  margin: 18px 0 0;
}

.registry-preview {
  width: min(100%, 500px);
  margin: 28px auto 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 32px rgba(11, 42, 56, 0.11);
}

.registry-preview summary {
  position: relative;
  min-height: 56px;
  padding: 16px 52px;
  display: grid;
  place-items: center;
  color: var(--ink-deep);
  font: 900 0.82rem/1.4 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.09em;
  cursor: pointer;
  list-style: none;
  text-align: center;
}

.registry-preview summary::-webkit-details-marker {
  display: none;
}

.registry-preview summary::after {
  position: absolute;
  right: 18px;
  width: 26px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.82);
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.registry-preview[open] summary::after {
  content: "−";
}

.registry-preview[open] summary {
  border-bottom: 0;
  background: var(--powder);
}

.registry-preview summary:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: -4px;
  box-shadow: none;
}

.registry-panel {
  padding: 18px;
}

.registry-disclaimer {
  margin-bottom: 14px !important;
  color: rgba(23, 59, 77, 0.76) !important;
  font-size: 0.82rem;
  line-height: 1.45;
}

.registry-items {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.registry-items li {
  min-width: 0;
  padding: 12px 9px;
  border-radius: 10px;
  background: var(--ivory);
  color: var(--ink);
  text-align: center;
}

.registry-items li > span,
.registry-items strong,
.registry-items small {
  display: block;
}

.registry-items li > span {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 1.2rem;
}

.registry-items strong {
  font-size: 0.78rem;
  line-height: 1.25;
}

.registry-items small {
  margin-top: 4px;
  color: var(--secondary-ink);
  font-size: 0.68rem;
  line-height: 1.3;
}

.registry-panel .registry-url {
  margin: 14px 0 0 !important;
  padding-top: 12px;
  font-size: 0.76rem;
}

.rsvp-shell {
  grid-template-rows: auto auto;
}

.rsvp-copy {
  grid-column: 1;
  grid-row: 1;
}

.finale-art {
  grid-column: 2;
  grid-row: 1;
}

.rsvp-form-card {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  grid-row: 2;
  width: min(100%, 900px);
  margin: -42px auto 0;
  padding: clamp(26px, 3vw, 38px);
  border: 0;
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.3);
  color: var(--ink);
}

.form-heading {
  max-width: 620px;
  margin: 0 auto 20px;
  text-align: center;
}

.form-heading h3,
.rsvp-confirmation h3 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.form-heading p:last-child {
  margin-bottom: 0;
  color: var(--secondary-ink);
  font-size: 0.9rem;
}

.form-step {
  margin-bottom: 10px;
  color: var(--secondary-ink);
  font: 900 0.72rem/1.3 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.16em;
}

.field-label,
.attendance-options legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-deep);
  font-size: 0.82rem;
  font-weight: 850;
}

.field-label span {
  color: var(--secondary-ink);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  margin: 0 0 16px;
  padding: 10px 13px;
  border: 1px solid rgba(23, 59, 77, 0.3);
  border-radius: 10px;
  background: #fffefa;
  color: var(--ink-deep);
  font: inherit;
  font-size: 1rem;
}

.field-help {
  margin: -8px 0 14px;
  color: var(--secondary-ink);
  font-size: 0.78rem;
  line-height: 1.45;
}

textarea {
  min-height: 78px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--secondary-ink);
}

.attendance-options {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.attendance-options legend {
  float: none;
  grid-column: 1 / -1;
  width: 100%;
}

.attendance-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.attendance-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.attendance-options label > span {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(127, 167, 210, 0.52);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ivory);
  color: var(--ink-deep);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.attendance-options small {
  margin-top: 4px;
  color: var(--secondary-ink);
  font-weight: 600;
}

.attendance-options input:checked + span {
  border: 2px solid var(--ink-deep);
  background: var(--powder);
  box-shadow: inset 0 0 0 3px var(--paper);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
}

.field-disabled {
  opacity: 0.48;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.rsvp-confirmation {
  min-height: 400px;
  padding: 36px 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.rsvp-confirmation p {
  max-width: 50ch;
  margin-bottom: 8px;
}

#rsvp-confirmation-title:focus {
  outline: 3px solid var(--gold);
  outline-offset: 7px;
  border-radius: 4px;
}

.confirmation-star {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 2.2rem;
}

.confirmation-fineprint {
  margin-top: 18px;
  color: var(--secondary-ink);
  font-size: 0.82rem;
}

.rsvp-loading,
.no-script-rsvp {
  max-width: 54ch;
  margin: 30px auto;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink-deep);
  text-align: center;
}

.text-button {
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--powder);
  color: var(--ink-deep);
  font: 900 0.8rem/1.2 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
}

.site-footer p + p {
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.52);
  font-size: 0.78rem;
}

@media (max-width: 1080px) and (min-width: 761px) {
  .hero {
    grid-template-columns: minmax(0, 0.96fr) minmax(390px, 1.04fr);
    gap: 6px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 6.6vw, 5rem);
  }

  .invitation-art {
    width: min(61vw, 660px);
    margin-left: -6vw;
  }

  .mode-copy {
    width: min(50%, 470px);
    padding: 44px;
  }

  .registry .section-intro {
    width: 53%;
    padding: 48px;
  }

  .rsvp-shell {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    gap: 0;
  }

  .finale-art {
    margin-left: -10vw;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100% - 28px, 620px);
    --radius-large: 30px;
    --radius-card: 24px;
  }

  html {
    scroll-padding-top: 16px;
  }

  body {
    font-size: 17px;
  }

  .site-header {
    position: static;
    min-height: 62px;
    padding: 9px 14px;
    gap: 8px;
  }

  .site-header .brand-link {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .site-header nav {
    flex: 0 0 auto;
    gap: 0;
  }

  .site-header nav a:not([data-rsvp-jump]) {
    display: none;
  }

  .site-header nav a[data-rsvp-jump] {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.7rem;
  }

  .sound-toggle {
    width: 44px;
    padding: 7px;
    justify-content: center;
  }

  .sound-toggle [data-sound-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 14px 48px;
    background:
      radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.9) 0 2.6rem, transparent 2.7rem),
      linear-gradient(160deg, var(--paper), var(--powder));
  }

  .hero::before {
    top: -34vw;
    right: -34vw;
    width: 104vw;
  }

  .hero::after {
    top: -26vw;
    right: -27vw;
    width: 88vw;
  }

  .invitation-art {
    order: -1;
    width: min(96%, 430px);
    justify-self: center;
    margin: -18px -2% -48px;
  }

  .invitation-art::before {
    top: 17%;
    right: 9%;
  }

  .hero-copy {
    width: var(--content);
    max-width: 540px;
    margin-inline: auto;
    padding: 15px 0;
  }

  .eyebrow {
    margin-bottom: 11px;
    font-size: 0.72rem;
  }

  .demo-label,
  .template-inline-note {
    margin-bottom: 10px;
    font-size: 0.69rem;
  }

  .hero h1 {
    max-width: 13ch;
    margin-bottom: 13px;
    font-size: clamp(2.75rem, 12.5vw, 3.25rem);
    line-height: 0.92;
  }

  .hero-lede {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .hero-date {
    margin-bottom: 18px;
    padding-block: 8px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .button,
  .hero .rsvp-cta {
    width: calc(100% - 9px);
    min-height: 56px;
    padding: 13px 15px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }

  .helper {
    margin-top: 14px;
  }

  .hero-ribbon {
    display: none;
  }

  .hero-stardust span:nth-child(1) { top: 6%; left: 7%; }
  .hero-stardust span:nth-child(2) { top: 20%; right: 5%; }
  .hero-stardust span:nth-child(3) { right: 12%; bottom: 40%; }

  .details,
  .attendance,
  .extras,
  .registry,
  .rsvp {
    padding-block: 40px;
  }

  .section-intro {
    margin-bottom: 20px;
  }

  .section-intro h2,
  .rsvp h2 {
    margin-bottom: 16px;
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1;
  }

  .details-list,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .details-list {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 22px;
  }

  .details-list::before {
    display: none;
  }

  .detail-item {
    min-height: 0;
    padding: 18px 20px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(104px, 0.72fr) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .detail-item dt {
    margin-bottom: 0;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .detail-item dd {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .attendance {
    background: var(--powder);
  }

  .attendance::before,
  .attendance::after {
    display: none;
  }

  .attendance-card {
    height: auto;
    min-height: 0;
    display: block;
    border-radius: var(--radius-large);
  }

  .attendance-grid {
    gap: 18px;
  }

  .attendance-card::before,
  .attendance-card[data-attendance-mode="in-person"]::before,
  .attendance-card[data-attendance-mode="virtual"]::before {
    display: none;
  }

  .mode-art {
    height: auto;
    aspect-ratio: 2.35 / 1;
  }

  .mode-art img {
    object-fit: cover;
  }

  .mode-copy,
  .attendance-card[data-attendance-mode="virtual"] .mode-copy {
    width: 100%;
    padding: 20px 22px 23px;
  }

  .attendance-card h3 {
    margin-bottom: 11px;
    font-size: 1.75rem;
  }

  .attendance-card p {
    margin-bottom: 11px;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .card-kicker {
    margin-bottom: 11px;
    font-size: 0.66rem;
  }

  .extras-grid {
    gap: 12px;
  }

  .extra-card,
  .extra-card:nth-child(1),
  .extra-card:nth-child(2),
  .extra-card:nth-child(3) {
    min-height: 430px;
    padding: 24px 22px 230px;
    border-radius: 28px;
    display: block;
    transform: none;
  }

  .extra-art {
    right: -26%;
    bottom: -8%;
    width: 132%;
  }

  .extra-card:nth-child(2) .extra-art {
    right: -29%;
    width: 138%;
  }

  .extra-card:nth-child(3) .extra-art {
    right: -24%;
    width: 130%;
  }

  .extra-card h3 {
    margin-bottom: 9px;
    font-size: 1.5rem;
    text-align: center;
  }

  .extra-card p {
    font-size: 0.88rem;
    line-height: 1.44;
    text-align: center;
  }

  .extra-card:only-child {
    grid-column: auto;
  }

  .registry-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .registry-art {
    order: 0;
    height: auto;
    aspect-ratio: 2.4 / 1;
  }

  .registry-art img {
    object-fit: cover;
  }

  .registry .section-intro {
    order: 1;
    width: 100%;
    padding: 22px 20px 24px;
    text-align: center;
  }

  .registry .section-intro::before {
    display: none;
  }

  .registry .section-intro > p:not(.eyebrow),
  .registry-url {
    margin-inline: auto !important;
  }

  .registry-preview {
    margin: 14px auto 0;
    text-align: left;
  }

  .registry-preview summary {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 0.76rem;
  }

  .registry-panel {
    padding: 14px;
  }

  .registry-items {
    gap: 5px;
  }

  .registry-items li {
    padding: 9px 5px;
  }

  .rsvp {
    min-height: 0;
    padding-block: 28px 24px;
  }

  .rsvp-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
  }

  .rsvp-copy {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    padding: 0 0 18px;
    text-align: center;
  }

  .rsvp h2 {
    max-width: 15ch;
    margin-inline: auto;
    font-size: 2.35rem;
  }

  .rsvp .rsvp-cta {
    width: calc(100% - 10px);
    min-height: 68px;
  }

  .template-reminder {
    margin-inline: auto;
  }

  .finale-art {
    grid-column: 1;
    grid-row: auto;
    order: 0;
    width: min(76%, 310px);
    justify-self: center;
    margin: -34px 0 -38px;
  }

  .rsvp-form-card {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    width: 100%;
    margin: 0;
    padding: 20px 16px;
    border-radius: 24px;
  }

  .form-heading {
    margin-bottom: 11px;
  }

  .form-heading h3,
  .rsvp-confirmation h3 {
    font-size: 1.75rem;
    margin-bottom: 5px;
  }

  .form-heading p:last-child {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .field-label,
  .attendance-options legend {
    margin-bottom: 5px;
    font-size: 0.76rem;
  }

  input[type="text"],
  input[type="email"],
  select,
  textarea {
    min-height: 44px;
    margin-bottom: 9px;
    padding: 8px 11px;
    font-size: 0.92rem;
  }

  textarea {
    min-height: 54px;
  }

  .attendance-options {
    gap: 6px;
    margin-bottom: 9px;
  }

  .attendance-options label > span {
    min-height: 56px;
    padding: 9px 4px;
    font-size: 0.82rem;
  }

  .attendance-options small {
    font-size: 0.68rem;
  }

  .field-row {
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
    gap: 10px;
  }

  .rsvp-confirmation {
    min-height: 350px;
    padding: 28px 10px;
  }
}

@media (max-width: 380px) {
  .site-header .brand-link {
    flex-basis: 128px;
    max-width: 128px;
    display: block;
    line-height: 44px;
  }

  .hero-copy,
  .mode-copy,
  .extra-card,
  .registry .section-intro {
    padding-right: 21px;
    padding-left: 21px;
  }

  .hero-copy {
    padding-left: 18px;
  }

  .button {
    font-size: 0.76rem;
    letter-spacing: 0.055em;
  }

  .attendance-options label > span {
    min-height: 70px;
    height: 100%;
    padding-inline: 2px;
    font-size: 0.76rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .button:hover,
  .extra-card:hover,
  .rsvp .rsvp-cta:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .sound-toggle,
  .text-button,
  .registry-preview summary {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    box-shadow: none;
    forced-color-adjust: auto;
  }

  .attendance-options input {
    top: 12px;
    right: auto;
    bottom: auto;
    left: 12px;
    width: 20px;
    height: 20px;
    opacity: 1;
  }

  .attendance-options label > span,
  .attendance-options input:checked + span {
    padding-left: 36px;
    border: 2px solid ButtonText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}
