/* طابع فيكتوري: ورق عاجي بزخارف بارزة، حبر داكن، ولمسة برونزية خفيفة
   تصميم بمظهر واحد مقصود (فاتح) */
@font-face { font-family: "Naskh"; src: url("assets/fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Naskh"; src: url("assets/fonts/noto-naskh-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("assets/fonts/tinos-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("assets/fonts/tinos-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("assets/fonts/tinos-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NaskhNames"; src: url("assets/fonts/amiri-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NamesThin"; src: url("assets/fonts/noto-sans-arabic-arabic-200-normal.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "NamesThin"; src: url("assets/fonts/noto-sans-arabic-arabic-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Signature"; src: url("assets/fonts/mrs-saint-delafield-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* طابع فيكتوري ناعم: ورق عاجي بزخارف بارزة، بني دافئ وبرونزي هادئ */
:root {
  --ivory: #f6f3ee;
  --cream: #e8e3db;
  --paper: #e8e3db;
  --blush: #e4dbcd;
  --peach: #e9e0d2;
  --rose: #c1b3a0;
  --mauve: #726658;
  --gold: #b39a74;
  --gold-soft: #d9c9ab;
  --sage: #857b69;
  --ink: #4a4038;
  --ink-soft: #7e7366;
  --card: rgba(250, 248, 244, .66);
  --line: rgba(160, 142, 116, .22);
  --shadow: 0 18px 40px -30px rgba(95, 80, 62, .3);

  --display: "Naskh", "Noto Naskh Arabic", "Amiri", serif;
  --text: var(--display);
  --sans: var(--display);
  --en: "Tinos", "Times New Roman", Times, serif;
  --script: "Signature", "Mrs Saint Delafield", cursive;
  /* خط أسماء العرسان: النسخ (أميري) بوزن عادي، في سطر واحد */
  --names-font: "NaskhNames", "Amiri", var(--display);
  --names-ink: #3a2a1f; /* أغمق درجة من البني */
  --btn: linear-gradient(135deg, #c6baa8, #a49580);
  --paper-hi: #f6f2eb;
  --paper-lo: #ddd5c8;
  --hair: rgba(74, 64, 56, .14);
  --bronze: #a08866;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--text);
  color: var(--ink);
  background: #ede8e0;
  line-height: 1.9;
  overflow-x: hidden;
  overflow-x: clip;
}
body.locked { overflow: hidden; height: 100vh; }

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
[lang="en"] { font-family: var(--en); }
.script { font-family: var(--script) !important; font-weight: 400; line-height: 1.15; }

/* ===================== الظرف ===================== */
/* نقش بارز للزخارف المرسومة بلون الورق */
.emboss { filter: drop-shadow(-1px -1px 0 #fffdf9) drop-shadow(1.2px 1.4px .4px rgba(130, 115, 95, .45)); }

/* ===================== الظرف ===================== */
.intro {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  transition: opacity 1s ease, visibility 1s ease;
  overflow: hidden;
}
.intro::after { /* إضاءة ناعمة في الوسط */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 50% at 50% 55%, rgba(246, 242, 235, .75), transparent 75%);
}
.intro.is-hidden { opacity: 0; visibility: hidden; }
.intro__stage {
  position: relative; z-index: 2;
  height: 100%;
  display: grid; justify-items: center; align-content: center; gap: 30px;
  padding: 18vh 20px 40px;
}
.envelope {
  position: relative;
  width: min(88vw, 420px);
  aspect-ratio: 300 / 215;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  perspective: 1400px;
  filter: drop-shadow(0 22px 30px rgba(80, 66, 50, .28));
  -webkit-tap-highlight-color: transparent;
}
.envelope:focus-visible { outline: 2px solid var(--bronze); outline-offset: 8px; }
.envelope svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.envelope__back rect { fill: #e9e2d6; }
.envelope__front { z-index: 3; }
.envelope__front .pk-l { fill: #f1ece3; }
.envelope__front .pk-r { fill: #efe9df; }
.envelope__front .pk-b { fill: #f3eee6; stroke: #e2dacd; stroke-width: .6; }
.envelope__flap {
  z-index: 4;
  transform-origin: 50% 0;
  transition: transform 1s cubic-bezier(.5, 0, .3, 1);
}
.flap { filter: drop-shadow(0 3px 3px rgba(80, 66, 50, .2)); }
.env__flap-shape { fill: #f6f2eb; stroke: #e2dacd; stroke-width: .6; }
.env__lace circle { fill: #d8cfc0; }
.env__leafs path { fill: #f6f2eb; stroke: #cdc3b3; stroke-width: .5; }
.env__heart { fill: #f7f3ec; stroke: #d0c6b6; stroke-width: .7; filter: drop-shadow(-.6px -.6px 0 #fff) drop-shadow(.8px .8px .3px rgba(120, 105, 85, .35)); }
.env__heart-dots circle { fill: #d1c7b8; }
.env__heart-line { fill: none; stroke: #d4cabb; stroke-width: .6; }
.env__swans path, .env__swans circle { fill: #f8f4ee; stroke: #c9bdac; stroke-width: .6; filter: drop-shadow(-.5px -.5px 0 #fff) drop-shadow(.6px .7px .3px rgba(120, 105, 85, .4)); }
.env__swans .wing { fill: none; }
.env__swans .eye { fill: #b4a895; stroke: none; }

.envelope__card {
  position: absolute; z-index: 2;
  inset: 6% 5% 5%;
  display: grid; place-content: center; justify-items: center; gap: 2px;
  background: var(--paper-hi);
  border: 1px solid var(--paper-lo);
  box-shadow: inset 0 0 0 6px var(--paper-hi), inset 0 0 0 7px var(--hair);
  transition: transform 1.1s cubic-bezier(.3, .6, .2, 1) .75s;
}
.envelope__card .script { font-size: clamp(30px, 9vw, 40px); color: var(--ink); }
.envelope__names { font-size: 18px; color: var(--ink-2); }

.envelope.is-open .envelope__flap { transform: rotateX(180deg); z-index: 1; transition: transform 1s cubic-bezier(.5, 0, .3, 1), z-index 0s .5s; }
.envelope.is-open .envelope__card { transform: translateY(-62%); }

.intro__hint {
  display: grid; justify-items: center;
  font-size: 16px; color: var(--ink-2);
  animation: breathe 2.8s ease-in-out infinite;
}
.intro__hint span { font-family: var(--en); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
@keyframes breathe { 50% { opacity: .5; } }

/* ===================== بتلات متساقطة ===================== */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* ===================== الواجهة ===================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--ink);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(56% 34% at 50% 54%, rgba(247, 243, 236, .9), rgba(247, 243, 236, 0) 100%);
}
.hero__content {
  position: relative; padding: 40px 16px 80px;
}
.bismillah { font-family: var(--display); font-size: 17px; color: var(--ink-soft); margin-bottom: 22px; }
.eyebrow { font-family: var(--sans); word-spacing: .2em; font-size: 16px; color: var(--ink-soft); }
.hero__script { font-size: clamp(44px, 13vw, 64px); color: var(--mauve); margin: -2px 0 2px; }
.names {
  font-family: var(--display);
  font-size: clamp(54px, 16vw, 104px); font-weight: 600;
  color: var(--mauve);
  line-height: 1.3;
  display: flex; flex-direction: column; align-items: center;
  margin: 8px 0 18px;
}
.names .amp { font-size: .42em; font-weight: 400; color: var(--gold); line-height: 1; margin: -6px 0; }
.hero__date {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 16px; color: var(--ink-soft);
  padding: 6px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid var(--line);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--mauve);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===================== أقسام عامة ===================== */
.section {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 20px;
  text-align: center;
}
.title {
  font-family: var(--display);
  font-size: clamp(30px, 8vw, 40px);
  color: var(--mauve);
  margin-bottom: 30px;
  display: inline-flex; align-items: center; gap: 14px;
}
.title::before,
.title::after {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.title::after { transform: scaleX(-1); }
.title-en { font-size: clamp(30px, 9vw, 40px); color: var(--ink-soft); margin: -26px 0 26px; }
.en-line { font-family: var(--en); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.8; margin-top: 18px; max-width: 30em; margin-inline: auto; }

.ornament svg { width: 120px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.ornament circle { fill: var(--gold); stroke: none; }

/* ===================== الدعوة ===================== */
.invite { padding-top: 40px; }
.verse {
  font-family: var(--display);
  font-size: clamp(18px, 4.8vw, 22px);
  color: var(--sage);
  line-height: 2.1;
  margin: 22px 0 36px;
}
.lead { font-size: 18px; color: var(--ink-soft); }
.lead.soft { margin-top: 18px; font-size: 16px; color: var(--ink-soft); }
.families {
  font-family: var(--display);
  font-size: clamp(24px, 6.5vw, 30px);
  margin: 10px 0 14px;
  color: var(--ink);
}
.families strong { font-family: var(--names-font); font-weight: 400; color: var(--names-ink); font-size: 1.15em; padding: 0 4px; }
.couple-line {
  font-family: var(--display);
  font-size: clamp(42px, 12vw, 64px);
  color: var(--mauve);
  line-height: 1.4;
  margin-top: 8px;
}
.couple-line span { color: var(--gold); font-size: .6em; padding: 0 6px; }

/* ===================== الموعد ===================== */
.date-card {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--card);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 10px;
  box-shadow: var(--shadow);
}
.date-card__side { display: grid; gap: 2px; }
.date-card__side .label { font-family: var(--sans); font-size: 13px; color: var(--gold); }
.date-card__side .value { font-family: var(--display); font-size: 20px; color: var(--ink); }
.date-card__main {
  display: grid; padding: 0 22px;
  border-inline: 1px solid var(--line);
}
.date-card__main .day { font-family: var(--display); font-size: 64px; line-height: 1.1; color: var(--mauve); }
.date-card__main .month { font-family: var(--sans); font-size: 15px; color: var(--ink); }
.date-card__main .hijri { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 28px 0 26px;
}
.countdown div {
  display: grid; padding: 14px 4px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(249, 246, 240, .9), rgba(236, 230, 220, .9));
  border: 1px solid var(--line);
}
.countdown span { font-family: var(--display); font-size: clamp(26px, 8vw, 36px); line-height: 1.2; color: var(--mauve); }
.countdown small { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.countdown-done { font-family: var(--display); font-size: 24px; color: var(--mauve); margin: 24px 0; }

/* ===================== الأزرار ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: #fff; text-decoration: none;
  background: var(--btn);
  border: 0; border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  box-shadow: 0 8px 20px -12px rgba(95, 78, 58, .45);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(95, 78, 58, .5); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--ghost {
  background: transparent; color: var(--mauve);
  border: 1px solid var(--rose);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(185, 124, 120, .08); box-shadow: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ===================== فقرات الحفل ===================== */
.timeline {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  text-align: start;
}
.timeline::before {
  content: ""; position: absolute;
  top: 10px; bottom: 10px; inset-inline-start: 112px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}
.timeline li {
  display: grid; grid-template-columns: 96px 32px 1fr; align-items: center;
  padding: 14px 0;
}
.timeline .time {
  font-family: var(--display); font-size: 22px; color: var(--mauve);
  display: grid; line-height: 1.2; text-align: end;
}
.timeline .time small { font-family: var(--sans); font-size: 11px; color: var(--ink-soft); }
.timeline .node {
  justify-self: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(200, 184, 158, .25);
}
.timeline .item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
}
.timeline h3 { font-family: var(--display); font-size: 21px; color: var(--ink); }
.timeline p { font-size: 14px; color: var(--ink-soft); }

/* ===================== المكان ===================== */
.venue-card {
  position: relative;
  padding: 38px 24px 34px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.venue-card__icon { width: 72px; height: 48px; fill: none; stroke: var(--mauve); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.venue-card h3 { font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--mauve); margin-top: 6px; }
.venue-card .venue-card__en { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: -16px 0 22px; }
.venue-card p { color: var(--ink-soft); margin-bottom: 22px; }
.venue-card__addr { font-size: 17px; line-height: 1.8; }

/* رمز QR للموقع */
.qr {
  display: grid; justify-items: center; gap: 12px;
  width: fit-content; margin: 26px auto 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.qr__frame {
  display: block;
  width: 176px; padding: 14px;
  background: #fbf9f5;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 6px rgba(249, 246, 240, .9), 0 0 0 7px var(--line), var(--shadow);
}
.qr__code { display: block; width: 100%; height: auto; }
.qr__label { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); max-width: 230px; line-height: 1.6; }
.qr:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 20px; }

/* ===================== رسالة العرسان ===================== */
.letter-card {
  position: relative;
  text-align: start;
  font-size: 18px;
  line-height: 2.1;
  padding: 40px 30px 34px;
  background:
    linear-gradient(rgba(255, 252, 248, .94), rgba(255, 252, 248, .94)),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(195, 154, 95, .12) 37px 38px);
  border-radius: 6px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.letter-card::before {
  content: "”";
  position: absolute; top: -18px; inset-inline-start: 24px;
  font-family: var(--display); font-size: 90px; line-height: 1;
  color: var(--gold-soft);
}
.letter-card p + p { margin-top: 14px; }
.letter-card .sign { text-align: end; color: var(--ink-soft); margin-top: 22px; }
.letter-card .sign span { font-family: var(--display); font-size: 26px; color: var(--mauve); }

/* ===================== دفتر الأمنيات ===================== */
.sub { color: var(--ink-soft); margin: -14px 0 24px; font-size: 15px; }
.wish-form {
  position: relative;
  display: grid; gap: 14px;
  text-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field span { font-family: var(--sans); font-size: 14px; color: var(--mauve); }
.field input,
.field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(185, 124, 120, .35);
  background: rgba(255, 255, 255, .8);
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(160, 142, 116, .15); }
.hp { position: absolute !important; inset: 0 auto auto 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.wish-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.counter { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.form-status { font-family: var(--sans); font-size: 14px; min-height: 1.4em; color: var(--sage); }
.form-status.error { color: #a24a4a; }

.wish-list { display: grid; gap: 14px; margin-top: 30px; text-align: start; }
.wish-empty { text-align: center; color: var(--ink-soft); font-size: 15px; }
.wish {
  background: rgba(255, 252, 248, .85);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  animation: rise .6s ease both;
}
.wish__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wish__avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--rose));
}
.wish__name { font-family: var(--display); font-size: 18px; color: var(--mauve); line-height: 1.3; }
.wish__time { font-family: var(--sans); font-size: 11px; color: var(--ink-soft); display: block; }
.wish__msg { font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wish-more { justify-self: center; margin-top: 6px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ===================== الختام ===================== */
.footer {
  text-align: center;
  padding: 70px 20px 90px;
  background: linear-gradient(180deg, transparent, rgba(221, 213, 200, .55));
}
.footer__names { font-family: var(--display); font-size: 44px; color: var(--mauve); }
.footer__names span { color: var(--gold); font-size: .6em; }
.footer__date { font-family: var(--sans); letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 14px; }
.footer__note { font-family: var(--display); font-size: 18px; color: var(--sage); margin-bottom: 26px; }

/* ===================== شريط التنقل السفلي ===================== */
.tabbar {
  position: fixed; z-index: 45;
  left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  width: min(calc(100% - 24px), 460px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  border-radius: 22px;
  background: rgba(249, 246, 240, 0.88);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -14px rgba(95, 78, 58, .55);
  transition: transform .5s cubic-bezier(.3, .7, .2, 1);
}
body.show-tabs .tabbar { transform: translate(-50%, 0); }
.tabbar a {
  display: grid; justify-items: center; gap: 2px;
  min-height: 52px; padding: 7px 2px 5px;
  border-radius: 16px;
  font-family: var(--sans); font-size: 12px; color: var(--ink-soft);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s, color .25s;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { background: var(--btn); color: #fff; }
.tabbar a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.show-tabs .footer { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
body.show-tabs .toast { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.section { scroll-margin-top: 12px; }

/* ===================== تنبيه ===================== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 30px);
  background: var(--ink); color: var(--ivory);
  font-family: var(--sans); font-size: 14px;
  padding: 10px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===================== حركة الظهور ===================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 480px) {
  .section { padding: 56px 16px; }
  .title { margin-bottom: 24px; }
  .letter-card { padding: 34px 22px 28px; font-size: 17px; }
  .wish-form { padding: 18px; }
  .wish-form__foot .btn { flex: 1; }
  .venue-card .btn, #calendarBtn { width: 100%; }
}

@media (max-width: 380px) {
  .timeline::before { inset-inline-start: 98px; }
  .timeline li { grid-template-columns: 84px 28px 1fr; }
  .timeline .time { font-size: 19px; }
  .date-card__main { padding: 0 14px; }
  .date-card__main .day { font-size: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ===================== لمسات إنجليزية صغيرة ===================== */
.date-card__side .en { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .04em; }
.date-card__main .day { font-family: var(--en); }
.countdown span { font-family: var(--en); }
.countdown small { display: grid; line-height: 1.4; }
.countdown small i { font-family: var(--en); font-style: normal; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); opacity: .8; }
.timeline .time b { font-family: var(--en); font-weight: 400; display: block; }
.timeline h3 small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.5; }
.btn__en { font-family: var(--en); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-inline-start: 6px; }
.qr__label { display: grid; }
.qr__label i { font-family: var(--en); font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.footer__script { font-size: clamp(38px, 11vw, 52px); color: var(--mauve); margin: 0 0 4px; }
.footer__date { font-family: var(--en); }

/* ===================== أسماء العرسان ===================== */
.envelope__names, .names, .couple-line, .letter-card .sign span, .footer__names {
  font-family: var(--names-font);
  font-weight: 400;
  color: var(--names-ink);
  white-space: nowrap;
  letter-spacing: 0;
}
.envelope__names { font-size: 30px; line-height: 1.8; }
.names {
  display: flex; flex-direction: row; justify-content: center; align-items: baseline; gap: .25em;
  font-size: clamp(46px, 14vw, 92px); line-height: 1.8;
  margin: 0 0 8px;
}
.couple-line { font-size: clamp(42px, 12vw, 62px); line-height: 1.8; }
.letter-card .sign span { font-size: 32px; line-height: 1.8; }
.footer__names { font-size: 42px; line-height: 1.8; margin-bottom: 6px; }
.names .amp, .couple-line span, .footer__names span {
  font-family: var(--names-font); font-size: .7em; margin: 0; padding: 0 .1em;
  color: #a8894f;
}

/* ===================== نعومة إضافية: ضوء خافت مثل الستائر ===================== */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* خلفية الموقع: إطار دانتيل بارز مع ورد اللؤلؤ، ثابتة خلف المحتوى */
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(255, 255, 255, .35), transparent 70%),
    url("assets/site-bg.jpg") center / cover no-repeat,
    #ede8e0;
}
main { position: relative; z-index: 1; }

/* ===================== رسالة العرسان ===================== */
/* بنفس خط ولون أسماء العرسان، على ورقة سادة */
.letter-card {
  --rule: 42px;
  font-family: var(--names-font);
  font-size: 21px;
  line-height: var(--rule);
  color: var(--names-ink);
  padding: calc(var(--rule) * 1) 28px calc(var(--rule) * 1);
  border-radius: 3px;
  background: linear-gradient(#fbf9f4, #f7f3ec);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 22px 40px -28px rgba(90, 76, 58, .45), 0 2px 6px rgba(90, 76, 58, .08);
  transform: rotate(-.6deg);
}
.letter-card::before { content: none; }
.letter-card p + p { margin-top: 0; }
.letter-card p { text-wrap: pretty; }
.letter-card .sign { color: var(--names-ink); margin-top: 0; padding-top: var(--rule); }
.letter-card .sign span { line-height: var(--rule); }
@media (max-width: 480px) { .letter-card { font-size: 20px; padding-inline: 22px; } }


/* ===================== خلفية شاشة الظرف: صورة الستارة والورد ===================== */
.intro {
  background: #f1ebe2 url("assets/intro-bg.jpg") center / cover no-repeat !important;
}
.intro::after { background: radial-gradient(60% 40% at 50% 50%, rgba(255, 255, 255, .35), transparent 75%); }
.intro__stage { padding: 0 20px; }
.intro__hint { color: #6f6457; }

.wish-empty:empty { display: none; }

/* ===================== تنبيه الحفل ===================== */
.notice {
  width: min(100%, 420px);
  margin: 4px auto 26px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid; gap: 2px;
  font-size: 15.5px; line-height: 1.8; color: var(--ink);
}
.notice__en { font-family: var(--en); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
