﻿:root {
  --bg: #f7f5f3;
  --fg: #6F6A66;
  --cream: #f5f0e8;
  --wine: #B8ADA3;
  --panel: #B8ADA3;
  --blush: #ebe4dd;
  --muted: rgba(111, 106, 102, 0.78);
  --line: rgba(111, 106, 102, 0.35);
}

@font-face {
  font-family: "Panorama Naskh";
  src: url("assets/PanoramaNaskhMobile-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ballet Clean";
  src: url("assets/ballet-clean.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.locked,
html.locked body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Panorama Naskh", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; }

a { color: inherit; }

.display,
.script,
.ballet {
  font-family: "Panorama Naskh", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.nums {
  font-family: "Instrument Serif", "Ballet Clean", Georgia, serif;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 2s ease-out;
}

.hero-copy.show { opacity: 1; }

.hero-copy .hero-step {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-copy .hero-step.is-on {
  opacity: 1;
  visibility: visible;
}

.hero-copy .names-shine {
  width: fit-content;
  max-width: min(100%, 90vw);
}

.hero-copy .names-shine:not(.is-on)::before {
  animation: none;
  opacity: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  cursor: pointer;
  background: #000;
  transition: opacity 2s ease-in-out;
}

.intro.fading,
.intro.done {
  opacity: 0;
  pointer-events: none;
}

.intro img,
.intro video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.intro video {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.intro.playing video { opacity: 1; }

.intro-hint {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: min(300px, 84vw);
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: rgba(247, 245, 243, 0.72);
  border: 1px solid rgba(111, 106, 102, 0.12);
  box-shadow: 0 8px 28px rgba(58, 53, 50, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
  animation: hint-soft 2.8s ease-in-out infinite;
}

.intro-hint p {
  margin: 0;
  color: #5f5a56;
  font-family: "Panorama Naskh", serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-align: center;
  direction: rtl;
}

.intro-hint-line {
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 106, 102, 0.45), transparent);
}

.intro-hint.hide {
  animation: none;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

@keyframes hint-soft {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-4px); }
}

.sound {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(111, 106, 102, 0.18);
  border-radius: 50%;
  background: rgba(247, 245, 243, 0.9);
  color: var(--fg);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(111, 106, 102, 0.12);
  backdrop-filter: blur(6px);
}

.sound.show {
  display: flex;
  animation: sound-in 0.5s ease 1.5s both;
}

@keyframes sound-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: none; }
}

.sound svg { width: 20px; height: 20px; }

.kicker {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.025em;
  line-height: 1.35;
  text-align: center;
}

.names-shine {
  --shine-src: url("assets/names.png");
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 2rem auto 0;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.names-shine.blessing-names-wrap {
  margin: 1.8rem auto 0;
}

.closing .names-shine {
  margin: 0.2rem auto 0;
}

.names-shine.swan-shine {
  --shine-src: url("assets/swens.png");
  margin: 1.4rem auto 0;
}

.names-shine.swan-shine::before {
  animation: names-gleam 3.2s ease-in-out 1.8s infinite;
}

.names-shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--shine-src) center / contain no-repeat;
  filter:
    brightness(1.75) contrast(1.08)
    drop-shadow(0.8px 0.8px 0 rgba(255, 255, 255, 0.7))
    drop-shadow(-1px -1px 0 rgba(0, 0, 0, 0.3))
    drop-shadow(1.4px 1.6px 1.2px rgba(0, 0, 0, 0.16));
  opacity: 0.98;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 0%,
    transparent 38%,
    #000 50%,
    transparent 62%,
    transparent 100%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 0%,
    transparent 38%,
    #000 50%,
    transparent 62%,
    transparent 100%
  );
  -webkit-mask-size: 240% 100%;
  mask-size: 240% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 120% 0;
  mask-position: 120% 0;
  animation: names-gleam 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes names-gleam {
  0% {
    -webkit-mask-position: 120% 0;
    mask-position: 120% 0;
  }
  70% {
    -webkit-mask-position: -20% 0;
    mask-position: -20% 0;
  }
  100% {
    -webkit-mask-position: -20% 0;
    mask-position: -20% 0;
  }
}

.names-img {
  display: block;
  width: min(280px, 58vw);
  height: auto;
  margin: 0;
}

.footer-names {
  width: min(240px, 52vw);
}

.date-line {
  margin: 1.7rem 0 0;
  font-size: 20px;
  letter-spacing: 0.025em;
  text-align: center;
}

.villa-drawing {
  width: 290px;
  height: auto;
  margin: 0;
  display: block;
  pointer-events: none;
  user-select: none;
}

.venue {
  margin: 1.35rem 0 0;
  font-size: 24px;
  letter-spacing: 0.025em;
  direction: rtl;
  text-align: center;
}

.city {
  margin: 0.25rem 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  direction: rtl;
  text-align: center;
}


.countdown {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
  padding: 6.5rem 0.4rem 7.5rem;
  background: var(--panel);
}

.lace-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 4;
}

