/* Composición y acabados de cada paleta. */
@import url("palette-tokens.css");

body {
  background: var(--paper);
  color: var(--ink);
}
.preview-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  color: var(--muted);
  flex-wrap: wrap;
}
.preview-bar .preview-divider {
  margin: 0 4px;
}
.preview-bar a {
  font-size: 10px;
  margin-left: 14px;
  border-bottom: 1px solid var(--line);
}
.preview-bar .preview-dot {
  background: var(--accent);
  margin: 0;
}
.button-dark,
.filter-group button[aria-pressed="true"],
.compose-types button[aria-pressed="true"],
.audio-demo button {
  background: var(--olive);
  color: var(--button-ink);
}
.button-dark:hover {
  background: color-mix(in srgb, var(--olive), var(--ink) 15%);
  color: var(--button-ink);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline-color: var(--accent);
}
.site-header {
  position: relative;
  z-index: 2;
}
.personal-salutation {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--rose);
  font-style: italic;
}
.personal-salutation span {
  font-style: normal;
}
.hero .eyebrow {
  font-size: 10px;
}
.hero-invite {
  max-width: 400px;
  line-height: 1.4;
  font-size: 24px;
}
.hero-photo img {
  filter: saturate(var(--photo-tone));
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.13);
  will-change: transform;
}
.hero-art {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}
.paper-note {
  background: var(--soft);
  color: var(--ink);
  transform: translate3d(0, var(--parallax-y, 0px), 0) rotate(-8deg);
}
.arch-outline {
  border-color: var(--accent);
}
.hero-scroll,
.image-note {
  color: var(--muted);
}
.hero-copy > .button {
  border-radius: 0;
}
.hero {
  position: relative;
  min-height: 690px;
}
.invitation-opened .hero-copy {
  animation: invitation-arrives 0.8s both;
}
.strip-flower,
.schedule-symbol,
.schedule-number,
.rsvp-flower,
.footer-flower {
  color: var(--accent);
}
.status-label {
  border-color: var(--line);
  color: var(--muted);
}
.rsvp-section,
.location-box {
  background: var(--soft);
}
.location-drawing {
  border-color: var(--line);
}
.location-drawing svg {
  color: var(--accent);
}
.location-drawing svg path[fill] {
  fill: var(--paper);
}
.invitation-card,
dialog {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.seat-count,
.guest-avatar {
  background: var(--soft);
  color: var(--ink);
}
.guest-row {
  border-color: var(--line);
}
.guest-row label {
  white-space: normal;
  flex: 1;
  min-width: 0;
}
.guest-avatar {
  flex-shrink: 0;
}
.guest-row select {
  flex-shrink: 0;
}
.rsvp-copy > p:not(.eyebrow),
.demo-caption,
.field-label > span,
.form-intro {
  color: var(--muted);
}
input,
select,
textarea {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.quote-card,
.card-preview {
  background: color-mix(in srgb, var(--rose) 13%, var(--paper));
  color: var(--ink);
}
.quote-card .eyebrow,
.quote-mark,
.little-heart,
.composition-flower {
  color: var(--rose);
}
.quote-card > p {
  color: var(--muted);
}
.audio-card,
.uploaded-card,
.upload-area {
  background: var(--soft);
}
.composition-card,
.photo-card {
  background: var(--surface);
  border-color: var(--line);
}
.waveform i {
  background: var(--accent);
}
.composition-card .text-button,
.memory-caption {
  color: var(--ink);
}
.text-button {
  color: var(--ink);
  text-decoration-color: var(--accent);
}
.compose-types button,
.sticker-options button {
  background: var(--soft);
  color: var(--ink);
}
.sticker-options button[aria-pressed="true"] {
  background: var(--paper);
  border-color: var(--accent);
}
.close-dialog:hover {
  background: var(--soft);
}
.upload-area {
  border-color: var(--accent);
}
.uploaded-card .upload-privacy,
.uploaded-card .local-label {
  color: var(--muted);
}
.card-preview {
  border-color: var(--line);
}
.album-note > span {
  color: var(--accent);
}
.toast {
  background: var(--olive);
  color: var(--button-ink);
}
.footer-bottom {
  align-items: center;
}
.footer-bottom .text-button {
  font-size: 10px;
}
.mobile-nav {
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border-color: var(--line);
}
.mobile-nav a:nth-child(2) {
  background: var(--olive);
  color: var(--button-ink);
}
.personal-invitation {
  padding-block: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}
.personal-invitation .eyebrow {
  color: var(--rose);
  font-size: 9px;
  margin-bottom: 12px;
}
.personal-invitation h2 {
  font-size: 37px;
  letter-spacing: -0.5px;
}
.personal-invitation p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
#named-guests {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#named-guests li {
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-size: 12px;
  background: var(--surface);
}
.invitation-reference {
  font-size: 9px;
  color: var(--muted);
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.parallax-interlude {
  height: 420px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  background: var(--soft);
}
.parallax-interlude > img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  max-width: none;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.5);
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
.interlude-shade {
  position: absolute;
  inset: 0;
  background: #18251b87;
}
.interlude-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff9ec;
  text-align: center;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}
