/* ══ Coquette: Bows & Ribbons — blush · plum-brown · burgundy ══
   Prefix: cq- · Fonts: DM Serif Display · Figtree */

:root {
  --cq-blush: #FBEEF0;
  --cq-blush-2: #F7E2E6;
  --cq-rose: #E8A0B4;
  --cq-burgundy: #8E3B52;
  --cq-plum: #43242C;
  --cq-body: #6B4550;
  --cq-white: #FFF9FA;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Figtree", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(232,160,180,.22), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(142,59,82,.14), transparent 40%),
    var(--cq-plum);
  color: var(--cq-body); -webkit-font-smoothing: antialiased;
}
body:not(.is-open) { overflow: hidden; }

.cq-page {
  max-width: 480px; margin: 0 auto; position: relative; overflow-x: clip;
  background: var(--cq-blush);
  box-shadow: 0 0 70px rgba(67,36,44,.5);
}

/* ── cover: bow unties, ribbon curtains fall ── */
.cq-cover {
  position: fixed; inset: 0; z-index: 100; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  transition: visibility 0s 1.7s;
}
.cq-panel {
  position: absolute; top: -4%; bottom: -4%; width: 52%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.35), transparent 30%),
    repeating-linear-gradient(90deg, rgba(232,160,180,.16) 0 3px, transparent 3px 26px),
    var(--cq-blush-2);
}
.cq-panel-l { left: 0; box-shadow: inset -8px 0 24px rgba(142,59,82,.14); }
.cq-panel-r { right: 0; transform: scaleX(-1); box-shadow: inset 8px 0 24px rgba(142,59,82,.14); }
/* scalloped inner edges of the curtains */
.cq-panel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14px;
  background-image: radial-gradient(circle at 0 11px, var(--cq-burgundy) 6px, transparent 7px);
  background-size: 14px 22px; background-repeat: repeat-y; opacity: .55;
}
.cq-panel-l::after { right: 0; }
.cq-panel-r::after { left: 0; }
.cq-cover-inner {
  position: relative; z-index: 2; text-align: center; color: var(--cq-plum);
  width: min(84%, 340px); padding: 34px 26px;
  background: var(--cq-white);
  border-top: 1px solid rgba(142,59,82,.25); border-bottom: 1px solid rgba(142,59,82,.25);
  outline: 1px solid rgba(142,59,82,.25); outline-offset: 4px;
  display: flex; flex-direction: column; align-items: center;
  transition: opacity .5s ease;
}
.cq-bow { width: 64px; height: 54px; fill: var(--cq-burgundy); margin-bottom: 10px; transform-origin: 50% 50%; }
body.is-open [data-cover] { pointer-events: none; visibility: hidden; }
body.is-open .cq-cover-inner { opacity: 0; }
body.is-open .cq-bow { animation: cq-untie .9s cubic-bezier(.55,-.2,.4,1) forwards; }
@keyframes cq-untie {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  60% { transform: scale(1.28) rotate(-14deg); opacity: .85; }
  100% { transform: scale(.4) rotate(-38deg); opacity: 0; }
}
body.is-open .cq-cover-inner::before {
  content: ""; position: absolute; left: 50%; top: -6%; height: 112%; width: 2px;
  background: linear-gradient(180deg, transparent, var(--cq-burgundy) 20% 80%, transparent);
  animation: cq-knot-retract .8s ease-in forwards;
}
@keyframes cq-knot-retract {
  from { transform: translateY(0) scaleY(1); opacity: .9; }
  to { transform: translateY(-14vh) scaleY(.06); opacity: 0; }
}
body.is-open .cq-panel-l { animation: cq-drop-l 1.15s cubic-bezier(.5,0,.85,.4) .35s forwards; }
body.is-open .cq-panel-r { animation: cq-drop-r 1.15s cubic-bezier(.5,0,.85,.4) .5s forwards; }
@keyframes cq-drop-l {
  to { transform: translateY(118vh) rotate(-10deg); opacity: .2; }
}
@keyframes cq-drop-r {
  to { transform: scaleX(-1) translateX(0) translateY(118vh) rotate(10deg); opacity: .2; }
}