.lace-edge.top { top: 0; transform: translateY(-50%) rotate(180deg); }
.lace-edge.bottom { bottom: 0; transform: translateY(50%); }

.bow-frame {
  position: relative;
  width: min(440px, 78%);
  margin: 0 auto;
  aspect-ratio: 1627 / 1513;
}

.bow-frame .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.bow-copy {
  position: absolute;
  inset: 22% 12% 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  color: #3A3532;
  text-align: center;
}

.bow-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 400;
  direction: rtl;
}

.countdown-soon {
  margin: 0.2rem 0 0;
  font-size: 15px;
  letter-spacing: 0.02em;
  direction: rtl;
  color: #3A3532;
}

.ticks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  direction: rtl;
}

.ticks strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.ticks span {
  display: block;
  margin-top: 0.55rem;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  direction: rtl;
}

.blessing {
  padding: 5.5rem 1.5rem 1.4rem;
  text-align: center;
}

.blessing-card {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.4rem 1.6rem 2.2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 173, 163, 0.85);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 5px rgba(247, 245, 243, 0.95),
    inset 0 0 0 6px rgba(184, 173, 163, 0.55),
    0 18px 40px rgba(58, 53, 50, 0.06);
  direction: rtl;
}

.basmala {
  margin: 0;
  color: #3A3532;
  font-size: clamp(20px, 4.4vw, 28px);
  line-height: 1.7;
}

.blessing-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.15rem auto 1.35rem;
  max-width: 220px;
}

.blessing-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C4A574, transparent);
}

.blessing-rule i {
  width: 7px;
  height: 7px;
  border: 1px solid #C4A574;
  transform: rotate(45deg);
  background: rgba(196, 165, 116, 0.25);
}

.ayah {
  margin: 0;
  color: #4a4541;
  font-size: clamp(15px, 3.3vw, 18px);
  line-height: 2.05;
}

.ayah-mark {
  display: inline-block;
  margin: 0 0.25rem;
  color: #C4A574;
  font-size: 0.72em;
  vertical-align: middle;
}

.blessing-invite {
  max-width: 34rem;
  margin: 2rem auto 0;
  color: #3A3532;
  font-size: clamp(20px, 4.2vw, 26px);
  line-height: 2.05;
  direction: rtl;
}

.blessing-names {
  display: block;
  width: min(260px, 58vw);
  height: auto;
  margin: 0;
}

.details {
  max-width: 42rem;
  margin: 1.6rem auto 0;
  display: grid;
  gap: 1rem;
}

.detail-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: start;
  direction: rtl;
}

.detail-pair .detail h3 {
  font-size: clamp(18px, 3.6vw, 24px);
}

.detail-pair .detail p {
  font-size: clamp(16px, 3.4vw, 19px);
  line-height: 1.75;
}

.detail-pair .detail .place-title {
  font-size: clamp(18px, 3.8vw, 22px);
}

