:root {
  --ink: #211815;
  --ink-soft: #6f5848;
  --mocha: #6f5848;
  --taupe: #a98283;
  --ivory: #fff9fa;
  --paper: #f8edf0;
  --silk: #f2dde3;
  --champagne: #edd0da;
  --blush: #f6e3e8;
  --dusty-rose: #c995a4;
  --rose: #e7bec8;
  --stone: #e6d4d8;
  --olive: #b89f85;
  --line: rgba(111, 88, 72, 0.16);
  --shadow: 0 26px 70px rgba(111, 88, 72, 0.14);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Marck Script", "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(237, 208, 218, 0.46), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(246, 227, 232, 0.58), transparent 22rem),
    linear-gradient(180deg, rgba(255, 250, 252, 0.9), rgba(248, 237, 240, 0.98)),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body.has-modal {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(149, 114, 101, 0.62);
  outline-offset: 4px;
}

.page {
  min-height: 100svh;
  overflow-x: hidden;
}

.cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vw, 42px) 18px;
  isolation: isolate;
  transition:
    min-height 520ms ease,
    height 520ms ease,
    padding 520ms ease,
    opacity 520ms ease;
}

.cover:not(.cover--opened) {
  height: 100svh;
}

.cover__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 250, 252, 0.14), rgba(237, 208, 218, 0.42)),
    url("assets/hero-background.png") center / cover;
  filter: saturate(0.9) sepia(0.05) hue-rotate(354deg) brightness(1.06);
}

.cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 250, 252, 0.5), transparent 25%, transparent 75%, rgba(231, 190, 200, 0.3)),
    radial-gradient(circle at 50% 28%, rgba(255, 250, 252, 0.6), transparent 22rem);
  content: "";
}

.cover__panel {
  width: min(100%, 720px);
  min-height: min(700px, calc(100svh - 56px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: clamp(24px, 5vw, 46px) clamp(18px, 5vw, 52px);
  text-align: center;
  transition:
    opacity 420ms ease,
    transform 520ms ease;
}

.cover--opened {
  min-height: clamp(210px, 32svh, 340px);
  padding-block: clamp(10px, 2.2vw, 22px);
}

.cover--opened .cover__panel {
  min-height: auto;
  opacity: 0.46;
  transform: translateY(-18px) scale(0.78);
}

.wedding-monogram {
  --monogram-width: 194px;
  --monogram-date-size: 0.64rem;
  width: var(--monogram-width);
  display: grid;
  justify-items: center;
  gap: 4px;
  line-height: 1;
}

.wedding-monogram__image {
  width: var(--monogram-width);
  display: block;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(111, 88, 72, 0.08));
  opacity: 0.92;
}

.wedding-monogram__date {
  color: rgba(111, 88, 72, 0.82);
  font-family: var(--serif);
  font-size: calc(var(--monogram-date-size) * 1.24);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.cover__monogram {
  --monogram-width: clamp(210px, 44vw, 224px);
  margin-bottom: 0;
}

.cover__guest {
  margin: 0 0 6px;
  color: var(--mocha);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.cover__guest[hidden] {
  display: none;
}

.cover__eyebrow {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  max-width: 10ch;
  font-size: clamp(1.82rem, 5.8vw, 3.25rem);
  font-weight: 500;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: normal;
  text-wrap: balance;
}

.cover__script {
  margin: 5px 0 0;
  color: rgba(111, 88, 72, 0.84);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6.6vw, 4.6rem);
  font-style: normal;
  font-weight: 500;
  line-height: 0.9;
}

.cover__subscript {
  margin: 0 0 2px;
  color: rgba(111, 88, 72, 0.84);
  font-family: var(--serif);
  font-size: clamp(2.05rem, 6vw, 4.2rem);
  font-style: normal;
  font-weight: 500;
  line-height: 0.9;
}

.cover h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.86rem, 8.6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.78;
}

.cover h1 span,
.cover h1 em {
  display: block;
}

.cover h1 em {
  margin: 4px 0;
  color: var(--dusty-rose);
  font-size: 0.38em;
  font-style: italic;
  line-height: 1;
}

.cover__date {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.24rem, 4.1vw, 1.72rem);
  font-weight: 500;
  line-height: 1.05;
  text-transform: none;
}

.cover__venue {
  max-width: 23ch;
  margin: 2px 0 0;
  color: rgba(44, 35, 32, 0.88);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 3.4vw, 1.34rem);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.text-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(112, 77, 66, 0.24);
  border-radius: 999px;
  padding: 0 16px 0 20px;
  background: rgba(255, 248, 241, 0.78);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
  color 220ms ease;
}