.cq-cover-kicker { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--cq-burgundy); }
.cq-cover-names { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 46px; line-height: 1.08; margin: 12px 0 8px; }
.cq-cover-names span { color: var(--cq-rose); font-size: 26px; vertical-align: middle; padding: 0 4px; }
.cq-cover-date { font-size: 13.5px; letter-spacing: .12em; color: var(--cq-body); }
.cq-cover-guest { margin: 24px 0 20px; font-size: 13px; color: var(--cq-body); }
.cq-guest-name { font-family: "DM Serif Display", serif; font-size: 21px; color: var(--cq-plum); margin-top: 4px; }
.cq-open-btn {
  appearance: none; cursor: pointer; border-radius: 999px;
  font-family: "Figtree", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cq-white); background: var(--cq-plum);
  border: none; padding: 14px 36px; box-shadow: 0 10px 24px -10px rgba(67,36,44,.6);
  transition: background .25s ease, transform .25s ease;
}
.cq-open-btn:hover { background: var(--cq-burgundy); transform: translateY(-1px); }
.cq-cover-heart { width: 20px; height: 19px; fill: var(--cq-rose); margin-top: 20px; }

/* ── hero ── */
.cq-hero { text-align: center; padding: 56px 26px 48px; }
.cq-hero-intro { font-size: 13.5px; line-height: 1.75; max-width: 34ch; margin: 0 auto 18px; }
.cq-hero-names { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 42px; line-height: 1.12; color: var(--cq-plum); }
.cq-hero-names em { font-style: normal; color: var(--cq-rose); padding: 0 2px; }
.cq-ribbon-divider { display: flex; align-items: center; gap: 10px; justify-content: center; max-width: 250px; margin: 18px auto; }
.cq-ribbon-line { flex: 1; height: 5px; border-top: 1.5px solid var(--cq-burgundy); border-bottom: 1.5px solid var(--cq-burgundy); border-radius: 3px; opacity: .75; }
.cq-ribbon-bow { width: 26px; height: 22px; fill: var(--cq-burgundy); flex: none; }
.cq-hero-date { font-size: 14px; letter-spacing: .14em; color: var(--cq-burgundy); font-weight: 600; }
.cq-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 320px; margin: 26px auto 0; }
.cq-cd-cell {
  background: var(--cq-white); padding: 12px 4px 9px; text-align: center;
  border: 1px solid rgba(142,59,82,.2); border-radius: 12px;
  /* scalloped top */
  background-image: radial-gradient(circle at 7px 0, var(--cq-blush) 5px, var(--cq-white) 5.5px);
  background-size: 14px 8px; background-repeat: repeat-x;
}
.cq-cd-cell b { display: block; font-family: "DM Serif Display", serif; font-weight: 400; font-size: 23px; color: var(--cq-burgundy); font-variant-numeric: tabular-nums; }
.cq-cd-cell span { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cq-body); }

/* ── sections ── */
.cq-sec { padding: 52px 24px; }
.cq-sec-head { text-align: center; margin-bottom: 30px; }
.cq-head-bow { width: 34px; height: 29px; fill: var(--cq-burgundy); margin-bottom: 8px; }
.cq-sec-title { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 27px; color: var(--cq-plum); }
.cq-sec-sub { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--cq-burgundy); margin-top: 6px; opacity: .8; }

/* cards: thin double-ribbon border + scalloped top */
.cq-card {
  position: relative; background: var(--cq-white); border-radius: 14px;
  border: 1px solid rgba(142,59,82,.3);
  box-shadow: inset 0 0 0 4px var(--cq-white), inset 0 0 0 5.5px rgba(232,160,180,.55);
  padding: 30px 22px 24px;
}
.cq-card::before {
  content: ""; position: absolute; top: -7px; left: 0; right: 0; height: 14px;
  background-image: radial-gradient(circle at 10px 14px, var(--cq-white) 9px, transparent 10px);
  background-size: 20px 14px; background-repeat: repeat-x;
}

/* ── couple ── */
.cq-person {
  position: relative; background: var(--cq-white); border-radius: 14px;
  border: 1px solid rgba(142,59,82,.3);
  box-shadow: inset 0 0 0 4px var(--cq-white), inset 0 0 0 5.5px rgba(232,160,180,.55);
  padding: 30px 22px 24px; text-align: center; max-width: 350px;
}
.cq-person::before {
  content: ""; position: absolute; top: -7px; left: 0; right: 0; height: 14px;
  background-image: radial-gradient(circle at 10px 14px, var(--cq-white) 9px, transparent 10px);
  background-size: 20px 14px; background-repeat: repeat-x;
}
.cq-person:last-of-type { margin-left: auto; }
.cq-avatar {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--cq-plum); color: var(--cq-rose);
  display: grid; place-items: center; font-family: "DM Serif Display", serif; font-size: 23px;
  box-shadow: 0 0 0 3px var(--cq-white), 0 0 0 4.5px var(--cq-rose);
}
.cq-person-name { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 21px; color: var(--cq-plum); }
.cq-person-parents { margin-top: 8px; font-size: 13px; line-height: 1.65; }
.cq-person-ig { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--cq-burgundy); letter-spacing: .04em; }
.cq-heart-mark { text-align: center; margin: 12px 0; }
.cq-heart-mark svg { width: 20px; height: 18px; fill: var(--cq-burgundy); }