.interlude-copy .eyebrow {
  font-size: 9px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.interlude-copy > p {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1;
  letter-spacing: -2px;
}
.interlude-note {
  font-size: 9px;
  letter-spacing: 0.4px;
  margin-top: 27px;
  opacity: 0.8;
}
.location-section {
  padding-bottom: 65px;
}
.gifts-section {
  padding-bottom: 25px;
}
.gift-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gift-option {
  padding: 32px 25px;
  text-align: center;
}
.gift-option + .gift-option {
  border-left: 1px solid var(--line);
}
.gift-illustration {
  display: block;
  font-size: 42px;
  font-family: var(--serif);
  color: var(--rose);
  height: 69px;
  line-height: 1.2;
}
.gift-option .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.gift-option h3 {
  font-size: 30px;
  margin: 13px 0 15px;
}
.gift-option > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.gift-option .text-button {
  margin-top: 13px;
}
.gift-options:has(.gift-option[hidden]) {
  display: flex;
  justify-content: center;
}
.gift-options:has(.gift-option[hidden]) .gift-option {
  flex: 1;
  max-width: 600px;
}
.gift-options:has(.gift-option[hidden]) .gift-option {
  border-left: 0;
}
.gift-options:has(.gift-option[hidden])
  .gift-option:not([hidden])
  ~ .gift-option:not([hidden]) {
  border-left: 1px solid var(--line);
}
#no-gift-options {
  font-family: var(--serif);
  font-size: 26px;
  text-align: center;
  padding: 30px;
}
.registry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.registry-item h3 {
  font-size: 25px;
  margin: 5px 0 10px;
}
.registry-item small {
  font-size: 11px;
  color: var(--muted);
}
.registry-item span {
  font-size: 10px;
  color: var(--rose);
}
.registry-item button {
  max-width: 140px;
  font-size: 11px;
  text-align: left;
}
.registry-item button[aria-pressed="true"] {
  color: var(--rose);
}
.gift-dialog-symbol {
  font-size: 65px;
  color: var(--rose);
  line-height: 1;
  padding: 30px 0;
}
.pending-detail {
  border: 1px dashed var(--line);
  padding: 20px;
  margin: 25px 0;
  color: var(--muted);
}
.digital-placeholder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 20px;
  background: var(--soft);
  font-size: 12px;
  margin: 25px 0;
}
.invalid-invitation {
  padding-block: 100px;
  min-height: 90vh;
}
.invalid-invitation h1 {
  font-size: 70px;
  margin: 30px 0;
}
.invalid-invitation p {
  margin-bottom: 30px;
}
.invalid-invitation .button {
  margin-top: 20px;
}
/* El sobre: papel, solapa y carta en DOM; partículas ambientales en canvas. */
.envelope-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  overflow: auto;
  isolation: isolate;
}
.envelope-screen::backdrop {
  background: var(--paper);
}
#envelope-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.envelope-screen:before,
.envelope-screen:after {
  content: "";
  position: fixed;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  pointer-events: none;
  z-index: -1;
}
.envelope-screen:before {
  left: -30vw;
  top: 5vh;
}
.envelope-screen:after {
  right: -30vw;
  bottom: -20vh;
}
.envelope-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 80px));
  margin: auto;
  padding: 26px 0;
}
.envelope-brand {
  font-family: var(--serif);
  font-size: 27px;
}
.envelope-brand em {
  color: var(--rose);
}
.skip-envelope {
  background: none;
  padding: 12px 0;
  font-size: 11px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}