.open-button {
  margin-top: 0;
  border: 0;
  background: transparent;
  color: var(--mocha);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-decoration: none;
}

.text-button span:last-child {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 27, 23, 0.08);
  flex: 0 0 auto;
}

.text-button--dark span:last-child {
  background: rgba(255, 253, 248, 0.16);
}

.open-button--heart {
  min-height: 94px;
  display: inline-grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
}

.open-button__heart {
  width: 92px;
  height: 82px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ivory);
  transition:
    transform 220ms ease,
    filter 220ms ease;
  filter: drop-shadow(0 16px 26px rgba(111, 88, 72, 0.22));
}

.open-button__heart-icon {
  width: 92px;
  height: 82px;
  display: block;
  overflow: visible;
}

.open-button__heart-icon path {
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.open-button__heart-icon path:not(:first-child) {
  stroke-width: 3;
  opacity: 0.92;
}

.open-button__caption {
  max-width: 13rem;
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 10px rgba(111, 88, 72, 0.36);
}

.text-button--dark {
  background: linear-gradient(135deg, #80606a, #d7a7b3);
  color: var(--ivory);
  border-color: rgba(121, 88, 79, 0.14);
}

.open-button:hover .open-button__heart,
.text-button:hover {
  transform: translateY(-2px);
}

.invite {
  width: min(100%, 620px);
  display: grid;
  gap: 0;
  margin: 0 auto;
  padding: 0 18px 96px;
}

.invite[hidden] {
  display: none;
}

.invite:focus {
  outline: none;
}

.invite > section {
  position: relative;
  padding: clamp(48px, 10vw, 82px) 0;
  text-align: center;
}

.inner-title {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: clamp(42px, 9vw, 72px);
  padding-bottom: clamp(38px, 8vw, 64px);
}

.inner-title::before {
  display: none;
}

.inner-title__seal {
  --monogram-width: clamp(180px, 44vw, 240px);
  --monogram-date-size: 0.82rem;
  margin-bottom: 2px;
}

.inner-title h2 {
  max-width: 9ch;
  font-size: clamp(3.1rem, 11vw, 5rem);
}

.inner-title__names span,
.inner-title__names em {
  display: block;
}

.inner-title__names em {
  margin: 5px 0;
  color: var(--dusty-rose);
  font-family: var(--script);
  font-size: 0.46em;
  font-style: normal;
  line-height: 1;
}

.inner-title__line {
  max-width: 25ch;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 4vw, 1.6rem);
  font-style: italic;
  line-height: 1.18;
}

.inner-title__place {
  max-width: 23ch;
  color: rgba(44, 35, 32, 0.88);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.14;
  text-wrap: balance;
}

.invite > section + section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 340px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 77, 66, 0.2), transparent);
  content: "";
  transform: translateX(-50%);
}

.section-kicker {
  width: fit-content;
  margin: 0 auto 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: none;
}

body.reveal-ready .invite [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(3px);
  transition-property: opacity, transform, filter;
  transition-duration: 920ms;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

body.reveal-ready .invite [data-reveal="card"] {
  transform: translate3d(0, 22px, 0) scale(0.985);
}

body.reveal-ready .invite [data-reveal="control"] {
  transform: translate3d(0, 18px, 0);
}

body.reveal-ready .invite [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.55rem, 10vw, 4.35rem);
  font-weight: 500;
  line-height: 0.92;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.62rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
}

p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.72;
}

.photo-section {
  padding-top: clamp(22px, 6vw, 44px);
  padding-bottom: clamp(88px, 18vw, 142px);
}

.photo-card {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  border: 10px solid rgba(255, 250, 252, 0.9);
  filter: sepia(0.14) saturate(0.62) hue-rotate(344deg) brightness(1.1) contrast(0.88);
  box-shadow: var(--shadow);
}

