    @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;700&family=Manrope:wght@400;500;600&display=swap');
    @import url('https://fonts.cdnfonts.com/css/maftuh');

    @font-face {
      font-family: 'Mirra';
      src:
        local('Mirra'),
        url('../../fonts/Mirra.woff2') format('woff2'),
        url('../../fonts/Mirra.ttf') format('truetype'),
        url('../../fonts/Mirra.otf') format('opentype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'FoglihtenNo06_076';
      src: url('../../fonts/FoglihtenNo06_076.otf') format('opentype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Felidae';
      src: url('../../fonts/Felidae.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'New-YorkerC';
      src: url('../../fonts/New-YorkerC.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'ViaodaLibre-Regular';
      src: url('../../fonts/ViaodaLibre-Regular.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Lighthaus';
      src: url('../../fonts/Lighthaus.otf') format('opentype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --paper: #eae7e0;
      --ink: #2f2a24;
      --accent: #8a5a44;
      --line-light: rgba(255, 255, 255, 0.75);
      --line-dark: rgba(47, 42, 36, 0.45);
      --fade-distance: 24px;
      --timing: 720ms;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      margin: 0;
      padding: 0;
      width: 100%;
      min-height: 100%;
    }

    body {
      font-family: 'Manrope', 'Avenir Next', 'Helvetica Neue', sans-serif;
      color: #fff;
      background: #f4efe8;
      line-height: 1.4;
    }

    body,
    body * {
      font-family: 'Mirra', serif !important;
    }

    h1,
    h2,
    .intro-title,
    .script,
    .farewell-text {
      font-family: 'New-YorkerC', 'Cormorant Garamond', 'Bodoni MT', serif !important;
    }

    .panel {
      min-height: auto;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: clamp(1.4rem, 3.4vw, 2.7rem) clamp(1rem, 4vw, 3rem);
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }

    .content {
      width: min(1140px, 100%);
      position: relative;
      z-index: 2;
    }

    .hero,
    .moment {
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }

    .hero {
      background-image: url('../../images/main.webp');
    }

    .hero-main {
      background-image: url('../../images/main.webp');
    }

    .moment {
      background-image: url('../../images/hello.webp');
    }

    .intro-screen {
      min-height: 100svh;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: clamp(0.55rem, 1.7vw, 1.2rem) clamp(0.5rem, 2vw, 1rem);
      background-image: url('../../images/hello.webp');
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
      position: relative;
      isolation: isolate;
      opacity: 1;
      transition: opacity 520ms ease;
      will-change: opacity;
    }

    .intro-screen.is-fading {
      opacity: 0;
      pointer-events: none;
    }

    .intro-screen::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(239, 238, 236, 0.36);
      z-index: 1;
    }

    .intro-content {
      width: min(720px, 100%);
      color: #111;
      position: relative;
      z-index: 2;
      text-shadow: none;
    }

    .intro-title,
    .intro-hint {
      margin: 0;
      font-family: 'Mirra', 'Cormorant Garamond', serif !important;
    }

    .intro-title {
      text-transform: uppercase;
      letter-spacing: 0.07em;
      font-size: clamp(1.85rem, 7.15vw, 3.7rem);
      margin-bottom: clamp(0.08rem, 0.5vw, 0.28rem);
    }

    .intro-seal-button {
      display: inline-block;
      border: 0;
      padding: 0;
      background: transparent;
      cursor: pointer;
      transition: transform 240ms ease;
    }

    .intro-seal-button:hover {
      transform: translateY(-2px);
    }

    .intro-seal-button:focus-visible {
      outline: 2px solid #6b5c50;
      outline-offset: 6px;
    }

    .intro-seal-button img {
      display: block;
      width: min(518px, 96vw);
      height: auto;
    }

    .intro-hint {
      margin-top: clamp(0.08rem, 0.5vw, 0.28rem);
      font-size: clamp(1.47rem, 4.81vw, 2.71rem);
      letter-spacing: 0.05em;
    }

    .main-invitation.is-hidden {
      display: none;
    }

    .hero .content,
    .moment .content,
    .farewell .content {
      text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
    }

    .hero-main .content {
      color: #111;
      text-shadow: none;
    }

    .hero-main .eyebrow,
    .hero-main .guest-greeting,
    .hero-main h1,
    .hero-main .lead,
    .hero-main .couple-names,
    .hero-main .venue {
      font-family: 'Mirra', 'Cormorant Garamond', serif !important;
    }

    .hero.hero-main h1 {
      font-size: clamp(1.1rem, 3.63vw, 2.2rem) !important;
      margin-top: clamp(0.55rem, 1.8vw, 0.9rem);
    }

    .hero-main-names {
      margin: 0;
      font-family: 'Mirra', 'Cormorant Garamond', serif;
      font-size: clamp(2.2rem, 7.26vw, 4.4rem);
      font-weight: 700;
      letter-spacing: 0.04em;
      color: #111;
    }

    .main-invitation.has-audio-widget {
      padding-bottom: 6.5rem;
    }

    .audio-player-inline {
      width: min(269px, 100%);
      margin: 1rem auto 0;
    }

    .audio-player-progress {
      position: relative;
      width: 100%;
      height: 4px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(47, 42, 36, 0.14);
    }

    .audio-player-progress.is-hidden {
      display: none;
    }

    .audio-player-progress-fill {
      display: block;
      width: 0;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(138, 90, 68, 0.9), rgba(47, 42, 36, 0.92));
      transition: width 120ms linear;
    }

    .audio-player-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.7rem;
      margin-top: 0.9rem;
    }

    .audio-player-button {
      min-width: 53px;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(47, 42, 36, 0.18);
      border-radius: 999px;
      padding: 0.41rem 0.58rem;
      background: rgba(255, 255, 255, 0.52);
      color: #2f2a24;
      font-size: 0.64rem;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    }

    .audio-player-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #2f2a24;
      line-height: 0;
      width: 44px;
      height: 44px;
      min-width: 44px;
      padding: 0;
      border-radius: 50%;
    }

    .audio-player-icon {
      display: block;
      flex: 0 0 auto;
      width: 14px;
      height: 14px;
      margin: 0 auto;
    }

    .audio-player-sticky {
      position: fixed;
      left: 50%;
      bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
      transform: translateX(-50%);
      z-index: 50;
      width: min(320px, calc(100vw - 1.5rem));
      padding: 0.7rem 0.9rem;
      border: 1px solid rgba(47, 42, 36, 0.16);
      border-radius: 999px;
      background: rgba(255, 251, 246, 0.58);
      box-shadow: 0 14px 24px rgba(47, 42, 36, 0.1);
      backdrop-filter: blur(8px);
    }

    .audio-player-sticky .audio-player-controls {
      margin-top: 0;
    }

    .audio-player-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(47, 42, 36, 0.08);
      background: rgba(255, 255, 255, 0.92);
    }

    .audio-player-button:focus-visible {
      outline: 2px solid rgba(138, 90, 68, 0.55);
      outline-offset: 3px;
    }

    .panel.moment {
      padding-top: clamp(5.6rem, 13.6vw, 10.8rem);
      padding-bottom: clamp(5.6rem, 13.6vw, 10.8rem);
    }

    .panel.farewell {
      padding-top: clamp(4.2rem, 10.2vw, 8.1rem);
      padding-bottom: clamp(4.2rem, 10.2vw, 8.1rem);
    }

    .moment .content {
      color: #111;
      text-shadow: none;
    }

    .moment .script {
      font-family: 'New-YorkerC', 'Cormorant Garamond', 'Bodoni MT', serif !important;
    }

    .moment .divider {
      margin: clamp(0.8rem, 2.8vw, 1.5rem) auto;
    }

    .moment .subline {
      font-family: 'FoglihtenNo06_076', 'Cormorant Garamond', serif !important;
      text-transform: none;
      letter-spacing: 0.01em;
      font-size: clamp(0.84rem, 2.4vw, 1.4rem);
      max-width: 42rem;
      margin-inline: auto;
      line-height: 1.35;
    }

    .hero-photo {
      margin: clamp(0.7rem, 2.2vw, 1.2rem) auto 0;
      width: min(374px, 72%);
    }

    .hero-photo img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 18px;
      border: 1px solid rgba(26, 24, 22, 0.2);
      box-shadow: 0 10px 24px rgba(35, 28, 24, 0.16);
    }

    .farewell {
      background-image: url('../../images/main.webp');
    }

    .eyebrow {
      margin: 0;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 500;
      font-size: clamp(0.8rem, 1.8vw, 1rem);
      opacity: 0.9;
    }

    .guest-greeting {
      margin: 0.8rem 0 0;
      font-size: clamp(0.95rem, 2.4vw, 1.25rem);
      font-weight: 500;
      letter-spacing: 0.04em;
    }

    .hero h1 {
      margin: 0.8rem 0 0;
      font-family: 'Cormorant Garamond', 'Bodoni MT', serif;
      font-weight: 700;
      font-size: clamp(2.2rem, 8vw, 5rem);
      letter-spacing: 0.04em;
    }

    .lead {
      margin: 1rem auto 0;
      max-width: 36rem;
      font-size: clamp(1rem, 2.4vw, 1.35rem);
      font-weight: 400;
    }

    .couple {
      margin-top: clamp(1.1rem, 3vw, 1.7rem);
      display: grid;
      gap: 0.8rem;
      justify-items: center;
    }

    .couple-names {
      margin: 0;
      font-family: 'Cormorant Garamond', 'Bodoni MT', serif;
      font-weight: 700;
      font-size: clamp(1.8rem, 5.8vw, 3.8rem);
      letter-spacing: 0.06em;
    }

    .venue {
      margin: 0;
      font-size: clamp(0.95rem, 2.3vw, 1.2rem);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      opacity: 0.95;
    }

    .script {
      margin: 0;
      font-family: 'Maftuh', 'Cormorant Garamond', 'Brush Script MT', cursive;
      font-weight: 400;
      font-size: clamp(2.2rem, 9vw, 5.5rem);
      line-height: 1.1;
    }

    .divider {
      height: 1px;
      width: min(360px, 78vw);
      margin: clamp(0.8rem, 2.8vw, 1.5rem) auto;
      background: var(--line-light);
    }

    .divider.dark {
      background: var(--line-dark);
    }

    .subline {
      margin: 0;
      font-family: 'Cormorant Garamond', 'Bodoni MT', serif;
      font-size: clamp(1.35rem, 4.8vw, 2.5rem);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .schedule {
      background: var(--paper);
      color: var(--ink);
    }

    .schedule h2 {
      margin: 0;
      font-family: 'Cormorant Garamond', 'Bodoni MT', serif;
      font-size: clamp(2rem, 5vw, 3.6rem);
      font-weight: 700;
    }

    .calendar {
      margin: clamp(1rem, 2.5vw, 1.8rem) auto 0;
      width: min(560px, 100%);
      border: 1px solid rgba(74, 54, 42, 0.2);
      background: rgba(255, 255, 255, 0.46);
      backdrop-filter: blur(1px);
      border-radius: 20px;
      padding: clamp(1rem, 3vw, 1.7rem);
    }

    .calendar-month {
      margin: 0 0 1rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: clamp(0.82rem, 2vw, 1rem);
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 0.35rem;
      align-items: center;
    }

    .weekday,
    .day,
    .empty {
      aspect-ratio: 1 / 1;
      display: grid;
      place-items: center;
      border-radius: 999px;
      font-size: clamp(0.82rem, 2vw, 1rem);
    }

    .weekday {
      font-weight: 600;
      text-transform: uppercase;
      font-size: clamp(0.66rem, 1.6vw, 0.8rem);
      letter-spacing: 0.06em;
      color: #66594f;
      aspect-ratio: auto;
      padding-bottom: 0.3rem;
    }

    .day {
      font-weight: 500;
      color: #3b342f;
    }

    .day.target {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 8px 18px rgba(138, 90, 68, 0.32);
      font-weight: 700;
    }

    .countdown {
      margin: clamp(1.1rem, 3vw, 1.7rem) auto 0;
      width: min(560px, 100%);
      display: grid;
      gap: 0.8rem;
    }

    .countdown-title {
      margin: 0;
      font-size: clamp(0.85rem, 2vw, 0.95rem);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 600;
      color: #5b5048;
    }

    .countdown-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: clamp(0.45rem, 1.5vw, 0.8rem);
    }

    .countdown-item {
      border: 1px solid rgba(74, 54, 42, 0.2);
      border-radius: 16px;
      padding: 0.75rem 0.45rem;
      background: rgba(255, 255, 255, 0.35);
    }

    .countdown-value {
      display: block;
      font-family: 'Cormorant Garamond', 'Bodoni MT', serif;
      font-size: clamp(1.5rem, 5.2vw, 2.5rem);
      font-weight: 700;
      line-height: 1;
    }

    .countdown-label {
      display: block;
      margin-top: 0.25rem;
      font-size: clamp(0.7rem, 1.8vw, 0.82rem);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #66594f;
    }

    .countdown-note {
      margin: 0.15rem 0 0;
      font-size: clamp(0.86rem, 2vw, 0.98rem);
      color: #524841;
    }

    .countdown-panel {
      background: #eae7e0;
      color: var(--ink);
    }

    .countdown-panel h2 {
      margin: 0;
      font-family: 'Felidae', 'Cormorant Garamond', 'Bodoni MT', serif !important;
      font-size: clamp(2rem, 5vw, 3.6rem);
      font-weight: 700;
    }

    .location {
      background: #efeeec;
      color: var(--ink);
    }

    .location h2 {
      margin: 0;
      font-family: 'FoglihtenNo06_076', 'Cormorant Garamond', 'Bodoni MT', serif !important;
      font-size: clamp(2rem, 5vw, 3.6rem);
      font-weight: 700;
    }

    .location-text {
      margin: 0;
      font-family: 'FoglihtenNo06_076', 'Cormorant Garamond', serif !important;
      font-size: clamp(1rem, 2.4vw, 1.3rem);
      color: #3e3630;
    }

    .location-photo {
      margin: clamp(1rem, 2.6vw, 1.5rem) auto 0;
      width: min(760px, 100%);
      aspect-ratio: 16 / 9;
      border-radius: 22px;
      border: 1px solid rgba(74, 54, 42, 0.24);
      overflow: hidden;
      box-shadow: 0 12px 26px rgba(88, 72, 61, 0.1);
    }

    .location-photo img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .location-bottom {
      margin-top: clamp(1rem, 3vw, 1.6rem);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(0.45rem, 1.6vw, 0.9rem);
      flex-wrap: nowrap;
      font-size: clamp(0.9rem, 3vw, 1.25rem);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #403830;
    }

    .location-bottom-text {
      font-family: 'Lighthaus', 'Cormorant Garamond', serif !important;
      white-space: nowrap;
      font-weight: 600;
      font-size: clamp(1.08rem, 3.6vw, 1.5rem);
      line-height: 1;
    }

    .location-bottom-dash {
      display: inline-block;
      width: 1px;
      height: clamp(1.8rem, 6vw, 2.5rem);
      background: currentColor;
      opacity: 0.55;
      flex: 0 0 1px;
    }

    .location-link {
      font-family: 'New-YorkerC', 'Cormorant Garamond', 'Bodoni MT', serif !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 3.06rem;
      padding: 0.69rem 1.38rem;
      border-radius: 999px;
      border: 1px solid #6b5c50;
      text-decoration: none;
      color: #2f2a24;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.55);
      transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
      white-space: nowrap;
    }

    .location-link:hover {
      background: #6b5c50;
      color: #fff;
      transform: translateY(-1px);
    }

    .wishes-panel {
      background:
        linear-gradient(180deg, rgba(246, 240, 234, 0.42) 0%, rgba(244, 235, 229, 0.52) 100%),
        url('../../images/back_g.webp') center / cover no-repeat;
      color: var(--ink);
    }

    .dresscode-panel {
      background: #dad7d2;
      color: var(--ink);
    }

    .dresscode-panel h2 {
      margin: 0;
      font-family: 'Cormorant Garamond', 'Bodoni MT', serif;
      font-size: clamp(2rem, 5vw, 3.6rem);
      font-weight: 700;
    }

    .dresscode-text {
      margin: 0;
      font-family: 'FoglihtenNo06_076', 'Cormorant Garamond', serif !important;
      font-size: clamp(1.05rem, 2.8vw, 1.45rem);
      line-height: 1.4;
      color: #3a332e;
      letter-spacing: 0.01em;
    }

    .dresscode-photo {
      display: block;
      width: min(456px, 60%);
      height: auto;
      margin: clamp(0.9rem, 2.4vw, 1.3rem) auto 0;
      border-radius: 20px;
      border: 1px solid rgba(74, 54, 42, 0.22);
      box-shadow: 0 10px 24px rgba(88, 72, 61, 0.14);
    }

    .dresscode-carousel {
      width: min(860px, 100%);
      margin: 0 auto;
      display: grid;
      gap: clamp(0.8rem, 2.4vw, 1.2rem);
    }

    .dresscode-slides {
      display: grid;
      min-height: clamp(10rem, 20vw, 14rem);
      align-items: center;
    }

    .dresscode-slide {
      display: none;
      margin: 0;
    }

    .dresscode-slides:not(.is-ready) .dresscode-slide:first-child {
      display: block;
    }

    .dresscode-slide.is-active {
      display: block;
    }

    .dresscode-slide img {
      display: block;
      width: min(640px, 100%);
      max-height: min(62vh, 560px);
      height: auto;
      margin: 0 auto;
      object-fit: contain;
      border-radius: 20px;
      border: 1px solid rgba(74, 54, 42, 0.22);
      box-shadow: 0 10px 24px rgba(88, 72, 61, 0.14);
      background: rgba(255, 255, 255, 0.2);
    }

    .dresscode-slide figcaption {
      margin-top: clamp(0.65rem, 1.8vw, 0.95rem);
      font-size: clamp(1rem, 2.6vw, 1.35rem);
      color: #3a332e;
      letter-spacing: 0.01em;
      line-height: 1.35;
    }

    .dresscode-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(0.6rem, 1.8vw, 1rem);
    }

    .dresscode-arrow {
      width: 2.8rem;
      height: 2.8rem;
      border-radius: 999px;
      border: 1px solid #6b5c50;
      background: transparent;
      color: #2f2a24;
      font-size: 1.2rem;
      line-height: 1;
      cursor: pointer;
      transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
    }

    .dresscode-arrow:hover {
      background: #6b5c50;
      color: #fff;
      transform: translateY(-1px);
    }

    .dresscode-indicator {
      min-width: 3.2rem;
      text-align: center;
      font-size: clamp(0.95rem, 2.2vw, 1.1rem);
      color: #3f3832;
      letter-spacing: 0.04em;
    }

    .wishes-panel h2 {
      margin: 0;
      font-family: 'Cormorant Garamond', 'Bodoni MT', serif;
      font-size: clamp(2rem, 5vw, 3.6rem);
      font-weight: 700;
    }

    .wishes-carousel {
      width: min(760px, 100%);
      margin: 0 auto;
      display: grid;
      gap: clamp(0.8rem, 2.6vw, 1.2rem);
    }

    .wishes-slides {
      min-height: clamp(8rem, 16vw, 10.5rem);
      display: grid;
      align-items: center;
    }

    .wishes-slide {
      margin: 0;
      display: none;
      font-family: 'FoglihtenNo06_076', 'Cormorant Garamond', serif !important;
      font-size: clamp(1rem, 2.8vw, 1.45rem);
      line-height: 1.45;
      letter-spacing: 0.01em;
      color: #352f29;
    }

    .wishes-slide.is-active {
      display: block;
    }

    .wishes-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(0.6rem, 1.8vw, 1rem);
    }

    .wishes-arrow {
      width: 2.8rem;
      height: 2.8rem;
      border-radius: 999px;
      border: 1px solid #6b5c50;
      background: transparent;
      color: #2f2a24;
      font-size: 1.2rem;
      line-height: 1;
      cursor: pointer;
      transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
    }

    .wishes-arrow:hover {
      background: #6b5c50;
      color: #fff;
      transform: translateY(-1px);
    }

    .wishes-indicator {
      min-width: 3.2rem;
      text-align: center;
      font-size: clamp(0.95rem, 2.2vw, 1.1rem);
      color: #3f3832;
      letter-spacing: 0.04em;
    }

    .wishes-gift-link {
      justify-self: center;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 3rem;
      padding: 0.68rem 1.28rem;
      border-radius: 999px;
      border: 1px solid #6b5c50;
      background: transparent;
      color: #2f2a24;
      text-decoration: none;
      font-weight: 600;
      transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
    }

    .wishes-gift-link:hover {
      background: #6b5c50;
      color: #fff;
      transform: translateY(-1px);
    }

    .wishes-photo-wrap {
      width: min(760px, 100%);
      margin: 0 auto;
    }

    .wishes-photo {
      display: block;
      width: min(320px, 50%);
      max-height: min(62vh, 560px);
      height: auto;
      margin: 0 auto;
      object-fit: contain;
      border-radius: 20px;
      border: 1px solid rgba(74, 54, 42, 0.22);
      box-shadow: 0 10px 24px rgba(88, 72, 61, 0.14);
      background: rgba(255, 255, 255, 0.2);
    }

    .wishes-photo-caption {
      margin-top: clamp(0.65rem, 1.8vw, 0.95rem);
      font-size: clamp(1.4rem, 3.64vw, 1.89rem);
      color: #352f29;
      letter-spacing: 0.01em;
      line-height: 1.35;
    }

    .farewell-text {
      margin: 0;
      font-family: 'New-YorkerC', 'Cormorant Garamond', 'Bodoni MT', serif !important;
      font-size: clamp(2.2rem, 8vw, 5.2rem);
      font-weight: 700;
      letter-spacing: 0.05em;
      color: #111;
    }

    .farewell .content {
      text-shadow: none;
    }

    .confirm-wrap,
    .rsvp-wrap {
      margin-top: clamp(1.1rem, 3vw, 1.8rem);
      display: grid;
      justify-items: center;
      gap: 0.65rem;
      width: min(420px, 100%);
      margin-inline: auto;
    }

    .rsvp-form {
      width: 100%;
      display: grid;
      justify-items: center;
    }

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

    .rsvp-step {
      display: none;
      width: 100%;
      flex-direction: column;
      align-items: center;
      gap: 0.9rem;
      opacity: 1;
      transform: translateY(0);
      transition: opacity 260ms ease, transform 260ms ease;
    }

    .rsvp-step.is-active {
      display: flex;
    }

    .rsvp-step.is-entering {
      opacity: 0;
      transform: translateY(8px);
      transition: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .rsvp-step {
        transition: none;
      }
    }

    .rsvp-question {
      margin: 0;
      font-size: clamp(0.95rem, 2.4vw, 1.15rem);
      letter-spacing: 0.02em;
      text-align: center;
    }

    .rsvp-options {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.55rem;
    }

    .rsvp-option {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 3rem;
      min-width: 6.5rem;
      padding: 0.6rem 1.5rem;
      border-radius: 999px;
      border: 1px solid #6b5c50;
      background: transparent;
      color: #2f2a24;
      font-size: clamp(0.95rem, 2.2vw, 1.05rem);
      font-weight: 600;
      cursor: pointer;
      transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
    }

    .rsvp-option:hover {
      transform: translateY(-1px);
      background: rgba(107, 92, 80, 0.12);
    }

    .rsvp-option:active {
      transform: scale(0.94);
      transition-duration: 80ms;
    }

    .rsvp-option.is-selected {
      background: #6b5c50;
      color: #fff;
    }

    .rsvp-option:disabled {
      cursor: default;
      opacity: 0.6;
      transform: none;
    }

    .rsvp-change-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 2.8rem;
      padding: 0.6rem 1.2rem;
      border-radius: 999px;
      border: 1px solid #6b5c50;
      background: transparent;
      color: #2f2a24;
      font-size: clamp(0.88rem, 2.1vw, 1rem);
      cursor: pointer;
      transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
    }

    .rsvp-change-button:hover {
      transform: translateY(-1px);
    }

    .rsvp-change-button:active {
      transform: scale(0.94);
      transition-duration: 80ms;
    }

    .rsvp-hint {
      margin: 0.4rem 0 0;
      font-size: clamp(0.8rem, 1.9vw, 0.9rem);
      opacity: 0.75;
    }

    .confirm-note {
      margin: 0;
      font-size: clamp(0.95rem, 2.2vw, 1.1rem);
      color: #2f2a24;
    }

    .confirm-note.is-error {
      color: #8b2f2f;
    }

    .confirm-note.is-ok {
      color: #2f6b47;
    }

    .farewell-signature {
      margin: clamp(0.8rem, 2vw, 1.1rem) 0 0;
      font-size: clamp(1.1rem, 3vw, 1.45rem);
      letter-spacing: 0.14em;
      color: #111;
    }

    /* Final typography override: use New-YorkerC everywhere in invitation UI */
    html body .intro-screen *,
    html body .main-invitation * {
      font-family: 'New-YorkerC', 'Cormorant Garamond', 'Bodoni MT', serif !important;
    }

    [data-animate] {
      opacity: 0;
      transform: translateY(var(--fade-distance));
      transition: opacity var(--timing) ease, transform var(--timing) ease;
      transition-delay: var(--delay, 0ms);
      will-change: transform, opacity;
    }

    [data-animate].is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
      [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }

    @media (max-width: 540px) {
      .audio-player-controls {
        gap: 0.5rem;
      }

      .audio-player-button {
        min-width: 45px;
        padding: 0.4rem 0.5rem;
      }

      .audio-player-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
      }

      .audio-player-sticky {
        width: min(280px, calc(100vw - 1rem));
        padding: 0.6rem 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
      }

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

      .location-bottom {
        gap: 0.35rem;
        letter-spacing: 0.04em;
      }

      .location-link {
        min-height: 2.75rem;
        padding: 0.6rem 1.06rem;
      }
    }

    @media (min-width: 900px) {
      .panel {
        padding-left: 4rem;
        padding-right: 4rem;
      }

      .lead {
        max-width: 42rem;
      }
    }

    @media (orientation: landscape) and (max-height: 560px) {
      .panel {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
      }

      .hero h1,
      .script,
      .schedule h2,
      .countdown-panel h2 {
        line-height: 1;
      }
    }