.envelope-scene {
  min-height: calc(100dvh - 165px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 15px 24px 30px;
}
.envelope-scene > .eyebrow {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--rose);
  margin-bottom: 14px;
}
.envelope-scene h2 {
  font-size: 50px;
  letter-spacing: -1px;
}
.envelope-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  margin-top: 12px;
  color: var(--muted);
  max-width: 500px;
}
.envelope-object {
  position: relative;
  flex-shrink: 0;
  width: min(480px, 78vw);
  aspect-ratio: 1.62;
  margin: 46px 0 32px;
  perspective: 1600px;
  filter: drop-shadow(0 22px 25px #101b1920);
  transition: transform 0.8s 0.3s;
}
.envelope-back {
  position: absolute;
  inset: 0;
  background: var(--fold);
  border-radius: 4px;
}
.envelope-letter {
  position: absolute;
  left: 8%;
  width: 84%;
  bottom: 4%;
  height: 90%;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
  transition: transform 1s 0.5s;
  box-shadow: 0 0 10px #00000008;
}
.envelope-letter:before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
}
.envelope-letter .eyebrow {
  font-size: 8px;
  margin-bottom: 13px;
  letter-spacing: 2px;
}
.envelope-letter strong {
  font-family: var(--serif);
  font-size: 43px;
  line-height: 0.9;
  font-weight: 400;
}
.envelope-letter strong em {
  font-size: 32px;
  color: var(--rose);
}
.envelope-letter small {
  font-size: 8px;
  margin-top: 15px;
}
.letter-line {
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin-top: 15px;
}
.envelope-lining {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: color-mix(in srgb, var(--envelope), var(--surface) 10%);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    32deg,
    var(--envelope) 49.7%,
    color-mix(in srgb, var(--fold), var(--surface) 18%) 50%
  );
  clip-path: polygon(0 100%, 0 8%, 50% 59%, 100% 8%, 100% 100%);
  border-radius: 0 0 4px 4px;
}
.envelope-front:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--envelope);
  clip-path: polygon(0 100%, 50% 47%, 100% 100%);
  filter: drop-shadow(0 -1px 1px #0002);
}
.envelope-flap {
  position: absolute;
  inset: 0 0 auto;
  height: 61%;
  background: linear-gradient(
    170deg,
    color-mix(in srgb, var(--envelope), var(--surface) 12%),
    var(--fold)
  );
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  z-index: 6;
  transition:
    transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    z-index 0s 0.4s;
  backface-visibility: visible;
}

/* La fibra se aplica al sobre, encima del color de cada pliegue. */
.envelope-object :is(.envelope-back, .envelope-lining, .envelope-front, .envelope-flap) {
  isolation: isolate;
}
.envelope-object :is(.envelope-back, .envelope-lining, .envelope-front, .envelope-flap)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: url("../textures/azahar-fibra-sobre.webp") center / 7rem auto repeat;
  mix-blend-mode: soft-light;
  opacity: .74;
  pointer-events: none;
}
.wax-seal {
  position: absolute;
  z-index: 7;
  left: calc(50% - 31px);
  top: calc(57% - 31px);
  width: 62px;
  height: 62px;
  background: var(--seal);
  border: 3px double color-mix(in srgb, var(--seal), var(--surface) 25%);
  border-radius: 46% 52% 48% 53%;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 3px #ffffff0e,
    0 5px 10px #0003;
  transition:
    opacity 0.3s,
    transform 0.5s;
}
.wax-seal span {
  font-family: var(--serif);
  font-size: 24px;
  color: #fff4dd;
  text-shadow: 0 1px 1px #0005;
}
.wax-seal em {
  font-size: 18px;
}
.envelope-address {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--ink);
  gap: 5px;
}
.envelope-address > span {
  font-size: 6px;
  letter-spacing: 2px;
}
.envelope-address strong {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 400;
}
.envelope-scene > .button {
  min-width: 218px;
  border-radius: 0;
  font-size: 12px;
}
.envelope-scene > .button > span:first-child {
  font-size: 12px;
}
.envelope-help {
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
}
.envelope-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, calc(100% - 80px));
  margin: auto;
  padding: 10px 0 20px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.opening .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}
