:root {
  --paper: #f4eee4;
  --paper-card: #fffaf2;
  --ink-navy: #262626;
  --ink-navy-soft: #4f4f4f;
  --line: #7a2f2b;
  --line-strong: #5f211f;
  --shadow: rgba(58, 25, 24, 0.12);
  --bg-page-start: #fdf8f0;
  --bg-page-end: #ece4d9;
  --surface-frost-navy: rgba(245, 249, 255, 0.9);
  --navy-overlay: rgba(28, 49, 94, 0.72);
  --accent-tint-strong: rgba(125, 155, 118, 0.72);
  --focus-ring-navy: rgba(125, 155, 118, 0.4);
  --seal-shadow: rgba(25, 36, 27, 0.28);
  --seal-shadow-hover: rgba(25, 36, 27, 0.34);
  --card-border: rgba(125, 155, 118, 0.16);
  --ornament-text: #f6f9f2;
  --ornament-text-muted: rgba(238, 248, 238, 0.95);
  --ornament-dot: rgba(238, 247, 236, 0.72);
  --ornament-shadow: rgba(15, 37, 26, 0.36);
  --line-muted: rgba(84, 84, 84, 0.84);
  --navy-border: rgba(28, 49, 94, 0.95);
  --navy-tint: rgba(28, 49, 94, 0.07);
  --gold-soft: rgba(125, 155, 118, 0.94);
  --gold-strong: rgba(112, 142, 106, 0.98);
  --credit-border: rgba(125, 155, 118, 0.36);
  --envelope-bg-start: #3d64b4;
  --envelope-bg-end: #2f519b;
  --envelope-panel-top-start: #3a60ad;
  --envelope-panel-top-end: #2f4f98;
  --envelope-panel-side-start: #4168b7;
  --envelope-panel-side-mid: #385eac;
  --envelope-panel-side-end: #30539d;
  --envelope-panel-bottom-start: #436bbb;
  --envelope-panel-bottom-mid: #3a61b0;
  --envelope-panel-bottom-end: #3258a4;
  --envelope-edge-gold-light: #dbe3d3;
  --envelope-edge-gold: #9bb18f;
  --envelope-edge-gold-deep: #617756;
  --envelope-edge-gold-glow: rgba(191, 206, 182, 0.3);
  --envelope-edge-width: clamp(7.5px, 0.9vw, 13px);
  --envelope-edge-half-width: clamp(3.75px, 0.45vw, 6.5px);
  --envelope-edge-shadow: rgba(18, 28, 64, 0.32);
  --envelope-edge-shadow-strong: rgba(9, 17, 42, 0.46);
  --envelope-text: #f6f8ff;
  --envelope-text-soft: rgba(246, 248, 255, 0.92);
  --envelope-stage-glow: rgba(184, 209, 255, 0.2);
  --envelope-shadow-top: rgba(14, 28, 64, 0.28);
  --envelope-shadow-side: rgba(13, 24, 56, 0.22);
  --envelope-shadow-bottom: rgba(11, 22, 52, 0.24);
  --envelope-seal-text: #2f2614;
  --envelope-seal-text-shadow: rgba(255, 241, 192, 0.3);
  --envelope-seal-focus-ring: rgba(125, 155, 118, 0.48);
  --fold-top-y: 42.8%;
  --fold-center-y: 54.8%;
  --font-body: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-heading: "Cormorant Garamond", "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-display: "Great Vibes", "Brush Script MT", cursive;
  --font-ornament: "Corinthia", "Great Vibes", "Brush Script MT", cursive;
  --title-lg: clamp(2.15rem, 6vw, 3.5rem);
  --title-md: clamp(1.85rem, 4.8vw, 2.75rem);
  --space-xs: clamp(0.45rem, 1.1vw, 0.7rem);
  --space-sm: clamp(0.7rem, 1.8vw, 1.05rem);
  --section-gap: clamp(4.8rem, 13vw, 8rem);
  --text-xs: clamp(0.82rem, 1.5vw, 0.92rem);
  --text-sm: clamp(0.92rem, 1.7vw, 1rem);
  --text-base: clamp(1rem, 1.9vw, 1.1rem);
  --text-lg: clamp(1.35rem, 3.2vw, 1.72rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at 20% 10%, var(--bg-page-start) 0%, var(--paper) 56%, var(--bg-page-end) 100%);
  color: var(--line-strong);
  font-family: var(--font-body);
  line-height: 1.55;
}

body:not(.invitation-visible) .invitation {
  display: none;
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.language-switcher {
  position: fixed;
  top: clamp(0.7rem, 2.2vw, 1.25rem);
  right: clamp(1.25rem, 3.4vw, 2.1rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.16rem;
  border: 1px solid var(--navy-border);
  border-radius: 999px;
  background: var(--surface-frost-navy);
  backdrop-filter: blur(4px);
}

.music-toggle {
  position: fixed;
  top: clamp(0.7rem, 2.2vw, 1.25rem);
  left: clamp(1.25rem, 3.4vw, 2.1rem);
  z-index: 70;
  appearance: none;
  width: clamp(2.34rem, 4.1vw, 2.62rem);
  aspect-ratio: 1;
  border: 1px solid var(--navy-border);
  border-radius: 999px;
  background: var(--surface-frost-navy);
  color: var(--gold-strong);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.music-toggle::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1.15rem;
  background: currentColor;
  opacity: 0.72;
  transform: rotate(-45deg);
  transition: opacity 0.18s ease;
}

.music-toggle:hover {
  background: var(--navy-tint);
}

.music-toggle:focus-visible {
  outline: 2px solid var(--focus-ring-navy);
  outline-offset: 1px;
}

.music-toggle.is-playing {
  background: var(--gold-soft);
  color: #fffdf6;
}

.music-toggle.is-playing::after {
  opacity: 0;
}

.music-icon-image {
  width: 1.08rem;
  height: 1.08rem;
  display: block;
  pointer-events: none;
  background: currentColor;
  -webkit-mask-image: url("assets/musicIcon.png");
  mask-image: url("assets/musicIcon.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.2s ease;
}

.language-option {
  appearance: none;
  min-width: 2.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.64rem;
  background: transparent;
  color: var(--ink-navy);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.language-option:hover {
  background: var(--navy-tint);
}

.language-option.is-active {
  background: var(--gold-soft);
  color: #fffdf6;
}

.language-option:focus-visible {
  outline: 2px solid var(--focus-ring-navy);
  outline-offset: 1px;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--envelope-bg-start) 0%, var(--envelope-bg-end) 100%);
  perspective: 1800px;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.envelope-stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--envelope-bg-start) 0%, var(--envelope-bg-end) 100%);
}

.envelope-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 18%, var(--envelope-stage-glow), transparent 45%),
    radial-gradient(circle at 50% 86%, rgba(184, 209, 255, 0.08), transparent 46%);
  pointer-events: none;
  z-index: 1;
}

.envelope-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 19, 46, 0.03) 72%, rgba(9, 17, 41, 0.1) 100%);
  pointer-events: none;
  z-index: 2;
}

.flap {
  position: absolute;
  inset: 0;
  isolation: isolate;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.6s ease;
  will-change: transform;
}

.flap-top {
  clip-path: polygon(0 0, 100% 0, 50% var(--fold-top-y));
  background: radial-gradient(
      ellipse at 50% 101.5%,
      var(--envelope-edge-gold-light) 0%,
      var(--envelope-edge-gold) 57%,
      var(--envelope-edge-gold-deep) 77%,
      transparent 80%
    )
    50% 100% / calc(var(--envelope-edge-width) * 3.6) calc(var(--envelope-edge-width) * 2.4) no-repeat,
    linear-gradient(180deg, var(--envelope-panel-top-start) 0%, var(--envelope-panel-top-end) 100%);
  box-shadow: inset 0 -18px 30px var(--envelope-shadow-top);
  transform-origin: center top;
  transition-delay: 0s;
  z-index: 7;
}

.flap-top::before,
.flap-top::after,
.flap-bottom::before,
.flap-bottom::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 0.6px var(--envelope-edge-gold-glow)) drop-shadow(0 1px 2px var(--envelope-edge-shadow))
    drop-shadow(0 2px 5px var(--envelope-edge-shadow-strong));
}

.flap-top::before {
  background: linear-gradient(
    to bottom right,
    var(--envelope-edge-gold-light) 0%,
    var(--envelope-edge-gold) 54%,
    var(--envelope-edge-gold-deep) 100%
  );
  clip-path: polygon(
    0 0,
    var(--envelope-edge-width) 0,
    calc(50% + var(--envelope-edge-half-width)) var(--fold-top-y),
    calc(50% - var(--envelope-edge-half-width)) var(--fold-top-y)
  );
  -webkit-clip-path: polygon(
    0 0,
    var(--envelope-edge-width) 0,
    calc(50% + var(--envelope-edge-half-width)) var(--fold-top-y),
    calc(50% - var(--envelope-edge-half-width)) var(--fold-top-y)
  );
}

.flap-top::after {
  background: linear-gradient(
    to bottom left,
    var(--envelope-edge-gold-light) 0%,
    var(--envelope-edge-gold) 54%,
    var(--envelope-edge-gold-deep) 100%
  );
  clip-path: polygon(
    calc(100% - var(--envelope-edge-width)) 0,
    100% 0,
    calc(50% + var(--envelope-edge-half-width)) var(--fold-top-y),
    calc(50% - var(--envelope-edge-half-width)) var(--fold-top-y)
  );
  -webkit-clip-path: polygon(
    calc(100% - var(--envelope-edge-width)) 0,
    100% 0,
    calc(50% + var(--envelope-edge-half-width)) var(--fold-top-y),
    calc(50% - var(--envelope-edge-half-width)) var(--fold-top-y)
  );
}

.flap-left {
  clip-path: polygon(0 0, 50% var(--fold-center-y), 0 100%);
  background: linear-gradient(
    140deg,
    var(--envelope-panel-side-start) 0%,
    var(--envelope-panel-side-mid) 58%,
    var(--envelope-panel-side-end) 100%
  );
  box-shadow: inset -14px 0 25px var(--envelope-shadow-side);
  transform-origin: 0% var(--fold-center-y);
  transition-delay: 0.12s;
  z-index: 5;
}