.photo-card figcaption {
  width: min(88%, 340px);
  display: grid;
  gap: 4px;
  margin: -36px auto 0;
  padding: 16px 18px;
  position: relative;
  background: rgba(255, 250, 252, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(64, 49, 35, 0.12);
}

.photo-card figcaption em {
  color: var(--dusty-rose);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}

.photo-card figcaption > span {
  color: var(--taupe);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-card figcaption .wedding-monogram--caption {
  --monogram-width: 118px;
  --monogram-date-size: 0.5rem;
  margin: 0 auto;
  font-style: normal;
}

.photo-card figcaption strong {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
}

.letter-copy {
  display: grid;
  gap: 18px;
  margin: 28px auto 0;
}

.letter-copy p {
  font-size: clamp(1.15rem, 3.8vw, 1.28rem);
  line-height: 1.58;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.action-row--center {
  margin-top: 30px;
}

.form-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--taupe);
  font-size: 0.9rem;
  font-weight: 700;
}

.place-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(30px, 7vw, 48px) clamp(20px, 6vw, 44px);
  background:
    linear-gradient(180deg, rgba(255, 250, 252, 0.95), rgba(237, 208, 218, 0.24), rgba(242, 221, 227, 0.9)),
    var(--ivory);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.place-card h2 {
  margin-bottom: 4px;
}

.place-card p {
  max-width: 38rem;
}

.place-card > p:not(.section-kicker),
.details-section > p:not(.section-kicker),
.rsvp-section > p:not(.section-kicker),
.modal__lead {
  font-size: clamp(1.15rem, 3.8vw, 1.28rem);
  line-height: 1.58;
}

.place-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid rgba(149, 114, 101, 0.3);
  border-radius: 999px;
  background: rgba(237, 208, 218, 0.34);
  color: var(--mocha);
  line-height: 1;
}

.place-time span {
  font-size: 0.86rem;
  font-weight: 800;
}

.place-time time {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 800;
}

.details-section h2,
.rsvp-section h2 {
  margin-bottom: 28px;
}

.details-section > p:not(.section-kicker),
.rsvp-section > p {
  max-width: 38rem;
  margin: 0 auto;
}

.dress-code-accent {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: 700;
  line-height: inherit;
  text-shadow: 0.02em 0 0 currentColor;
}

.countdown-section {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: auto;
  margin-left: 0;
  padding: clamp(48px, 10vw, 72px) 0 clamp(20px, 5vw, 30px);
  background: transparent;
  box-shadow: none;
}

.countdown-section::before {
  display: block;
}

.countdown-section p {
  max-width: 18ch;
  margin: 0 auto 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 6.8vw, 2.7rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.08;
}

.countdown {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  padding: 18px 0 14px;
  border-top: 1px solid rgba(121, 88, 79, 0.16);
  border-bottom: 1px solid rgba(121, 88, 79, 0.16);
}

.countdown__item {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 0 clamp(2px, 2vw, 10px);
}

.countdown__item + .countdown__item {
  border-left: 1px solid rgba(121, 88, 79, 0.12);
}

.countdown__item strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.countdown__item span {
  color: var(--mocha);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-section {
  overflow: hidden;
  padding-top: clamp(20px, 5vw, 32px);
}

.calendar-section::before {
  display: none;
}

.calendar-date {
  margin-bottom: 18px;
  color: rgba(111, 88, 72, 0.7);
  font-family: var(--serif);
  font-size: clamp(2.05rem, 8vw, 3.35rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.calendar-board {
  width: min(100%, 430px);
  display: grid;
  gap: 20px;
  margin: 0 auto;
  padding: clamp(28px, 7vw, 42px) clamp(16px, 5vw, 32px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 253, 248, 0.68), transparent 15rem),
    radial-gradient(circle at 74% 80%, rgba(237, 208, 218, 0.32), transparent 14rem),
    linear-gradient(135deg, rgba(255, 250, 252, 0.58), rgba(242, 221, 227, 0.36), rgba(255, 250, 252, 0.68));
  border: 1px solid rgba(121, 88, 79, 0.12);
  box-shadow: none;
}

.calendar-board::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 20%, rgba(255, 255, 255, 0.5) 34%, transparent 48% 100%),
    linear-gradient(24deg, transparent 0 50%, rgba(255, 255, 255, 0.32) 58%, transparent 68% 100%);
  content: "";
  pointer-events: none;
}

.calendar-watermark {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 125%;
  color: rgba(160, 123, 126, 0.08);
  font-family: var(--script);
  font-size: clamp(3rem, 16vw, 5.8rem);
  line-height: 0.9;
  pointer-events: none;
  text-shadow: none;
  transform: translate(-50%, -50%) rotate(-7deg);
  white-space: nowrap;
  z-index: 0;
}

.calendar-title,
.calendar-grid {
  position: relative;
  z-index: 1;
}

.calendar-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  line-height: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 13px) clamp(5px, 1.8vw, 10px);
  align-items: center;
}

.calendar-weekday,
.calendar-day {
  min-width: 0;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  line-height: 1;
}

.calendar-weekday {
  color: var(--mocha);
  font-size: clamp(0.78rem, 2.8vw, 0.98rem);
  font-weight: 800;
}

.calendar-day {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 4.2vw, 1.55rem);
  font-weight: 600;
}

.calendar-day--empty {
  visibility: hidden;
}

.calendar-day--wedding {
  grid-column-start: 7;
  color: var(--ink);
  font-family: var(--serif);
  isolation: isolate;
}