/* ── events ── */
.cq-events { background: linear-gradient(180deg, var(--cq-blush-2), var(--cq-blush)); }
.cq-event + .cq-event { margin-top: 18px; }
.cq-event-title { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 23px; color: var(--cq-plum); }
.cq-event-time { font-size: 13.5px; font-weight: 700; color: var(--cq-burgundy); margin-top: 4px; }
.cq-event-venue { font-size: 14.5px; font-weight: 700; color: var(--cq-plum); margin-top: 10px; }
.cq-event-addr { font-size: 12.5px; line-height: 1.6; margin-top: 3px; }
.cq-cal { margin-top: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.cq-cal a {
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-decoration: none;
  color: var(--cq-burgundy); border-bottom: 1.5px solid var(--cq-rose); padding-bottom: 2px;
}
.cq-maps { margin-top: 26px; }
.cq-map-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.cq-map-tab {
  appearance: none; cursor: pointer; border-radius: 999px;
  border: 1.5px solid var(--cq-burgundy); background: transparent; color: var(--cq-burgundy);
  font-family: "Figtree", sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: 9px 0;
  transition: background .2s ease, color .2s ease;
}
.cq-map-tab.is-active { background: var(--cq-burgundy); color: var(--cq-white); }
.cq-map { display: block; width: 100%; height: 220px; border: 1px solid rgba(142,59,82,.35); border-radius: 14px; }

/* ── story ── */
.cq-story { list-style: none; display: grid; gap: 6px; }
.cq-story-item { position: relative; padding: 16px 0 16px 74px; }
.cq-story-item:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 52px; bottom: -6px; width: 0;
  border-left: 2px dashed rgba(142,59,82,.35);
}
.cq-story-year {
  position: absolute; left: 0; top: 16px; width: 62px; text-align: center;
  font-family: "DM Serif Display", serif; font-size: 14px; color: var(--cq-white);
  background: var(--cq-burgundy); border-radius: 999px; padding: 6px 0;
}
.cq-story-title { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 18px; color: var(--cq-plum); }
.cq-story-text { font-size: 13.5px; line-height: 1.7; margin-top: 5px; }

