/* Noir design (realistic, dark luxury): blurred photo + black card with gold lettering + black satin ribbon + lit dark wax
   seal; black-and-white photography, gold accents, dark frosted cards. Built on css/kit.css. */
:root {
  --bg: #141110;
  --paper: #1a1614;
  --stone: #221d1a;
  --accent: #c9a463;
  --accent-soft: #2a231e;
  --accent-deep: #b08a4a;
  --ink: #f2e6cf;
  --gold: #c9a463;
  --gold-text: #d8b878;
  --text: #ece3d4;
  --text-soft: #cfc3b0;
  --text-mute: #b3a690;
  --shade: 0, 0, 0;
  --line: #3a322b;
  --line-soft: #2a2420;
  --card: #1d1916;
  --card-ink: #ece3d4;
  --font-script: 'Cormorant Garamond', 'Amiri', Georgia, serif;
}
html[lang="ar"] { --font-script: 'Amiri', serif; }
body.sk-body { background: #0b0908; }
.title { color: var(--ink); }
.kicker { color: var(--gold-text); }
.pill--fill, .pill--soft { background: var(--accent-deep); color: #17120d; } /* black lettering on the gold button (white on gold read 3.2:1) */
.sound { background: var(--accent-deep); }
html:not([lang="ar"]) .script { font-style: italic; font-weight: 500; }

/* ---------- cover: blurred photo, cream card, satin ribbon, lit seal ---------- */
.gate { background: #2a221b; }
.sk-cover { display: grid; place-items: center; }
.sk-cover__bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(9px) brightness(.55) saturate(.6); transform: scale(1.06); transition: filter 1.4s ease, transform 2.2s var(--soft); }
.sk-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 48%, rgba(255, 248, 238, .14), rgba(20, 14, 8, .35)); pointer-events: none; }
.sk-card { position: relative; z-index: 2; outline: 1px solid rgba(201, 164, 99, .45); outline-offset: -10px; width: min(80vw, 330px); aspect-ratio: 5 / 7; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 16% 8% 0; text-align: center; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .55), 0 6px 14px rgba(0, 0, 0, .18); transition: transform 1.4s var(--soft), opacity 1s ease .25s; }
.sk-card__paper { position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255, 240, 210, .08), rgba(255, 255, 255, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .85 0 0 0 0 .75 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #24201d, #171412 70%, #100e0c); }
.sk-card__kicker { margin: 0; font: 500 12px var(--font-ui); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold-text); }
html[lang="ar"] .sk-card__kicker { font-size: 15px; letter-spacing: 0; }
.sk-card__names { margin: 8px 0 0; width: 100%; white-space: nowrap; font-size: 40px; line-height: 1.3; color: #e7c98d; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.sk-card__names.is-wrapped { line-height: 1.15; }
.sk-card__names .amp, .hero__names .amp { color: var(--gold); padding: 0 .28em; }
.sk-ribbon { position: absolute; left: -7%; right: -7%; top: 58%; height: 78px; transform: translateY(-50%); display: flex; filter: drop-shadow(0 6px 6px rgba(60, 40, 15, .35)); }
.sk-ribbon__half { flex: 1; display: block; transition: transform 1.3s var(--glide), opacity .6s ease .75s; }
.sk-ribbon__half--r { transform: scaleX(-1); }
.sk-ribbon__svg { display: block; width: 100%; height: 100%; }
.sk-center { top: 58%; width: auto; }
.sk-cover .seal { width: 122px; animation: none; filter: drop-shadow(0 10px 10px rgba(50, 30, 10, .45)); }
.sk-cover .seal::after { inset: 14%; }
/* the guest's line sits just below the seal (58% + its half), never under it; a long name shrinks or takes two lines */
.sk-cover .env__to { position: absolute; top: calc(58% + 70px); left: 8%; right: 8%; margin: 0; color: #cdb88f; font: 500 13px/1.5 var(--font-ui); }
.sk-cover .env__to bdi { color: #f0dcae; font-size: 26px; text-shadow: none; }
.sk-cover .env__hint { position: absolute; z-index: 3; bottom: -46px; left: 0; right: 0; margin: 0; color: rgba(255, 246, 232, .88); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
/* opening: the seal lifts, the ribbon slides off both sides, the card dissolves into the photo */
.gate.is-opening .sk-cover .seal { transform: translateY(-14px) scale(1.12); opacity: 0; transition: transform .6s var(--soft), opacity .5s ease .15s; }
.gate.is-opening .sk-ribbon__half--l { transform: translateX(-125%) rotate(-5deg); opacity: 0; }
.gate.is-opening .sk-ribbon__half--r { transform: scaleX(-1) translateX(-125%) rotate(-5deg); opacity: 0; }
.gate.is-opening .env__hint, .gate.is-opening .sk-cover .env__to { opacity: 0; transition: opacity .3s; }
.gate.is-open .sk-card { transform: scale(1.18); opacity: 0; }
.gate.is-open .sk-cover__bg { filter: blur(0) brightness(1) saturate(1); transform: scale(1.02); }
.gate.is-open { animation: skFade .9s ease .9s forwards; }
@keyframes skFade { to { opacity: 0; } }

/* ---------- hero: the photo, full screen, slow zoom, drifting light ---------- */
.sk-hero { background: #2a221b; max-height: none; }
.sk-hero__photo { position: absolute; inset: 0; overflow: hidden; }
.sk-hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 14s cubic-bezier(.2, .6, .2, 1); }
.hero.is-in .sk-hero__photo img { transform: scale(1.02); }
.sk-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, .2) 0%, rgba(20, 14, 8, 0) 28%, rgba(20, 14, 8, .08) 48%, rgba(20, 14, 8, .55) 70%, rgba(20, 14, 8, .82) 100%); }
.sk-hero__text { top: auto; bottom: max(11%, 80px); color: #fffaf2; } /* 80px: above the scroll hint on short screens */
.sk-hero__kicker { color: #f1e2c8; margin-bottom: 6px; }
.sk-hero .hero__names { color: #fffaf2; text-shadow: 0 2px 22px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .35); font-size: clamp(40px, 12.5vw, 60px); }
.sk-hero .hero__names .amp { color: #ead7b4; }
.sk-hero .hero__date, .sk-hero .date__hijri { color: #f7eedf; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); font: 400 17px/1.5 var(--font-ui); letter-spacing: .04em; }
/* A birthday without its own photo (the stock photographs are a wedding's): the cover's blur stays as soft light, and the
   lit wax seal with the initial leads the opening view */
.gate.is-open .sk-cover--soft .sk-cover__bg { filter: blur(9px) brightness(.55) saturate(.6); transform: scale(1.06); }
.hero.sk-hero--mono .sk-hero__photo img { filter: blur(18px) brightness(.55) saturate(.6); transform: scale(1.25); }
.sk-hero__seal { display: block; width: 128px; margin: 0 auto 22px; filter: drop-shadow(0 12px 14px rgba(20, 12, 6, .5)); }
.sk-hero__seal svg { display: block; width: 100%; height: auto; }
.sk-og--soft .sk-og__photo { filter: blur(22px) brightness(.55) saturate(.6); transform: scale(1.2); }
.sk-lights { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.sk-lights i { position: absolute; left: var(--x); bottom: -60px; width: var(--s); height: var(--s); border-radius: 50%; opacity: var(--o);
  background: radial-gradient(circle, rgba(255, 244, 222, .95), rgba(255, 236, 205, .2) 60%, rgba(255, 236, 205, 0) 70%); filter: blur(1.5px);
  animation: skRise var(--d) linear var(--dl) infinite; }
@keyframes skRise { to { transform: translate(18px, -115vh); } }

/* ---------- sections ---------- */
.sk-paper { position: relative; margin: 0 auto; max-width: 400px; padding: 40px 26px 36px; background: var(--card); border: 1px solid rgba(201, 164, 99, .3);
  box-shadow: 0 18px 40px -22px rgba(var(--shade), .45), 0 2px 6px rgba(var(--shade), .08); border-radius: 4px; }
.sk-letter { background: linear-gradient(180deg, #0f0d0c, var(--bg)); }
.sk-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; color: var(--gold); }
.sk-rule i { width: 46px; height: 1px; background: currentColor; opacity: .6; }
.sk-rule b { font-size: 11px; font-weight: 400; }
.line__dot { width: auto; height: auto; background: none; transform: none; box-shadow: none; color: var(--gold); font-size: 16px; font-style: normal; }
.sk-moment { height: 62vh; max-height: 520px; overflow: hidden; }
.sk-moment img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 3.5s cubic-bezier(.2, .6, .2, 1); }
.sk-moment.is-shown img { transform: scale(1); }
.sk-count .count__num, .sk-count .countdown__num { font-weight: 300; }
.sk-reply { background: linear-gradient(180deg, var(--bg), #0e0c0b); }
.sk-reply .reply-card { background: rgba(32, 27, 23, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(201, 171, 130, .35); }

/* ---------- link preview ---------- */
.og-mode { background: #2a221b; }
.sk-og { background: #2a221b; }
.sk-og__photo { position: absolute; inset: 0; background: center 30% / cover no-repeat; }
.sk-og__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 8, 0) 18%, rgba(20, 14, 8, .62) 48%, rgba(20, 14, 8, .82) 100%); }
html[dir="rtl"] .sk-og__shade { background: linear-gradient(270deg, rgba(20, 14, 8, 0) 18%, rgba(20, 14, 8, .62) 48%, rgba(20, 14, 8, .82) 100%); }
.sk-og__text { position: absolute; top: 50%; right: 70px; left: 520px; transform: translateY(-50%); text-align: center; color: #fffaf2; }
html[dir="rtl"] .sk-og__text { right: 520px; left: 70px; }
.sk-og .og__kicker { margin: 0; font: 500 26px var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: #ead7b4; }
html[lang="ar"] .sk-og .og__kicker { letter-spacing: 0; font-size: 32px; }
.sk-og .og__names { margin: 10px 0; white-space: nowrap; font-size: 92px; line-height: 1.25; color: #fffaf2; text-shadow: 0 3px 20px rgba(0, 0, 0, .4); }
.sk-og .og__date { margin: 0; font: 500 24px var(--font-ui); color: #f4e9d8; }

@media (prefers-reduced-motion: reduce) {
  .sk-lights { display: none; }
  .sk-hero__photo img, .sk-moment img { transition: none; transform: none; }
}

/* closing photograph before the farewell */
.sk-moment[data-moment="2"] { height: 54vh; }

/* floating controls on the dark theme */
.lang-switch, .scroll-hint { background: rgba(22, 18, 16, .78); color: #f2e6cf; border-color: rgba(201, 164, 99, .45); }
.farewell { background: linear-gradient(180deg, var(--bg), #0b0908); color: var(--text); }
/* cards that the shared styles paint white */
.tile, .scratch__tile, .save-date__menu { background: var(--card); color: var(--text); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(201, 164, 99, .3); }
.pill--line { background: rgba(32, 27, 23, .6); color: var(--ink); }
.reply-card__error { color: #eba596; } /* the shared dark red can hardly be read on black */