.opening .wax-seal {
  opacity: 0;
  transform: translateY(-12px) rotate(-10deg) scale(1.15);
}
.opening .envelope-letter {
  transform: translateY(-49%);
}
.opening .envelope-object {
  transform: translateY(20px);
}
.opening .envelope-scene > .eyebrow,
.opening .envelope-scene > h2,
.opening .envelope-intro {
  transition: opacity 0.45s;
  opacity: 0.16;
}
.opening .envelope-help {
  opacity: 0;
}
.opening {
  animation: envelope-out 0.4s 1.75s both;
}
#open-envelope:disabled {
  opacity: 0.65;
  transform: none;
}
/* Versión 02: composición centrada, fotografía horizontal y bordes de papelería. */
[data-theme="rosa"] .hero {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 42px;
  padding-top: 60px;
  padding-bottom: 50px;
  min-height: 0;
  position: relative;
}
[data-theme="rosa"] .hero-copy {
  max-width: 900px;
  padding: 0;
}
[data-theme="rosa"] .hero h1 {
  font-size: clamp(76px, 8.8vw, 125px);
  line-height: 1.1;
  letter-spacing: -3px;
}
[data-theme="rosa"] .hero h1 br {
  display: none;
}
[data-theme="rosa"] .hero .ampersand {
  margin: 0 16px;
  font-size: 0.7em;
}
[data-theme="rosa"] .hero .eyebrow {
  justify-content: center;
}
[data-theme="rosa"] .hero .fine-line {
  display: none;
}
[data-theme="rosa"] .hero-intro {
  margin-top: 20px;
}
[data-theme="rosa"] .hero-invite {
  max-width: none;
}
[data-theme="rosa"] .hero-scroll {
  display: none;
}
[data-theme="rosa"] .hero-art {
  width: 90%;
  padding: 12px 0 0;
}
[data-theme="rosa"] .hero-photo {
  height: 345px;
  border-radius: 48% 48% 0 0 / 40% 40% 0 0;
}
[data-theme="rosa"] .hero-photo img {
  object-position: center 62%;
}
[data-theme="rosa"] .arch-outline {
  inset: 0 -12px 28px;
  transform: none;
  border-radius: 48% 48% 0 0 / 40% 40% 0 0;
}
[data-theme="rosa"] .paper-note {
  left: auto;
  right: -20px;
  bottom: 30px;
  transform: translateY(var(--parallax-y, 0px)) rotate(8deg);
  background: var(--surface);
  border: 1px solid var(--line);
}
[data-theme="rosa"] .personal-salutation {
  font-size: 26px;
}
[data-theme="rosa"] .event-strip {
  border-top: 3px double var(--line);
  border-bottom: 3px double var(--line);
}
[data-theme="rosa"] .schedule {
  border: 0;
  gap: 15px;
}
[data-theme="rosa"] .schedule article {
  border: 1px solid var(--line);
  border-radius: 90px 90px 0 0;
  padding-top: 40px;
}
[data-theme="rosa"] .schedule-number {
  display: none;
}
[data-theme="rosa"] .section-heading h2 {
  font-style: italic;
}
[data-theme="rosa"] .invitation-card {
  border: 4px double var(--line);
  box-shadow: 0 12px 35px #6b3d4410;
}
[data-theme="rosa"] .rsvp-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
[data-theme="rosa"] .parallax-interlude {
  height: 350px;
  margin-inline: auto;
  width: calc(100% - 80px);
  max-width: 1300px;
  border-radius: 4px;
}
[data-theme="rosa"] .interlude-shade {
  background: #56364273;
}
[data-theme="rosa"] .envelope-screen:before {
  border-radius: 45%;
  transform: rotate(20deg);
}
[data-theme="rosa"] .envelope-screen:after {
  border-radius: 45%;
  transform: rotate(-20deg);
}
/* Versión 03: portada cinematográfica, fotografía al fondo y acentos de champagne. */
[data-theme="noche"] .site-header {
  border-color: #827f6c;
  position: absolute;
  left: 0;
  right: 0;
  color: #f7efd9;
}
[data-theme="noche"] .hero {
  width: 100%;
  margin: 0;
  min-height: 830px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  padding: 160px 40px 100px;
  isolation: isolate;
  overflow: hidden;
}
[data-theme="noche"] .hero-art {
  position: absolute;
  inset: -30px 0;
  z-index: -2;
  padding: 0;
  transform: none;
}
[data-theme="noche"] .hero-photo {
  height: 100%;
  border-radius: 0;
}
[data-theme="noche"] .hero-photo img {
  object-position: center 52%;
  filter: brightness(0.55) saturate(0.45);
  transform: translateY(var(--parallax-y, 0px)) scale(1.16);
}
[data-theme="noche"] .hero-photo:after {
  inset: 0;
  background: linear-gradient(#0b151c77, #17212722 40%, #172127e8);
}
[data-theme="noche"] .hero-photo figcaption {
  display: none;
}
[data-theme="noche"] .arch-outline,
[data-theme="noche"] .paper-note {
  display: none;
}
[data-theme="noche"] .image-note {
  position: absolute;
  bottom: 40px;
  right: 30px;
  color: #d4cebc;
}
[data-theme="noche"] .hero-copy {
  max-width: 800px;
  padding: 0;
}
[data-theme="noche"] .hero h1 {
  font-size: clamp(95px, 10vw, 150px);
  line-height: 0.94;
  color: #f5ecd7;
  font-weight: 400;
}
[data-theme="noche"] .hero h1 br {
  display: none;
}
[data-theme="noche"] .hero .ampersand {
  display: block;
  font-size: 0.46em;
  margin: 12px 0;
}
[data-theme="noche"] .hero .eyebrow {
  justify-content: center;
  color: #e8d5ad;
}
[data-theme="noche"] .fine-line {
  background: var(--accent);
}
[data-theme="noche"] .hero-intro {
  color: #e5e0d1;
}
[data-theme="noche"] .hero-invite {
  max-width: none;
  color: #e2c99b;
}
[data-theme="noche"] .hero-scroll {
  justify-content: center;
  width: auto;
  color: #ede7d8;
}
[data-theme="noche"] .personal-salutation {
  color: #e2c99b;
}
[data-theme="noche"] .event-strip {
  padding-block: 35px;
  border-top: 0;
}
[data-theme="noche"] .photo-zoom {
  background: var(--paper);
  color: var(--ink);
}
[data-theme="noche"] .video-shade {
  background: #0d1b23ad;
}
[data-theme="noche"] .interlude-shade {
  background: #07141cb0;
}
[data-theme="noche"] .parallax-interlude {
  height: 480px;
}
[data-theme="noche"] .envelope-screen {
  background: radial-gradient(
    ellipse at 50% 45%,
    var(--glow),
    var(--paper) 70%
  );
}
[data-theme="noche"] .envelope-letter {
  background: var(--paper-surface);
  color: var(--ink);
}
[data-theme="noche"] .envelope-letter:before {
  border-color: var(--line);
}
[data-theme="noche"] .envelope-letter strong em {
  color: var(--accent);
}
[data-theme="noche"] .envelope-address {
  color: #e5d6b7;
}
[data-theme="noche"] .wax-seal span {
  color: #253038;
  text-shadow: 0 1px #e7d8ad66;
}
[data-theme="noche"] .uploaded-card {
  border: 1px solid var(--line);
}
@keyframes invitation-arrives {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes envelope-out {
  to {
    opacity: 0;
    transform: scale(1.03);
  }
}
@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }
  .desktop-nav {
    gap: 15px;
    font-size: 11px;
  }
  .personal-invitation {
    grid-template-columns: 1fr;
  }
  .personal-invitation h2 {
    font-size: 34px;
  }
  #named-guests {
    justify-content: flex-start;
  }
  .gift-option {
    padding: 27px 15px;
  }
  .gift-option h3 {
    font-size: 27px;
  }
  [data-theme="rosa"] .hero h1 {
    font-size: 80px;
  }
  [data-theme="noche"] .hero {
    min-height: 800px;
  }
  .envelope-scene {
    padding-top: 5px;
  }
  .envelope-scene h2 {
    font-size: 44px;
  }
}
@media (max-width: 600px) {
  .preview-bar {
    font-size: 8px;
    gap: 5px;
    padding: 9px 8px;
  }
  .preview-bar a {
    font-size: 8px;
    margin-left: 6px;
  }
  .preview-bar .preview-dot,
  .preview-bar .preview-divider {
    display: none;
  }
  .hero {
    gap: 32px;
    min-height: 0;
  }
  .personal-salutation {
    font-size: 21px;
    margin-bottom: 22px;
  }
  .hero-invite {
    font-size: 23px;
  }
  .hero-art {
    margin-top: 14px;
  }
  .personal-invitation {
    padding-block: 32px;
    gap: 18px;
  }
  .personal-invitation h2 {
    font-size: 33px;
  }
  #named-guests {
    gap: 7px;
  }
  #named-guests li {
    padding: 8px 11px;
    font-size: 11px;
  }
  .personal-invitation .eyebrow {
    font-size: 8px;
  }
  .parallax-interlude {
    height: 300px;
    margin-top: 0;
  }
  .interlude-copy > p {
    font-size: 57px;
  }
  .interlude-copy .eyebrow {
    font-size: 8px;
  }
  .interlude-note {
    font-size: 8px;
  }
  .rsvp-layout {
    gap: 30px;
  }
  .guest-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .guest-row label {
    font-size: 13px;
  }
  .guest-row select {
    width: 100%;
    font-size: 16px;
  }
  .location-section {
    padding-bottom: 40px;
  }
  .gifts-section {
    padding-bottom: 20px;
  }
  .gift-options {
    grid-template-columns: 1fr;
  }
  .gift-option {
    padding: 28px 14px;
  }
  .gift-option + .gift-option {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .gift-illustration {
    font-size: 37px;
    height: 52px;
  }
  .gift-option h3 {
    font-size: 31px;
  }
  .gift-options:has(.gift-option[hidden]) {
    display: block;
  }
  .gift-options:has(.gift-option[hidden])
    .gift-option:not([hidden])
    ~ .gift-option:not([hidden]) {
    border-left: 0;
  }
  .gift-option[hidden] + .gift-option {
    border-top: 0;
  }
  .registry-item {
    gap: 15px;
  }
  .registry-item h3 {
    font-size: 24px;
  }
  .registry-item button {
    font-size: 10px;
    max-width: 100px;
  }
  .registry-item small {
    font-size: 10px;
  }
  .digital-placeholder {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .digital-placeholder strong {
    margin-bottom: 12px;
  }
  .footer-bottom {
    gap: 12px;
    justify-content: space-between;
  }
  .footer-bottom .text-button {
    font-size: 9px;
  }
  .footer-bottom a {
    margin-left: 0;
  }
  .envelope-top {
    width: calc(100% - 40px);
    padding-block: 18px;
  }
  .envelope-brand {
    font-size: 24px;
  }
  .skip-envelope {
    font-size: 10px;
  }
  .envelope-scene {
    min-height: calc(100dvh - 145px);
    padding: 18px 18px 24px;
  }
  .envelope-scene h2 {
    font-size: 39px;
  }
  .envelope-intro {
    font-size: 19px;
    max-width: 300px;
    line-height: 1.3;
  }
  .envelope-object {
    width: min(430px, 86vw);
    margin: 42px 0 29px;
  }
  .envelope-letter strong {
    font-size: 33px;
  }
  .envelope-letter .eyebrow {
    font-size: 6px;
    margin-bottom: 8px;
  }
  .envelope-letter strong em {
    font-size: 25px;
  }
  .envelope-letter small {
    font-size: 6px;
    margin-top: 10px;
  }
  .letter-line {
    margin-top: 10px;
  }
  .wax-seal {
    width: 48px;
    height: 48px;
    left: calc(50% - 24px);
    top: calc(57% - 24px);
  }
  .wax-seal span {
    font-size: 20px;
  }
  .wax-seal em {
    font-size: 14px;
  }
  .envelope-address {
    bottom: 8%;
    gap: 3px;
  }
  .envelope-address > span {
    font-size: 5px;
    letter-spacing: 1.5px;
  }
  .envelope-address strong {
    font-size: 20px;
  }
  .envelope-bottom {
    width: calc(100% - 40px);
    font-size: 6px;
    letter-spacing: 0.7px;
    padding-bottom: 18px;
  }
  .envelope-scene > .button {
    min-width: 208px;
  }
  .envelope-help {
    font-size: 9px;
  }
  .opening .envelope-letter {
    transform: translateY(-47%);
  }
  .invalid-invitation h1 {
    font-size: 49px;
  }
  [data-theme="rosa"] .hero {
    padding-top: 35px;
    gap: 30px;
  }
  [data-theme="rosa"] .hero h1 {
    font-size: 69px;
    line-height: 0.95;
    letter-spacing: -2px;
  }
  [data-theme="rosa"] .hero h1 br {
    display: block;
  }
  [data-theme="rosa"] .hero .ampersand {
    font-size: 0.75em;
    margin: 0 4px;
  }
  [data-theme="rosa"] .hero-art {
    width: calc(100% - 16px);
  }
  [data-theme="rosa"] .hero-photo {
    height: 320px;
    border-radius: 180px 180px 0 0;
  }
  [data-theme="rosa"] .arch-outline {
    inset: 0 -8px 32px;
    border-radius: 190px 190px 0 0;
  }
  [data-theme="rosa"] .paper-note {
    right: 6px;
    bottom: 52px;
    width: 106px;
    height: 124px;
  }
  [data-theme="rosa"] .hero-invite {
    font-size: 23px;
  }
  [data-theme="rosa"] .personal-salutation {
    font-size: 23px;
  }
  [data-theme="rosa"] .schedule {
    gap: 7px;
  }
  [data-theme="rosa"] .schedule article {
    padding: 27px 4px 20px;
  }
  [data-theme="rosa"] .schedule h3 {
    font-size: 22px;
  }
  [data-theme="rosa"] .status-label {
    font-size: 7px;
    padding: 4px;
  }
  [data-theme="rosa"] .parallax-interlude {
    width: calc(100% - 32px);
    height: 290px;
  }
  [data-theme="noche"] .hero {
    min-height: 790px;
    padding: 135px 24px 75px;
  }
  [data-theme="noche"] .hero h1 {
    font-size: 95px;
    letter-spacing: -2px;
  }
  [data-theme="noche"] .hero-intro {
    font-size: 13px;
  }
  [data-theme="noche"] .hero-invite {
    font-size: 23px;
  }
  [data-theme="noche"] .hero-art {
    margin: 0;
    width: 100%;
  }
  [data-theme="noche"] .hero-photo {
    height: 100%;
  }
  [data-theme="noche"] .image-note {
    font-size: 8px;
    right: 18px;
    bottom: 30px;
  }
  [data-theme="noche"] .hero-scroll {
    display: flex;
    margin-top: 25px;
    font-size: 10px;
  }
  [data-theme="noche"] .parallax-interlude {
    height: 340px;
  }
}
@media (max-width: 360px) {
  .envelope-scene h2 {
    font-size: 34px;
  }
  .envelope-intro {
    font-size: 17px;
  }
  .envelope-object {
    margin-top: 36px;
  }
  .envelope-letter strong {
    font-size: 28px;
  }
  .envelope-letter small {
    font-size: 5px;
  }
  .envelope-address strong {
    font-size: 18px;
  }
  .envelope-scene > .eyebrow {
    font-size: 8px;
  }
  .preview-bar a {
    margin-left: 4px;
  }
  [data-theme="rosa"] .hero h1 {
    font-size: 61px;
  }
  [data-theme="rosa"] .schedule h3 {
    font-size: 19px;
  }
  [data-theme="rosa"] .status-label {
    font-size: 6px;
  }
  [data-theme="noche"] .hero h1 {
    font-size: 81px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img,
  .hero-art,
  .paper-note,
  .parallax-interlude > img,
  .interlude-copy {
    will-change: auto !important;
  }
  .envelope-screen,
  .envelope-object,
  .envelope-flap,
  .envelope-letter,
  .wax-seal {
    transition: none !important;
    animation: none !important;
  }
}
.motion-off [data-parallax] {
  --parallax-y: 0px !important;
  will-change: auto;
}
