/* Общие стили: обложка приглашения, конверт, телефон. Используются на обеих страницах. */

/* ---------- обложка приглашения ---------- */
.cover {
  position: relative; container-type: inline-size; aspect-ratio: 390 / 844; width: 100%;
  background: var(--bg); color: var(--ink); overflow: hidden;
  font-family: var(--serif), 'Cormorant Garamond', serif;
}
.cover::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .35  0 0 0 0 .3  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cv-orn { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.cv-text {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 13cqw;
}
.cv-pre { font-size: 3.1cqw; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 5cqw; opacity: .85; line-height: 1.6; max-width: 62cqw; }
.cv-names {
  font-family: var(--script), 'Great Vibes', cursive; color: var(--acc); font-weight: 400;
  font-size: calc(14cqw * var(--ns, 1)); line-height: 1.02; display: flex; flex-direction: column; align-items: center;
}
.cv-names em { font-style: normal; font-size: .5em; opacity: .75; margin: .08em 0 .02em; }
.cv-date { font-size: 4.4cqw; letter-spacing: .22em; margin-top: 6cqw; font-weight: 500; }
.cv-city { font-size: 3cqw; letter-spacing: .32em; text-transform: uppercase; margin-top: 2.4cqw; opacity: .75; }

.cv-top .cv-text { justify-content: flex-start; padding-top: 40cqw; }
.cv-frame .cv-text { padding: 0 21cqw; }
.cv-frame .cv-pre { font-size: 2.7cqw; }
.cv-arch .cv-text { padding: 10cqw 21cqw 0; }
.cv-arch .cv-pre { font-size: 2.7cqw; }
.cv-mono .cv-text { justify-content: flex-start; padding-top: 104cqw; }
.cv-mono .cv-mono { position: absolute; left: 50%; top: 64cqw; transform: translate(-50%, -50%); font-family: 'Great Vibes', cursive; font-size: 17cqw; color: var(--acc); white-space: nowrap; }
.cv-mono .cv-names { font-family: var(--serif), serif; font-size: 8cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.cv-mono .cv-names em { font-family: 'Great Vibes', cursive; text-transform: none; font-size: 1.2em; color: var(--acc); }
.cv-bold .cv-text { align-items: flex-start; text-align: left; padding: 0 10cqw; }
.cv-bold .cv-names { align-items: flex-start; font-size: 15cqw; font-weight: 600; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; }
.cv-bold .cv-names em { font-style: italic; text-transform: lowercase; font-weight: 400; }
.cv-bold .cv-date { font-size: 9cqw; letter-spacing: .02em; font-weight: 600; }
.cv-bold .cv-pre { max-width: none; }

/* ---------- телефон ---------- */
.phone {
  position: relative; aspect-ratio: 390 / 844; background: #111; border-radius: 15% / 7%;
  padding: 3%; container-type: inline-size;
  box-shadow: inset 0 0 0 1.5px #3d3d3d, 0 30px 60px -24px rgba(60, 30, 20, .45), 0 10px 20px -10px rgba(0, 0, 0, .35);
}
.phone::after {
  content: ''; position: absolute; top: 4.4%; left: 50%; width: 29%; height: 3.1%; transform: translateX(-50%);
  background: #111; border-radius: 99px; z-index: 5; pointer-events: none;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: #fff; }
.phone-screen .cover { height: 100%; aspect-ratio: auto; }
.phone-screen iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; background: transparent; }