.calendar-day--wedding::before {
  width: clamp(46px, 13vw, 58px);
  height: clamp(46px, 13vw, 58px);
  display: inline-grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  color: var(--ivory);
  content: "♡";
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(3rem, 13vw, 4.1rem);
  font-weight: 400;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 253, 248, 0.9),
    0 10px 26px rgba(121, 88, 79, 0.1);
  transform: translate(-50%, -48%);
}

.mobile-dock {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 20;
  width: min(440px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(121, 88, 79, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 252, 0.78);
  box-shadow: 0 18px 60px rgba(121, 88, 79, 0.16);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 0s linear 220ms;
}

.mobile-dock--premium {
  bottom: 10px;
  left: 18px;
  width: min(360px, calc(100% - 36px));
  border-color: rgba(121, 88, 79, 0.12);
  background: rgba(255, 250, 252, 0.68);
  box-shadow: 0 14px 46px rgba(121, 88, 79, 0.12);
}

body.is-open .mobile-dock {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.audio-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  right: 18px;
  top: calc(14px + env(safe-area-inset-top));
  bottom: auto;
  z-index: 24;
  border: 1px solid rgba(121, 88, 79, 0.16);
  border-radius: 999px;
  padding: 0 14px 0 12px;
  background: rgba(255, 250, 252, 0.78);
  box-shadow: 0 14px 46px rgba(121, 88, 79, 0.14);
  color: var(--mocha);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.audio-toggle[hidden] {
  display: none;
}

.audio-toggle:hover {
  transform: translateY(-2px);
}

.audio-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(128, 96, 106, 0.92), rgba(215, 167, 179, 0.92));
  color: var(--ivory);
}

.audio-toggle__icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 27, 23, 0.08);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
}

.audio-toggle[aria-pressed="true"] .audio-toggle__icon {
  background: rgba(255, 253, 248, 0.16);
}

.mobile-dock a,
.mobile-dock button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--mocha);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.mobile-dock > * + * {
  border-left: 1px solid rgba(112, 77, 66, 0.14);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 24, 21, 0.54);
  backdrop-filter: blur(12px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: clamp(24px, 6vw, 42px);
  background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: 0 26px 90px rgba(33, 24, 21, 0.28);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(112, 77, 66, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.modal__dialog h2 {
  margin-bottom: 14px;
  padding-right: 30px;
  text-align: left;
}

.modal__dialog .section-kicker {
  margin-left: 0;
}

.modal__lead {
  text-align: left;
}

.calendar-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.calendar-actions .text-button {
  width: 100%;
}

.rsvp-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.form-field,
.form-check {
  display: grid;
  gap: 8px;
}

.form-field span,
.form-check span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(112, 77, 66, 0.24);
  border-radius: 0;
  background: rgba(248, 237, 240, 0.66);
  color: var(--ink);
  padding: 13px 14px;
  line-height: 1.35;
}

.form-field textarea {
  resize: vertical;
}

.form-check {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--mocha);
}

.rsvp-forward-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.rsvp-form > button[hidden] {
  display: none;
}

@media (min-width: 760px) {
  .cover {
    padding-inline: 36px;
  }

  .invite {
    padding-bottom: 120px;
  }

  .photo-card {
    width: min(100%, 500px);
  }

  .mobile-dock {
    display: none;
  }

  .audio-toggle {
    right: 24px;
    top: auto;
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  body.reveal-ready .invite [data-reveal] {
    transform: translate3d(0, 34px, 0);
    filter: blur(4px);
    transition-duration: 1050ms;
  }

  body.reveal-ready .invite [data-reveal="card"] {
    transform: translate3d(0, 30px, 0) scale(0.98);
  }

  body.reveal-ready .invite [data-reveal="control"] {
    transform: translate3d(0, 24px, 0);
  }

  .cover {
    min-height: 100svh;
    padding-inline: 14px;
  }

  .cover__panel {
    min-height: calc(100svh - 44px);
    padding-block: 18px;
    padding-inline: 12px;
  }

  .cover__monogram {
    --monogram-width: clamp(176px, 48vw, 194px);
  }

  .invite {
    padding-inline: 16px;
  }

  .countdown-section {
    width: auto;
    margin-left: 0;
  }

  .countdown {
    gap: 8px;
  }

  .text-button,
  .open-button {
    width: 100%;
    max-width: 320px;
  }

  .open-button--heart {
    width: auto;
    max-width: none;
    gap: 0;
  }
}

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

  body.reveal-ready .invite [data-reveal] {
    transition-duration: 920ms !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 480px) {
  body.reveal-ready .invite [data-reveal] {
    transition-duration: 1050ms !important;
  }
}
