/* Lilies design: cream paper, red line lilies, olive seal, torn paper over an olive landscape, pink peonies. */
:root {
  --bg: #f7f1e4;
  --paper: #f7f1e4;
  --stone: #ece2cf;
  --accent: #d9919b;
  --accent-soft: #f6e4e2;
  --accent-deep: #a8455a; /* deep enough for the verse, the closing line and white button text */
  --ink: #b23f53; /* a shade deeper than the lilies' red so the small lettering reads (4.5:1) */
  --gold: #c4586a;
  --gold-text: #8f5a3a;
  --text: #4a3b33;
  --text-soft: #66574d;
  --text-mute: #75665b;
  --shade: 80, 60, 40;
  --line: #e2d4c2;
  --line-soft: #efe5d4;
  --card: #fffcf4;
  --olive: #5f6a2e;
  --font-script: 'Great Vibes', 'Amiri', cursive;
  --font-serif: 'Cormorant Garamond', 'Amiri', Georgia, serif;
}
html[lang="ar"] { --font-script: 'Amiri', serif; }
html[lang="ar"][data-font-ar="ruqaa"] { --font-script: 'Aref Ruqaa', 'Amiri', serif; }
body { background: #e9e0cf; }
.kicker { color: var(--ink); }
.title { color: var(--ink); }
.pill--fill, .pill--soft { background: var(--accent-deep); }
.sound { background: var(--olive); }
.lilies { mix-blend-mode: multiply; pointer-events: none; }

/* ---------- cover: cream envelope with lilies, olive seal ---------- */
.env { --flap-bg: radial-gradient(120% 90% at 50% 50%, #faf5ea, #efe6d4); }
.env__flap i { overflow: hidden; }
.env__flap--l i, .env__flap--r i { background: linear-gradient(90deg, #f3ebdb, #f8f2e6); }
.env__flap--t i { background: linear-gradient(180deg, #fbf7ee, #f3ebda); }
.env__flap--b i { background: linear-gradient(0deg, #f6efe1, #faf6ec); }
.lilies--cover-t { position: absolute; top: -12%; left: 50%; width: min(70vw, 300px); transform: translateX(-50%) rotate(180deg); opacity: .9; }
.lilies--cover-b { position: absolute; bottom: -8%; left: 50%; width: min(70vw, 300px); transform: translateX(-50%); opacity: .9; }
.env__center { top: 46%; }
.seal { width: 120px; filter: drop-shadow(0 10px 12px rgba(40, 45, 10, .4)); }
.env__hint { color: #58622a; } /* the olive, a touch deeper over the lilies */

/* ---------- opening view ---------- */
.hero { display: flex; flex-direction: column; align-items: center; padding: 62px 0 0; background: var(--bg); text-align: center; }
.lilies--hero-a, .lilies--hero-b { position: absolute; top: 24%; width: 46%; opacity: .75; }
.lilies--hero-a { left: -8%; }
.lilies--hero-b { right: -8%; transform: scaleX(-1); }
.hero__text { position: relative; z-index: 2; inset: auto; padding: 0 22px; }
.hero__date { margin: 0; font: 500 15px var(--font-serif); letter-spacing: .2em; color: var(--ink); }
.hero__names { margin: 0; font-size: 64px; line-height: 1.05; color: var(--ink); white-space: normal; text-shadow: none; }
html[lang="ar"] .hero__names { font-size: 54px; line-height: 1.35; }
.hero__names .amp { color: var(--ink); }
.hero__day { margin: 6px 0 0; font: 500 18px var(--font-serif); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
html[lang="ar"] .hero__day { letter-spacing: 0; font-size: 20px; }
.hero__arch { position: relative; z-index: 2; width: 58%; aspect-ratio: 3 / 4; margin: 18px auto 0; overflow: hidden; border-radius: 999px 999px 0 0; background: #efe5d0; box-shadow: inset 0 0 0 1px #e2d4bb; opacity: 0; transform: translateY(20px); transition: opacity 1.2s ease .5s, transform 1.4s var(--soft) .5s; }
.hero.is-in .hero__arch { opacity: 1; transform: none; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
/* No photo: a monogram on cream paper inside a thin rose arch rule (the lower part sits behind the torn edge) */
.hero__arch--mono { background: radial-gradient(90% 70% at 50% 38%, #fffaf0, #f1e7d4); box-shadow: inset 0 0 0 1px #e2d4bb, inset 0 0 30px rgba(196, 160, 120, .18); }
.hero__arch--mono::before { content: ''; position: absolute; inset: 9px 9px 0; border: 1px solid rgba(196, 88, 106, .55); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.hero__arch--mono::after { content: ''; position: absolute; inset: 14px 14px 0; border: 1px solid rgba(196, 88, 106, .25); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.lx-mono { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 86%; padding-top: 10%; }
.lx-mono__letters { display: flex; align-items: baseline; gap: 7px; font: 400 56px/1 var(--font-script); color: var(--ink); white-space: nowrap; }
html[lang="ar"] .lx-mono__letters { align-items: center; gap: 10px; font-size: 58px; font-weight: 700; line-height: 1.35; }
.lx-mono__l { font-weight: inherit; }
.lx-mono__l--one { font-size: 1.35em; }
.lx-mono__and { font-style: normal; font-size: .46em; color: var(--olive); }
html[lang="ar"] .lx-mono__and { font-size: .36em; }
.lx-mono__garland { display: block; width: 72%; margin-top: 10px; }
.hero__ground { position: relative; z-index: 3; width: 100%; margin-top: -40px; }
.tear { display: block; width: 100%; height: 30px; }
.tear--up { transform: scaleY(-1); }
.hero__ground .tear { position: absolute; top: -1px; z-index: 2; } /* -1px: no hairline of landscape above the paper */
.toile { height: 160px; background: url("../assets/lilies/toile.jpg") 50% 70% / cover; }
.peonies { position: absolute; display: flex; justify-content: center; pointer-events: none; }
.peonies img { width: 50%; filter: drop-shadow(0 8px 10px rgba(60, 40, 20, .25)); }
.peonies img + img { margin-inline-start: -18%; margin-top: 6%; }
.peonies--hero { z-index: 3; top: -36px; left: 15%; right: 15%; }
.hero .scroll-hint { bottom: 12px; color: var(--ink); }

/* ---------- letter on torn paper over the landscape ---------- */
.lx-letter { padding: 40px 14px 50px; background: url("../assets/lilies/toile.jpg") center / cover; }
.paper { position: relative; max-width: 420px; margin: 0 auto; padding: 44px 24px 34px; background: #f2ead9; box-shadow: 0 18px 30px -16px rgba(40, 40, 10, .5); text-align: center; }
.paper > .tear--up { position: absolute; top: -26px; left: 0; height: 28px; }
.paper__dear { margin: 0; font-size: 58px; line-height: 1; color: var(--text); }
html[lang="ar"] .paper__dear { font-size: 40px; line-height: 1.3; }
.paper__kicker { margin: 4px 0 20px; font: 500 16px var(--font-serif); letter-spacing: .2em; text-transform: uppercase; }
html[lang="ar"] .paper__kicker { letter-spacing: 0; font-size: 18px; }
.lx-letter .letter__names { color: var(--ink); }
.lx-letter .letter__line { font-variant: small-caps; }

.tv { position: relative; padding: 70px 16px 120px; background: linear-gradient(var(--bg), #efe5d2); }
.paper--tv { padding-top: 58px; background: #f6eedf; clip-path: polygon(0 3%, 6% 0, 14% 2%, 22% 0, 31% 2%, 40% 0, 50% 2%, 60% 0, 70% 2%, 80% 0, 90% 2%, 100% 0, 100% 97%, 92% 100%, 82% 98%, 70% 100%, 58% 98%, 46% 100%, 34% 98%, 22% 100%, 10% 98%, 0 100%); }
.tv__seal { position: absolute; top: 8px; left: 50%; width: 64px; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(40, 45, 10, .4)); }
.tv__title { margin: 6px 0 14px; font-size: 52px; color: var(--text); }
html[lang="ar"] .tv__title { font-size: 38px; }
.tv__place { margin: 0; font: 500 20px var(--font-serif); letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .tv__place { letter-spacing: 0; }
.tv__city { margin: 2px 0 14px; font: 400 16px var(--font-serif); }
.tv__when { margin: 0; font: 500 16px var(--font-ui); color: var(--text-soft); }
.tv__time { margin: 4px 0 0; font-size: 44px; color: var(--text); }
.peonies--tv { bottom: 0; left: 10%; right: 10%; }

/* ---------- countdown, venue, reply, album ---------- */
.count-lx { background: #f1e8d6; }
.count-lx .title { color: var(--ink); }
.timer__cell { background: #fffaf0; border: 1px solid #ecd9cc; border-radius: 999px 999px 14px 14px; padding-top: 18px; }
.timer__num { color: var(--ink); }
.place-lx .place__photo { width: calc(100% - 40px); margin: 0 auto; border-radius: 999px 999px 18px 18px; aspect-ratio: 3 / 3.6; box-shadow: 0 0 0 8px #fffaf0, 0 0 0 9px #e6d3c3; }
.place-lx .place__map { padding: 12px 22px; border-radius: 999px; background: var(--accent-deep); color: #fff; text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
html[lang="ar"] .place-lx .place__map { letter-spacing: 0; font-size: 15px; }
.reply { background: linear-gradient(var(--bg), #f2e9d8); }
.reply-card { border-radius: 6px; box-shadow: 0 0 0 1px #e6d6c4, 0 0 0 7px #fffaf0, 0 0 0 8px #ecd9cc, 0 24px 40px -24px rgba(var(--shade), .5); }
.reply-card .pill--fill { background: var(--olive); }
.choice__opt input:checked + span { border-color: var(--olive); background: #eef0de; color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.album__item { border-radius: 4px; box-shadow: 0 0 0 7px #fffaf0, 0 18px 30px -18px rgba(var(--shade), .6); }
.farewell-lx { background: linear-gradient(var(--bg), #efe5d2); }
.farewell-lx .farewell__line, .farewell-lx .farewell__names { color: var(--ink); }
.lilies--end { display: block; width: 120px; margin: 10px auto 12px; }

/* ---------- link preview ---------- */
.og-mode { background: var(--bg); }
.og { background: radial-gradient(70% 90% at 50% 45%, #fdf9f0, #efe5d2); }
.og__lilies { position: absolute; top: -40px; width: 300px; mix-blend-mode: multiply; opacity: .8; }
.og__lilies--a { left: -20px; }
.og__lilies--b { right: -20px; transform: scaleX(-1); }
.og__seal { position: absolute; top: 30px; left: 50%; width: 100px; transform: translateX(-50%); }
.og__text { position: absolute; top: 140px; left: 160px; right: 160px; text-align: center; }
.og__date { margin: 0; font: 500 26px var(--font-serif); letter-spacing: .2em; color: var(--ink); }
.og__names { margin: 0; white-space: nowrap; font-size: 130px; line-height: 1.15; color: var(--ink); }
html[lang="ar"] .og__names { font-size: 110px; line-height: 1.4; }
.og__day { margin: 0; font: 500 30px var(--font-serif); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.og__peonies { left: 380px; right: 380px; bottom: -70px; }

/* ---------- tuning: lighter, sparser lilies; landscape fills the opening view ---------- */
.lilies--cover-t, .lilies--cover-b { height: 42%; width: min(62vw, 270px); object-fit: cover; object-position: 50% 0; opacity: .7; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.lilies--cover-t { top: 0; }
.lilies--cover-b { bottom: 0; }
.lilies--hero-a, .lilies--hero-b { top: 21%; width: 38%; height: 50%; object-fit: cover; object-position: 50% 0; opacity: .55; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 45%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 45%, transparent 100%); }
.lilies--hero-a { left: -4%; }
.lilies--hero-b { right: -4%; }
.hero__ground { flex: 1; display: flex; flex-direction: column; min-height: 210px; }
.toile { flex: 1; height: auto; min-height: 170px; }
.tv { padding-bottom: 190px; }
.paper--tv { z-index: 1; }
.peonies--tv { z-index: 2; bottom: -6px; left: 18%; right: 18%; }
.lilies--end { height: 170px; width: 130px; object-fit: cover; object-position: 50% 0; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
/* the first peony's plate is cut straight at its foot: fade the cut out */
.peonies img:first-child { -webkit-mask-image: linear-gradient(#000 84%, transparent 99%); mask-image: linear-gradient(#000 84%, transparent 99%); }
/* the Latin script's tall capitals reach up: keep the date and the seal clear of them */
html:not([lang="ar"]) .hero__date { margin-bottom: 8px; }
html:not([lang="ar"]) .tv__title { margin-top: 20px; }
/* our twist: olive line lilies (the samples' are red), rose accents kept for type */
.lilies { filter: hue-rotate(95deg) saturate(.55); } /* no brightness(): it greyed the drawing's white paper, which then showed as a box */
/* Keep the guest's name readable over the drawing on the cover: darker ink and a soft paper-coloured halo. */
.env__to { color: var(--ink); text-shadow: 0 0 2px var(--bg), 0 0 4px var(--bg), 0 0 12px var(--bg), 0 0 26px var(--bg), 0 0 40px var(--bg); }
/* ...and the paper showing through the lilies behind it: a soft cream clearing, no hard edge */
.env__to { margin: -14px 0 6px; padding: 14px 34px 12px; background: radial-gradient(closest-side, rgba(247, 241, 228, .96) 70%, rgba(247, 241, 228, 0)); }