.flap-right {
  clip-path: polygon(100% 0, 50% var(--fold-center-y), 100% 100%);
  background: linear-gradient(
    220deg,
    var(--envelope-panel-side-start) 0%,
    var(--envelope-panel-side-mid) 58%,
    var(--envelope-panel-side-end) 100%
  );
  box-shadow: inset 14px 0 25px var(--envelope-shadow-side);
  transform-origin: 100% var(--fold-center-y);
  transition-delay: 0.12s;
  z-index: 5;
}

.flap-bottom {
  clip-path: polygon(0 100%, 100% 100%, 50% var(--fold-center-y));
  background: radial-gradient(
      ellipse at 50% -2.3%,
      var(--envelope-edge-gold-light) 0%,
      var(--envelope-edge-gold) 54%,
      var(--envelope-edge-gold-deep) 74%,
      transparent 78%
    )
    50% 0 / calc(var(--envelope-edge-width) * 3.8) calc(var(--envelope-edge-width) * 2.5) no-repeat,
    linear-gradient(
      0deg,
      var(--envelope-panel-bottom-start) 0%,
      var(--envelope-panel-bottom-mid) 62%,
      var(--envelope-panel-bottom-end) 100%
    );
  box-shadow: inset 0 11px 22px var(--envelope-shadow-bottom), 0 -1px 8px rgba(10, 19, 45, 0.16);
  transform-origin: center bottom;
  transition-delay: 0.2s;
  z-index: 5;
}

.flap-bottom::before {
  background: linear-gradient(
    to top right,
    var(--envelope-edge-gold-light) 0%,
    var(--envelope-edge-gold) 54%,
    var(--envelope-edge-gold-deep) 100%
  );
  clip-path: polygon(
    0 100%,
    var(--envelope-edge-width) 100%,
    calc(50% + var(--envelope-edge-half-width)) var(--fold-center-y),
    calc(50% - var(--envelope-edge-half-width)) var(--fold-center-y)
  );
  -webkit-clip-path: polygon(
    0 100%,
    var(--envelope-edge-width) 100%,
    calc(50% + var(--envelope-edge-half-width)) var(--fold-center-y),
    calc(50% - var(--envelope-edge-half-width)) var(--fold-center-y)
  );
}

.flap-bottom::after {
  background: linear-gradient(
    to top left,
    var(--envelope-edge-gold-light) 0%,
    var(--envelope-edge-gold) 54%,
    var(--envelope-edge-gold-deep) 100%
  );
  clip-path: polygon(
    calc(100% - var(--envelope-edge-width)) 100%,
    100% 100%,
    calc(50% + var(--envelope-edge-half-width)) var(--fold-center-y),
    calc(50% - var(--envelope-edge-half-width)) var(--fold-center-y)
  );
  -webkit-clip-path: polygon(
    calc(100% - var(--envelope-edge-width)) 100%,
    100% 100%,
    calc(50% + var(--envelope-edge-half-width)) var(--fold-center-y),
    calc(50% - var(--envelope-edge-half-width)) var(--fold-center-y)
  );
}

.flap-note {
  position: absolute;
  top: clamp(3vh, 5.8vw, 10vh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  color: var(--envelope-text);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px rgba(13, 20, 45, 0.22);
  transition: transform 0.7s ease, opacity 0.45s ease;
}

.flap-signature {
  position: absolute;
  left: 50%;
  bottom: clamp(5vh, 6.8vw, 8vh);
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  color: var(--envelope-text-soft);
  text-align: center;
  font-size: clamp(1.25rem, 2.7vw, 2rem);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 1px rgba(12, 18, 43, 0.22);
  transition: transform 0.7s ease, opacity 0.45s ease;
}

.flap-signature strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.seal-button {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 12;
  transform: translate(-50%, -50%);
  appearance: none;
  width: clamp(124px, 16.4vw, 188px);
  aspect-ratio: 1326 / 1230;
  border: none;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  filter: drop-shadow(0 10px 14px var(--seal-shadow));
  transition: transform 0.24s ease, filter 0.24s ease, opacity 0.35s ease;
}

.seal-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/gold wax seal.png") center / contain no-repeat;
}

.seal-button span {
  position: relative;
  z-index: 1;
  color: var(--envelope-seal-text);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: none;
  text-shadow: 0 1px 1px var(--envelope-seal-text-shadow);
}

.seal-button:hover,
.seal-button:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
  filter: drop-shadow(0 12px 16px var(--seal-shadow-hover));
}

.seal-button:focus-visible {
  outline: 3px solid var(--envelope-seal-focus-ring);
  outline-offset: 4px;
}

.intro.opened .flap-top {
  transform: rotateX(-178deg);
}

.intro.opened .flap-left {
  transform: rotate(-7deg) translateX(-44%);
  opacity: 0.08;
}

.intro.opened .flap-right {
  transform: rotate(7deg) translateX(44%);
  opacity: 0.08;
}

.intro.opened .flap-bottom {
  transform: translateY(48%) rotate(2.5deg);
  opacity: 0.1;
}

.intro.opened .flap-note {
  transform: translateX(-50%) translateY(-16px);
  opacity: 0;
}

.intro.opened .flap-signature {
  transform: translate(-50%, 20px);
  opacity: 0;
}

.intro.opened .seal-button {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  pointer-events: none;
}

.intro.fade-out {
  opacity: 0;
  visibility: hidden;
}

.invitation {
  --invitation-inline-padding: clamp(1rem, 3.2vw, 2rem);
  width: 100%;
  max-width: 940px;
  min-width: min(940px, 92vw);
  flex-shrink: 0;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.5rem) var(--invitation-inline-padding);
  border: 1.5px solid var(--card-border);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--paper-card) 0%, var(--paper) 100%);
  box-shadow: 0 14px 28px var(--shadow);
  display: grid;
  gap: var(--section-gap);
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

body.invitation-visible .invitation {
  opacity: 1;
  transform: translateY(0);
}

.letter-hero,
.letter-card,
.calendar-section,
.location-section,
.countdown-section {
  position: relative;
  margin: 0;
  padding: var(--space-sm) clamp(0.3rem, 1.2vw, 0.8rem);
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.letter-card {
  gap: clamp(1.25rem, 3.3vw, 2rem);
}

.letter-hero::before,
.letter-card::before,
.calendar-section::before,
.location-section::before,
.countdown-section::before {
  content: none;
}

.letter-hero {
  min-height: calc(100vh - clamp(1.5rem, 4vw, 2.8rem));
  min-height: calc(100svh - clamp(1.5rem, 4vw, 2.8rem));
  justify-content: center;
  gap: clamp(1.1rem, 3.6vw, 2rem);
  padding-top: clamp(1.5rem, 4vw, 2.8rem);
  padding-bottom: clamp(3.8rem, 8vw, 5rem);
}

.ornament-hero {
  position: relative;
  width: min(100%, clamp(290px, 60vw, 560px));
  aspect-ratio: 2 / 3;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  justify-content: center;
  filter: drop-shadow(0 26px 34px var(--shadow));
}

.ornament-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/blue ornament .png") center / cover no-repeat;
}

.ornament-content {
  position: absolute;
  inset: clamp(2.6rem, 8.2vw, 4.2rem) clamp(2.3rem, 8.5vw, 3.5rem)
    clamp(2.8rem, 8.4vw, 4rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ornament-text);
  text-shadow: 0 2px 8px var(--ornament-shadow);
}

.ornament-names {
  margin: clamp(0.9rem, 3.1vw, 1.3rem) 0 0;
  font-family: var(--font-display);
  font-size: var(--title-lg);
  line-height: 0.9;
  color: var(--ornament-text);
}

.ornament-names span {
  display: inline-block;
  margin: clamp(0.2rem, 1vw, 0.45rem) 0;
  font-family: var(--font-serif);
  font-size: var(--title-lg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ornament-message {
  margin: clamp(1rem, 2.6vw, 1.35rem) 0 0;
  max-width: 22ch;
  color: var(--ornament-text-muted);
  font-size: clamp(0.92rem, 2.15vw, 1.25rem);
  line-height: 1.44;
}

.ornament-date {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: clamp(0.3rem, 1vw, 0.56rem);
}

.ornament-date span {
  display: block;
  color: var(--ornament-text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.4vw, 4.15rem);
  line-height: 0.86;
}

.ornament-date i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ornament-dot);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + clamp(0.6rem, 2vw, 1.1rem));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--line-muted);
  pointer-events: none;
  user-select: none;
}

.scroll-indicator__text {
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator__arrow {
  display: block;
  font-size: clamp(1.3rem, 2.7vw, 1.7rem);
  line-height: 1;
  animation: scroll-indicator-bounce 1.8s ease-in-out infinite;
}

h1,
h2 {
  margin: 0;
  text-align: center;
  color: var(--line-strong);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.8vw, 0.85rem);
  font-size: var(--title-lg);
  font-weight: 500;
  white-space: nowrap;
}

.hero-title {
  --hero-title-size: clamp(1.82rem, 8.4vw, 4.2rem);
  --hero-title-fit-scale: 1;
  display: block;
  color: var(--ink-navy);
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
  font-family: var(--font-script);
  font-size: calc(var(--hero-title-size) * var(--hero-title-fit-scale));
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.02em;
}

.hero-title__line {
  display: block;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  white-space: nowrap;
}

.hero-title .no-break {
  white-space: nowrap;
}

h2 {
  font-size: var(--title-md);
}

.lead {
  margin: 0;
  max-width: 31ch;
  text-align: center;
  color: var(--ink-navy);
  font-family: var(--font-serif);
  line-height: 1.28;
  font-size: clamp(1.72rem, 3.5vw, 2.6rem);
  letter-spacing: 0.01em;
}

.lead strong {
  font-weight: 600;
}

@keyframes scroll-indicator-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.62;
  }

  45% {
    transform: translateY(7px);
    opacity: 1;
  }
}

.calendar-section,
.location-section,
.countdown-section {
  text-align: center;
}

.letter-card + .calendar-section,
.calendar-section + .location-section,
.location-section + .countdown-section {
  margin-top: 0;
}