.detail-pair .detail-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.55rem;
}

.detail {
  text-align: center;
  direction: rtl;
}

.detail-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.85rem;
  color: #6F6A66;
}

.detail-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.detail h3 {
  margin: 0;
  color: #3A3532;
  font-size: clamp(24px, 4.4vw, 30px);
  font-weight: 400;
  line-height: 1.3;
}

.detail-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.85rem auto 1rem;
  max-width: 140px;
}

.detail-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C4A574, transparent);
}

.detail-rule i {
  width: 6px;
  height: 6px;
  border: 1px solid #C4A574;
  transform: rotate(45deg);
  background: rgba(196, 165, 116, 0.22);
}

.detail p {
  margin: 0.2rem 0;
  color: #5a5551;
  font-size: clamp(16px, 3.4vw, 18px);
  line-height: 1.85;
}

.detail .place-title {
  color: #3A3532;
  font-size: clamp(20px, 4vw, 25px);
}

.village-art {
  display: block;
  width: min(420px, 88%);
  height: auto;
  margin: -0.15rem auto -0.35rem;
  pointer-events: none;
  user-select: none;
}

.info-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn.soft {
  margin-top: 0;
  padding: 0.8rem 1.45rem;
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
  background: rgba(184, 173, 163, 0.22);
  border-color: rgba(111, 106, 102, 0.28);
}

.btn.soft:hover {
  background: rgba(184, 173, 163, 0.38);
}

.map-links,
.calendar-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  width: 100%;
  max-width: 28rem;
  margin: 1.1rem auto 0;
  direction: ltr;
}

.map-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.75rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 173, 163, 0.75);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: #3A3532;
  box-shadow: 0 8px 20px rgba(58, 53, 50, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.map-card:hover {
  background: #fff;
  border-color: rgba(111, 106, 102, 0.4);
  transform: translateY(-1px);
}

.map-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
}

.map-logo img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.map-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.map-text strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.1;
}

.map-text small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.map-logo img[src*="apple"],
.map-logo img[src*="android"] {
  width: 22px;
  height: 22px;
}