/* ── gallery ── */
.cq-gal-sec { background: var(--cq-blush-2); }
.cq-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cq-g-item {
  cursor: zoom-in; overflow: hidden; aspect-ratio: 4/3; border-radius: 12px;
  border: 1px solid rgba(142,59,82,.25); background: var(--cq-white);
  box-shadow: 0 10px 22px -14px rgba(67,36,44,.5); transition: transform .25s ease;
}
.cq-g-item:hover { transform: scale(1.03) rotate(-.6deg); }
.cq-g-item svg { display: block; width: 100%; height: auto; }
.cq-g-item { color: #C96479; }

/* ── forms ── */
.cq-form { display: grid; gap: 16px; }
.cq-field { display: grid; gap: 6px; border: none; }
.cq-field span, .cq-field legend { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cq-burgundy); }
.cq-field input, .cq-field select, .cq-field textarea {
  font-family: "Figtree", sans-serif; font-size: 14.5px; color: var(--cq-plum);
  background: var(--cq-white); border: 1px solid rgba(142,59,82,.3); border-radius: 10px;
  padding: 11px 14px; outline: none; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.cq-field input:focus, .cq-field select:focus, .cq-field textarea:focus {
  border-color: var(--cq-burgundy); box-shadow: 0 0 0 3px rgba(232,160,180,.35);
}
.cq-radios label { display: flex; gap: 9px; align-items: center; font-size: 14px; padding: 4px 0; }
.cq-radios input { accent-color: var(--cq-burgundy); width: 16px; height: 16px; }
.cq-submit {
  justify-self: center; appearance: none; cursor: pointer; border: none; border-radius: 999px;
  background: var(--cq-burgundy); color: var(--cq-white); font-family: "Figtree", sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 13px 32px; transition: background .25s ease, transform .25s ease;
}
.cq-submit:hover { background: var(--cq-plum); transform: translateY(-1px); }
.cq-thanks {
  text-align: center; font-family: "DM Serif Display", serif; font-size: 17.5px;
  color: var(--cq-burgundy); padding: 24px 10px;
}

/* ── wishes ── */
.cq-wish-sec { padding-top: 0; }
.cq-form[data-wishes-form] { margin-bottom: 26px; }
.cq-wishes { display: grid; gap: 10px; margin-bottom: 16px; }
[data-wishes-list] .wish {
  background: var(--cq-white); border: 1px solid rgba(142,59,82,.25);
  border-left: 3px solid var(--cq-rose); border-radius: 10px; padding: 13px 16px 11px;
}
[data-wishes-list] .wish h4 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 15.5px; color: var(--cq-plum); }
[data-wishes-list] .wish p { font-size: 13px; line-height: 1.65; margin-top: 3px; }
[data-wishes-list] .wish time { display: block; font-size: 10.5px; color: #A87F8B; margin-top: 6px; }
.cq-more {
  display: block; margin: 0 auto; appearance: none; background: none; cursor: pointer; border-radius: 999px;
  border: 1.5px solid var(--cq-burgundy); color: var(--cq-burgundy); font-family: "Figtree", sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 9px 22px;
}

/* ── amplop ── */
.cq-amplop { background: linear-gradient(180deg, var(--cq-blush), var(--cq-blush-2)); }
.cq-amplop-note { text-align: center; font-size: 13px; line-height: 1.7; max-width: 36ch; margin: 0 auto 22px; }
.cq-envs { display: grid; gap: 14px; }
.cq-env {
  position: relative; background: var(--cq-plum); color: var(--cq-blush);
  padding: 22px 18px 18px; text-align: center; border-radius: 14px;
}
.cq-env::before {
  content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(232,160,180,.5);
  border-radius: 9px; pointer-events: none;
}
.cq-env-name { font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--cq-rose); }
.cq-env-num { font-family: "DM Serif Display", serif; font-size: 24px; letter-spacing: .06em; margin-top: 7px; }
.cq-env-holder { font-size: 12px; color: #C79AA7; margin-top: 3px; }
.cq-copy {
  margin-top: 13px; appearance: none; cursor: pointer; border: none; border-radius: 999px;
  background: var(--cq-rose); color: var(--cq-plum); font-family: "Figtree", sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 8px 18px;
}

/* ── closing ── */
.cq-closing { background: var(--cq-plum); color: var(--cq-blush); text-align: center; padding: 54px 28px 30px; }
.cq-closing-bow { width: 46px; height: 39px; fill: var(--cq-rose); margin-bottom: 14px; }
.cq-closing-text { font-size: 13px; line-height: 1.75; color: #D8AFBB; max-width: 34ch; margin: 0 auto 22px; }
.cq-closing-names { font-family: "DM Serif Display", serif; font-size: 33px; color: var(--cq-white); }
.cq-closing-family { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: #C79AA7; }

/* ── music toggle (visible after open via script) ── */
.cq-music {
  position: fixed; right: 18px; bottom: 22px; z-index: 90; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: var(--cq-plum); color: var(--cq-rose); border: 1.5px solid var(--cq-rose);
}
.cq-music svg { width: 20px; height: 20px; }
.cq-music.is-playing { animation: cq-pulse 2.4s ease infinite; }
@keyframes cq-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,160,180,.5); }
  60% { box-shadow: 0 0 0 11px rgba(232,160,180,0); }
}

/* ── reveal (behavior-critical) ── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── lightbox restyle ── */
.lb-overlay { background: rgba(67,36,44,.92); font-family: "Figtree", sans-serif; }
.lb-cap { color: var(--cq-blush); font-size: 13px; }
.lb-btn { color: var(--cq-rose); }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.is-open .cq-panel-l, body.is-open .cq-panel-r,
  body.is-open .cq-bow, body.is-open .cq-cover-inner::before,
  .cq-music.is-playing { animation: none !important; }
  body.is-open .cq-panel-l, body.is-open .cq-panel-r { transform: translateY(120vh); opacity: 0; }
  body.is-open .cq-bow { opacity: 0; }
  body.is-open .cq-cover-inner::before { content: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}