.calendar-section {
  padding-top: clamp(0.3rem, 1.4vw, 0.8rem);
  padding-bottom: clamp(0.8rem, 2vw, 1.2rem);
  gap: clamp(0.9rem, 2.1vw, 1.4rem);
}

.calendar {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.6vw, 0.95rem);
}

.calendar-head {
  order: 3;
  padding: clamp(0.35rem, 1.5vw, 0.8rem) 0 0;
  color: var(--ink-navy);
  font-family: var(--font-script);
  font-size: clamp(3.35rem, 8.5vw, 6.05rem);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 0.88;
  text-transform: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: min(470px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.calendar-grid.week-days {
  order: 1;
}

.calendar-grid.days {
  order: 2;
}

.week-days span {
  padding: 0;
  color: var(--ink-navy-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
  letter-spacing: 0.02em;
  font-weight: 500;
  text-transform: uppercase;
}

.week-days span:last-child {
  font-weight: 500;
}

.days span {
  min-height: clamp(48px, 5.8vw, 64px);
  display: grid;
  place-items: center;
  color: var(--ink-navy);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
}

.days .heart-cell {
  min-height: clamp(78px, 10vw, 114px);
  display: grid;
  place-items: center;
}

.heart-day {
  position: relative;
  width: clamp(76px, 10.6vw, 124px);
  height: clamp(68px, 9.8vw, 112px);
  display: grid;
  place-items: center;
  background: none;
  isolation: isolate;
  transform-origin: center;
  will-change: transform, filter;
  animation: calendar-heart-pulse 2.8s ease-in-out infinite;
}

.heart-day::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125, 155, 118, 0.42) 0%, rgba(125, 155, 118, 0.18) 46%, transparent 74%);
  z-index: 0;
  animation: calendar-heart-halo 2.8s ease-out infinite;
}

.heart-day::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("assets/gold heart.png") center / contain no-repeat;
  filter: saturate(0.52) hue-rotate(46deg) brightness(0.92) contrast(1.02);
  pointer-events: none;
}

.heart-day > span {
  position: relative;
  z-index: 2;
  color: var(--ink-navy);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
}

@keyframes calendar-heart-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(125, 155, 118, 0));
  }

  50% {
    transform: scale(1.16);
    filter: drop-shadow(0 0 22px rgba(125, 155, 118, 0.36));
  }
}

@keyframes calendar-heart-halo {
  0%,
  100% {
    transform: scale(0.78);
    opacity: 0.52;
  }

  60% {
    transform: scale(1.42);
    opacity: 0;
  }
}

.location-title {
  margin: 0;
  padding: 0;
  color: var(--ink-navy);
  font-family: var(--font-script);
  font-size: clamp(3.1rem, 7.9vw, 5.3rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: normal;
  max-width: min(16ch, 100%);
}

.venue-name,
.venue-address {
  color: var(--ink-navy);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.24;
}

.venue-name {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.8vw, 3.65rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.08;
}

.venue-address {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  letter-spacing: 0.01em;
}

.venue-address + .venue-address {
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.45vw, 1.9rem);
  opacity: 0.9;
}

.map-links {
  margin-top: clamp(1.15rem, 3.1vw, 2.2rem);
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: clamp(0.65rem, 1.8vw, 1rem);
}