@media (max-width: 480px) {
  .map-links,
  .calendar-links {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .map-card {
    padding: 0.65rem 0.55rem;
    gap: 0.4rem;
  }

  .map-text strong {
    font-size: 13px;
  }

  .map-text small {
    font-size: 10px;
  }

  .map-logo {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .map-logo img {
    width: 22px;
    height: 22px;
  }
}


.day h2 {
  margin: 0;
  font-size: 72px;
  line-height: 0.95;
  font-weight: 400;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 3.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn:hover { border-color: rgba(111, 106, 102, 0.7); }

.btn.light {
  color: var(--fg);
  border-color: rgba(111, 106, 102, 0.4);
}

.btn.light:hover { border-color: rgba(111, 106, 102, 0.75); }

.day { padding: 2rem 1.5rem 1rem; text-align: center; }

.day .lede {
  margin: 1rem auto 0;
  max-width: 26rem;
  color: rgba(111, 106, 102, 0.7);
  font-size: 15px;
}

.timeline {
  position: relative;
  max-width: 40rem;
  margin: 3.5rem auto 0;
  text-align: left;
}

.timeline .spine {
  position: absolute;
  left: 50%;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: rgba(111, 106, 102, 0.5);
  transform: translateX(-50%);
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: center;
  margin: 0 0 3rem;
}

.when {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

.icon {
  width: 98px;
  height: 98px;
  flex: 0 0 auto;
  display: grid;
}

.icon img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.glasses { position: relative; }
.glasses img { position: absolute; inset: 0; }

.time {
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
}

.heart {
  width: 12px;
  height: 12px;
  justify-self: center;
  color: var(--fg);
}

.what strong {
  display: block;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  direction: rtl;
  text-align: start;
}

.what p {
  margin: 0.25rem 0 0;
  color: rgba(111, 106, 102, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.day .lede {
  direction: rtl;
}

.notices {
  padding: 1.2rem 1.5rem 2.5rem;
  text-align: center;
  direction: rtl;
}

.notices-card {
  position: relative;
  width: min(360px, 92vw);
  margin: 0 auto;
  padding: 2.4rem 1.35rem 2.2rem;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(var(--bg), var(--bg)) border-box;
  border: 1.5px solid rgba(111, 106, 102, 0.55);
  border-radius: 180px 180px 18px 18px / 70px 70px 18px 18px;
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6.5px rgba(111, 106, 102, 0.45);
}

.notices-card h2 {
  margin: 0;
  font-size: clamp(42px, 11vw, 58px);
  line-height: 1.05;
  font-weight: 400;
}

.notices-feature {
  position: relative;
  width: min(100%, 270px);
  margin: 2.1rem auto 0;
  padding: 1.55rem 1rem 1.2rem;
  border: 1.2px solid rgba(111, 106, 102, 0.5);
  border-radius: 14px;
}

.notices-bell {
  position: absolute;
  top: 0;
  left: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -55%);
  border: 1.2px solid rgba(184, 150, 74, 0.85);
  border-radius: 50%;
  background: var(--bg);
  color: #b8964a;
}

.notices-bell svg {
  width: 18px;
  height: auto;
  display: block;
}

.notices-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.notices-lead {
  margin: 0.45rem 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg);
}

.notices-soft {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.82em;
  color: var(--muted);
}

.notices-item {
  margin: 1.35rem auto 0;
  max-width: 18rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
}

.notices-couple {
  display: block;
  width: min(118px, 34vw);
  height: auto;
  margin: 1.35rem auto 0.15rem;
  pointer-events: none;
  user-select: none;
}

.notices-dress {
  margin: 0.7rem auto 0;
  padding-top: 0.85rem;
  width: min(100%, 240px);
  border-top: 1px solid rgba(111, 106, 102, 0.28);
}

.notices-dress p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg);
}

.notices-dress p + p {
  margin-top: 0.15rem;
}

.rsvp {
  padding: 8.5rem 1.2rem 1.5rem;
  background: var(--bg);
  color: var(--fg);
  direction: rtl;
  overflow-x: clip;
}

.rsvp-shell {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  padding-top: 4.2rem;
}

.rsvp-bow {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(520px, 128vw);
  max-width: none;
  transform: translate(-50%, -70%);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.rsvp-card {
  position: relative;
  z-index: 1;
  padding: 1.8rem 1.35rem 1.6rem;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(111, 106, 102, 0.14);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(84, 72, 60, 0.1);
  text-align: center;
}

.rsvp-bloom {
  width: 34px;
  margin: 0 auto;
  color: var(--fg);
  opacity: 0.72;
}

.rsvp-bloom svg {
  display: block;
  width: 100%;
  height: auto;
}

.rsvp-card h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(36px, 9vw, 48px);
  line-height: 1.1;
  font-weight: 400;
}

.rsvp-sub {
  margin: 0.35rem 0 1.5rem;
  color: var(--muted);
  font-size: 14px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.field {
  margin: 0 0 1.15rem;
  text-align: start;
}

.field > label,
.choice-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 14px;
}

.choice-label small {
  display: inline;
  color: var(--muted);
  font-size: 0.9em;
}

.rsvp input[type="text"],
.rsvp textarea {
  width: 100%;
  border: 1px solid rgba(111, 106, 102, 0.28);
  background: #fff;
  color: var(--fg);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: 400 15px/1.5 "Panorama Naskh", "Helvetica Neue", Helvetica, Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.rsvp textarea {
  min-height: 110px;
  resize: vertical;
}

.rsvp input::placeholder,
.rsvp textarea::placeholder {
  color: rgba(111, 106, 102, 0.45);
}

.rsvp input:focus,
.rsvp textarea:focus {
  border-color: rgba(111, 106, 102, 0.55);
}

.attend-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.attend-pick {
  cursor: pointer;
}

.attend-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attend-pick span {
  display: block;
  padding: 0.72rem 0.4rem;
  border: 1px solid rgba(111, 106, 102, 0.3);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.attend-pick input:checked + span {
  background: #4f4a46;
  border-color: #4f4a46;
  color: #fff;
}

.photo-pick {
  display: block;
  cursor: pointer;
}

.photo-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.photo-pick-ui {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-height: 132px;
  padding: 1.15rem 0.9rem;
  border: 1px solid rgba(111, 106, 102, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 245, 243, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-pick:hover .photo-pick-ui {
  border-color: rgba(111, 106, 102, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 8px 22px rgba(84, 72, 60, 0.06);
}

.photo-pick-icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(111, 106, 102, 0.2);
  background: rgba(255, 255, 255, 0.75);
  color: var(--fg);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.photo-pick-svg {
  width: 34px;
  height: auto;
  display: block;
  opacity: 0.84;
}

.photo-pick-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-pick-copy {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.photo-pick-text {
  color: var(--fg);
  font-size: 14px;
}

.photo-pick-hint {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(111, 106, 102, 0.1);
  border: 1px solid rgba(111, 106, 102, 0.22);
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.photo-pick-ui.is-filled .photo-pick-icon {
  border-color: rgba(111, 106, 102, 0.18);
  background: transparent;
}

.photo-pick-ui.is-filled .photo-pick-svg {
  display: none;
}

.photo-pick-ui.is-filled .photo-pick-copy {
  display: none;
}

.rsvp-submit {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #4f4a46;
  color: #fff;
  font: 400 20px/1.2 "Panorama Naskh", "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.rsvp-submit:hover { opacity: 0.92; }
.rsvp-submit:active { transform: scale(0.99); }

.rsvp-done {
  padding: 2.4rem 0.6rem 2.1rem;
  animation: wish-in 0.45s ease both;
}

.rsvp-done-mark {
  width: 52px;
  margin: 0 auto 0.8rem;
  color: var(--fg);
  opacity: 0.85;
}

.rsvp-done-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.rsvp-done h2 {
  margin: 0;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.15;
  font-weight: 400;
}

.rsvp-done p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.wishes {
  margin-top: 2.4rem;
  text-align: center;
}

.wishes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  background: rgba(255, 252, 248, 0.95);
  border: 1px solid rgba(111, 106, 102, 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(84, 72, 60, 0.08);
  font-size: 14px;
}

.wishes-bloom {
  width: 18px;
  color: var(--fg);
  opacity: 0.7;
}

.wishes-bloom svg {
  display: block;
  width: 100%;
  height: auto;
}

.wishes-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.wishes-pages {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.wishes-pages[hidden] {
  display: none;
}

.wishes-page {
  min-width: 34px;
  height: 34px;
  padding: 0 0.55rem;
  border: 1px solid rgba(111, 106, 102, 0.28);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.96);
  color: var(--fg);
  font: 400 13px/1 "Instrument Serif", "Panorama Naskh", serif;
  cursor: pointer;
}

.wishes-page.is-on {
  background: #4f4a46;
  border-color: #4f4a46;
  color: #fff;
}

.wish-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(111, 106, 102, 0.12);
  border-radius: 18px;
  text-align: start;
  box-shadow: 0 8px 24px rgba(84, 72, 60, 0.05);
  animation: wish-in 0.45s ease both;
}

@keyframes wish-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.wish-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  overflow: hidden;
  flex: 0 0 auto;
}

.wish-avatar.has-photo {
  background: transparent;
}

.wish-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wish-body strong {
  display: block;
  font-weight: 400;
  font-size: 15px;
}

.wish-body p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.wishes-empty {
  margin: 1.1rem 0 0;
  color: rgba(111, 106, 102, 0.55);
  font-size: 13px;
}

.wishes-empty[hidden] { display: none; }

.kicker {
  direction: rtl;
}

body.admin-body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
}

.admin {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3rem;
}

.admin-lock,
.admin-panel {
  text-align: center;
}

.admin-lock h1,
.admin-top h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 400;
  line-height: 1.1;
}

.admin-lock p,
.admin-top p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-lock form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.admin-lock input,
.admin-lock button,
.admin-out,
.admin-approve,
.admin-reject,
.admin-revoke {
  font: 400 15px/1.4 "Panorama Naskh", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.admin-lock input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(111, 106, 102, 0.28);
  border-radius: 14px;
  background: #fff;
  color: var(--fg);
  text-align: center;
}

.admin-lock button,
.admin-out,
.admin-approve,
.admin-reject,
.admin-revoke {
  border: 0;
  cursor: pointer;
}

.admin-lock button {
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: #4f4a46;
  color: #fff;
}

.admin-hint {
  margin: 0.8rem 0 0;
  color: #9a5b5b;
  font-size: 13px;
}

.admin-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
  margin-bottom: 1.4rem;
}

.admin-top-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: end;
}

.admin-out {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 106, 102, 0.28);
  background: #fff;
  color: var(--fg);
  white-space: nowrap;
}

.admin-export {
  background: #4f4a46;
  border-color: #4f4a46;
  color: #fff;
}

.admin-block {
  margin-top: 1.35rem;
  text-align: start;
}

.admin-block-title {
  margin: 0 0 0.55rem;
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
}

.admin-list {
  display: grid;
  gap: 0.45rem;
}

.admin-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 0.65rem;
  align-items: start;
  align-content: start;
  height: auto;
  min-height: 0;
  padding: 0.65rem 0.7rem;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(111, 106, 102, 0.14);
  border-radius: 12px;
  text-align: start;
}

.admin-card.is-pending {
  border-color: rgba(158, 120, 70, 0.35);
  background: rgba(252, 248, 240, 0.96);
}

.admin-card.is-approved {
  border-color: rgba(111, 106, 102, 0.14);
}

.admin-media {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #6f6a66;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-top: 0.1rem;
}

.admin-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-card-body {
  min-width: 0;
}

.admin-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-card-body strong {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
}

.admin-card-body small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.admin-card-body p {
  margin: 0.2rem 0 0;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.45;
}

.admin-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.admin-approve,
.admin-reject,
.admin-revoke {
  flex: 1;
  padding: 0.4rem 0.35rem;
  border-radius: 999px;
  font-size: 13px;
}

.admin-approve {
  background: #4f4a46;
  color: #fff;
}

.admin-reject {
  background: #fff;
  border: 1px solid rgba(111, 106, 102, 0.28);
  color: var(--fg);
}

.admin-revoke {
  background: #fff;
  border: 1px solid rgba(158, 120, 70, 0.4);
  color: #8a6a3d;
}

.admin-empty {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 14px;
}

.closing {
  padding: 1.2rem 1.5rem 3.5rem;
  text-align: center;
}

.with-love {
  margin: 0 0 0.75rem;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(111, 106, 102, 0.65);
}

.full-date {
  margin: 0.9rem 0 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(111, 106, 102, 0.5);
}

@media (max-width: 760px) {
  .hero-copy { padding: 2.5rem 1rem 3.5rem; }
  .villa-drawing { width: min(210px, 70vw); margin-inline: auto; }
  .names-img { width: min(220px, 72vw); margin-inline: auto; }
  .day h2 { font-size: 48px; }
  .rsvp-card h2 { font-size: 40px; }
  .notices-card { width: min(340px, 94vw); padding: 2.1rem 1.1rem 1.9rem; }
  .notices-lead { font-size: 18px; }
  .bow-copy h2 { font-size: 36px; }
  .ticks strong { font-size: 28px; }
  .blessing-card { padding: 2rem 1.15rem 1.8rem; }
  .time { font-size: 22px; }
  .icon, .icon img { width: 72px; height: 72px; }
  .row { column-gap: 0.6rem; }
  }
