:root {
  /* always render in light mode, even when the phone is set to dark mode */
  color-scheme: light only;
  --ivory: #fbf7f1;
  --sand: #efe7da;
  --paper: #f6f0e4;
  --wine: #5e1627;
  --wine-deep: #3b0d17;
  --wine-soft: #8a3446;
  --ink: #3a2527;
  --muted: #8a7570;
  --line: #e3d7c3;
  --gold: #b8955a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;
  --urdu: "Noto Nastaliq Urdu", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light only; background: var(--sand); scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* Phone-first column: centred "phone" on bigger screens */
.app {
  max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--ivory);
  box-shadow: 0 0 60px rgba(59, 13, 23, .12); overflow-x: clip; padding-bottom: 10px; position: relative;
}

.sc { font-family: var(--sc); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--wine); }
.script { font-family: var(--script); font-weight: 400; color: var(--wine); line-height: 1.15; }

/* ============ Full-screen envelope cover ============ */
body.is-locked { overflow: hidden; }
.cover {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 100; width: min(100vw, 480px); height: 100vh; height: 100dvh;
  transform: translateX(-50%); background: #3a1418; overflow: hidden; cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent; outline: none; user-select: none; -webkit-user-select: none;
  perspective: 1400px; transition: visibility 0s 1.5s;
}
.cover:focus-visible { box-shadow: inset 0 0 0 3px #e0c27a; }
.cover > * { position: absolute; }
/* the envelope artwork, split down the middle so the two flaps can swing open */
.cover__half {
  top: 0; bottom: 0; width: 50%; overflow: hidden;
  transition: transform 1.2s cubic-bezier(.6, 0, .25, 1), opacity .5s .8s; will-change: transform;
}
.cover__half::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 200%;
  background: #6b2a33 url("images/envelope.jpg") center 48% / cover no-repeat;
}
.cover__half--l { left: 0; transform-origin: 0 50%; }
.cover__half--l::before { left: 0; }
.cover__half--r { right: 0; transform-origin: 100% 50%; }
.cover__half--r::before { right: 0; }
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(40, 8, 14, .6));
  transition: opacity .4s;
}
.cover__ring {
  z-index: 2; left: 50%; top: 48%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  border: 1.5px solid rgba(232, 205, 140, .7); animation: ring 2.4s ease-out infinite; pointer-events: none;
}
@keyframes ring { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.cover__text { z-index: 3; left: 0; right: 0; top: calc(7% + env(safe-area-inset-top)); padding: 0 28px; transition: opacity .4s; }
.cover__text .sc { color: #e6cf98; font-size: .78rem; letter-spacing: .22em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.cover__names { color: #f0dca8; font-size: clamp(2.6rem, 13vw, 3.5rem); margin-top: 6px; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.cover__tap {
  z-index: 3; left: 0; right: 0; bottom: calc(7% + env(safe-area-inset-bottom)); margin: 0;
  font-family: var(--sc); font-weight: 600; font-size: 1.05rem; letter-spacing: .32em; text-transform: uppercase; color: #f0dca8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6); animation: pulse 2s ease-in-out infinite; transition: opacity .3s;
}
.cover.is-opening { visibility: hidden; pointer-events: none; }
.cover.is-opening .cover__half--l { transform: translateX(-102%) rotateY(18deg); opacity: 0; }
.cover.is-opening .cover__half--r { transform: translateX(102%) rotateY(-18deg); opacity: 0; }
.cover.is-opening { background: transparent; transition: visibility 0s 1.5s, background .6s; }
.cover.is-opening::before,
.cover.is-opening .cover__ring,
.cover.is-opening .cover__text,
.cover.is-opening .cover__tap { opacity: 0; animation: none; }

/* ============ Bismillah (calligraphic ligature) ============ */
.bismillah { text-align: center; padding: 12px 16px 4px; }
.bismillah__ar { display: block; width: min(52%, 227px); height: auto; margin: 6px auto 8px; }
.bismillah__en { max-width: 300px; margin: 0 auto; font-size: .62rem; line-height: 1.6; letter-spacing: .14em; color: var(--wine-soft); }

/* ============ Intro / Envelope ============ */
.intro {
  min-height: 100vh; min-height: 100svh; padding: 26px 0 6px; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.stage {
  position: relative; width: min(94vw, 440px); margin: 0 auto; aspect-ratio: 100 / 92;
  container-type: inline-size; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none;
}
.stage:focus-visible { outline: 2px dashed var(--wine-soft); outline-offset: 6px; border-radius: 12px; }
.clip { position: absolute; inset: 0; perspective: 120cqw; clip-path: inset(-60cqw -20cqw 0 -20cqw); }
.clip > * { position: absolute; }

.pre { position: absolute; top: 9cqw; left: 0; right: 0; transition: opacity .5s, transform .6s; }
.pre .sc { font-size: 2.9cqw; }
.pre__names { font-size: 11cqw; margin-top: 2cqw; }
.stage.is-open .pre { opacity: 0; transform: translateY(-4cqw); pointer-events: none; }

.env-back { left: 4cqw; top: 40cqw; width: 92cqw; height: 52cqw; background: #3e1519; border-radius: 1cqw; z-index: 1; filter: drop-shadow(0 2.5cqw 3cqw rgba(59, 13, 23, .3)); }
.env-pocket { left: 4cqw; top: 40cqw; width: 92cqw; height: 52cqw; z-index: 4; border-radius: 1cqw; overflow: hidden; }
.env-flap { left: 4cqw; top: 40cqw; width: 92cqw; height: 28.6cqw; z-index: 6; transform-origin: 50% 0; transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .35s .65s, z-index 0s .45s; backface-visibility: visible; }

.frame {
  z-index: 2; left: 7cqw; top: 11cqw; width: 27cqw; height: 35cqw; border-radius: 50%; transform: rotate(-5deg) translateY(10cqw);
  background: #ebe5d8; opacity: 0; transition: transform 1s .85s ease, opacity .5s .85s;
  box-shadow: inset 0 0 0 1.1cqw #f4efe5, inset 0 0 0 1.5cqw #cdc5b3, 0 1cqw 3cqw rgba(0, 0, 0, .28);
}
.frame__photo { position: absolute; inset: 3cqw; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #6a2234, #2b070e); display: grid; place-items: center; }
.frame__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.frame__mono { font-family: var(--script); font-size: 9cqw; color: #e8d6b1; }

.card {
  z-index: 3; left: 30cqw; top: 6cqw; width: 50cqw; height: 62cqw; background: #faf5ea; border-radius: .6cqw;
  transform: translateY(30cqw) rotate(1.5deg); opacity: 0; transition: transform 1s .55s cubic-bezier(.2, .7, .2, 1), opacity .25s .55s;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .22); overflow: hidden;
}
.card__stripes { height: 6cqw; background: repeating-linear-gradient(90deg, #6a1a2c 0 1.1cqw, #faf5ea 1.1cqw 2.2cqw); border-bottom: .5cqw solid #6a1a2c; }
.card::before { content: ""; position: absolute; inset: 6cqw 2.2cqw 0 2.2cqw; border: .4cqw solid #6a1a2c; border-bottom: 0; opacity: .7; pointer-events: none; }
.card__inner { padding: 3.2cqw 3cqw 0; text-align: center; }
.card__save { font-size: 2.3cqw; letter-spacing: .16em; color: #4a3a3a; }
.card__name { font-size: 7.2cqw; margin-top: 1.4cqw; }
.card__amp { font-size: 5.6cqw; color: var(--gold); margin-top: .4cqw; }

.heart { z-index: 5; left: 21cqw; top: 45cqw; width: 36cqw; transform: translateY(10cqw); opacity: 0; transition: transform .9s 1s ease, opacity .5s 1s; filter: drop-shadow(0 .8cqw 1.2cqw rgba(59, 13, 23, .25)); }
.heart svg { display: block; width: 100%; }
.heart__date { position: absolute; left: 0; right: 0; top: 29%; text-align: center; font-family: var(--sc); font-weight: 600; font-size: 5cqw; letter-spacing: .04em; color: var(--wine); }

.peony { position: absolute; left: -2cqw; top: 14cqw; width: 18cqw; z-index: 3; opacity: 0; transition: opacity .6s 1s; filter: drop-shadow(0 .5cqw .8cqw rgba(0, 0, 0, .2)); }
.florals { position: absolute; left: 67cqw; top: 24cqw; width: 29cqw; height: auto; z-index: 8; pointer-events: none; filter: drop-shadow(0 .6cqw 1cqw rgba(0, 0, 0, .18)); transform-origin: 20% 0; transition: transform 1s .4s ease; }

.seal {
  position: absolute; z-index: 9; width: 17cqw; height: 17cqw; left: 41.5cqw; top: 60cqw;
  background: url("images/seal.webp") center / contain no-repeat; display: grid; place-items: center;
  filter: drop-shadow(0 .7cqw 1cqw rgba(0, 0, 0, .38)); transition: top .9s .55s ease, transform .9s .55s ease, opacity .5s;
}
.seal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.seal text { font-family: "Parisienne", "Pinyon Script", cursive; font-size: 120px; text-anchor: middle; }

/* open state */
.stage.is-open .env-flap { transform: rotateX(180deg); opacity: 0; z-index: 1; }
.stage.is-open .card { transform: translateY(0) rotate(1.5deg); opacity: 1; }
.stage.is-open .frame { transform: rotate(-5deg); opacity: 1; }
.stage.is-open .heart { transform: none; opacity: 1; }
.stage.is-open .peony { opacity: 1; }
.stage.is-open .seal { top: 76cqw; transform: scale(.92); }

.hint { margin-top: 6px; font-family: var(--sc); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine-soft); transition: opacity .4s; animation: pulse 2s ease-in-out infinite; }
.stage.is-open + .hint { opacity: 0; height: 0; margin: 0; animation: none; overflow: hidden; }
@keyframes pulse { 50% { opacity: .45; } }

/* ============ Meet us in ============ */
.meet { padding: 52px 24px 40px; text-align: center; }
.meet__city { font-size: clamp(2.8rem, 13vw, 3.8rem); margin: 12px 0 30px; }
.meet__line { font-size: .95rem; line-height: 2; color: #4a3a3a; letter-spacing: .1em; }
.countdown { margin-top: 44px; }
.countdown__label { color: var(--muted); font-size: .72rem; margin-bottom: 14px; }
.countdown__row { display: flex; justify-content: center; align-items: flex-start; gap: 8px; }
.countdown__row div { min-width: 54px; }
.countdown__row b { display: block; font-family: var(--sc); font-weight: 500; font-size: 1.9rem; letter-spacing: .12em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown__row span { font-family: var(--sc); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.countdown__row i { font-style: normal; font-size: 1.7rem; line-height: 1.15; color: var(--ink); }

/* ============ Section headers ============ */
.section-head { text-align: center; padding: 0 24px; }
.section-head .script { font-size: 3rem; margin-top: 4px; }
.lead { margin-top: 10px; color: var(--muted); font-size: 1.1rem; }

/* ============ Events ============ */
.events { padding: 40px 0 30px; }
.evnav {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; justify-content: center; padding: 12px 10px; margin: 18px 0 10px;
  background: rgba(251, 247, 241, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.evnav a {
  text-decoration: none; font-family: var(--sc); font-size: .8rem; letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; color: var(--wine);
  padding: 9px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: all .2s;
}
.evnav a.is-active { background: var(--wine); border-color: var(--wine); color: #f6ecd9; }

.events__list { display: grid; gap: 28px; padding: 14px 18px 0; }
.ev { background: var(--paper); border-radius: 6px; box-shadow: 0 6px 24px rgba(59, 13, 23, .12); overflow: hidden; scroll-margin-top: 70px; }
.ev__stripes { height: 22px; background: repeating-linear-gradient(90deg, #6a1a2c 0 7px, #faf5ea 7px 14px); border-bottom: 2px solid #6a1a2c; }
.ev__body { margin: 12px; padding: 22px 18px 20px; background: #faf5ea; border: 1.5px solid rgba(106, 26, 44, .55); text-align: center; }
.ev__day { color: var(--muted); font-size: .78rem; }
.ev__name { font-size: 3.4rem; margin-top: 2px; }
.ev__urdu { font-family: var(--urdu); font-size: 1.5rem; color: var(--wine-soft); line-height: 2; margin-top: -6px; }
.ev__blurb { font-style: italic; color: var(--muted); margin: 6px 6px 18px; line-height: 1.45; }
.ev__when { border-block: 1px solid var(--line); padding: 14px 0; margin-bottom: 18px; }
.ev__date { font-family: var(--sc); font-weight: 600; font-size: 1.25rem; letter-spacing: .08em; color: var(--ink); }
.ev__time { color: #5a4547; margin-top: 2px; }
.rows { display: grid; gap: 14px; text-align: left; margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.row svg { width: 26px; height: 26px; fill: none; stroke: var(--wine-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.row .sc { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .16em; }
.row p { line-height: 1.35; }
.swatches { display: flex; gap: 6px; margin-top: 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--line); }

.prog { text-align: left; border-top: 1px solid var(--line); }
.prog summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; font-family: var(--sc); font-size: .88rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.prog summary::-webkit-details-marker { display: none; }
.prog summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform .25s; }
.prog[open] summary::after { transform: rotate(45deg); }
.prog ol { list-style: none; margin: 0 0 12px; padding: 0 0 0 16px; border-left: 1.5px solid var(--line); }
.prog li { position: relative; padding: 3px 0 9px 12px; }
.prog li::before { content: ""; position: absolute; left: -22px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--wine-soft); }
.prog time { font-weight: 600; margin-right: 8px; font-variant-numeric: tabular-nums; }

.ev__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }

/* ============ Buttons ============ */
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font-family: var(--sc); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 14px; border-radius: 12px; border: 1.5px solid transparent; transition: transform .15s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--wine { background: var(--wine); color: #f6ecd9; }
.btn--line { background: transparent; border-color: var(--wine); color: var(--wine); }
.btn--sm { padding: 13px 6px; font-size: .74rem; letter-spacing: .07em; white-space: nowrap; }

/* ============ RSVP ============ */
.rsvp-sec { padding: 46px 0 40px; background: var(--paper); border-block: 1px solid var(--line); }
.rsvp { margin: 24px 18px 0; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > .sc, .field legend { padding: 0; color: var(--wine); }
.field em { text-transform: none; letter-spacing: 0; font-style: italic; color: var(--muted); font-family: var(--serif); font-size: .95rem; }
input[type="text"], textarea {
  width: 100%; font: 500 1.1rem var(--serif); color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 14px 16px; -webkit-appearance: none; appearance: none;
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--wine-soft); box-shadow: 0 0 0 3px rgba(138, 52, 70, .15); }
.checks { display: grid; gap: 10px; }
.check { position: relative; }
.check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check label { display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: all .2s; }
.check label::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cdbda0; transition: all .2s; }
.check label b { font-family: var(--script); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--wine); }
.check label small { margin-left: auto; color: var(--muted); font-size: .95rem; }
.check input:checked + label { border-color: var(--wine); background: #fff7f5; }
.check input:checked + label::before { background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 15px no-repeat; border-color: var(--wine); }
.check input:focus-visible + label { outline: 2px dashed var(--wine-soft); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; width: max-content; }
.stepper button { width: 52px; height: 52px; border: 0; background: none; font-size: 1.7rem; color: var(--wine); cursor: pointer; border-radius: 50%; }
.stepper output { min-width: 48px; text-align: center; font-family: var(--sc); font-weight: 600; font-size: 1.5rem; }
.form-msg { text-align: center; font-size: 1rem; color: var(--wine); }
.form-msg--error { color: #a0222f; font-weight: 600; }

/* ============ Couple photo ============ */
.couple { padding: 10px 22px 34px; text-align: center; }
.couple__frame {
  margin: 0 auto; width: min(100%, 360px); aspect-ratio: 4 / 5; border-radius: 999px 999px 14px 14px; overflow: hidden;
  border: 6px solid #faf5ea; box-shadow: 0 0 0 1.5px var(--gold), 0 14px 34px rgba(59, 13, 23, .22);
}
.couple__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.couple__names { font-size: 2.6rem; margin-top: 16px; }

/* ============ Contact ============ */
.contact-sec { padding: 46px 0 40px; background: var(--ivory); border-block: 1px solid var(--line); }
.contact { margin: 24px 22px 0; padding: 26px 20px; background: #faf5ea; border: 1.5px solid rgba(106, 26, 44, .4); border-radius: 6px; text-align: center; }
.contact__name { font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.contact__role { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.contact__phone { margin: 12px 0 18px; font-family: var(--sc); font-size: 1.3rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev__note { font-style: italic; color: var(--muted); font-size: 1rem; }

/* ============ FAQ ============ */
.faq-sec { padding: 46px 0 20px; }
.faq { margin: 24px 22px 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 2px; display: flex; justify-content: space-between; gap: 14px; align-items: center; font-weight: 600; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--wine-soft); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 2px 18px; color: var(--muted); }

/* ============ House rules ============ */
.rules-sec { padding: 46px 0 40px; }
.rules { list-style: none; counter-reset: rule; margin: 24px 22px 0; padding: 0; border-top: 1px solid var(--line); }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 44px 1fr; column-gap: 6px; align-items: start; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(rule); grid-row: 1 / span 2; font-family: var(--script); font-size: 2.6rem; line-height: .95; color: var(--wine-soft); text-align: center; }
.rules b { font-family: var(--sc); font-weight: 600; font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.rules span { margin-top: 4px; color: var(--ink); line-height: 1.45; }
.rules__close { text-align: center; font-size: 2.2rem; margin: 26px 22px 0; }

/* ============ Footer ============ */
.footer { text-align: center; padding: 44px 24px 36px; }
.footer__names { font-size: 2.8rem; }
.footer .sc { margin-top: 6px; color: var(--muted); }
.footer__small { margin-top: 20px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.footer a { color: var(--wine); }

/* ============ Floating RSVP button (like the pin) ============ */
.fab {
  position: fixed; left: 50%; bottom: 0; z-index: 30; width: min(92vw, 420px); transform: translateX(-50%); text-align: center; text-decoration: none;
  background: var(--wine); color: #f3e8d6; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 24px rgba(59, 13, 23, .22); transition: transform .35s ease;
}
.fab .sc { color: #f3e8d6; font-size: .95rem; letter-spacing: .2em; }
.fab.is-hidden { transform: translate(-50%, 115%); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.ev__actions--one { grid-template-columns: 1fr; }

/* ============ Host line & RSVP contacts ============ */
.ev__host { margin: -6px 6px 16px; color: var(--wine); font-size: 1.05rem; line-height: 1.35; }
.ev__host .sc { display: block; font-size: .66rem; letter-spacing: .2em; color: var(--muted); margin-bottom: 2px; }
.ev__phones { display: grid; gap: 4px; margin-top: 6px; }
.ev__phones a { color: var(--wine); text-decoration: none; border-bottom: 1px solid var(--line); width: fit-content; }

/* ============ Per-event card colours ============
   Cards sit on the same off-white as the "Get in touch" card; the theme colour shows on
   the stripes, border, titles, icons and buttons.
   --c-accent: stripes/border/filled buttons   --c-on: label on the accent
   --c-head: titles, icons, links (≥4.5:1 on the off-white) */
.ev, .evnav a { --c-accent: #6a1a2c; --c-on: #f6ecd9; --c-head: #5e1627; --c-s1: var(--c-accent); }
.ev--yellow, .evnav a[data-theme="yellow"]   { --c-accent: #f5b800; --c-on: #1b1400; --c-head: #1b1400; }
.ev--orange, .evnav a[data-theme="orange"]   { --c-accent: #f28c28; --c-on: #2b1300; --c-head: #b04a00; }
.ev--green, .evnav a[data-theme="green"]     { --c-accent: #0f5a36; --c-on: #ffffff; --c-head: #0f5a36; }
.ev--rose, .evnav a[data-theme="rose"]       { --c-accent: #86203b; --c-on: #ffffff; --c-head: #86203b; }
.ev--black, .evnav a[data-theme="black"]     { --c-accent: #111111; --c-on: #ffffff; --c-head: #111111; }
.ev--peach, .evnav a[data-theme="peach"]     { --c-accent: #b4573a; --c-on: #ffffff; --c-head: #1b1400; --c-s1: #f4a98d; }

.ev { background: #faf5ea; }
.ev .ev__stripes { background: repeating-linear-gradient(90deg, var(--c-s1) 0 7px, #faf5ea 7px 14px); border-bottom-color: var(--c-s1); }
.ev .ev__body { background: #faf5ea; border-color: var(--c-s1); }
.ev .ev__name, .ev .ev__urdu, .ev .ev__host, .ev .prog summary, .ev .ev__phones a { color: var(--c-head); }
.ev .ev__phones a { border-bottom-color: var(--c-s1); }
.ev .row svg { stroke: var(--c-head); }
.ev .prog li::before { background: var(--c-s1); }
.ev .btn--wine { background: var(--c-accent); color: var(--c-on); }
.ev .btn--line { border-color: var(--c-head); color: var(--c-head); }
.evnav a.is-active[data-theme] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on); }