.map-link {
  display: inline-grid;
  place-items: center;
  min-height: clamp(58px, 7.4vw, 78px);
  margin-top: 0;
  padding: 0.75rem 1.3rem;
  border: 2px solid var(--navy-border);
  border-radius: 22px;
  text-decoration: none;
  color: var(--ink-navy);
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.map-link:hover,
.map-link:focus-visible {
  transform: translateY(-2px);
  background: var(--navy-tint);
  box-shadow: none;
}

.location-section {
  width: min(780px, 100%);
  margin: 0 auto;
  padding-top: clamp(1rem, 2.4vw, 1.7rem);
  gap: clamp(0.72rem, 2vw, 1.35rem);
}

.location-section::before {
  content: "";
  display: block;
  width: min(700px, 100%);
  height: clamp(250px, 34vw, 330px);
  margin: 0 auto clamp(0.12rem, 0.7vw, 0.35rem);
  border: none;
  border-radius: 0;
  background: url("assets/red building.png") center top / 100% auto no-repeat;
  box-shadow: none;
}

.countdown {
  --label-row-height: clamp(22px, 2.8vw, 34px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.38rem, 1.5vw, 1.1rem);
  margin-top: clamp(0.5rem, 1.8vw, 1rem);
  width: min(880px, 100%);
}

.time-unit {
  position: relative;
  min-width: clamp(62px, 11vw, 132px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-right: clamp(0.26rem, 0.8vw, 0.62rem);
}

.time-unit:not(:last-child)::after {
  content: ":";
  position: absolute;
  top: clamp(0.2rem, 1vw, 0.7rem);
  right: calc(clamp(0.32rem, 1vw, 0.7rem) * -1);
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: clamp(2.55rem, 6.1vw, 4.95rem);
  font-weight: 500;
  line-height: 1;
}

.time-unit span {
  display: block;
  color: var(--gold-strong);
  font-family: var(--font-serif);
  font-size: clamp(2.55rem, 6.1vw, 4.95rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.time-unit small {
  margin-top: clamp(0.12rem, 0.45vw, 0.28rem);
  min-height: var(--label-row-height);
  display: flex;
  align-items: flex-start;
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2vw, 1.78rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: none;
}

.countdown-section h2 {
  margin: 0;
  padding: 0;
  max-width: 14ch;
  line-height: 0.9;
  color: var(--ink-navy);
  font-family: var(--font-script);
  font-size: clamp(3.15rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.countdown-message {
  margin: clamp(0.8rem, 2.2vw, 1.4rem) 0 0;
  color: var(--ink-navy);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.2vw, 1.7rem);
  letter-spacing: 0.012em;
}

.countdown-section {
  width: min(900px, 100%);
  margin: 0 auto;
  gap: clamp(0.75rem, 2.2vw, 1.4rem);
  padding-top: clamp(1rem, 2.8vw, 1.9rem);
}

.countdown-section::after {
  content: "";
  display: block;
  width: min(700px, 100%);
  height: clamp(250px, 34vw, 330px);
  margin-top: clamp(1rem, 3.2vw, 2.1rem);
  background: url("assets/red ring.png") center / 100% auto no-repeat;
  opacity: 0.98;
}

.invite-credit {
  margin: 0;
  padding: var(--space-sm) 0 var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  color: var(--line-strong);
  font-family: var(--font-ui);
  font-size: clamp(0.84rem, 1.7vw, 0.96rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.invite-credit-link {
  color: var(--line-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--credit-border);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.invite-credit-link:hover,
.invite-credit-link:focus-visible {
  color: var(--line);
  border-bottom-color: var(--accent-tint-strong);
}

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

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

@media (max-width: 860px) {
  .flap-note {
    top: clamp(3vh, 8vw, 8vh);
    font-size: clamp(2rem, 9vw, 3.8rem);
  }

  .flap-signature {
    bottom: clamp(4.8vh, 9vw, 7vh);
    font-size: clamp(1rem, 3.8vw, 1.45rem);
  }

  .flap-signature strong {
    font-size: clamp(1.02rem, 4.6vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (max-width: 740px) {
  :root {
    --fold-top-y: 44.6%;
    --fold-center-y: 56.2%;
    --envelope-edge-width: clamp(5.4px, 1.2vw, 9.6px);
    --envelope-edge-half-width: clamp(2.7px, 0.6vw, 4.8px);
  }

  .seal-button {
    top: 56.5%;
  }

  .invitation {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: clamp(1rem, 4vw, 1.5rem);
    gap: clamp(3.8rem, 15vw, 5.8rem);
  }

  .letter-hero {
    min-height: calc(100svh - 1.2rem);
    justify-content: flex-start;
    padding-top: clamp(3.7rem, 13vw, 6rem);
    padding-bottom: clamp(4.2rem, 10vw, 5.6rem);
  }

  .ornament-hero {
    width: min(100%, 470px);
  }

  .ornament-content {
    inset: clamp(2.25rem, 9vw, 3.4rem) clamp(2rem, 9.8vw, 3.1rem)
      clamp(2.35rem, 10.3vw, 3.5rem);
  }

  h1 {
    font-size: clamp(1.68rem, 8.1vw, 2.35rem);
  }

  .hero-title {
    font-size: clamp(3.25rem, 16.8vw, 6.2rem);
  }

  .lead {
    max-width: 24ch;
    font-size: clamp(1.58rem, 6vw, 2.1rem);
  }

  .week-days span {
    font-size: clamp(1.4rem, 4.6vw, 1.8rem);
  }

  .days span {
    min-height: clamp(42px, 10.5vw, 60px);
    font-size: clamp(1.7rem, 6.2vw, 2.4rem);
  }

  .days .heart-cell {
    min-height: clamp(70px, 16vw, 98px);
  }

  .heart-day {
    width: clamp(66px, 14.5vw, 94px);
    height: clamp(60px, 13vw, 86px);
  }

  .heart-day > span {
    font-size: clamp(1.7rem, 6.4vw, 2.3rem);
  }

  .calendar-head {
    font-size: clamp(2.75rem, 13vw, 4.8rem);
  }

  .location-section {
    width: min(640px, 100%);
    gap: clamp(0.62rem, 1.8vw, 1rem);
  }

  .location-section::before {
    width: min(620px, 100%);
    height: clamp(200px, 48vw, 280px);
    margin-bottom: clamp(0.08rem, 0.6vw, 0.28rem);
  }

  .location-title {
    font-size: clamp(2.55rem, 12vw, 4.4rem);
  }

  .venue-name {
    max-width: 16ch;
    font-size: clamp(1.85rem, 6.8vw, 2.75rem);
    letter-spacing: 0.04em;
  }

  .venue-address {
    max-width: 23ch;
    font-size: clamp(1.18rem, 5vw, 1.78rem);
  }

  .venue-address + .venue-address {
    font-size: clamp(1.05rem, 3.6vw, 1.42rem);
  }

  .map-links {
    grid-template-columns: 1fr;
    gap: 0.66rem;
  }

  .map-link {
    min-height: clamp(52px, 9.2vw, 68px);
    font-size: clamp(1.02rem, 4.2vw, 1.42rem);
    border-radius: 18px;
  }

  .countdown {
    --label-row-height: clamp(18px, 3.5vw, 26px);
    gap: clamp(0.28rem, 1.3vw, 0.64rem);
  }

  .countdown-section {
    width: min(680px, 100%);
    gap: clamp(0.58rem, 1.9vw, 1rem);
  }

  .countdown-section h2 {
    max-width: 14ch;
    font-size: clamp(2.65rem, 11.5vw, 4.6rem);
  }

  .time-unit {
    min-width: clamp(52px, 13vw, 88px);
    padding-right: clamp(0.18rem, 0.85vw, 0.44rem);
  }

  .time-unit:not(:last-child)::after {
    top: clamp(0.06rem, 0.5vw, 0.25rem);
    right: calc(clamp(0.2rem, 0.7vw, 0.46rem) * -1);
    font-size: clamp(2rem, 7.2vw, 3.5rem);
  }

  .time-unit span {
    font-size: clamp(2rem, 7.2vw, 3.5rem);
  }

  .time-unit small {
    font-size: clamp(0.9rem, 2.9vw, 1.28rem);
  }

  .countdown-message {
    margin-top: clamp(0.65rem, 1.8vw, 0.95rem);
    font-size: clamp(0.92rem, 2.8vw, 1.22rem);
  }

  .countdown-section::after {
    width: min(620px, 100%);
    height: clamp(200px, 48vw, 280px);
    margin-top: clamp(0.7rem, 2.6vw, 1.4rem);
  }
}

@media (max-width: 480px) {
  :root {
    --fold-top-y: 46%;
    --fold-center-y: 57.1%;
    --envelope-edge-width: clamp(4.2px, 1.5vw, 7.2px);
    --envelope-edge-half-width: clamp(2.1px, 0.75vw, 3.6px);
  }

  .language-switcher {
    top: 0.62rem;
    right: 1.12rem;
  }

  .music-toggle {
    top: 0.62rem;
    left: 1.12rem;
  }

  .language-option {
    min-width: 2.18rem;
    padding: 0.33rem 0.55rem;
    font-size: 0.68rem;
  }

  .flap-note {
    top: 4.6vh;
    font-size: clamp(1.75rem, 9vw, 2.6rem);
  }

  .flap-signature {
    bottom: 4.5vh;
    font-size: 0.98rem;
  }

  .flap-signature strong {
    font-size: clamp(0.86rem, 5.8vw, 1.35rem);
  }

  .letter-hero {
    min-height: calc(100svh - 0.7rem);
    padding-top: clamp(4.2rem, 15vw, 5.4rem);
  }

  .ornament-hero {
    width: min(100%, 350px);
    filter: drop-shadow(0 16px 20px var(--shadow));
  }

  .ornament-content {
    inset: clamp(1.9rem, 10vw, 2.65rem) clamp(1.65rem, 9vw, 2.15rem)
      clamp(1.95rem, 10.5vw, 2.8rem);
  }

  .ornament-message {
    max-width: 20ch;
    font-size: clamp(0.8rem, 3.6vw, 0.94rem);
  }

  .ornament-date span {
    font-size: clamp(1.72rem, 9.7vw, 2.5rem);
  }

  h1 {
    font-size: clamp(1.4rem, 8vw, 1.95rem);
  }

  .hero-title {
    font-size: clamp(2.85rem, 16.8vw, 4.8rem);
  }

  .lead {
    max-width: 22ch;
    line-height: 1.3;
    font-size: clamp(1.38rem, 7vw, 1.76rem);
  }

  .week-days span {
    font-size: clamp(1.12rem, 5vw, 1.35rem);
  }

  .days span {
    min-height: clamp(38px, 11vw, 52px);
    font-size: clamp(1.42rem, 6.5vw, 1.9rem);
  }

  .days .heart-cell {
    min-height: clamp(62px, 18vw, 84px);
  }

  .heart-day {
    width: clamp(60px, 16vw, 80px);
    height: clamp(54px, 14vw, 72px);
  }

  .heart-day > span {
    font-size: clamp(1.36rem, 7vw, 1.78rem);
  }

  .calendar-head {
    font-size: clamp(2.45rem, 12.8vw, 3.7rem);
  }

  .location-section::before {
    height: clamp(165px, 52vw, 230px);
    border-radius: 0;
  }

  .location-title {
    font-size: clamp(2.18rem, 14.2vw, 3.55rem);
  }

  .venue-name {
    font-size: clamp(1.52rem, 7.4vw, 2.25rem);
    letter-spacing: 0.03em;
  }

  .venue-address {
    max-width: 21ch;
    font-size: clamp(1.03rem, 5.4vw, 1.42rem);
  }

  .venue-address + .venue-address {
    font-size: clamp(0.95rem, 4.5vw, 1.16rem);
  }

  .map-link {
    min-height: clamp(47px, 11vw, 60px);
    font-size: clamp(0.9rem, 4.8vw, 1.1rem);
    border-width: 1.5px;
    border-radius: 14px;
    letter-spacing: 0.02em;
  }

  .countdown-section h2 {
    font-size: clamp(2.2rem, 14.8vw, 3.45rem);
    line-height: 0.92;
  }

  .countdown {
    --label-row-height: clamp(16px, 3.8vw, 20px);
    gap: clamp(0.12rem, 0.8vw, 0.32rem);
    width: min(98vw, 100%);
  }

  .time-unit {
    min-width: clamp(42px, 12.2vw, 68px);
    padding-right: clamp(0.08rem, 0.5vw, 0.2rem);
  }

  .time-unit:not(:last-child)::after {
    right: calc(clamp(0.08rem, 0.5vw, 0.2rem) * -1);
    top: clamp(0.1rem, 0.9vw, 0.24rem);
    font-size: clamp(1.52rem, 7.8vw, 2.25rem);
  }

  .time-unit span {
    font-size: clamp(1.52rem, 7.8vw, 2.25rem);
  }

  .time-unit small {
    font-size: clamp(0.72rem, 3.2vw, 0.92rem);
    letter-spacing: 0;
  }

  .countdown-message {
    font-size: clamp(0.8rem, 3.8vw, 1rem);
  }

  .countdown-section::after {
    width: min(100%, 620px);
    height: clamp(165px, 52vw, 230px);
    margin-top: clamp(0.5rem, 2.1vw, 1rem);
  }
}

/* Maryinvite reference-inspired refinements */
:root {
  --paper: #fffdf6;
  --paper-card: #fffdf6;
  --bg-page-start: #fffdf6;
  --bg-page-end: #f6f2e7;
  --ink-navy: #262626;
  --ink-navy-soft: #4f4f4f;
  --line: #6c6c6c;
  --line-strong: #262626;
  --line-muted: rgba(84, 84, 84, 0.84);
  --accent-tint-strong: rgba(125, 155, 118, 0.72);
  --focus-ring-navy: rgba(125, 155, 118, 0.4);
  --gold-soft: rgba(125, 155, 118, 0.92);
  --gold-strong: rgba(112, 142, 106, 0.98);
  --navy-border: rgba(108, 108, 108, 0.72);
  --navy-tint: rgba(125, 155, 118, 0.08);
  --surface-frost-navy: rgba(255, 253, 246, 0.9);
  --shadow: rgba(23, 32, 24, 0.1);
  --seal-shadow: rgba(25, 36, 27, 0.28);
  --seal-shadow-hover: rgba(25, 36, 27, 0.34);
  --card-border: rgba(125, 155, 118, 0.16);
  --credit-border: rgba(125, 155, 118, 0.36);
  --envelope-bg-start: #3b507d;
  --envelope-bg-end: #2a4888;
  --envelope-panel-top-start: #3f5c92;
  --envelope-panel-top-end: #375189;
  --envelope-panel-side-start: #405d94;
  --envelope-panel-side-mid: #3b568e;
  --envelope-panel-side-end: #354f86;
  --envelope-panel-bottom-start: #3f5c93;
  --envelope-panel-bottom-mid: #39558c;
  --envelope-panel-bottom-end: #344e85;
  --envelope-edge-gold-light: #dbe3d3;
  --envelope-edge-gold: #9bb18f;
  --envelope-edge-gold-deep: #617756;
  --envelope-edge-gold-glow: rgba(191, 206, 182, 0.3);
  --envelope-seal-text: #262626;
  --envelope-seal-text-shadow: rgba(236, 244, 232, 0.28);
  --envelope-seal-focus-ring: rgba(125, 155, 118, 0.48);
  --font-body: "Cormorant Garamond", "Times New Roman", serif;
  --font-heading: "Cormorant Garamond", "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-display: "Great Vibes", "Brush Script MT", cursive;
  --font-ornament: "Corinthia", "Great Vibes", "Brush Script MT", cursive;
}

html,
body {
  background: #fffdf6;
  color: var(--ink-navy);
  letter-spacing: 0.01em;
}

.language-switcher,
.music-toggle {
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  background: var(--surface-frost-navy);
  box-shadow: 0 10px 26px rgba(17, 34, 80, 0.12);
  backdrop-filter: blur(4px);
}

.language-switcher {
  gap: 0.2rem;
  padding: 0.22rem;
}

.music-toggle {
  border-radius: 10px;
}

.music-toggle::after {
  background: rgba(108, 108, 108, 0.85);
}

.language-option {
  border-radius: 7px;
  padding: 0.36rem 0.66rem;
  color: #6c6c6c;
}

.language-option:hover {
  background: rgba(17, 34, 80, 0.06);
}

.language-option.is-active,
.music-toggle.is-playing {
  background: var(--gold-soft);
  color: #fffdf6;
}

.intro,
.envelope-stage {
  background: linear-gradient(180deg, var(--envelope-bg-start) 0%, var(--envelope-bg-end) 100%);
}

.flap-note {
  top: clamp(4.8vh, 6vw, 9vh);
  width: min(92%, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.06rem, 0.55vw, 0.24rem);
  line-height: 1;
}

.flap-note-top,
.flap-note-middle {
  display: block;
  color: var(--envelope-text);
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(13, 20, 45, 0.22);
  font-size: clamp(2.25rem, 6.3vw, 5.9rem);
  letter-spacing: 0.045em;
  line-height: 0.9;
}

.flap-note-script {
  display: block;
  color: var(--envelope-text);
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(13, 20, 45, 0.22);
}

.flap-signature {
  bottom: clamp(4.8vh, 7vw, 8vh);
  color: rgba(255, 253, 246, 0.95);
  font-family: var(--font-serif);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  letter-spacing: 0.02em;
}

.flap-signature strong {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2.3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.seal-button {
  width: clamp(174px, 21vw, 246px);
  filter: drop-shadow(0 10px 14px rgba(13, 27, 56, 0.32));
}

.seal-button span {
  font-family: var(--font-serif);
  color: rgb(255, 255, 255);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
text-transform: uppercase;
}

.invitation {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0 clamp(0.9rem, 2.8vw, 1.8rem)
    clamp(2.4rem, 6vh, 4.2rem);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: clamp(2.6rem, 7vw, 4.6rem);
  position: relative;
  overflow: visible;
}

.letter-hero,
.letter-card,
.calendar-section,
.location-section,
.countdown-section {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: clamp(1rem, 2.6vw, 1.7rem) 0;
  gap: clamp(0.8rem, 2.2vw, 1.32rem);
  position: relative;
  z-index: 1;
}

.letter-hero {
  min-height: calc(100svh - clamp(2.4rem, 6vw, 4.2rem));
  justify-content: center;
  gap: clamp(0.18rem, 1.05vh, 0.62rem);
  padding-top: clamp(0.5rem, 2.2vh, 1.2rem);
  padding-bottom: clamp(1.2rem, 3.6vh, 2.2rem);
}

.letter-card,
.calendar-section,
.location-section,
.countdown-section {
  max-width: 760px;
}

.location-section {
  gap: clamp(0.22rem, 0.8vw, 0.52rem);
}

.letter-card,
.calendar-section,
.location-section,
.countdown-section {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.letter-card {
  border-top: 1px solid rgba(108, 108, 108, 0.2);
}

.calendar-section {
  border-top: 1px solid rgba(108, 108, 108, 0.18);
  padding-bottom: clamp(0.16rem, 0.6vw, 0.34rem);
}

.location-section {
  padding-top: clamp(0.42rem, 1.2vw, 0.72rem);
}

.countdown-section {
  border-top: 1px solid rgba(108, 108, 108, 0.18);
}

.scroll-indicator {
  position: static;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(0.2rem, 1.4vh, 0.65rem);
  gap: 0.2rem;
  color: rgba(38, 38, 38, 0.68);
  pointer-events: none;
  user-select: none;
}

.scroll-indicator__text {
  font-size: clamp(0.68rem, 1.45vw, 0.8rem);
  letter-spacing: 0.14em;
}

.ornament-hero {
  width: min(88vw, clamp(300px, 52vh, 560px));
  filter: drop-shadow(0 22px 28px rgba(17, 34, 80, 0.16));
}

.ornament-content {
  inset: clamp(3.2rem, 9.6vw, 4.35rem) clamp(1.9rem, 7.3vw, 2.75rem)
    clamp(2.9rem, 8.5vw, 4rem);
  display: grid;
  grid-template-rows: auto minmax(0, 0.08fr) auto minmax(0, 0.16fr) auto;
  align-items: center;
  justify-items: center;
  text-shadow: 0 1px 6px rgba(14, 30, 67, 0.26);
}

.ornament-content > * {
  margin: 0;
}

.ornament-names {
  --ornament-name-fit-scale: 1;
  grid-row: 1;
  margin-top: clamp(1.45rem, 3.55vw, 2.3rem);
  width: min(100%, 12.6ch);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.28rem, 0.95vw, 0.52rem);
  font-family: var(--font-ornament);
  font-size: calc(clamp(2.45rem, 6.2vw, 4.25rem) * var(--ornament-name-fit-scale));
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.96;
}

.ornament-names .ornament-name-line {
  --line-base-scale: 1;
  --line-fit-scale: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: calc(1em * var(--line-base-scale) * var(--line-fit-scale));
  font-weight: inherit;
  letter-spacing: 0.01em;
  line-height: 0.9;
  padding-inline: 0.08em;
  text-align: center;
  white-space: nowrap;
  text-transform: none;
}

.ornament-names .ornament-name-line:first-of-type {
  --line-base-scale: 0.93;
}

.ornament-names .ornament-name-amp {
  display: block;
  margin: 0;
  font-family: var(--font-ornament);
  color: var(--gold-soft);
  font-size: clamp(0.92rem, 2.05vw, 1.26rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: none;
}

.ornament-message {
  grid-row: 3;
  max-width: 17ch;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.38rem);
  line-height: 1.1;
  letter-spacing: 0.008em;
  text-wrap: balance;
}

.ornament-date {
  grid-row: 5;
  display: grid;
  justify-items: center;
  gap: clamp(0.45rem, 1.3vw, 0.72rem);
}

.ornament-date span {
  font-family: var(--font-ornament);
  font-size: clamp(2.45rem, 6.1vw, 4.1rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.01em;
}

.ornament-date i {
  width: 6px;
  height: 6px;
  background: var(--gold-soft);
}

.hero-title,
.calendar-head,
.location-title,
.countdown-section h2 {
  color: var(--ink-navy);
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hero-title {
  font-size: clamp(2.8rem, 8.8vw, 4.9rem);
  line-height: 1.02;
}

.lead {
  max-width: 34ch;
  color: var(--ink-navy);
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 2.1vw, 1.28rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.calendar {
  width: min(740px, 100%);
}

.calendar-head {
  order: 0;
  padding-top: 0;
  margin-bottom: clamp(0.5rem, 1.6vw, 1rem);
  font-size: clamp(2.05rem, 6.2vw, 3.45rem);
  line-height: 1;
}

.week-days span {
  color: #6c6c6c;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.days span {
  min-height: clamp(44px, 5.4vw, 58px);
  color: var(--ink-navy);
  font-size: clamp(1.18rem, 2.5vw, 1.72rem);
  font-weight: 500;
}

.days .heart-cell {
  min-height: clamp(70px, 9vw, 100px);
}

.heart-day {
  width: clamp(68px, 9.5vw, 106px);
  height: clamp(60px, 8.5vw, 92px);
}

.heart-day > span {
  font-size: clamp(1.36rem, 3vw, 2rem);
}

.location-title {
  font-size: clamp(2.05rem, 6.2vw, 3.45rem);
  line-height: 1;
}

.venue-name {
  max-width: 18ch;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.venue-address {
  max-width: 30ch;
  color: #545252;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  line-height: 1.35;
}

.venue-address + .venue-address {
  font-size: clamp(0.95rem, 1.95vw, 1.12rem);
}

.map-links {
  width: min(620px, 100%);
  gap: clamp(0.5rem, 1.4vw, 0.8rem);
}

.map-link {
  min-height: 52px;
  border: 1px solid #6c6c6c;
  border-radius: 8px;
  background: #fffdf6;
  color: #6c6c6c;
  font-family: var(--font-ui);
  font-size: clamp(0.86rem, 1.6vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-link:hover,
.map-link:focus-visible {
  background: var(--ink-navy);
  border-color: var(--ink-navy);
  color: var(--paper-card);
  transform: translateY(0);
}

.countdown-section {
  width: min(900px, 100%);
  margin: 0 auto;
  gap: clamp(0.75rem, 2.2vw, 1.4rem);
}

.countdown-section h2 {
  margin: 0;
  padding: 0;
  max-width: 14ch;
  line-height: 1;
  color: var(--ink-navy);
  font-family: var(--font-script);
  font-size: clamp(2.05rem, 6.2vw, 3.45rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.countdown {
  --label-row-height: clamp(22px, 2.8vw, 34px);
  width: min(880px, 100%);
  margin-top: clamp(0.5rem, 1.8vw, 1rem);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.time-unit {
  min-width: clamp(62px, 11vw, 132px);
}

.time-unit span {
  color: var(--gold-strong);
  font-family: var(--font-serif);
  font-size: clamp(2.55rem, 6.1vw, 4.95rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.time-unit small {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2vw, 1.78rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.time-unit:not(:last-child)::after {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: clamp(2.55rem, 6.1vw, 4.95rem);
  font-weight: 500;
  line-height: 1;
}

.countdown-message {
  margin-top: clamp(0.8rem, 2.2vw, 1.4rem);
  color: var(--ink-navy);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.2vw, 1.7rem);
  letter-spacing: 0.012em;
  text-transform: none;
}

.countdown-section::after {
  width: min(380px, 80%);
  height: clamp(150px, 27vw, 220px);
  margin-top: clamp(0.6rem, 2.1vw, 1.3rem);
}

.invite-credit {
  color: #6c6c6c;
  letter-spacing: 0.08em;
}

.invite-credit-link {
  color: #6c6c6c;
  border-bottom-color: rgba(108, 108, 108, 0.45);
}

.invite-credit-link:hover,
.invite-credit-link:focus-visible {
  color: #262626;
  border-bottom-color: rgba(38, 38, 38, 0.55);
}

@media (min-width: 741px) {
  .flap-note-top,
  .flap-note-middle {
    font-size: clamp(1.75rem, 4.8vw, 4.5rem);
  }

  .flap-note-script {
    font-size: clamp(2.5rem, 5.9vw, 5.5rem);
  }

  .ornament-content {
    inset: clamp(3.55rem, 8.9vh, 5.1rem) clamp(2.05rem, 6.6vw, 3.1rem)
      clamp(3.05rem, 8vh, 4.3rem);
    grid-template-rows: auto minmax(0, 0.06fr) auto minmax(0, 0.14fr) auto;
  }

  .ornament-names {
    margin-top: clamp(1.58rem, 3.15vh, 2.45rem);
    max-width: 92%;
    width: min(100%, 13ch);
    font-size: calc(clamp(2.25rem, 5.3vw, 3.95rem) * var(--ornament-name-fit-scale));
    line-height: 0.9;
  }

  .ornament-names .ornament-name-amp {
    font-size: clamp(1.02rem, 1.7vw, 1.45rem);
  }

  .ornament-message {
    max-width: 18ch;
    font-size: clamp(1.05rem, 1.75vw, 1.28rem);
    line-height: 1.13;
  }

  .ornament-date span {
    font-size: clamp(2.25rem, 5.4vw, 3.7rem);
  }
}

@media (max-width: 740px) {
  .invitation {
    border-radius: 0;
    padding: 0 clamp(0.7rem, 3.2vw, 1rem)
      clamp(2rem, 9vw, 3.2rem);
    gap: clamp(1.7rem, 7vw, 2.8rem);
  }

  .letter-hero,
  .letter-card,
  .calendar-section,
  .location-section,
  .countdown-section {
    width: 100%;
    padding: clamp(0.85rem, 3.4vw, 1.25rem) 0;
  }

  .letter-card,
  .calendar-section,
  .location-section,
  .countdown-section {
    padding-top: clamp(1.7rem, 5.5vw, 2.3rem);
  }

  .calendar-section {
    padding-bottom: clamp(0.14rem, 1.1vw, 0.3rem);
  }

  .location-section {
    padding-top: clamp(0.38rem, 2vw, 0.68rem);
  }

  .ornament-hero {
    width: min(90vw, clamp(258px, 55vh, 402px));
  }

  .ornament-content {
    inset: clamp(2.78rem, 11.2vw, 3.65rem) clamp(1.55rem, 8vw, 2.2rem)
      clamp(2.35rem, 9.7vw, 3.15rem);
    grid-template-rows: auto minmax(0, 0.05fr) auto minmax(0, 0.12fr) auto;
  }

  .ornament-names {
    margin-top: clamp(1.06rem, 3.2vw, 1.66rem);
    width: min(100%, 12.2ch);
    font-size: calc(clamp(1.95rem, 7.1vw, 3.05rem) * var(--ornament-name-fit-scale));
  }

  .ornament-names .ornament-name-amp {
    font-size: clamp(0.86rem, 3.3vw, 1.12rem);
  }

  .ornament-message {
    max-width: 21.5ch;
    font-size: clamp(0.93rem, 2.55vw, 1.06rem);
    line-height: 1.16;
  }

  .ornament-date span {
    font-size: clamp(1.95rem, 7.3vw, 2.95rem);
  }

  .hero-title {
    font-size: clamp(2.25rem, 10.8vw, 3.85rem);
  }

  .calendar-head,
  .location-title,
  .countdown-section h2 {
    font-size: clamp(1.85rem, 8.8vw, 3.05rem);
    line-height: 1;
  }

  .lead {
    max-width: 30ch;
    font-size: clamp(0.95rem, 3.2vw, 1.12rem);
  }

  .venue-name {
    font-size: clamp(0.92rem, 3.5vw, 1.25rem);
  }

  .map-links {
    grid-template-columns: 1fr;
  }

  .countdown {
    --label-row-height: clamp(18px, 3.5vw, 26px);
    gap: clamp(0.28rem, 1.3vw, 0.64rem);
    width: min(680px, 100%);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .countdown-section {
    width: min(680px, 100%);
    gap: clamp(0.58rem, 1.9vw, 1rem);
  }

  .countdown-section h2 {
    max-width: 14ch;
    font-size: clamp(1.85rem, 8.8vw, 3.05rem);
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .flap-note {
    top: 4.8vh;
    width: min(94%, 420px);
  }

  .flap-note-top {
    font-size: clamp(0.92rem, 4vw, 1.15rem);
    letter-spacing: 0.1em;
  }

  .flap-note-middle {
    font-size: clamp(1.58rem, 7.4vw, 2.4rem);
    letter-spacing: 0.04em;
  }

  .flap-note-script {
    font-size: clamp(2.34rem, 11vw, 3.65rem);
  }

  .flap-signature {
    bottom: 5.2vh;
    font-size: clamp(0.88rem, 3.4vw, 1rem);
  }

  .flap-signature strong {
    font-size: clamp(0.96rem, 4vw, 1.08rem);
    letter-spacing: 0.01em;
  }

  .seal-button {
    width: clamp(148px, 43.5vw, 190px);
  }

  .seal-button span {
    font-size: clamp(0.72rem, 2.6vw, 0.86rem);
  }

  .ornament-hero {
    width: min(90vw, 336px);
  }

  .ornament-content {
    inset: clamp(2.42rem, 12.5vw, 3rem) clamp(1.35rem, 8.8vw, 1.85rem)
      clamp(1.95rem, 10.8vw, 2.6rem);
    grid-template-rows: auto minmax(0, 0.04fr) auto minmax(0, 0.1fr) auto;
  }

  .ornament-names {
    margin-top: clamp(0.84rem, 3.35vw, 1.32rem);
    width: min(100%, 11.6ch);
    font-size: calc(clamp(1.58rem, 8.6vw, 2.25rem) * var(--ornament-name-fit-scale));
  }

  .ornament-names .ornament-name-amp {
    font-size: clamp(0.82rem, 4vw, 1.06rem);
  }

  .ornament-message {
    max-width: 20.5ch;
    font-size: clamp(0.86rem, 3.2vw, 0.96rem);
    line-height: 1.16;
  }

  .ornament-date span {
    font-size: clamp(1.62rem, 8.9vw, 2.35rem);
  }

  .hero-title {
    font-size: clamp(1.95rem, 11.8vw, 3.05rem);
    letter-spacing: 0.03em;
  }

  .calendar-head,
  .location-title,
  .countdown-section h2 {
    font-size: clamp(1.65rem, 9.2vw, 2.45rem);
    line-height: 1;
  }

  .countdown-section h2 {
    font-size: clamp(1.65rem, 9.2vw, 2.45rem);
    line-height: 1;
  }

  .countdown {
    --label-row-height: clamp(16px, 3.8vw, 20px);
    gap: clamp(0.12rem, 0.8vw, 0.32rem);
    width: min(98vw, 100%);
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .time-unit {
    min-width: clamp(44px, 16vw, 66px);
    padding-right: clamp(0.08rem, 0.4vw, 0.16rem);
  }

  .time-unit span,
  .time-unit:not(:last-child)::after {
    font-size: clamp(1.36rem, 7.2vw, 1.95rem);
  }

  .time-unit small {
    font-size: clamp(0.56rem, 2.4vw, 0.7rem);
  }
}

.letter-hero {
  width: calc(100% + (var(--invitation-inline-padding) * 2));
  min-height: 100svh;
  max-width: none;
  margin-inline: calc(var(--invitation-inline-padding) * -1);
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  overflow: hidden;
}

.photo-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #14100f;
}

.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(180deg, rgba(15, 11, 10, 0.2) 0%, rgba(15, 11, 10, 0.32) 42%, rgba(15, 11, 10, 0.48) 100%);
  pointer-events: none;
}

.photo-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 31%;
  image-orientation: from-image;
  transform: scale(1.015);
}

.photo-hero__content {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + clamp(13.5rem, 25vh, 17rem));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.38rem, 0.95vw, 0.72rem);
  width: min(calc(100% - clamp(1.6rem, 5vw, 3.8rem)), 56rem);
  padding-inline: clamp(0.2rem, 1.2vw, 0.7rem);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.photo-hero__eyebrow {
  margin: 0;
  color: rgba(255, 249, 244, 0.96);
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.photo-hero .ornament-names {
  --ornament-name-fit-scale: 1;
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(0.2rem, 1vw, 0.5rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.62rem, 1.6vw, 1rem);
  color: rgba(255, 249, 244, 0.97);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
  font-size: calc(clamp(4.55rem, 8.8vw, 7.55rem) * var(--ornament-name-fit-scale));
  line-height: 0.88;
}

.photo-hero .ornament-names span {
  margin: 0;
}

.photo-hero .ornament-names .ornament-name-line {
  --line-base-scale: 1;
  --line-fit-scale: 1;
  display: block;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  color: inherit;
  font-family: var(--font-heading);
  font-size: calc(1em * var(--line-base-scale) * var(--line-fit-scale));
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 0.92;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
}

.photo-hero .ornament-names .ornament-name-amp {
  display: block;
  margin: 0;
  color: rgba(255, 249, 244, 0.95);
  font-family: var(--font-ui);
  font-size: clamp(0.96rem, 1.85vw, 1.24rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + clamp(1rem, 3vh, 1.8rem));
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 247, 240, 0.92);
  pointer-events: none;
  user-select: none;
}

.scroll-indicator::before {
  content: "";
  width: 1px;
  height: clamp(2rem, 5vh, 3rem);
  background: rgba(255, 247, 240, 0.7);
}

.scroll-indicator__text {
  font-family: var(--font-ui);
  font-size: clamp(0.68rem, 1vw, 0.84rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-indicator__arrow {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1;
  animation: scroll-indicator-bounce 1.8s ease-in-out infinite;
}

@media (max-width: 740px) {
  .letter-hero,
  .photo-hero {
    min-height: 100svh;
  }

  .photo-hero__image {
    object-position: center 28%;
    transform: scale(1.03);
  }

  .photo-hero__content {
    bottom: calc(env(safe-area-inset-bottom) + clamp(10.8rem, 20vh, 13rem));
    width: min(calc(100% - 1.4rem), 28rem);
  }

  .photo-hero__eyebrow {
    font-size: clamp(1rem, 4vw, 1.55rem);
    letter-spacing: 0.1em;
  }

  .photo-hero .ornament-names {
    width: 100%;
    max-width: 100%;
    font-size: calc(clamp(3.05rem, 12.6vw, 4.95rem) * var(--ornament-name-fit-scale));
    gap: clamp(0.55rem, 2.2vw, 0.82rem);
  }

  .photo-hero .ornament-names .ornament-name-amp {
    font-size: clamp(0.84rem, 3.4vw, 1.06rem);
    letter-spacing: 0.28em;
  }

  .scroll-indicator {
    bottom: calc(env(safe-area-inset-bottom) + 1.2rem);
  }

  .scroll-indicator__text {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 480px) {
  .photo-hero__image {
    object-position: center 25%;
    transform: scale(1.05);
  }

  .photo-hero__content {
    bottom: calc(env(safe-area-inset-bottom) + clamp(8.8rem, 17vh, 10.8rem));
    width: min(calc(100% - 1.2rem), 19.4rem);
  }

  .photo-hero__eyebrow {
    font-size: clamp(0.9rem, 4.4vw, 1.2rem);
    letter-spacing: 0.08em;
  }

  .photo-hero .ornament-names {
    width: 100%;
    max-width: 100%;
    font-size: calc(clamp(2.42rem, 13.6vw, 3.7rem) * var(--ornament-name-fit-scale));
    gap: clamp(0.44rem, 2.8vw, 0.62rem);
  }

  .photo-hero .ornament-names .ornament-name-amp {
    font-size: clamp(0.76rem, 3.8vw, 0.92rem);
    letter-spacing: 0.24em;
  }
}

/* Reference-style intro lock screen */
:root {
  --intro-text: rgba(255, 255, 255, 0.98);
  --intro-text-soft: rgba(255, 255, 255, 0.84);
  --intro-stroke: rgba(255, 255, 255, 0.8);
  --intro-stroke-soft: rgba(255, 255, 255, 0.22);
  --intro-control-bg: rgba(20, 20, 20, 0.22);
  --intro-control-bg-strong: rgba(255, 255, 255, 0.18);
  --intro-shadow: rgba(0, 0, 0, 0.38);
}

body:not(.invitation-visible) .language-switcher,
body:not(.invitation-visible) .music-toggle {
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--intro-control-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

body:not(.invitation-visible) .language-option {
  color: rgba(255, 255, 255, 0.82);
}

body:not(.invitation-visible) .language-option:hover,
body:not(.invitation-visible) .music-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

body:not(.invitation-visible) .language-option.is-active,
body:not(.invitation-visible) .music-toggle.is-playing {
  background: var(--intro-control-bg-strong);
  color: #ffffff;
}

body:not(.invitation-visible) .music-toggle {
  color: #ffffff;
}

body:not(.invitation-visible) .music-toggle::after {
  background: currentColor;
}

.intro {
  background: #090909;
  perspective: none;
  overflow: clip;
}

.intro-stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(5.5rem, 11vh, 8rem) clamp(1.4rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  isolation: isolate;
}

.intro-stage::before,
.intro-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-stage::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16) 0%, transparent 26%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.08) 28%, rgba(5, 5, 5, 0.52) 100%);
}

.intro-stage::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, transparent 18%, transparent 82%, rgba(255, 255, 255, 0.03) 100%),
    radial-gradient(circle at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.16) 56%, rgba(0, 0, 0, 0.42) 100%);
}

.intro-stage__media-wrap {
  position: absolute;
  inset: -5%;
  z-index: 0;
}

.intro-stage__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) contrast(1.08) brightness(0.58) blur(10px);
  transform: scale(1.16);
  opacity: 0.94;
  transition: transform 1s ease, filter 1s ease, opacity 0.75s ease;
}

.intro-stage__content {
  position: relative;
  z-index: 3;
  width: min(100%, 36rem);
  padding-inline: clamp(0.2rem, 0.8vw, 0.45rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.4rem, 4vh, 2.5rem);
}

.intro-hanging-heart,
.intro-title,
.intro-unlock {
  transition: transform 0.72s ease, opacity 0.44s ease;
}

.intro-hanging-heart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  animation: intro-heart-float 4.8s ease-in-out infinite;
}

.intro-hanging-heart__line {
  width: 1px;
  height: clamp(8rem, 20vh, 13rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.intro-hanging-heart__icon {
  width: clamp(1.9rem, 3.5vw, 2.6rem);
  aspect-ratio: 1;
  object-fit: contain;
  filter: grayscale(1) brightness(4.2) drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.intro-title {
  --intro-title-size: clamp(2.85rem, 7.1vw, 5.7rem);
  --intro-title-fit-scale: 1;
  --intro-title-line-height: 0.92;
  --intro-title-tracking: 0.026em;
  margin: 0;
  box-sizing: border-box;
  inline-size: fit-content;
  max-inline-size: min(100%, 15.2ch);
  margin-inline: auto;
  padding-inline: clamp(0.18rem, 0.7vw, 0.42rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.04rem, 0.35vw, 0.16rem);
  color: var(--intro-text);
  font-family: var(--font-heading);
  font-size: calc(var(--intro-title-size) * var(--intro-title-fit-scale));
  font-weight: 400;
  line-height: var(--intro-title-line-height);
  letter-spacing: var(--intro-title-tracking);
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 10px 32px var(--intro-shadow);
}

.intro-title__line {
  display: block;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  text-align: center;
  white-space: nowrap;
}

.intro-unlock__line {
  display: block;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  white-space: nowrap;
}

.intro-unlock {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--intro-text-soft);
  cursor: pointer;
  text-align: center;
}

.intro-unlock__circle {
  width: clamp(5.7rem, 9vw, 6.9rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--intro-stroke);
  border-radius: 999px;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.intro-unlock__icon {
  width: clamp(2.65rem, 4.8vw, 3.15rem);
  height: clamp(2.65rem, 4.8vw, 3.15rem);
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-unlock__text {
  --intro-unlock-text-size: clamp(1.3rem, 2.6vw, 1.95rem);
  --intro-unlock-fit-scale: 1;
  display: block;
  max-inline-size: min(100%, 18ch);
  padding-inline: clamp(0.15rem, 0.5vw, 0.3rem);
  color: var(--intro-text-soft);
  font-family: var(--font-serif);
  font-size: calc(var(--intro-unlock-text-size) * var(--intro-unlock-fit-scale));
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.intro-unlock:hover,
.intro-unlock:focus-visible {
  transform: translateY(-2px);
}

.intro-unlock:hover .intro-unlock__circle,
.intro-unlock:focus-visible .intro-unlock__circle {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 38px rgba(0, 0, 0, 0.26);
}

.intro-unlock:focus-visible {
  outline: none;
}

.intro.opened .intro-stage__media {
  transform: scale(1.24);
  filter: grayscale(1) contrast(1.08) brightness(0.48) blur(16px);
  opacity: 0.76;
}

.intro.opened .intro-hanging-heart {
  opacity: 0;
  transform: translateY(-24px);
}

.intro.opened .intro-title {
  opacity: 0;
  transform: translateY(-22px);
}

.intro.opened .intro-unlock {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  pointer-events: none;
}

.intro.fade-out {
  pointer-events: none;
}

@keyframes intro-heart-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 740px) {
  .intro-stage {
    padding-top: clamp(4.5rem, 12vh, 6.5rem);
    padding-bottom: clamp(2rem, 5.5vh, 3rem);
  }

  .intro-stage__content {
    width: min(100%, 24rem);
    gap: 1.35rem;
  }

  .intro-hanging-heart__line {
    height: clamp(6.7rem, 16vh, 9rem);
  }

  .intro-title {
    --intro-title-size: clamp(2.3rem, 8.7vw, 3.9rem);
    max-inline-size: min(100%, 13.8ch);
  }

  .intro-unlock__circle {
    width: clamp(5rem, 19vw, 5.8rem);
  }

  .intro-unlock__text {
    --intro-unlock-text-size: clamp(1.08rem, 4.4vw, 1.5rem);
  }
}

@media (max-width: 480px) {
  .intro-stage__media {
    object-position: center 22%;
    transform: scale(1.2);
  }

  .intro-stage__content {
    width: min(100%, 20.5rem);
  }

  .intro-title {
    --intro-title-size: clamp(1.92rem, 8.9vw, 2.9rem);
    --intro-title-line-height: 0.94;
    --intro-title-tracking: 0.022em;
    max-inline-size: min(100%, 12.6ch);
  }

  .intro-unlock {
    gap: 0.8rem;
  }

  .intro-unlock__circle {
    width: clamp(4.7rem, 23vw, 5.15rem);
  }

  .intro-unlock__icon {
    width: clamp(2.35rem, 10.5vw, 2.7rem);
    height: clamp(2.35rem, 10.5vw, 2.7rem);
  }

  .intro-unlock__text {
    --intro-unlock-text-size: clamp(0.98rem, 4.1vw, 1.22rem);
    max-inline-size: min(100%, 16.5ch);
  }
}

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

/* Typography tuned to match the reference sample's editorial serif + clean sans look. */
:root {
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Forum", "Times New Roman", serif;
  --font-serif: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Forum", "Times New Roman", serif;
  --font-display: "Forum", "Times New Roman", serif;
  --font-ornament: "Forum", "Times New Roman", serif;
}

h1,
h2 {
  font-weight: 400;
  letter-spacing: 0.03em;
}

.hero-title,
.intro-title {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.95rem, 7.8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0.045em;
}

.intro-title {
  line-height: var(--intro-title-line-height);
  letter-spacing: var(--intro-title-tracking);
}

.hero-title,
.calendar-head,
.location-title,
.countdown-section h2,
.ornament-date span,
.time-unit span,
.time-unit:not(:last-child)::after {
  font-family: var(--font-heading);
  font-weight: 400;
}

.calendar-head,
.location-title,
.countdown-section h2 {
  line-height: 0.96;
  letter-spacing: 0.04em;
}

.lead,
.venue-address,
.countdown-message,
.ornament-message,
.intro-unlock__text {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.lead {
  max-width: 38ch;
  font-size: clamp(1.02rem, 2.05vw, 1.38rem);
}

.intro-unlock__text {
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.photo-hero__eyebrow,
.week-days span,
.map-link,
.language-option,
.scroll-indicator__text,
.invite-credit,
.invite-credit-link {
  font-family: var(--font-ui);
}

.photo-hero__eyebrow,
.week-days span,
.map-link,
.language-option,
.scroll-indicator__text {
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-hero__eyebrow {
  font-size: clamp(0.95rem, 2vw, 1.35rem);
}

.ornament-names {
  letter-spacing: 0.025em;
}

.ornament-names .ornament-name-line {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.photo-hero .ornament-names .ornament-name-line {
  letter-spacing: 0.08em;
}

.ornament-names .ornament-name-amp {
  font-family: var(--font-ui);
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-hero .ornament-names .ornament-name-amp {
  font-family: var(--font-ui);
  font-size: clamp(0.96rem, 1.85vw, 1.24rem);
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.time-unit small {
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Red accent + full-month calendar override */
:root {
  --accent-reference: #da1e2e;
  --accent-reference-deep: #cb182b;
  --accent-reference-soft: rgba(218, 30, 46, 0.16);
  --accent-tint-strong: rgba(218, 30, 46, 0.72);
  --focus-ring-navy: rgba(218, 30, 46, 0.34);
  --gold-soft: rgba(218, 30, 46, 0.92);
  --gold-strong: #da1e2e;
  --navy-tint: rgba(218, 30, 46, 0.08);
  --seal-shadow: rgba(163, 18, 36, 0.26);
  --seal-shadow-hover: rgba(163, 18, 36, 0.34);
  --card-border: rgba(218, 30, 46, 0.16);
  --credit-border: rgba(218, 30, 46, 0.32);
}

.calendar {
  width: min(660px, 100%);
  gap: clamp(0.7rem, 1.7vw, 1.15rem);
}

.calendar-head {
  order: 0;
  margin: 0;
  padding: 0;
  color: var(--ink-navy-soft);
  font-family: "Forum", var(--font-heading);
  font-size: clamp(2.3rem, 7.4vw, 4.3rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  width: min(520px, calc(100% - clamp(2rem, 7vw, 4rem)));
  column-gap: clamp(0.18rem, 0.55vw, 0.34rem);
}

.calendar-grid.week-days {
  order: 1;
}

.calendar-grid.days {
  order: 2;
  row-gap: clamp(0.5rem, 1.35vw, 0.9rem);
}

.week-days span,
.calendar-day,
.heart-day > span {
  font-family: "Forum", var(--font-heading);
  font-weight: 400;
}

.week-days span {
  color: var(--ink-navy-soft);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calendar-day,
.days .heart-cell {
  min-height: clamp(34px, 4.2vw, 48px);
  display: grid;
  place-items: center;
}

.calendar-day {
  color: var(--ink-navy-soft);
  font-size: var(--text-sm);
  line-height: 1;
}

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

.days .heart-cell {
  width: 100%;
}

.heart-day {
  width: clamp(52px, 6.4vw, 72px);
  height: clamp(46px, 5.8vw, 64px);
  position: relative;
  display: grid;
  place-items: center;
  background:
    center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='%23da1e2e' d='M32 56.2c-1.1-.8-27.8-18.7-27.8-35.2C4.2 11.3 11.8 4 21 4c5 0 9.4 2 11 5.3C33.6 6 38 4 43 4c9.2 0 16.8 7.3 16.8 17 0 16.5-26.7 34.4-27.8 35.2Z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 8px 18px rgba(218, 30, 46, 0.12));
  transform-origin: center;
  will-change: transform, filter;
  animation: calendar-heart-reference-pulse 2.4s ease-in-out infinite;
}

.heart-day::before,
.heart-day::after {
  content: none;
}

.heart-day > span {
  color: #fffdf6;
  font-size: var(--text-sm);
  line-height: 1;
  transform: translateY(-0.04em);
}

@keyframes calendar-heart-reference-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(218, 30, 46, 0.12));
  }

  45% {
    transform: scale(1.12);
    filter: drop-shadow(0 12px 24px rgba(218, 30, 46, 0.24));
  }

  60% {
    transform: scale(1.06);
    filter: drop-shadow(0 10px 22px rgba(218, 30, 46, 0.18));
  }
}

@media (max-width: 640px) {
  .calendar {
    gap: clamp(0.75rem, 3.8vw, 1rem);
  }

  .calendar-grid {
    width: 100%;
    column-gap: clamp(0.1rem, 1.8vw, 0.4rem);
  }

  .week-days span {
    font-size: var(--text-sm);
    letter-spacing: 0.03em;
  }

  .calendar-day,
  .days .heart-cell {
    min-height: clamp(32px, 8.6vw, 44px);
  }

  .calendar-day {
    font-size: var(--text-sm);
  }

  .heart-day {
    width: clamp(52px, 13vw, 68px);
    height: clamp(46px, 11.6vw, 60px);
  }

  .heart-day > span {
    font-size: var(--text-sm);
  }
}

.hero-title {
  --hero-title-size: clamp(3.35rem, 8.5vw, 6.05rem);
  --hero-title-fit-scale: 1;
  width: 100%;
  max-width: min(100%, 20ch);
  margin-inline: auto;
  padding-inline: clamp(0.12rem, 0.5vw, 0.28rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.06rem, 0.28vw, 0.16rem);
  color: var(--ink-navy);
  font-family: var(--font-script);
  font-weight: 400;
  font-size: calc(var(--hero-title-size) * var(--hero-title-fit-scale));
  line-height: 0.88;
  letter-spacing: 0.012em;
  text-transform: none;
  text-wrap: balance;
}

.hero-title__line {
  display: block;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 740px) {
  .hero-title {
    --hero-title-size: clamp(1.85rem, 8.8vw, 3.05rem);
    max-width: min(100%, 18.6ch);
  }
}

@media (max-width: 480px) {
  .hero-title {
    --hero-title-size: clamp(1.65rem, 9.2vw, 2.45rem);
    max-width: min(100%, 17.8ch);
  }
}

.calendar-head,
.location-title,
.countdown-section h2 {
  font-size: clamp(3.35rem, 8.5vw, 6.05rem);
  line-height: 0.88;
  letter-spacing: 0.012em;
  text-transform: none;
}

.location-title {
  margin-bottom: clamp(0.55rem, 2vw, 1.15rem);
}

@media (max-width: 740px) {
  .calendar-head,
  .location-title,
  .countdown-section h2 {
    font-size: clamp(1.85rem, 8.8vw, 3.05rem);
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .calendar-head,
  .location-title,
  .countdown-section h2 {
    font-size: clamp(1.65rem, 9.2vw, 2.45rem);
    line-height: 1;
  }

  .location-title {
    margin-bottom: clamp(0.45rem, 2.8vw, 0.8rem);
  }
}

.gift-section {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 0 0;
  border-top: 1px solid rgba(108, 108, 108, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.4rem);
  position: relative;
  z-index: 1;
  text-align: center;
}

.gift-title {
  margin: 0;
  color: var(--ink-navy);
  font-family: var(--font-script);
  font-size: clamp(3.35rem, 8.5vw, 6.05rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.012em;
  text-transform: none;
}

.gift-lead {
  max-width: 34ch;
  margin: 0;
  color: var(--line-muted);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 2.05vw, 1.3rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.015em;
}

.gift-card {
  position: relative;
  width: min(700px, 100%);
  padding: clamp(1.5rem, 3.8vw, 2.35rem);
  border: 1.5px solid rgba(237, 184, 184, 0.82);
  border-radius: 34px;
  background:
    radial-gradient(circle at 94% 12%, rgba(255, 204, 204, 0.38), transparent 28%),
    radial-gradient(circle at 82% 54%, rgba(255, 227, 216, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 254, 251, 0.98) 0%, rgba(255, 249, 243, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(81, 48, 48, 0.05);
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.45rem);
  overflow: hidden;
  text-align: left;
}

.gift-card::after {
  content: none;
}

.gift-card__row,
.gift-card__note,
.gift-copy-button {
  position: relative;
  z-index: 1;
}

.gift-card__row {
  display: grid;
  gap: 0.42rem;
}

.gift-card__row--number {
  margin-top: clamp(0.18rem, 0.7vw, 0.35rem);
  padding-top: clamp(0.85rem, 1.8vw, 1.15rem);
  border-top: 1px solid rgba(108, 108, 108, 0.12);
}

.gift-card__label {
  color: #555555;
  font-family: var(--font-ui);
  font-size: clamp(0.9rem, 1.45vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gift-card__name,
.gift-card__number {
  color: var(--ink-navy);
  font-family: "Forum", var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
}

.gift-card__name {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  letter-spacing: 0.07em;
  line-height: 1.08;
}

.gift-card__number {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: 0.12em;
  line-height: 1.08;
  word-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.gift-card__note {
  margin: 0;
  max-width: 22ch;
  color: #727272;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.35vw, 1.7rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.gift-copy-button {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1.3rem;
  border: 1px solid #6c6c6c;
  border-radius: 8px;
  background: #fffdf6;
  color: #6c6c6c;
  font-family: var(--font-ui);
  font-size: clamp(0.86rem, 1.6vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  justify-self: stretch;
}

.gift-copy-button:hover,
.gift-copy-button:focus-visible {
  background: var(--ink-navy);
  border-color: var(--ink-navy);
  color: var(--paper-card);
}

.gift-copy-button:focus-visible {
  outline: 2px solid var(--focus-ring-navy);
  outline-offset: 2px;
}

.gift-copy-button[data-copy-state="success"] {
  border-color: var(--ink-navy);
  background: var(--ink-navy);
  color: var(--paper-card);
}

.gift-copy-button[data-copy-state="error"] {
  border-color: rgba(218, 30, 46, 0.36);
  background: rgba(218, 30, 46, 0.1);
  color: var(--accent-reference);
}

@media (max-width: 740px) {
  .gift-section {
    width: 100%;
    padding-top: clamp(1.7rem, 5.5vw, 2.3rem);
    gap: clamp(0.9rem, 3.6vw, 1.15rem);
  }

  .gift-title {
    font-size: clamp(1.85rem, 8.8vw, 3.05rem);
    line-height: 1;
  }

  .gift-lead {
    max-width: 30ch;
    font-size: clamp(0.95rem, 3.2vw, 1.08rem);
  }

  .gift-card {
    padding: clamp(1.1rem, 5.2vw, 1.45rem);
    border-radius: 28px;
  }

  .gift-card__name {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .gift-card__number {
    font-size: clamp(1.35rem, 5.8vw, 1.8rem);
    letter-spacing: 0.08em;
    word-spacing: 0.04em;
  }

  .gift-card__note {
    max-width: 100%;
    font-size: clamp(1rem, 4.2vw, 1.28rem);
    line-height: 1.48;
  }

  .gift-copy-button {
    min-height: 52px;
    font-size: clamp(0.86rem, 3.7vw, 0.98rem);
  }
}

@media (max-width: 480px) {
  .gift-title {
    font-size: clamp(1.65rem, 9.2vw, 2.45rem);
    line-height: 1;
  }

  .gift-card__label {
    letter-spacing: 0.14em;
  }

  .gift-card__number {
    font-size: clamp(1.08rem, 5.4vw, 1.28rem);
    letter-spacing: 0.05em;
  }

  .gift-copy-button {
    min-height: 52px;
    letter-spacing: 0.06em;
  }
}
