@import url("/fonts.css");
:root {
  --paper: #faf9f6;
  --white: #fff;
  --ink: #303c36;
  --muted: #777b72;
  --line: #e6e7df;
  --green: #304b40;
  --accent: #a68a5e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  font-synthesis: none;
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #688873;
  outline-offset: 4px;
}
svg.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button svg {
  vertical-align: middle;
}
button {
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
button:hover {
  color: #152b21;
}
button.primary:hover {
  background: #203b30;
  color: white;
}
.primary {
  background: var(--green);
  color: white;
  border-radius: 7px;
  padding: 12px 18px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.app-header {
  height: 84px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -1.6px;
  white-space: nowrap;
}
.brand-star {
  font-size: 24px;
  position: relative;
  top: -10px;
  margin-left: 2px;
  color: #ad986b;
}
.header-divider {
  height: 24px;
  width: 1px;
  background: var(--line);
}
.studio-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #7f8378;
}
.project-title {
  font-size: 14px;
  margin: auto;
  line-height: 1.6;
  font-weight: 500;
}
.project-title span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.header-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.draft-status {
  font-size: 12px;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: 86px 320px minmax(0, 1fr);
  height: calc(100dvh - 84px);
  min-height: 700px;
}
.tool-rail {
  background: #fffdfa;
  border-right: 1px solid var(--line);
  padding: 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 3px;
  border-radius: 8px;
  color: #7c8178;
  font-size: 11px;
}
.rail-button .icon {
  width: 22px;
  height: 22px;
}
.rail-button.active {
  background: #edf0e8;
  color: var(--green);
}
.rail-button:hover {
  background: #f3f4ef;
}
.rail-bottom {
  margin-top: auto;
}
.editor-panel {
  background: #fffdfa;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-content {
  padding: 28px 24px;
}
#panel-content {
  padding: 27px 24px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #d5d8cd transparent;
}
.panel-foot {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--serif);
  font-size: 14px;
  color: #8d8d80;
  white-space: nowrap;
}
.panel-foot .icon {
  width: 14px;
  height: 14px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #8b8e80;
  display: block;
}
.panel-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 31px;
  line-height: 1.1;
  margin: 9px 0 10px;
  letter-spacing: -0.4px;
}
.panel-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 24px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 22px 0 12px;
}
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}
.theme-card {
  text-align: left;
  padding: 0;
  position: relative;
  border-radius: 7px;
}
.theme-thumb {
  display: block;
  position: relative;
  height: 132px;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 7px;
  background: #eee9dc;
  transition: border-color 0.2s;
}
.theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-card.active .theme-thumb {
  border-color: var(--green);
}
.theme-card:hover .theme-thumb {
  border-color: #b7c2b2;
}
.theme-thumb:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0001, transparent);
}
.theme-sample {
  position: absolute;
  inset: 30px 7px;
  text-align: center;
  font-family: var(--serif);
  color: #3c5146;
  font-size: 15px;
  line-height: 1.15;
  z-index: 1;
}
.theme-sample i {
  display: block;
  font-size: 10px;
}
.theme-card[data-theme="night"] .theme-sample {
  color: #fbebcb;
}
.theme-check {
  position: absolute;
  right: 7px;
  bottom: 7px;
  background: var(--green);
  color: white;
  border: 1px solid white;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  z-index: 2;
  font-size: 11px;
}
.theme-card strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}
.theme-card small {
  display: block;
  font-size: 10px;
  color: #94978c;
  margin-top: 3px;
}
.palette-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.palette-swatch {
  width: 37px;
  height: 37px;
  background: var(--swatch);
  border: 4px solid #fffdfa;
  border-radius: 50%;
  outline: 1px solid #e2e3d9;
}
.palette-swatch.active {
  outline: 1.5px solid #53674d;
}
.palette-name {
  font-size: 12px;
  color: #858a7d;
}
.select-wrap,
select {
  width: 100%;
}
select,
input[type="text"],
input[type="date"],
input[type="time"],
textarea {
  border: 1px solid #dfe3d9;
  border-radius: 5px;
  padding: 10px 11px;
  background: #fffefa;
  font-size: 13px;
  color: #3e4b3f;
  max-width: 100%;
  width: 100%;
  line-height: 1.5;
}
select {
  padding-right: 25px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
label.field {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 16px;
}
label.field > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
label.field small {
  color: #91968a;
  font-size: 11px;
  font-weight: 400;
}
.field-row {
  display: flex;
  gap: 12px;
}
.field-row > * {
  min-width: 0;
  flex: 1;
}
.help-note {
  font-size: 11px;
  line-height: 1.7;
  color: #8b8f84;
  margin: 10px 0 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.type-preview {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px 12px;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 29px;
  text-align: center;
  color: #52604f;
  background: #fafaf6;
}
.canvas-area {
  background: #eeefe9;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.canvas-toolbar {
  height: 75px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
}
.design-name {
  font-size: 13px;
  display: block;
  margin-top: 6px;
}
.view-switch {
  margin-left: auto;
  background: #e3e6de;
  border-radius: 6px;
  padding: 3px;
  display: flex;
  gap: 2px;
}
.view-switch button {
  padding: 7px 11px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  color: #8c9285;
}
.view-switch .icon {
  width: 15px;
  height: 15px;
}
.view-switch button.active {
  background: #fffefa;
  box-shadow: 0 1px 3px #2434210a;
  color: #3c4c3c;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  color: #707d69;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #dfe4d9;
}
.canvas-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 35px 10px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #f6f6f0 0, transparent 68%);
}
.invitation-frame {
  position: relative;
  box-shadow:
    0 22px 50px #25332421,
    0 2px 7px #25332412;
  overflow: hidden;
  transition:
    width 0.45s,
    height 0.45s,
    aspect-ratio 0.45s;
  flex-shrink: 0;
}
.invitation-frame.mobile {
  height: 100%;
  max-height: 650px;
  aspect-ratio: 2/3;
  max-width: 100%;
  border-radius: 2px;
}
.invitation-frame.desktop {
  width: min(100%, 880px);
  max-height: 100%;
  aspect-ratio: 1.5;
  border-radius: 2px;
}
.invitation {
  height: 100%;
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  background: #eeeadd;
  --invite-ink: #3a5548;
  --invite-accent: #9e8052;
  color: var(--invite-ink);
}
.scene-background {
  position: absolute;
  inset: 0;
  background-image: url("/assets/coast.webp");
  background-size: cover;
  background-position: center;
  z-index: -3;
  will-change: transform;
}
.scene-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff9e524, #fffbed2a 65%, #e3ebe100);
  z-index: -2;
}
.fine-border {
  position: absolute;
  inset: 5%;
  border: 1px solid currentColor;
  opacity: 0.3;
  pointer-events: none;
  z-index: 3;
}
.fine-border:before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  opacity: 0.25;
}
.invitation-content {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 9% 12% 13%;
  z-index: 2;
  text-shadow: 0 1px 18px #fff9e950;
}
.invite-kicker {
  font-family: var(--sans);
  font-size: 2.05cqw;
  letter-spacing: 0.22em;
  font-weight: 500;
  line-height: 1.5;
}
.invitation h1 {
  font-family: var(--serif);
  font-size: 13.5cqw;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 8% 0 6%;
  width: 100%;
  overflow-wrap: anywhere;
}
.amp {
  display: block;
  font-size: 6.5cqw;
  font-style: italic;
  margin: 3% 0;
  color: var(--invite-accent);
}
.invite-message {
  font-family: var(--serif);
  font-size: 3.8cqw;
  line-height: 1.45;
  margin: 0;
  white-space: pre-line;
  max-width: 100%;
}
.date-rule {
  height: 1px;
  width: 32px;
  background: currentColor;
  opacity: 0.4;
  margin: 6% 0;
}
.invite-date {
  font-size: 2.2cqw;
  letter-spacing: 0.19em;
  margin: 0 0 4%;
  font-weight: 500;
  line-height: 1.7;
}
.invite-venue {
  font-family: var(--serif);
  font-size: 3.8cqw;
  margin: 0 0 2%;
  line-height: 1.3;
}
.invite-time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.25cqw;
  margin: 0;
}
.recipient {
  font-family: var(--serif);
  font-size: 3.2cqw;
  font-style: italic;
  margin: 7% 0 0;
}
.invite-secondary,
.invite-rsvp {
  font-size: 2.1cqw;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 4% 0 0;
}
.theme-night {
  --invite-ink: #fbefdb;
  --invite-accent: #c8a76c;
  background: #27251f;
}
.theme-night .scene-veil {
  background: #18171444;
}
.theme-night .invitation-content {
  text-shadow: 0 1px 12px #0007;
}
.theme-garden .scene-veil {
  background: #fff9ed18;
}
.type-modern {
  --serif: "Italiana", Georgia, serif;
}
.type-editorial {
  --serif: "Cormorant Garamond", Georgia, serif;
}
.type-classic {
  --serif: Georgia, serif;
}
.type-classic h1 {
  font-size: 10.5cqw;
}
.desktop .invitation-content {
  width: 60%;
  margin: auto;
  padding: 7% 5%;
  background: radial-gradient(ellipse, #fff9e985, transparent 70%);
}
.desktop .theme-night .invitation-content {
  background: radial-gradient(ellipse, #18171480, transparent 70%);
}
.desktop .invite-kicker {
  font-size: 1.35cqw;
}
.desktop .invitation h1 {
  font-size: 7.5cqw;
  margin: 4% 0;
}
.desktop .amp {
  display: inline;
  font-size: 4cqw;
  margin: 0 10px;
}
.desktop .invite-message {
  font-size: 2.1cqw;
}
.desktop .invite-date {
  font-size: 1.4cqw;
  margin-bottom: 2%;
}
.desktop .invite-venue {
  font-size: 2.2cqw;
}
.desktop .invite-time,
.desktop .recipient {
  font-size: 1.9cqw;
}
.desktop .recipient {
  margin-top: 5%;
}
.desktop .date-rule {
  margin: 4% 0;
}
.desktop .invite-secondary,
.desktop .invite-rsvp {
  font-size: 1.3cqw;
  margin-top: 2%;
}
.canvas-caption {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--serif);
  font-style: italic;
  color: #919685;
  font-size: 14px;
  flex-shrink: 0;
}
.canvas-caption > .icon {
  height: 13px;
  width: 13px;
}
.canvas-caption button {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  position: absolute;
  right: 25px;
  border-bottom: 1px solid #b8bcae;
  padding: 2px;
}
.canvas-caption button[aria-pressed="true"] {
  color: #2f5140;
}
.sequence {
  background: #fafbf7;
  border-top: 1px solid #dfe3d8;
  padding: 18px 32px 10px;
  flex-shrink: 0;
}
.sequence-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sequence-subtitle {
  font-size: 11px;
  color: #8f9685;
  display: block;
  margin-top: 6px;
}
.text-button {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.text-button .icon {
  width: 15px;
  height: 15px;
}
.sequence-track {
  display: flex;
  gap: 8px;
}
.moment {
  flex: 1;
  min-width: 0;
  border: 1px solid #dfe5d8;
  background: #edf1e7;
  padding: 10px;
  border-radius: 5px;
  text-align: left;
  position: relative;
}
.moment:nth-child(2) {
  background: #edf1ec;
}
.moment:nth-child(3) {
  background: #f3eee3;
}
.moment:nth-child(4) {
  background: #f4ebe7;
}
.moment.active {
  border-color: #738567;
  box-shadow: 0 0 0 1px #738567;
}
.moment strong {
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.moment strong .icon {
  width: 14px;
  height: 14px;
}
.moment small {
  display: block;
  font-size: 10px;
  color: #929787;
  margin-top: 6px;
}
.playback {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.playback .icon-button {
  width: 25px;
  height: 25px;
}
.playback .icon {
  width: 13px;
  height: 13px;
}
.playback input {
  flex: 1;
  height: 2px;
  accent-color: #5b7055;
}
.playback > span {
  font-size: 10px;
  color: #929888;
  min-width: 68px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #2f483e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 7px;
  box-shadow: 0 5px 22px #0002;
  font-size: 13px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 94px 350px minmax(0, 1fr);
  }
  .theme-thumb {
    height: 153px;
  }
  .canvas-stage {
    padding-top: 12px;
  }
  .canvas-toolbar {
    height: 84px;
  }
  .sequence {
    padding: 22px 42px 14px;
  }
  .moment {
    padding: 13px;
  }
  .canvas-caption {
    height: 50px;
  }
}
@media (max-width: 1120px) {
  .app-header {
    padding: 0 20px;
    gap: 18px;
  }
  .project-title {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .workspace {
    grid-template-columns: 70px 285px minmax(0, 1fr);
  }
  #panel-content {
    padding: 25px 18px;
  }
  .theme-thumb {
    height: 118px;
  }
  .canvas-toolbar {
    padding: 0 22px;
    gap: 10px;
  }
  .canvas-caption button {
    display: none;
  }
  .sequence {
    padding-left: 22px;
    padding-right: 22px;
  }
  .sequence-subtitle {
    display: none;
  }
  .moment strong {
    font-size: 10px;
    gap: 3px;
  }
  .moment strong .icon {
    display: none;
  }
}
@media (max-width: 800px) {
  .app-header {
    height: 68px;
    padding: 0 16px;
    gap: 14px;
  }
  .brand {
    font-size: 29px;
  }
  .studio-label,
  .header-divider,
  .draft-status {
    display: none;
  }
  .primary {
    padding: 10px 12px;
    font-size: 12px;
  }
  .workspace {
    height: auto;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
  }
  .canvas-area {
    order: 0;
    width: 100%;
    height: 650px;
  }
  .tool-rail {
    order: 1;
    width: 100%;
    flex-direction: row;
    padding: 7px 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    gap: 2px;
    position: sticky;
    top: 0;
    z-index: 10;
    justify-content: space-around;
  }
  .rail-button {
    width: auto;
    flex: 1;
    padding: 10px 4px;
    gap: 5px;
    font-size: 10px;
  }
  .rail-button .icon {
    width: 20px;
    height: 20px;
  }
  .rail-bottom {
    margin-top: 0;
  }
  .editor-panel {
    order: 2;
    width: 100%;
    min-height: 450px;
    border-right: 0;
    overflow: visible;
  }
  .panel-foot {
    justify-content: center;
  }
  #panel-content {
    padding: 25px;
    overflow: visible;
  }
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .theme-thumb {
    height: 180px;
  }
  .canvas-toolbar {
    height: 63px;
    padding: 0 19px;
  }
  .canvas-stage {
    padding: 3px 20px 10px;
  }
  .canvas-caption {
    height: 30px;
    font-size: 12px;
  }
  .sequence {
    padding: 13px 18px 8px;
  }
  .sequence-heading {
    margin-bottom: 10px;
  }
  .moment {
    padding: 8px;
  }
  .moment strong {
    font-size: 10px;
  }
  .moment small {
    font-size: 9px;
  }
  .canvas-area .eyebrow {
    font-size: 9px;
  }
  .design-name {
    font-size: 12px;
  }
  .view-switch button {
    padding: 6px 8px;
    font-size: 10px;
  }
  .view-switch .icon {
    width: 13px;
    height: 13px;
  }
  .expand-button {
    width: 25px;
  }
  .palette-row {
    gap: 15px;
  }
  .type-preview {
    max-width: 400px;
  }
}
@media (max-width: 420px) {
  .canvas-area {
    height: 635px;
  }
  .theme-thumb {
    height: 150px;
  }
  .theme-card strong {
    font-size: 11px;
  }
  .canvas-toolbar {
    gap: 8px;
  }
  .view-switch button {
    padding: 6px;
  }
  .canvas-stage {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sequence {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sequence-track {
    gap: 5px;
  }
  .moment {
    padding: 8px 6px;
  }
  .sequence-subtitle {
    display: none;
  }
}
/* Quiet, contextual editing controls. */
.collection-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: #8a8f7e;
  margin-top: 18px;
}
.refinements {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.refinements summary {
  list-style: none;
  font-size: 12px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.refinements summary::-webkit-details-marker {
  display: none;
}
.refinements summary .icon {
  width: 14px;
  height: 14px;
}
.refinements[open] summary .icon {
  transform: rotate(45deg);
}
.refinements > div {
  padding: 4px 0 10px;
}
.range-field {
  margin-top: 20px !important;
}
.range-field input {
  width: 100%;
  height: 4px;
  accent-color: var(--green);
  margin: 9px 0;
}
.range-field output {
  font-size: 11px;
  color: #8b907f;
  font-weight: 400;
}
.panel-preview {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eef1e9;
  color: #465840;
  font-size: 12px;
  border: 1px solid #e0e5d8;
  border-radius: 5px;
  padding: 11px;
}
.panel-preview:hover {
  background: #e2e9d9;
}
.panel-preview .icon {
  height: 14px;
  width: 14px;
}
.opening-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.opening-option {
  border: 1px solid var(--line);
  padding: 11px 9px;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  position: relative;
}
.opening-option.active {
  border-color: #71856a;
  background: #f2f4ed;
}
.opening-option > span:nth-child(2) {
  flex: 1;
}
.opening-option strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.opening-option small {
  display: block;
  font-size: 11px;
  color: #939789;
  line-height: 1.5;
  margin-top: 4px;
}
.opening-option > .icon {
  position: absolute;
  right: 7px;
  top: 6px;
  height: 10px;
  width: 10px;
}
.opening-mini {
  width: 49px;
  height: 54px;
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  perspective: 200px;
}
.opening-mini i {
  width: 40px;
  height: 30px;
  display: block;
  background: #eae0c8;
  border: 1px solid #c9bea5;
  box-shadow: 0 4px 6px #4a41281c;
}
.opening-mini b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 9px;
  position: absolute;
  color: #8c805f;
  letter-spacing: 0.2px;
}
.mini-envelope i {
  background:
    linear-gradient(
      30deg,
      transparent 48%,
      #c9bea5 49%,
      #c9bea5 50%,
      transparent 51%
    ),
    linear-gradient(-30deg, #e5d9bc 49%, #f1e6cd 50%);
}
.mini-fold i {
  height: 45px;
  width: 33px;
  transform: rotateY(-30deg);
  background: #f4eddb;
  border-left: 3px solid #cfc4ab;
}
.mini-scroll i {
  height: 42px;
  width: 29px;
  border-top: 4px solid #cfc2a5;
  border-bottom: 4px solid #cfc2a5;
}
.mini-scroll:after {
  content: "";
  height: 4px;
  width: 35px;
  background: #8f9b81;
  position: absolute;
  top: 28px;
  transform: rotate(-12deg);
}
.mini-veil i {
  border: 0;
  background: radial-gradient(ellipse, #b6c4ac, #f1efdf 72%);
  box-shadow: none;
  height: 46px;
}
.mini-none i {
  background: transparent;
  box-shadow: none;
  border: 1px solid #c4cbb9;
  width: 32px;
  height: 42px;
}
.recipient-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #98a18d;
  margin: -7px 0 22px;
}
.recipient-note .icon {
  width: 13px;
  height: 13px;
}
.layer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.layer-row {
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 2px 4px 2px 2px;
}
.layer-row.selected {
  border-color: #8e9b83;
  background: #f2f4ed;
}
.layer-select {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  flex: 1;
  padding: 10px 7px;
  min-width: 0;
}
.layer-select > .icon {
  width: 19px;
  height: 19px;
  color: #86957a;
}
.layer-select strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.layer-select small {
  font-size: 10px;
  color: #919986;
  display: block;
  margin-top: 4px;
}
.layer-visibility {
  width: 26px;
  height: 28px;
}
.layer-visibility .icon {
  width: 12px;
  height: 12px;
}
.layer-visibility[aria-pressed="false"] {
  opacity: 0.35;
}
.add-layer {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
.add-layer select {
  font-size: 12px;
  background: #fafbf6;
}
.add-button {
  border: 1px solid #dfe5d7;
  border-radius: 5px;
  width: 37px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #edf1e6;
}
.add-button .icon {
  width: 16px;
  height: 16px;
}
.layer-settings {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 17px;
}
.layer-settings-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.layer-settings-title h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
.layer-settings-title > div {
  display: flex;
  gap: 1px;
}
.layer-settings-title .icon-button {
  width: 24px;
  height: 27px;
}
.layer-settings-title .icon {
  width: 12px;
  height: 12px;
}
.layer-settings-title .remove {
  color: #a48678;
}
.layer-settings > .help-note {
  margin-top: 5px;
}
.effect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.effect-option {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px 8px;
  font-size: 11px;
}
.effect-option.active {
  border-color: #849576;
  background: #f1f4ea;
}
.effect-symbol {
  display: grid;
  place-items: center;
  height: 35px;
  width: 35px;
  color: #a88c6f;
}
.effect-symbol .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1;
}
.effect-hearts {
  color: #ba8e83;
}
.effect-leaves {
  color: #839577;
}
.effect-bubbles {
  color: #7d9b9c;
}
.effect-none {
  opacity: 0.4;
}
.empty-note {
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  color: #87917c;
  margin-top: 28px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.toggle-row strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.toggle-row span {
  display: block;
  font-size: 11px;
  color: #959b8c;
  margin-top: 5px;
}
.switch {
  width: 36px;
  height: 21px;
  border-radius: 20px;
  background: #d8ddd0;
  padding: 3px;
}
.switch i {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 100%;
  background: white;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.2s;
}
.switch.on {
  background: #5b7050;
}
.switch.on i {
  transform: translateX(15px);
}
.sound-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sound-option {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px;
  display: flex;
  align-items: center;
}
.sound-option.active {
  border-color: #889b7a;
  background: #f2f5ed;
}
.sound-option > button:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 7px 3px;
  text-align: left;
}
.sound-cover {
  display: grid;
  place-items: center;
  width: 34px;
  height: 45px;
  background: #e8ecdf;
  flex-shrink: 0;
  border-radius: 3px;
  color: #909c7e;
}
.sound-cover .icon {
  width: 18px;
  height: 18px;
}
.sound-option small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #9aa38d;
  display: block;
}
.sound-option strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}
.sound-option em {
  font-size: 10px;
  font-style: normal;
  color: #919b85;
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}
.sound-option .icon-button {
  width: 25px;
}
.sound-option .icon-button .icon {
  width: 12px;
  height: 12px;
}
/* Composition scales with the invitation, independently of the editor. */
.invitation {
  container-type: size;
}
.invitation h1 {
  font-size: calc(13.5cqw * var(--text-scale, 1));
}
.invitation.type-classic h1 {
  font-size: calc(10.5cqw * var(--text-scale, 1));
}
.invitation h1.emphasis-italic {
  font-style: italic;
}
.invitation h1[data-edit] {
  cursor: text;
  border-radius: 4px;
}
.invitation h1[data-edit]:hover {
  outline: 1px dashed #75866c55;
  outline-offset: 10px;
}
.invitation.align-left .invitation-content {
  align-items: flex-start;
  text-align: left;
}
.invitation.align-left .amp {
  padding-left: 12%;
}
.invitation.align-left h1 {
  padding-left: 0;
}
.desktop .invitation h1 {
  font-size: calc(7.5cqw * var(--text-scale, 1));
}
.desktop .invitation.type-classic h1 {
  font-size: calc(6cqw * var(--text-scale, 1));
}
.desktop .invitation.align-left .amp {
  padding-left: 0;
}
.scene-layer,
.celebration-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  container-type: size;
}
.celebration-layer {
  z-index: 4;
}
.flying-dove {
  position: absolute;
  top: 15%;
  left: -25%;
  width: 20%;
  filter: drop-shadow(0 6px 6px #293a3220);
  transform-origin: center;
  perspective: 200px;
}
.flying-dove svg {
  width: 100%;
  overflow: visible;
}
.dove-wing {
  transform-origin: 51px 59px;
}
.position-middle .flying-dove {
  top: 43%;
}
.position-lower .flying-dove {
  top: 76%;
}
.light-ray {
  position: absolute;
  top: -30%;
  left: 40%;
  height: 150%;
  width: 33%;
  background: linear-gradient(90deg, transparent, #fffbeab8 50%, transparent);
  filter: blur(17px);
  mix-blend-mode: soft-light;
  transform: rotate(-20deg);
  transform-origin: top;
}
.light-bloom {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 45%;
  background: radial-gradient(ellipse, #fff4c233, transparent 70%);
  mix-blend-mode: screen;
}
.water-glints {
  position: absolute;
  left: 0;
  right: 0;
  top: 64%;
  height: 30%;
  background: repeating-linear-gradient(
    176deg,
    transparent 0px,
    transparent 11px,
    #fff9df22 12px,
    transparent 13px,
    transparent 19px
  );
  mask-image: radial-gradient(ellipse at 70% 20%, #0009, transparent 70%);
  mix-blend-mode: screen;
}
.butterfly {
  position: absolute;
  width: 9%;
  top: 22%;
  left: 12%;
  filter: drop-shadow(0 2px 2px #8a75402b);
}
.butterfly svg {
  width: 100%;
  transform-origin: center;
}
.b-two {
  left: 72%;
  top: 30%;
  width: 7%;
}
.position-middle .butterfly {
  top: 45%;
}
.position-lower .butterfly {
  top: 78%;
}
.candle-glow {
  position: absolute;
  bottom: -5%;
  width: 40%;
  height: 35%;
  background: radial-gradient(ellipse, #ffbd664d, transparent 70%);
  mix-blend-mode: screen;
}
.glow-one {
  left: -8%;
}
.glow-two {
  right: -8%;
}
.drawn-border {
  position: absolute;
  inset: 7%;
  border: 1px solid currentColor;
  opacity: 0.6;
}
.wedding-rings {
  position: absolute;
  top: 8%;
  left: 43%;
  width: 14%;
  filter: drop-shadow(0 1px 1px #79634133);
}
.position-middle .wedding-rings {
  top: 43%;
}
.position-lower .wedding-rings {
  top: 81%;
}
.particle {
  position: absolute;
  top: 0;
  display: block;
  will-change: transform, opacity;
  pointer-events: none;
}
.particle svg {
  width: 100%;
  height: 100%;
}
.particle-sparkles {
  border-radius: 100%;
  background: #fff4d3;
  box-shadow: 0 0 8px 2px #eac57877;
}
.particle-confetti {
  background: currentColor;
  clip-path: polygon(15% 0, 70% 10%, 85% 100%, 30% 90%);
  height: 8px !important;
}
.particle-bubbles {
  border: 1px solid #fafdf599;
  border-radius: 50%;
  box-shadow:
    inset -2px -2px 3px #f8edd144,
    0 0 2px #82908166;
}
.layer-leaves {
  color: #899672 !important;
}
.motion-reduced .scene-layer,
.motion-reduced .celebration-layer {
  display: none;
}
.motion-reduced .fine-border {
  opacity: 0.3;
}
/* The first touch: paper, perspective, a seal and silk. */
.opening {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
  color: #6f684f;
  container-type: size;
}
.opening-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 25%, #fbf8f0, #e6e3d7);
  z-index: -1;
}
.opening-backdrop:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E");
}
.opening-object {
  position: relative;
  width: 79%;
  height: 39%;
  perspective: 1100px;
  transform-style: preserve-3d;
  margin-top: -8%;
}
.envelope-back {
  position: absolute;
  inset: 0;
  background: #d7c9aa;
  box-shadow: 0 16px 32px #564b382d;
  border-radius: 2px;
  z-index: 0;
}
.envelope-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    30deg,
    #eee5d0,
    #eee6d4 49%,
    #dbcfb7 49.5%,
    #ede4d0 50%
  );
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  z-index: 5;
  filter: drop-shadow(0 -1px 1px #4f44271a);
}
.envelope-front:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #f2ead7, #e7dec8);
  clip-path: polygon(0 100%, 50% 39%, 100% 100%);
}
.envelope-flap {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #f7f0e2, #e7dcc4);
  clip-path: polygon(0 0, 100% 0, 50% 59%);
  transform-origin: top;
  backface-visibility: visible;
  z-index: 7;
  filter: drop-shadow(0 2px 2px #7e705b3b);
}
.opening-paper {
  position: absolute;
  inset: 5% 5% 1%;
  background: linear-gradient(110deg, #fffdf6, #f5efdf);
  box-shadow:
    0 0 1px #8c795f45,
    0 2px 6px #5a47381a;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d3c7a76b;
  color: #706646;
}
.cover-small {
  font-family: var(--sans);
  font-size: 1.6cqw;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-align: center;
}
.cover-names {
  font-family: var(--serif);
  font-size: 8cqw;
  line-height: 1;
  text-align: center;
  margin: 6% 0;
}
.cover-names i {
  font-size: 4cqw;
  display: block;
  margin: 2%;
}
.cover-date {
  font-family: var(--sans);
  font-size: 1.5cqw;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-align: center;
  padding: 0 8%;
  line-height: 1.6;
}
.wax-seal {
  width: 15%;
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 8;
  transform: translate(-50%, -50%);
  border-radius: 48% 51% 46% 53%;
  background: radial-gradient(circle at 33% 25%, #a6b092, #7a886b 75%);
  box-shadow:
    inset 0 0 0 3px #b3bca075,
    inset 0 0 0 5px #72805e77,
    inset 0 -3px 5px #5b68416e,
    0 4px 6px #4a513736;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #e3e7d4;
  text-shadow: 0 -1px #596544;
  font-family: var(--serif);
  font-size: 3.8cqw;
}
.wax-seal i {
  font-size: 2.4cqw;
}
.fold-cover,
.scroll-top,
.scroll-bottom,
.ribbon {
  display: none;
}
.opening-caption {
  position: absolute;
  bottom: 15%;
  width: 100%;
  text-align: center;
  font-family: var(--serif);
  font-size: 4cqw;
  line-height: 1.8;
  color: #76765f;
}
.opening-caption i {
  font-size: 2.8cqw;
  color: #9b9b85;
}
.opening-fold .opening-object {
  height: 64%;
  width: 71%;
  margin-top: -4%;
}
.opening-fold .envelope-back,
.opening-fold .envelope-front,
.opening-fold .envelope-flap,
.opening-fold .wax-seal {
  display: none;
}
.opening-fold .opening-paper {
  inset: 0;
}
.opening-fold .fold-cover {
  display: flex;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    #e6dcc1,
    #f0e6cd 4%,
    #eee3c8 94%,
    #ddd1b2
  );
  z-index: 6;
  transform-origin: left;
  backface-visibility: visible;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 2px 6px #64523230;
  border-left: 3px solid #c2b493;
}
.cover-border {
  position: absolute;
  inset: 7%;
  border: 1px solid #b2a17680;
}
.cover-border:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #b2a17633;
}
.cover-monogram {
  font-family: var(--serif);
  font-size: 18cqw;
  font-weight: 400;
  line-height: 1.3;
  margin: 12% 0;
  color: #9d8960;
  text-shadow: 0 1px #fff6dc;
}
.cover-monogram i {
  font-size: 8cqw;
  display: block;
  text-align: center;
  line-height: 1;
}
.opening-fold .opening-caption {
  bottom: 7%;
}
.opening-scroll .opening-object {
  height: 62%;
  width: 70%;
  margin-top: -6%;
}
.opening-scroll .envelope-back,
.opening-scroll .envelope-front,
.opening-scroll .envelope-flap,
.opening-scroll .wax-seal {
  display: none;
}
.opening-scroll .opening-paper {
  inset: 0;
  background: linear-gradient(
    90deg,
    #e3d7bb,
    #f7eedb 10%,
    #f5eddd 85%,
    #ddd0b3
  );
}
.opening-scroll .scroll-top,
.opening-scroll .scroll-bottom {
  display: block;
  position: absolute;
  left: -3%;
  width: 106%;
  height: 5%;
  background: linear-gradient(#b6a887, #f8efdc 30%, #efe5cf 50%, #cabc9b);
  border-radius: 50%/15%;
  z-index: 4;
  box-shadow: 0 2px 5px #66513933;
}
.opening-scroll .scroll-top {
  top: 45%;
}
.opening-scroll .scroll-bottom {
  bottom: 45%;
}
.opening-scroll .ribbon {
  display: block;
  position: absolute;
  left: -4%;
  top: 50%;
  height: 8%;
  width: 108%;
  transform: translateY(-50%);
  background: linear-gradient(#a8b093, #8c9878 28%, #b9c1a4 70%, #949f80);
  z-index: 6;
  box-shadow: 0 3px 8px #5d643540;
}
.ribbon-knot {
  position: absolute;
  left: 43%;
  top: -75%;
  width: 15%;
  height: 200%;
  border: 6px solid #9ca886;
  border-radius: 55% 45% 30% 30%;
  transform: rotate(-24deg);
  box-shadow: 0 3px 3px #454c2730;
}
.ribbon-knot:after {
  content: "";
  position: absolute;
  width: 120%;
  height: 100%;
  left: 45%;
  top: 5%;
  border: 6px solid #a9b394;
  border-radius: 40% 65% 30% 30%;
  transform: rotate(65deg);
}
.opening-scroll .opening-caption {
  bottom: 7%;
}
.opening-veil .opening-object {
  display: none;
}
.opening-veil .opening-caption {
  bottom: 45%;
}
.opening-veil .opening-backdrop {
  background: radial-gradient(ellipse at 65% 35%, #fffef5, #e6e9d9);
}
.desktop .opening-object {
  width: 47%;
  height: 53%;
  margin-top: -1%;
}
.desktop .opening-caption {
  font-size: 2.5cqw;
  bottom: 8%;
}
.desktop .opening-caption i {
  font-size: 1.5cqw;
}
.desktop .cover-small {
  font-size: 1cqw;
}
.desktop .cover-names {
  font-size: 4cqw;
}
.desktop .cover-names i {
  font-size: 2cqw;
}
.desktop .cover-date {
  font-size: 0.85cqw;
}
.desktop .wax-seal {
  font-size: 2.4cqw;
}
.desktop .wax-seal i {
  font-size: 1.3cqw;
}
.desktop .opening-fold .opening-object,
.desktop .opening-scroll .opening-object {
  height: 78%;
  width: 34%;
  margin-top: 0;
}
.desktop .opening-fold .opening-caption,
.desktop .opening-scroll .opening-caption {
  display: none;
}
.desktop .cover-monogram {
  font-size: 8cqw;
}
.desktop .cover-monogram i {
  font-size: 4cqw;
}
.desktop .flying-dove {
  width: 13%;
}
.desktop .wedding-rings {
  width: 8%;
  left: 46%;
  top: 6%;
}
/* Immersive recipient preview, with native dialog keyboard and focus handling. */
#preview-dialog {
  border: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: #202b25;
  color: #dfe3d5;
  overflow: hidden;
}
#preview-dialog[open] {
  display: flex;
  flex-direction: column;
}
#preview-dialog::backdrop {
  background: #202b25;
}
.preview-top {
  height: 65px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #ffffff0c;
}
.preview-brand {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -1px;
}
.preview-top > span:nth-child(2) {
  font-family: var(--serif);
  font-style: italic;
  color: #9daa97;
  font-size: 16px;
}
.preview-top .icon-button {
  color: #b3bda9;
}
.preview-top .icon-button:hover {
  background: #ffffff12;
}
#recipient-stage {
  flex: 1;
  min-height: 0;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse, #40504133, transparent 70%);
}
.recipient-frame {
  box-shadow: 0 20px 90px #0005;
  overflow: hidden;
  flex-shrink: 0;
}
.recipient-frame.mobile {
  height: 100%;
  max-height: 850px;
  max-width: 100%;
  aspect-ratio: 2/3;
}
.recipient-frame.desktop {
  width: min(100%, 1080px);
  aspect-ratio: 1.5;
  max-height: 100%;
}
.preview-bottom {
  height: 65px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.ghost-light {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdc7b4;
  font-size: 12px;
}
.ghost-light:hover {
  color: #fff9df;
}
.ghost-light .icon {
  width: 15px;
  height: 15px;
}
@media (max-width: 800px) {
  .refinements {
    max-width: 500px;
  }
  .opening-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .layer-list {
    max-width: 600px;
  }
  .sound-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .preview-top {
    height: 54px;
    padding: 0 16px;
  }
  .preview-top > span:nth-child(2) {
    font-size: 13px;
  }
  .preview-brand {
    font-size: 24px;
  }
  #recipient-stage {
    padding: 10px;
  }
  .preview-bottom {
    height: 54px;
    gap: 24px;
  }
  .recipient-frame.mobile {
    max-height: calc(100vw * 1.5 - 20px);
    width: 100%;
    height: auto;
  }
  .recipient-frame.desktop {
    width: 100%;
  }
  .ghost-light {
    font-size: 11px;
  }
  .effect-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .collection-note {
    font-size: 14px;
  }
}
@media (max-width: 440px) {
  .opening-options {
    grid-template-columns: 1fr;
  }
  .sound-options {
    grid-template-columns: 1fr;
  }
  .preview-top > span:nth-child(2) {
    display: none;
  }
  .recipient-frame.mobile {
    max-height: 100%;
    width: 100%;
    aspect-ratio: 2/3;
  }
  .panel-intro {
    font-size: 14px;
  }
  label.field {
    font-size: 13px;
  }
  select,
  input[type="text"],
  input[type="date"],
  input[type="time"],
  textarea {
    font-size: 16px;
  }
  .opening-option strong {
    font-size: 14px;
  }
  .opening-option small {
    font-size: 12px;
  }
  .layer-select strong {
    font-size: 14px;
  }
  .layer-select small {
    font-size: 12px;
  }
  .help-note {
    font-size: 12px;
  }
  .refinements summary {
    font-size: 14px;
  }
  .effect-option {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .scene-layer,
  .celebration-layer {
    display: none;
  }
  .opening {
    display: none;
  }
}
.invite-date {
  text-transform: uppercase;
  font-size: 2.65cqw;
  letter-spacing: 0.14em;
}
.invite-kicker {
  font-size: 2.35cqw;
}
.invite-time,
.recipient {
  font-size: 3.5cqw;
}
.scene-veil {
  background: linear-gradient(
    180deg,
    #fff9e520 25%,
    #fffbed6b 60%,
    #e3ebe115 90%
  );
}
.theme-garden .scene-veil {
  background: #fff9ed20;
}
.theme-night .scene-veil {
  background: #18171448;
}
.invitation h1 {
  font-size: calc(13.5cqw * var(--text-scale, 1) * var(--name-fit, 1));
}
.invitation.type-classic h1 {
  font-size: calc(10.5cqw * var(--text-scale, 1) * var(--name-fit, 1));
}
.desktop .invitation h1 {
  font-size: calc(7.5cqw * var(--text-scale, 1) * var(--name-fit, 1));
}
.desktop .invitation.type-classic h1 {
  font-size: calc(6cqw * var(--text-scale, 1) * var(--name-fit, 1));
}
.invitation-content.compact {
  padding-top: 7%;
  padding-bottom: 8%;
}
.compact h1 {
  margin-top: 5%;
  margin-bottom: 4%;
}
.compact .date-rule {
  margin-top: 4%;
  margin-bottom: 4%;
}
.compact .recipient {
  margin-top: 4%;
}
.compact .invite-message {
  font-size: 3.4cqw;
}
.compact .invite-venue {
  font-size: 3.4cqw;
}
.compact .invite-secondary,
.compact .invite-rsvp {
  font-size: 2.6cqw;
}
.invitation-content.dense {
  padding: 6% 11%;
}
.dense .invite-kicker {
  font-size: 2.1cqw;
}
.dense .invite-message,
.dense .invite-venue {
  font-size: 3.2cqw;
}
.dense h1 {
  line-height: 0.93;
  margin: 4% 0 3%;
}
.dense .amp {
  font-size: 4.5cqw;
  margin: 2% 0;
}
.dense .invite-secondary,
.dense .invite-rsvp {
  margin-top: 2%;
  font-size: 2.4cqw;
}
.dense .date-rule {
  margin: 3% 0;
}
.dense .invite-date {
  margin-bottom: 2%;
}
.dense .recipient {
  margin-top: 3%;
  font-size: 3cqw;
}
.desktop .compact .invite-message,
.desktop .compact .invite-venue {
  font-size: 2cqw;
}
.desktop .compact .invite-secondary,
.desktop .compact .invite-rsvp {
  font-size: 1.2cqw;
}
.theme-garden .scene-veil {
  background: radial-gradient(
    ellipse at 50% 55%,
    #fffaf1ed 0%,
    #fffaf1b8 33%,
    #fffaf100 73%
  );
}
.position-upper .flying-dove {
  top: 3%;
}
