/* Champagne design: embossed white-lily paper, cream seal, gold lace, dark-ink accents. */
:root {
  --bg: #f7f3ea;
  --paper: #e9e3d2;
  --stone: #ece5d6;
  --accent: #b8975a;
  --accent-soft: #f2ecdf;
  --accent-deep: #2e2620;
  --ink: #2e2620;
  --gold: #b8975a;
  --gold-text: #7f632e; /* ≥ 4.5:1 down to the darker paper of the date and closing */
  --text: #3a322b;
  --text-soft: #5a5046;
  --text-mute: #665c50;
  --shade: 70, 60, 40;
  --line: #ddd4c2;
  --line-soft: #eee8dc;
  --card: #fffdf8;
  --font-script: 'Pinyon Script', 'Amiri', cursive;
}
html[lang="ar"] { --font-script: 'Amiri', serif; }
html[lang="ar"][data-font-ar="ruqaa"] { --font-script: 'Aref Ruqaa', 'Amiri', serif; }
body { background: #e7e1d3; }
.title { color: var(--ink); }
.pill--fill, .pill--soft { background: var(--ink); border-radius: 2px; letter-spacing: .2em; }
.sound { background: #6a6a4a; }

/* ---------- cover: embossed lilies, cream seal ---------- */
.env__flap i { background: url("../assets/champagne/cover.jpg") center / cover; }
.env__flap--l i { background-position: 20% 50%; }
.env__flap--r i { background-position: 80% 50%; }
.env__flap--l, .env__flap--r { filter: drop-shadow(0 0 6px rgba(80, 70, 40, .25)); }
.env__flap--t { filter: drop-shadow(0 5px 8px rgba(80, 70, 40, .3)); }
.env__center { top: 44%; }
.seal { width: 118px; filter: drop-shadow(0 8px 10px rgba(80, 70, 40, .4)); }
.env__hint { color: var(--text-soft); font-family: var(--font-serif); font-size: 20px; letter-spacing: .04em; text-transform: none; }

/* ---------- opening view ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; background: var(--bg); }
.ch-paper { position: absolute; inset: 0; background: center / cover; opacity: .55; transform: scale(1.06); transition: transform 6s var(--soft); }
.hero.is-in .ch-paper { transform: none; }
.hero__text { position: relative; inset: auto; max-width: calc(100% - 44px); padding: 34px 22px; margin: 0 22px; background: rgba(255, 253, 247, .82); box-shadow: 0 0 0 1px #e2d6bd, 0 0 0 7px rgba(255, 253, 247, .6), 0 0 0 8px #d2c19b; }
.hero__names { margin: 6px 0 0; font-size: 60px; line-height: 1.1; color: var(--ink); white-space: normal; text-shadow: none; }
html[lang="ar"] .hero__names { font-size: 52px; line-height: 1.4; }
/* «و»/"&" between the names (here, formal text, closing, link card): a deeper champagne gold that reads (3:1) */
.amp { color: #987a42; }
.hero__date { margin: 0; font: 500 15px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
html[lang="ar"] .hero__date { letter-spacing: 0; }
.hero .scroll-hint { color: var(--ink); }

/* ---------- scratch cards in gold ---------- */
.ch-date { background: linear-gradient(var(--bg), #efe8da); }
.ch-date .title { color: var(--ink); }
.date__hint { color: var(--gold-text); }
.scratch__tile { border-radius: 4px; background: #fffdf8; box-shadow: 0 0 0 1px #e4d6b6, 0 14px 24px -16px rgba(var(--shade), .5); }
.scratch__value { color: var(--ink); }
.timer__cell { background: transparent; border-inline-end: 1px solid var(--line); border-radius: 0; }
.timer__cell:last-child { border: 0; }
.timer__num { font-size: 36px; color: var(--ink); }

/* ---------- verse in a gold lace envelope ---------- */
.ch-verse { padding: 50px 18px 60px; background: #efe8da; }
.ch-env { position: relative; max-width: 400px; margin: 0 auto; padding-top: 30px; }
.ch-env::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px; background: var(--lace) repeat-x bottom; transform: scaleY(-1); }
.ch-env__card { position: relative; z-index: 1; margin: 0 6%; padding: 30px 20px 90px; background: #fffdf8; box-shadow: 0 10px 20px -12px rgba(var(--shade), .5); text-align: center; }
.ch-env__pocket { position: relative; z-index: 2; height: 110px; margin-top: -90px; background: linear-gradient(160deg, #cfae6c, #a98244); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); box-shadow: 0 18px 30px -18px rgba(var(--shade), .7); }
.ch-env__pocket::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px; background: var(--lace) repeat-x; opacity: .9; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); }
.ch-letter { background: var(--bg); }
.letter__names { color: var(--ink); }
.ch-place .place__photo { width: 70%; margin: 0 auto; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; box-shadow: 0 0 0 6px #fffdf8, 0 0 0 7px #ddcfae, 0 22px 36px -20px rgba(var(--shade), .5); }
.ch-place .place__map { padding: 10px 20px; border: 1px solid var(--ink); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
html[lang="ar"] .ch-place .place__map { letter-spacing: 0; font-size: 15px; }
.album__item { border-radius: 2px; box-shadow: 0 0 0 6px #fffdf8, 0 18px 30px -18px rgba(var(--shade), .6); }
.reply { background: linear-gradient(var(--bg), #efe8da); }
.reply-card { border-radius: 2px; box-shadow: 0 0 0 1px #e2d6bd, 0 0 0 7px #fffdf8, 0 0 0 8px #e2d6bd, 0 24px 40px -24px rgba(var(--shade), .5); }
.choice__opt span { border-radius: 2px; }
.choice__opt input:checked + span { border-color: var(--ink); background: #f2ece0; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- link preview ---------- */
.og-mode { background: var(--bg); }
.og__paper { position: absolute; inset: 0; background: center / cover; opacity: .6; }
.og > * { position: absolute; z-index: 1; }
.og > .og__paper { z-index: 0; }
.og__seal { top: 40px; left: 50%; width: 110px; transform: translateX(-50%); }
.og__text { top: 170px; left: 180px; right: 180px; padding: 20px 30px; text-align: center; background: rgba(255, 253, 247, .85); }
.og__kicker { margin: 0; font: 500 24px var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
html[lang="ar"] .og__kicker { font-size: 32px; letter-spacing: 0; }
.og__names { margin: 0; white-space: nowrap; font-size: 116px; line-height: 1.3; color: var(--ink); }
.og__date { margin: 0; font: 500 24px var(--font-ui); color: var(--text-soft); }
.og__lace { left: 0; right: 0; bottom: 0; height: 28px; background: var(--lace) repeat-x; transform: scaleY(-1); }
.env__hint { padding: 6px 18px; border-radius: 999px; background: rgba(255, 253, 247, .85); box-shadow: 0 6px 14px -8px rgba(80, 70, 40, .4); }
/* our twist: sage hint ribbon and a monogram circle above the names */
.hero__text::before { content: attr(data-mono); display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px #fffdf8, inset 0 0 0 5px #d2c19b; font: 700 17px/1 var(--font-serif); color: var(--gold-text); white-space: nowrap; }
/* 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 4px var(--bg), 0 0 12px var(--bg), 0 0 26px var(--bg), 0 0 40px var(--bg); }
