/* Kittens (kids' birthday): built from the Canva layout. Sizes are design pixels (the design is
   912 px wide), scaled to the screen with --p (1 design pixel). */
.theme-kittens {
  --p: calc(min(100vw, 480px) / 912);
  --ink: #6b4b84;
  --purple: #6c5380;
  --field: #806694;
  --gold: #ebcf6b;
  --lilac: #efeff4;
  --cream: #f5f3ee;
  --script: "Mea Culpa", "Pinyon Script", cursive;
  --caps: "Cormorant Garamond", Georgia, serif;
  --sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  background: #e7e4ec;
  color: var(--ink);
  font-family: var(--caps);
}
.kt { max-width: 480px; margin: 0 auto; background: var(--lilac); overflow: hidden; position: relative; }
.kt img { display: block; max-width: none; }
.kt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Absolute placement in design pixels */
.kt-blk { position: relative; }
.kt-abs { position: absolute; left: calc(var(--p) * var(--x)); top: calc(var(--p) * var(--y)); width: calc(var(--p) * var(--w)); }
.kt-t { margin: 0; text-align: center; font-size: calc(var(--p) * var(--fs)); line-height: calc(var(--p) * var(--lh)); font-weight: 400; }
.kt-t--caps { font-family: var(--caps); font-weight: 600; text-transform: uppercase; letter-spacing: .045em; }
.kt-t--sc { font-family: var(--sc); font-weight: 500; letter-spacing: .04em; }
.kt-t--script { font-family: var(--script); color: #77598e; }
.kt-t--place { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; color: #694883; }
.kt-link { display: block; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.kt-link:hover { opacity: .75; }

/* 1. Cover (video 1080 x 1920) */
.kt-cover { position: relative; aspect-ratio: 896 / 1920; background: #c7999a; }
/* The cover fills the whole screen, so nothing of the next section peeks in below the envelope */
@supports (height: 100svh) { .kt-cover { aspect-ratio: auto; height: 100svh; } }
.kt-cover__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #c7999a; }
.kt-cover__tap { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; color: #fff; font: 500 calc(var(--p) * 36) / 1 var(--caps); letter-spacing: .08em; }
.kt-cover__tap span { position: absolute; left: 0; right: 0; bottom: 11%; text-transform: uppercase; text-shadow: 0 1px 3px rgba(90, 40, 45, .55), 0 0 14px rgba(90, 40, 45, .35); animation: kt-pulse 2.4s ease-in-out infinite; }
@keyframes kt-pulse { 50% { opacity: .6; } }
body.is-open .kt-cover__tap { opacity: 0; pointer-events: none; transition: opacity .5s; }

/* 2. Photo */
.kt-photo img { width: 100%; height: auto; }

/* Paper */
.kt-lilac { background: var(--lilac) url("img/paper-lilac.webp") top center / 100% auto repeat-y; }
.kt-cream { background: var(--cream) url("img/paper-cream.webp") top center / 100% auto repeat-y; }
.kt-a { height: calc(var(--p) * 1480); }
.kt-b { height: calc(var(--p) * 1460); }
.kt-c { height: calc(var(--p) * 1425); }
.kt-cd b { font-weight: 500; }
.kt-cd { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* 6. Purple: RSVP and closing */
.kt-purple { background: var(--purple); color: #fff; }
.kt-d { height: calc(var(--p) * 850); }
.kt-t--title { font-family: var(--caps); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.kt-purple .kt-t--sc { color: #fff; }
.kt-form-wrap { padding: calc(var(--p) * 30) calc(var(--p) * 62) 0; }
.kt-form { display: block; margin: 0; padding: 0; background: none; box-shadow: none; }
.kt-field { display: block; margin: 0 0 calc(var(--p) * 68); padding: 0; border: 0; }
.kt-field > span, .kt-field > legend { display: block; padding: 0; margin: 0 0 calc(var(--p) * 24); font: 500 calc(var(--p) * 47) / calc(var(--p) * 62) var(--sc); letter-spacing: .04em; color: #fff; text-align: left; }
.kt-field input:not([type="radio"]), .kt-field textarea {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: calc(var(--p) * 22) calc(var(--p) * 22);
  border: 1.5px solid rgba(255, 255, 255, .72); border-radius: 0; background: var(--field); color: #fff;
  font: 500 max(16px, calc(var(--p) * 42)) / 1.3 var(--sc); letter-spacing: .03em; outline: none; -webkit-appearance: none; appearance: none;
}
.kt-field input:not([type="radio"]) { height: calc(var(--p) * 110); }
.kt-field textarea { height: calc(var(--p) * 210); resize: vertical; }
.kt-field textarea[name="message"] { height: calc(var(--p) * 236); }
.kt-field input::placeholder, .kt-field textarea::placeholder { color: rgba(255, 255, 255, .4); }
.kt-field input:focus, .kt-field textarea:focus { border-color: #fff; background: #8a70a0; }
.kt-choice label { display: flex; align-items: center; gap: calc(var(--p) * 16); margin: 0; font: 500 calc(var(--p) * 47) / calc(var(--p) * 64) var(--sc); letter-spacing: .04em; color: #fff; cursor: pointer; }
.kt-choice input { -webkit-appearance: none; appearance: none; flex: none; width: calc(var(--p) * 42); height: calc(var(--p) * 42); margin: 0; border: 1.5px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.kt-choice input:checked { background: radial-gradient(circle, #fff 0 45%, transparent 50%); }
.kt-choice input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.kt-choice input:not(:checked) + span { opacity: .55; }
.kt-form:not(:has(input[name="attending"]:checked)) .kt-choice span { opacity: 1; }
.kt-form.is-no .inv-if-yes { display: none; }
.kt-status { min-height: 0; margin: 0 0 calc(var(--p) * 12); color: var(--gold); font: 500 calc(var(--p) * 32) / 1.3 var(--sc); text-align: center; }
.kt-status:empty { margin: 0; }
.kt-send {
  display: flex; align-items: center; justify-content: center; gap: calc(var(--p) * 26); width: 100%; height: calc(var(--p) * 112); margin: 0;
  border: 0; border-radius: 0; background: #f7f5f1; color: var(--ink); cursor: pointer;
  font: 600 calc(var(--p) * 40) / 1 var(--caps); text-transform: uppercase; letter-spacing: .1em;
}
.kt-send svg { width: calc(var(--p) * 40); height: calc(var(--p) * 40); }
.kt-send:disabled { opacity: .7; }
.kt-reveal { padding: calc(var(--p) * 40) 0; color: #fff; text-align: center; }
.kt-reveal .inv-reveal__title { margin: 0; font: 400 calc(var(--p) * 96) / 1.2 var(--script); color: var(--gold); }

.kt-e { height: calc(var(--p) * 1913); }
.kt-t--gold { font-family: var(--script); color: var(--gold); }
.kt-t--sign { font-family: var(--caps); font-weight: 500; letter-spacing: .08em; color: #fff; }
.kt-credit { font-family: var(--sc); font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .85); }
.kt-credit a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }

/* Music button */
.kt-sound { position: fixed; z-index: 20; bottom: 16px; right: max(16px, calc(50vw - 240px + 16px)); width: 42px; height: 42px; padding: 9px;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(108, 83, 128, .55); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.kt-sound[hidden] { display: none; }
.kt-sound svg { width: 100%; height: 100%; display: block; }
.kt-sound .kt-sound__off, .kt-sound.is-muted .kt-sound__on { display: none; }
.kt-sound.is-muted .kt-sound__off { display: block; }

@media (prefers-reduced-motion: reduce) { .kt-cover__tap span { animation: none; } }
