* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #292923;
  background: #f7f4ed;
  font-family: Georgia, "Times New Roman", serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
.button {
  display: inline-block;
  border: 1px solid #30392f;
  background: #30392f;
  color: #fffdf6;
  padding: 14px 24px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}
button:hover,
.button:hover {
  filter: brightness(1.12);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8d7046;
  outline-offset: 5px;
}
.secondary {
  background: transparent;
  color: #30392f;
  border-color: #a8ac9c;
}
.quiet {
  background: transparent;
  color: inherit;
  border: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.2;
}
h1 {
  font-size: clamp(32px, 4vw, 54px);
}
h2 {
  font-size: clamp(28px, 3vw, 40px);
}
p {
  line-height: 1.75;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9cbbf;
  border-radius: 2px;
  background: #fffdf8;
  color: #292923;
  padding: 13px;
  margin: 7px 0 20px;
}
label {
  font:
    13px/1.5 Arial,
    sans-serif;
  display: block;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 14px 0 24px;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-grid > div {
  min-width: 0;
}
.eyebrow {
  font:
    10px/1.6 Arial,
    sans-serif;
  letter-spacing: 0.28em;
}
.notice {
  background: #e9eee2;
  border-left: 3px solid #687a56;
  padding: 16px;
  line-height: 1.6;
}
.validation-summary-errors {
  color: #932f28;
  font:
    14px/1.6 Arial,
    sans-serif;
}
.validation-summary-valid {
  display: none;
}
.invitation {
  --ink: #292923;
  --accent: #6e725e;
  color: var(--ink);
}
.palette-sage {
  --ink: #354538;
  --accent: #637a5b;
}
.scene {
  position: relative;
  height: 100svh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee9df;
  overflow: hidden;
  isolation: isolate;
}
.scene[hidden] {
  display: none;
}
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 10;
}
.skip:focus-visible {
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  margin: 0;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 16px;
  background: #fffdf4;
  color: #292923;
  border: 1px solid #8c8578;
  font:
    14px/1.2 Arial,
    sans-serif;
}
.envelope {
  container-type: inline-size;
  display: block;
  position: relative;
  width: min(86vw, 1220px);
  height: auto;
  aspect-ratio: 1000/560;
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: none;
  color: #282721;
  font-family: Georgia, "Times New Roman", serif;
  perspective: 1800px;
  box-shadow:
    0 34px 40px -22px #40332370,
    0 4px 7px #55453065;
  transform: translateY(2%) rotateX(var(--depth-x, 0deg))
    rotateY(var(--depth-y, 0deg));
  transition:
    transform 0.25s ease-out,
    opacity 0.6s;
  isolation: isolate;
}
.envelope:hover {
  filter: none;
}
.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d2c7b5, #eee6d6 45%, #c4b8a5);
  border: 1px solid #d0c6b5;
  border-radius: 3px;
}
.pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.pocket svg {
  width: 100%;
  height: 100%;
}
.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62.5%;
  transform-origin: top center;
  z-index: 5;
  filter: drop-shadow(0 9px 6px #594c3f40);
  transition: transform 0.9s 0.18s cubic-bezier(0.45, 0, 0.55, 1);
  backface-visibility: visible;
}
.flap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.seal {
  position: absolute;
  z-index: 6;
  left: 44%;
  top: 40%;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #c6c1b1;
  background: radial-gradient(
    ellipse at 35% 25%,
    #363735,
    #171917 60%,
    #080a09
  );
  box-shadow:
    0 3px 1px #070907,
    0 7px 10px #27221b50,
    inset 2px 3px 3px #74746a,
    inset -2px -3px 3px #080909;
  border: 5px solid #222421;
  transition:
    opacity 0.3s,
    transform 0.4s;
}
.seal:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #5d5e54;
  box-shadow:
    0 0 0 2px #111510,
    inset 0 1px 3px #000;
  border-radius: 50%;
}
.seal > span {
  font-size: 2.7cqw;
  letter-spacing: 0.12em;
  margin-top: 8%;
  text-shadow: 0 1px #000;
}
.seal svg {
  width: 65%;
  height: 25%;
  opacity: 0.8;
}
.envelope-inscription {
  position: absolute;
  z-index: 4;
  top: 68%;
  left: 4%;
  width: 92%;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.couple {
  font-size: 3.5cqw;
  letter-spacing: 0.22em;
  line-height: 1.3;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.ampersand {
  padding: 0 0.3em;
}
.divider {
  width: 25%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.8cqw 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: #aaa18f;
  flex: 1;
}
.divider span {
  font-size: 1.5cqw;
}
.envelope-date {
  text-transform: uppercase;
  font-size: 1.6cqw;
  letter-spacing: 0.32em;
}
.embossed {
  position: absolute;
  right: 4%;
  bottom: 4%;
  color: #e2d9c9;
  text-shadow:
    1px 1px #fff8,
    -1px -1px #b7ad9840;
  font-size: 5cqw;
  z-index: 4;
}
.letter {
  position: absolute;
  left: 7%;
  top: 4%;
  width: 86%;
  height: 90%;
  background: #fffdf4;
  border: 1px solid #d9d0bd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8%;
  box-shadow: 0 0 8px #40332325;
  z-index: 2;
  transition: transform 0.8s 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.letter-names {
  font-size: 3.5cqw;
  letter-spacing: 0.1em;
}
.letter-names i {
  display: block;
  font-size: 3cqw;
  margin: 12px;
}
.letter-flower {
  font-size: 4cqw;
  color: #7a7d63;
}
.opening .seal {
  opacity: 0;
  transform: scale(0.85) translateY(15px);
}
.opening .flap {
  transform: rotateX(180deg);
  z-index: 5;
  animation: flap-stack 0s 0.63s forwards;
}
.opening .letter {
  transform: translateY(-60%);
  z-index: 2;
}
.opening .envelope {
  transform: translateY(12%);
  transition: transform 1.4s ease;
}
.opening .envelope-inscription {
  transition: opacity 0.35s 1.1s;
  opacity: 0;
}
.sealed .invitation-content {
  display: none;
}
.invitation-content {
  background: #faf8f1;
  outline: 0;
  overflow-wrap: anywhere;
}
.invitation-content > * {
  position: relative;
  z-index: 9;
}
.invite-intro {
  text-align: center;
  max-width: 780px;
  margin: auto;
  padding: 100px 28px 75px;
}
.flourish {
  color: var(--accent);
  font-size: 42px;
  margin: 28px 0;
}
.invite-intro h1 {
  letter-spacing: 0.12em;
  font-size: clamp(30px, 5vw, 62px);
  margin: 22px 0 30px;
}
.invite-intro h1 em {
  display: block;
  font-size: 38px;
  margin: 14px;
  color: var(--accent);
}
.invitation-copy {
  font-size: 19px;
  line-height: 1.9;
  max-width: 550px;
  margin: 0 auto 35px;
}
.date-block {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  line-height: 1.8;
}
.date-block > span {
  font-size: 60px;
  border-right: 1px solid #bab9a6;
  padding-right: 20px;
  line-height: 1;
}
/* Kına saat notu: tarih bloğunun büyük harf düzeninden ayrılır, okunaklı kalır. */
.date-block .kina-note {
  text-transform: none;
  letter-spacing: normal;
  font-size: 12px;
  opacity: 0.85;
}
.occasion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 760px;
  margin: 36px auto 0;
  justify-items: center;
}
.occasion-grid-pair {
  width: min(100%, 760px);
}
@media (min-width: 720px) {
  .occasion-grid-pair {
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
    align-items: start;
  }
}
.occasion-cell {
  display: grid;
  justify-items: center;
  min-width: 0;
}
.occasion-label {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kina-venue {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.scroll-next {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 16;
  display: none;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fffaf3;
  text-decoration: none;
  transform: translateX(-50%);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 38%, transparent);
  animation: scroll-nudge 2.4s ease-in-out infinite;
}
.revealed .scroll-next {
  display: grid;
}
.scroll-next svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fffaf3;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-next.is-away {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes scroll-nudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(3px);
  }
}
.venue-section {
  background: #eaece2;
  text-align: center;
  padding: 70px 25px;
}
.venue-place + .venue-place {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #a6ad96;
}
.venue-section p {
  max-width: 600px;
  margin: 16px auto;
}
.venue-service-note {
  max-width: 480px;
  margin: 28px auto 0;
  padding: 20px 12px 4px;
  border-top: 1px solid #a6ad96;
}
.venue-service-note h3 {
  margin: 0;
  color: #58634a;
  font: 10px Arial, sans-serif;
  letter-spacing: 0.2em;
}
.venue-service-note p {
  margin: 12px auto;
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.venue-section .button {
  margin-top: 18px;
}
.schedule-section {
  max-width: 660px;
  margin: auto;
  padding: 80px 28px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  position: relative;
  min-width: 0;
  padding: 0 0 40px 28px;
}
.timeline li > * {
  min-width: 0;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: -8px;
  border-left: 1px solid #c6c1b5;
}
.timeline li::after {
  position: absolute;
  top: 6px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #4a463c;
  content: "";
}
.timeline li:last-child:before {
  bottom: 24px;
}
.timeline .schedule-time {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: baseline;
}
.timeline time {
  padding-top: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #3f3d36;
}
.timeline .schedule-time time:first-child {
  flex-basis: 100%;
}
.timeline h3 {
  font-size: clamp(28px, 6vw, 40px);
  margin: 4px 0 0;
}
.timeline h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 14px 0 0;
  background: var(--accent);
  opacity: 0.75;
}
.timeline p {
  margin: 14px 0 0;
  font-size: 16px;
  color: #65665b;
}
.closing {
  text-align: center;
  padding: 65px 25px 75px;
  background: #eeeae0;
}
.closing > span {
  font-size: 36px;
  color: var(--accent);
}
.closing p {
  max-width: 470px;
  margin: 24px auto;
}
.closing h2 {
  font-size: 27px;
  letter-spacing: 0.13em;
}
.closing small {
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 0.18em;
}
.preview-banner {
  position: relative;
  background: #30392f;
  color: white;
  text-align: center;
  padding: 12px;
  font:
    12px/1.5 Arial,
    sans-serif;
  z-index: 20;
}
.preview-banner a {
  margin-left: 14px;
}
.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fffdf6;
  color: #30392f;
}
.music-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.music-toggle::after {
  position: absolute;
  width: 29px;
  height: 1.5px;
  background: currentColor;
  content: "";
  opacity: 1;
  transform: rotate(-45deg) scaleX(1);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.music-toggle[aria-pressed="true"]::after {
  opacity: 0;
  transform: rotate(-45deg) scaleX(0.55);
}
.panel {
  background: #fffdf8;
  border: 1px solid #dedfd3;
  padding: 28px;
  margin: 24px 0;
  border-radius: 5px;
}
.login {
  max-width: 440px;
  margin: 12vh auto;
  padding: 35px;
}
.login h1 {
  font-size: 38px;
}
.login form {
  margin: 30px 0;
}
.login button {
  width: 100%;
}
.admin {
  font-family: Arial, sans-serif;
  background: #f4f4ee;
  color: #30382f;
}
.admin h1,
.admin h2 {
  font-family: Georgia, serif;
}
.admin h1 {
  font-size: 38px;
}
.admin h2 {
  font-size: 26px;
}
.admin p {
  font-size: 14px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid #d9dccf;
  background: #fffdf8;
}
.brand {
  font:
    26px Georgia,
    serif;
  text-decoration: none;
}
.brand span {
  font:
    11px Arial,
    sans-serif;
  margin-left: 20px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  max-width: 1440px;
  margin: auto;
}
.admin nav {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin nav a {
  font-size: 13px;
  padding: 13px 12px;
  text-decoration: none;
  border-radius: 3px;
}
.admin nav a:hover {
  background: #e6e9de;
}
.admin-main {
  padding: 32px 40px;
  min-width: 0;
  max-width: 1100px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.record {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e5e6dc;
  overflow-wrap: anywhere;
}
.record:last-child {
  border-bottom: 0;
}
.record small {
  font-size: 11px;
  color: #707668;
}
.record p {
  margin: 7px 0;
}
.record button {
  padding: 10px 14px;
}
.record > div {
  min-width: 0;
}
@media (max-width: 800px) {
  .envelope {
    width: 90vw;
    aspect-ratio: 1000/680;
  }
  .flap {
    height: 59%;
  }
  .seal {
    top: 39%;
    left: 42.5%;
    width: 15%;
  }
  .envelope-inscription {
    top: 67%;
  }
  .couple {
    font-size: 4.3cqw;
    letter-spacing: 0.13em;
  }
  .envelope-date {
    font-size: 2.1cqw;
  }
  .divider {
    margin: 1cqw 0;
  }
  .divider span {
    font-size: 2cqw;
  }
  .seal > span {
    font-size: 3.4cqw;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    border-bottom: 1px solid #d9dccf;
  }
  .admin-main {
    padding: 24px;
  }
  .brand span {
    font-size: 10px;
    margin-left: 10px;
  }
}
@media (max-width: 480px) {
  .envelope {
    width: 91vw;
    aspect-ratio: 1000/850;
    transform: translateY(3%);
  }
  .flap {
    height: 56%;
  }
  .seal {
    top: 38%;
    width: 19%;
    left: 40.5%;
    border-width: 3px;
  }
  .seal > span {
    font-size: 4.4cqw;
  }
  .envelope-inscription {
    top: 65%;
  }
  .couple {
    font-size: 5cqw;
    letter-spacing: 0.11em;
  }
  .envelope-date {
    font-size: clamp(11px, 3.2cqw, 14px);
  }
  .divider {
    width: 35%;
    margin: 1.6cqw 0;
  }
  .divider span {
    font-size: 2.6cqw;
  }
  .embossed {
    font-size: 8cqw;
  }
  .letter .eyebrow {
    font-size: 7px;
  }
  .letter-names {
    font-size: 5cqw;
  }
  .letter > span:not(.letter-names):not(.eyebrow) {
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .invite-intro {
    padding-top: 65px;
  }
  .record {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel {
    padding: 20px;
  }
  .login {
    margin: 8vh 18px;
  }
  .admin-header {
    padding: 18px;
  }
  .brand span {
    display: none;
  }
  .admin-main {
    padding: 20px;
  }
  .admin h1 {
    font-size: 32px;
  }
  .preview-banner {
    font-size: 10px;
  }
  .opening .letter {
    transform: translateY(-45%);
  }
}

@keyframes scene-exit {
  to {
    opacity: 0;
    transform: translateY(12%) scale(1.035);
  }
}
@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.opening .envelope {
  animation: scene-exit 0.25s 1.45s forwards;
}
.revealed .invitation-content {
  animation: content-enter 0.3s ease-out;
}

@keyframes flap-stack {
  to {
    z-index: 1;
  }
}

/* Scene coordinates are measured in JavaScript; the overlay never takes input. */
.scene-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
  fill: none;
  stroke: #5a5145;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene-arrow[data-state="hidden"],
.opening .scene-arrow,
.revealed .scene-arrow {
  visibility: hidden;
  opacity: 0;
}
.scene-arrow-head {
  opacity: 0;
}
.seal::after {
  content: "";
  position: absolute;
  inset: -10%;
  border: 1px solid #a8997c;
  border-radius: 50%;
  opacity: 0;
}
.sealed:not(.opening) .seal::after {
  animation: seal-breathe 3.6s ease-in-out infinite;
}
.envelope:active:not([aria-expanded="true"]) .seal {
  transform: translateY(2px) scale(0.96);
}
.scene::before,
.scene::after {
  content: "";
  position: absolute;
  inset: -2%;
  pointer-events: none;
  z-index: -1;
}
.scene::before {
  background: url("/assets/reference/background.jpg") center/cover no-repeat;
}
.sealed .scene::before {
  animation: shadow-drift 16s ease-in-out infinite alternate;
}
.opening .scene::before {
  animation-play-state: paused;
}
.scene::after {
  background: radial-gradient(ellipse at 50% 45%, #fffdf4e6, #fffdf400 75%);
  opacity: 0;
  transition: opacity 1.2s 0.3s ease;
}
.opening .scene::after {
  opacity: 0.65;
}
@keyframes shadow-drift {
  from {
    transform: translate(-0.3%, 0) rotate(-0.2deg);
  }
  to {
    transform: translate(0.3%, 0.5%) rotate(0.2deg);
  }
}
@keyframes seal-breathe {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.42;
    transform: scale(1.04);
  }
}
.invitation[data-motion="false"] *,
.invitation[data-motion="false"] *::before,
.invitation[data-motion="false"] *::after {
  animation: none !important;
  transition: none !important;
}

/* CSS latex from the supplied ivory prototype; a viewport sky survives reveal. */
.balloon-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
  visibility: hidden;
}
.latex-balloon {
  position: absolute;
  bottom: -80px;
  width: 130px;
  opacity: 0;
  transform-origin: 50% 100%;
  filter: drop-shadow(8px 12px 12px #59453328);
  --viewport-scale: 1;
}
.latex-balloon[data-side="left"] {
  left: var(--edge);
}
.latex-balloon[data-side="right"] {
  right: var(--edge);
}
.latex-balloon:nth-child(1) {
  --edge: 3%;
  --scale: 0.86;
  --duration: 6.2s;
  --delay: 0s;
  --tilt: -7deg;
  --drift: -16px;
  --lite: #fffaf3;
  --mid: #e8ddd0;
  --dark: #c4b09a;
}
.latex-balloon:nth-child(2) {
  --edge: 3%;
  --scale: 0.88;
  --duration: 6.4s;
  --delay: 0.04s;
  --tilt: 7deg;
  --drift: 16px;
  --lite: #f7f1ea;
  --mid: #e2d4c4;
  --dark: #b79f88;
}
.latex-balloon:nth-child(3) {
  --edge: 14%;
  --scale: 0.72;
  --duration: 7s;
  --delay: 0.16s;
  --tilt: 4deg;
  --drift: 10px;
  --lite: #fff6ee;
  --mid: #eadccb;
  --dark: #c9b49d;
}
.latex-balloon:nth-child(4) {
  --edge: 14%;
  --scale: 0.74;
  --duration: 6.8s;
  --delay: 0.2s;
  --tilt: -4deg;
  --drift: -10px;
  --lite: #f4ebe3;
  --mid: #dccfc0;
  --dark: #a8927c;
}
.latex-balloon:nth-child(5) {
  --edge: 7%;
  --scale: 0.82;
  --duration: 6.4s;
  --delay: 2s;
  --tilt: -6deg;
  --drift: -12px;
  --lite: #fbf6f0;
  --mid: #e6d8c8;
  --dark: #c0ab95;
}
.latex-balloon:nth-child(6) {
  --edge: 7%;
  --scale: 0.84;
  --duration: 6.6s;
  --delay: 2.02s;
  --tilt: 6deg;
  --drift: 12px;
  --lite: #fffaf3;
  --mid: #e8ddd0;
  --dark: #c4b09a;
}
.latex-balloon:nth-child(7) {
  --edge: 18%;
  --scale: 0.68;
  --duration: 7.2s;
  --delay: 2.1s;
  --tilt: 5deg;
  --drift: 8px;
  --lite: #f7f1ea;
  --mid: #e2d4c4;
  --dark: #b79f88;
}
.latex-balloon:nth-child(8) {
  --edge: 18%;
  --scale: 0.7;
  --duration: 7s;
  --delay: 2.14s;
  --tilt: -5deg;
  --drift: -8px;
  --lite: #fff6ee;
  --mid: #eadccb;
  --dark: #c9b49d;
}
.latex-balloon:nth-child(9) {
  --edge: 0%;
  --scale: 0.76;
  --duration: 7.6s;
  --delay: 2.3s;
  --tilt: -8deg;
  --drift: -16px;
  --lite: #f4ebe3;
  --mid: #dccfc0;
  --dark: #a8927c;
}
.latex-balloon-sway {
  transform-origin: 50% 100%;
}
.celebrating .balloon-layer {
  visibility: visible;
}
.celebrating .latex-balloon {
  animation: latex-balloon-rise var(--duration) var(--delay) linear infinite
    both;
}
.celebrating .latex-balloon-sway {
  animation: latex-balloon-sway calc(var(--duration) / 2) var(--delay)
    ease-in-out infinite;
}
.celebrating .latex-balloon-string {
  animation: latex-balloon-string calc(var(--duration) / 3) var(--delay)
    ease-in-out infinite;
}
.latex-balloon-body {
  position: relative;
  width: 130px;
  height: 118px;
  background:
    radial-gradient(
      ellipse 26% 24% at 28% 28%,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.28) 38%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 16% 14% at 70% 30%,
      rgba(255, 255, 255, 0.22),
      transparent 70%
    ),
    radial-gradient(
      ellipse 90% 90% at 50% 40%,
      var(--lite) 0%,
      var(--mid) 42%,
      var(--dark) 100%
    );
  box-shadow:
    inset -18px -16px 28px color-mix(in srgb, var(--dark) 55%, #000 45%),
    inset 12px 16px 22px rgba(255, 255, 255, 0.16);
  clip-path: path(
    "M65 116 C12 78 -6 36 26 14 C40 2 54 8 65 30 C76 8 90 2 104 14 C136 36 118 78 65 116 Z"
  );
}

.latex-balloon-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
}

.latex-balloon-knot {
  width: 16px;
  height: 12px;
  margin: -4px auto 0;
  background: linear-gradient(180deg, var(--mid), var(--dark));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: brightness(0.85);
}

.latex-balloon-string {
  width: 2px;
  height: 90px;
  margin: 0 auto;
  background: linear-gradient(
    color-mix(in srgb, #a8927c 78%, transparent),
    transparent
  );
  transform-origin: top;
}

@keyframes latex-balloon-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 110px, 0) rotate(0deg)
      scale(calc(var(--scale) * var(--viewport-scale)));
  }
  6% {
    opacity: 0.78;
    transform: translate3d(0, -150px, 0) rotate(0deg)
      scale(calc(var(--scale) * var(--viewport-scale)));
  }
  78% {
    opacity: 0.64;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), calc(-100vh - 280px), 0)
      rotate(var(--tilt)) scale(calc(var(--scale) * var(--viewport-scale)));
  }
}
@keyframes latex-balloon-sway {
  50% {
    transform: translateX(8px) rotate(2deg);
  }
}
@keyframes latex-balloon-string {
  50% {
    transform: rotate(-6deg);
  }
}
@media (max-width: 600px) {
  .latex-balloon {
    --viewport-scale: 0.72;
  }
  .latex-balloon[data-side="left"] {
    left: calc(var(--edge) * 0.2 - 6px);
  }
  .latex-balloon[data-side="right"] {
    right: calc(var(--edge) * 0.2 - 6px);
  }
}
.invitation[data-motion="false"] .balloon-layer {
  display: none;
}

.timeline time small {
  font: inherit;
  letter-spacing: 0.04em;
}
.timeline li:not(:last-child) .schedule-body {
  position: relative;
  padding-bottom: 36px;
  margin-bottom: 8px;
  border-bottom: 1px solid #d8d3c8;
}
.timeline li:not(:last-child) .schedule-body::after {
  content: "♡";
  position: absolute;
  left: 50%;
  bottom: -0.7em;
  transform: translateX(-50%);
  padding: 0 10px;
  background: #f7f4ed;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}
.timeline .schedule-place {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.timeline .schedule-pin {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timeline .schedule-location {
  margin: 0;
  color: #42443b;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.timeline .schedule-route {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 6px 0 0;
  padding: 12px 18px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .schedule-section {
    padding: 56px 22px;
  }
}


.kina-editor {
  margin-block: 32px;
  padding-top: 8px;
  border-top: 1px solid #d8d3c8;
}
.kina-editor h2 {
  font-size: 22px;
}
.family-editor {
  margin-block: 32px;
}
.family-editor fieldset {
  min-width: 0;
  margin: 24px 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid #d8d3c8;
}
.family-editor legend {
  padding-right: 16px;
  font-size: 22px;
}
.family-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 28px;
  border-top: 1px solid #d8d3c8;
}
.family-section > .eyebrow {
  text-align: center;
  margin-bottom: 32px;
}
.family-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}
.family-group {
  min-width: 0;
}
.family-group h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 400;
}
.family-contact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 12px;
  padding: 16px 0;
  border-top: 1px solid #d8d3c8;
}
.family-role {
  font:
    11px/1.8 Arial,
    sans-serif;
  color: var(--accent);
}
.family-name {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.family-contact a {
  grid-column: 2;
  justify-self: start;
  max-width: 100%;
  padding: 8px 0;
  font:
    14px/1.6 Arial,
    sans-serif;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .family-section {
    padding: 40px 24px;
  }
  .family-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .family-group h2 {
    text-align: center;
  }
}
