:root {
  --ink: #060606;
  --ink-2: #0e0d0b;
  --panel: #141210;
  --panel-2: #1b1814;
  --line: rgba(201, 161, 74, 0.32);
  --line-soft: rgba(201, 161, 74, 0.16);
  --gold: #c9a14a;
  --gold-hi: #f1d48a;
  --gold-lo: #9c7428;
  --ivory: #f4ecd8;
  --text: #ece4d2;
  --muted: #a99d86;
  --ok: #3fae6a;
  --warn: #e0a43a;
  --bad: #d65a4a;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gold-grad: linear-gradient(135deg, #a8772a 0%, #f1d48a 38%, #c9973f 62%, #f5dc9a 100%);
  --on-gold: #1a1206;
  --ok-ink: #8fdcab; --warn-ink: #f1cf8f; --bad-ink: #f2a79c;
  --ok-line: rgba(63,174,106,.6); --warn-line: rgba(224,164,58,.6); --bad-line: rgba(214,90,74,.6);
  --warn-bg: rgba(224,164,58,.08);
  --shadow-lg: 0 24px 48px rgba(0,0,0,.6);
  --shadow-env: 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.8);
  --shadow-sm: rgba(0,0,0,.5);
  --env-back-1: #1c1915; --env-back-2: #0c0b09; --env-front: #15130f; --env-bottom: #181510;
  --env-flap-1: #221e17; --env-flap-2: #14120e; --env-letter: #f4ecd8;
  --backdrop: rgba(0,0,0,.7);
  color-scheme: dark;
}

/* Light "ivory paper" theme: dark is the default; light only when chosen with the ☀ button. */
:root[data-theme='light'] {
  --ink: #f7f1e3; --ink-2: #f1e9d6; --panel: #fbf7ee; --panel-2: #f4ecda;
  --line: rgba(140, 104, 36, 0.38); --line-soft: rgba(140, 104, 36, 0.18);
  --gold: #9c7428; --gold-hi: #7a5716; --gold-lo: #b58a3a;
  --text: #1d1810; --muted: #6f6450;
  --gold-grad: linear-gradient(135deg, #7d5a1c 0%, #a87e2f 45%, #7d5a1c 100%);
  --on-gold: #fffaf0;
  --ok-ink: #1f7a45; --warn-ink: #8a5a00; --bad-ink: #a33a2c;
  --ok-line: rgba(31,122,69,.45); --warn-line: rgba(160,110,10,.5); --bad-line: rgba(163,58,44,.45);
  --warn-bg: rgba(201,150,40,.12);
  --shadow-lg: 0 18px 40px rgba(110,80,30,.16);
  --shadow-env: 0 22px 44px rgba(110,80,30,.20), 0 0 0 1px rgba(140,104,36,.25);
  --shadow-sm: rgba(110,80,30,.25);
  --env-back-1: #efe3c8; --env-back-2: #e4d3ae; --env-front: #ebdcbc; --env-bottom: #e7d6b3;
  --env-flap-1: #f4ead4; --env-flap-2: #e8d8b6; --env-letter: #fffdf6;
  --backdrop: rgba(60,45,20,.45);
  color-scheme: light;
}
/* the gold artwork reads too pale on ivory, so deepen it in the light theme */
:root[data-theme='light'] .art { filter: brightness(0.62) saturate(1.2); }

.theme-btn {
  position: absolute; right: 14px; top: 14px; z-index: 45; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--gold-hi); cursor: pointer; font-size: 1rem;
}
.admin-top .theme-btn, .scan .theme-btn { position: static; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); }
button { font: inherit; }
[hidden] { display: none !important; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.script { font-family: var(--script); font-weight: 400; line-height: 1.1; }
.caps { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.68rem; font-weight: 400; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.6em; min-height: 48px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: transparent; color: var(--gold-hi);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.1s;
}
.btn:hover { background: rgba(201, 161, 74, 0.12); }
.btn:active { transform: scale(0.98); }
.btn.solid { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; font-weight: 500; }
.btn.solid:hover { filter: brightness(1.06); }
.btn.small { padding: 0.5em 1em; min-height: 36px; font-size: 0.68rem; letter-spacing: 0.14em; }
.btn.danger { border-color: var(--bad-line); color: var(--bad-ink); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* ---------- ornaments ---------- */
.flourish { display: flex; align-items: center; justify-content: center; gap: 0.9rem; color: var(--gold); margin: 1.2rem auto; max-width: 320px; }
.flourish::before, .flourish::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish::after { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish span { font-size: 0.9rem; }

/* ---------- envelope (invitation opening) ---------- */
.envelope-stage {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  padding: 24px 16px;
  background: radial-gradient(ellipse at 50% 35%, var(--panel-2) 0%, var(--ink) 70%);
  transition: opacity 0.9s ease 1.5s, visibility 0s linear 2.4s;
}
.envelope-stage.opened { opacity: 0; visibility: hidden; }
.envelope-to { text-align: center; }
.envelope-to .caps { color: var(--muted); }
.envelope-to .name { font-size: clamp(2rem, 9vw, 3rem); margin-top: 0.2rem; }
.envelope {
  position: relative; width: min(88vw, 380px); aspect-ratio: 1.45;
  perspective: 1200px;
}
.envelope .back, .envelope .front, .envelope .flap, .envelope .letter { position: absolute; left: 0; right: 0; }
.envelope .back {
  inset: 0; border-radius: 6px;
  background: linear-gradient(160deg, var(--env-back-1), var(--env-back-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-env);
}
.envelope .letter {
  left: 6%; right: 6%; top: 6%; height: 88%;
  background: var(--env-letter); border-radius: 4px; box-shadow: 0 0 0 1px var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s cubic-bezier(.2,.7,.2,1) 0.7s;
  z-index: 1;
}
.envelope .letter img { width: 32%; opacity: 0.9; filter: brightness(0.25) sepia(0.6); }
.envelope .front {
  inset: 0; z-index: 2; border-radius: 6px; pointer-events: none;
  background:
    linear-gradient(to top right, var(--env-front) 49.6%, transparent 50%) left / 50.5% 100% no-repeat,
    linear-gradient(to top left, var(--env-front) 49.6%, transparent 50%) right / 50.5% 100% no-repeat;
}
.envelope .front::after {
  content: ''; position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(to top, var(--env-bottom) 0 40%, transparent 40%);
  clip-path: polygon(0 100%, 50% 45%, 100% 100%);
}
.envelope .flap {
  top: 0; height: 62%; z-index: 3;
  transform-origin: top center; transition: transform 0.8s ease 0.25s, z-index 0s 0.6s;
  filter: drop-shadow(0 6px 8px var(--shadow-sm));
}
.envelope .flap::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--env-flap-1), var(--env-flap-2));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top: 1px solid var(--line);
}
.envelope .flap::after { /* gold edge on the flap */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold-lo));
  clip-path: polygon(0 0, 1.2% 0, 50% 97.5%, 98.8% 0, 100% 0, 50% 100%);
  opacity: 0.8;
}
.seal {
  position: absolute; left: 50%; top: 62%; z-index: 4;
  width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #f6dd99 0%, #d2a548 35%, #a7782b 70%, #7d5617 100%);
  box-shadow: 0 6px 16px var(--shadow-sm), inset 0 -4px 8px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(255, 240, 200, 0.5);
  display: grid; place-items: center;
  transition: transform 0.5s ease, opacity 0.4s ease;
  animation: seal-pulse 2.4s ease-in-out infinite;
}
.seal::before { /* wax drips */
  content: ''; position: absolute; inset: -7%; border-radius: 47% 53% 49% 51% / 52% 46% 54% 48%;
  background: inherit; z-index: -1; filter: brightness(0.92);
}
.seal img { width: 54%; opacity: 0.85; mix-blend-mode: multiply; }
@keyframes seal-pulse { 0%, 100% { box-shadow: 0 6px 16px var(--shadow-sm), 0 0 0 0 rgba(201,151,63,.35); } 50% { box-shadow: 0 6px 16px var(--shadow-sm), 0 0 0 14px rgba(241,212,138,0); } }
.envelope-hint { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); animation: fade-pulse 2.4s ease-in-out infinite; }
@keyframes fade-pulse { 50% { opacity: 0.45; } }
.envelope-stage.opened .seal { transform: translate(-50%, -50%) scale(0.4); opacity: 0; animation: none; }
.envelope-stage.opened .flap { transform: rotateX(180deg); z-index: 0; }
.envelope-stage.opened .letter { transform: translateY(-55%); }
.envelope-stage.opened .envelope-hint, .envelope-stage.opened .envelope-to { opacity: 0; transition: opacity 0.4s; }

/* ---------- invitation layout ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 0 16px; }
section.block { padding: 72px 0; text-align: center; position: relative; }
section.block + section.block { border-top: 1px solid var(--line-soft); }
.block h2 { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 11vw, 3.6rem); margin: 0.2rem 0 0.6rem; line-height: 1.1; }
.block .lede { color: var(--muted); font-style: italic; max-width: 30em; margin: 0 auto; }

.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 64px; }
.hero .logo { width: min(86vw, 440px); margin: 0 auto; }
.hero .dear { font-size: 1.25rem; margin-top: 1.4rem; }
.hero .intro { font-style: italic; color: var(--muted); margin: 0.4rem auto 0; max-width: 26em; }
.hero .invite-line { font-size: 1.15rem; max-width: 24em; margin: 0.8rem auto 0; }
.hero .date-line { margin-top: 1.6rem; font-size: 1.5rem; letter-spacing: 0.04em; }
.hero .admits { display: inline-block; margin-top: 1.2rem; padding: 0.45em 1.1em; border: 1px solid var(--line); border-radius: 999px; }
.scroll-cue { margin-top: 2.4rem; color: var(--gold); font-size: 1.4rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.scripture blockquote { margin: 0 auto; max-width: 22em; font-size: clamp(1.4rem, 5.6vw, 1.9rem); font-style: italic; line-height: 1.35; }
.scripture cite { display: block; margin-top: 0.9rem; font-style: normal; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 460px; margin: 1.6rem auto 0; }
.countdown div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 4px 10px; background: linear-gradient(180deg, var(--panel-2), var(--ink-2)); }
.countdown b { display: block; font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 500; line-height: 1; }
.countdown span { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 16px; margin: 1.4rem -16px 0; padding-inline: 16px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 72%; max-width: 360px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; scroll-snap-align: center; border: 1px solid var(--line); }

.timeline { list-style: none; margin: 1.8rem auto 0; padding: 0; max-width: 460px; text-align: left; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), transparent); }
.timeline li { position: relative; padding: 0 0 1.6rem 2.2rem; }
.timeline li::before { content: ''; position: absolute; left: 1px; top: 0.45em; width: 13px; height: 13px; transform: rotate(45deg); background: var(--gold-grad); }
.timeline .when { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; }
.timeline .what { font-size: 1.35rem; font-weight: 600; margin: 0.1rem 0; }
.timeline .desc { color: var(--muted); }

.frame {
  position: relative; margin: 1.6rem auto 0; max-width: 480px; padding: 34px 22px 28px;
  border: 1px solid var(--gold); border-radius: 4px;
  outline: 1px solid var(--line); outline-offset: 6px;
}
.frame::before, .frame::after { content: '✦'; position: absolute; left: 50%; transform: translateX(-50%); color: var(--gold); background: var(--ink); padding: 0 10px; font-size: 0.9rem; }
.frame::before { top: -0.75em; }
.frame::after { bottom: -0.75em; }
.frame + .frame { margin-top: 2.4rem; }
.frame h3 { font-family: var(--script); font-weight: 400; font-size: 2.4rem; margin: 0; line-height: 1.1; }
.frame .venue { font-size: 1.35rem; font-weight: 600; margin: 0.6rem 0 0.2rem; }
.frame .time { font-size: 1.1rem; }
.frame .btn-row { margin-top: 1.2rem; }

.swatches { display: flex; justify-content: center; gap: 18px; margin-top: 1.2rem; flex-wrap: wrap; }
.swatches div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.swatches i { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); box-shadow: inset 0 0 0 3px var(--ink); }

.rsvp-cta .status { font-size: 1.2rem; margin: 0.6rem auto 1.4rem; max-width: 24em; }

footer.site { padding: 56px 16px 72px; text-align: center; border-top: 1px solid var(--line-soft); }
footer.site img { width: 72px; margin: 0 auto 0.8rem; opacity: 0.9; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

.music-btn {
  position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--panel); color: var(--gold-hi); cursor: pointer;
  backdrop-filter: blur(6px); font-size: 1.1rem;
}
.music-btn.playing { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.card { background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; }
label.field { display: block; text-align: left; margin-top: 1rem; }
label.field > span { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%; font: inherit; font-family: var(--sans); font-size: 16px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.75em 0.9em;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .opt { display: block; text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; font-size: 1.1rem; transition: all 0.2s; }
.choice input:checked + .opt { border-color: var(--gold); background: rgba(201,161,74,.14); color: var(--gold-hi); }
.choice input:focus-visible + .opt { outline: 2px solid var(--gold); }
.form-error { color: var(--bad-ink); font-family: var(--sans); font-size: 0.9rem; margin-top: 0.8rem; min-height: 1.2em; }

/* ---------- simple pages (rsvp / pass / landing) ---------- */
.narrow { max-width: 480px; margin: 0 auto; padding: 32px 16px 64px; text-align: center; }
.narrow .logo { width: min(64vw, 260px); margin: 0 auto; }
.center-screen { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.loading { color: var(--muted); font-style: italic; padding: 40vh 0; text-align: center; }

.ticket {
  position: relative; margin: 1.6rem auto 0; max-width: 360px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--gold);
  box-shadow: var(--shadow-lg);
}
.ticket .top { padding: 22px 20px 18px; }
.ticket .top img { width: 120px; margin: 0 auto; }
.ticket .tear { position: relative; border-top: 2px dashed var(--line); margin: 0 16px; }
.ticket .tear::before, .ticket .tear::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 1px solid var(--gold); }
.ticket .tear::before { left: -28px; }
.ticket .tear::after { right: -28px; }
.ticket .bottom { padding: 20px; }
.qr-box { background: #fff; border-radius: 12px; padding: 14px; width: 232px; margin: 0 auto; }
.qr-box canvas { width: 100%; height: auto; image-rendering: pixelated; display: block; }
.pass-code { font-family: var(--sans); letter-spacing: 0.24em; font-size: 1rem; margin-top: 0.8rem; color: var(--gold-hi); }
.pass-tag { display: inline-block; margin-top: 0.7rem; padding: 0.3em 1.1em; border-radius: 999px; background: var(--gold-grad); color: var(--on-gold); font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.ticket .guest-name { font-size: 1.6rem; font-weight: 600; line-height: 1.2; margin-top: 0.6rem; }

/* ---------- admin ---------- */
body.admin { font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.admin-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ink); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.admin-top img { width: 34px; }
.admin-top .title { font-family: var(--serif); font-size: 1.25rem; }
.admin-top .spacer { flex: 1; }
.tabs { display: flex; gap: 4px; padding: 10px 16px 0; overflow-x: auto; border-bottom: 1px solid var(--line-soft); }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-size: 0.9rem; }
.tabs button[aria-selected='true'] { color: var(--gold-hi); border-color: var(--gold); }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 80px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--gold-hi); line-height: 1.1; }
.stat span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 12px; }
.toolbar input[type=search] { flex: 1 1 220px; width: auto; }
.toolbar select { width: auto; }
.notice { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }

table.guests { width: 100%; border-collapse: collapse; }
table.guests th { text-align: left; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 55px; background: var(--ink); z-index: 1; }
table.guests td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.guests tr:hover td { background: rgba(201,161,74,.04); }
table.guests .num { color: var(--muted); font-variant-numeric: tabular-nums; width: 44px; }
table.guests .nm { font-weight: 500; color: var(--text); }
table.guests .sub { font-size: 0.8rem; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; font-size: 0.72rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; margin: 0 4px 4px 0; }
.pill.ok { border-color: var(--ok-line); color: var(--ok-ink); }
.pill.no { border-color: var(--bad-line); color: var(--bad-ink); }
.pill.warn { border-color: var(--warn-line); color: var(--warn-ink); }
.pill.gold { border-color: var(--gold); color: var(--gold-hi); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 0.8rem; white-space: nowrap; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.icon-btn.wa { border-color: var(--ok-line); color: var(--ok-ink); }

@media (max-width: 760px) {
  table.guests thead { display: none; }
  table.guests, table.guests tbody, table.guests tr, table.guests td { display: block; width: 100%; }
  table.guests tr { border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 10px; padding: 8px 10px; background: var(--panel); }
  table.guests td { border: 0; padding: 4px 0; }
  table.guests .num { display: inline; }
}

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }
fieldset { border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px 16px 18px; margin: 0 0 18px; }
legend { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-hi); padding: 0 8px; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.photos-grid figure { margin: 0; position: relative; }
.photos-grid img { aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; width: 100%; }
.photos-grid .ctl { display: flex; gap: 4px; margin-top: 4px; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); }
dialog::backdrop { background: var(--backdrop); }
dialog form, dialog .dlg { padding: 20px; }
dialog h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-hi); font-weight: 500; }
dialog .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.linkbox { display: flex; gap: 6px; margin-top: 6px; }
.send-kinds { display: flex; gap: 4px; margin: 10px 0 4px; border-bottom: 1px solid var(--line-soft); }
.send-kinds button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px 12px; cursor: pointer; font-size: 0.85rem; }
.send-kinds button[aria-selected='true'] { color: var(--gold-hi); border-color: var(--gold); }
.send-kinds button:disabled { opacity: 0.35; cursor: default; }
.field .lbl { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 0.4rem; }
.seat-choice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seat-choice label { cursor: pointer; }
.seat-choice input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seat-choice span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
.seat-choice input:checked + span { border-color: var(--gold); background: rgba(201,161,74,.16); color: var(--gold-hi); }
.seat-choice input:focus-visible + span { outline: 2px solid var(--gold); }
.seat-choice input[type=number] { width: 84px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.cat-tabs button { background: var(--panel); border: 1px solid var(--line-soft); color: var(--muted); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 0.85rem; }
.cat-tabs button b { color: var(--text); font-weight: 500; margin-left: 4px; }
.cat-tabs button[aria-pressed='true'] { border-color: var(--gold); color: var(--gold-hi); background: rgba(201,161,74,.12); }
.pill.cat { border-color: var(--gold); color: var(--on-gold); background: var(--gold-grad); }
.seat-num { width: 90px; }
.grp-name { min-width: 220px; }
.icon-btn.solid { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.admits-chip { display: inline-block; font-size: 0.72rem; padding: 1px 8px; border-radius: 999px; background: rgba(201,161,74,.14); color: var(--gold-hi); margin-left: 6px; vertical-align: 2px; }
.linkbox input { font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(120px); background: var(--gold-grad); color: var(--on-gold); padding: 10px 18px; border-radius: 999px; font-family: var(--sans); font-size: 0.9rem; z-index: 100; transition: transform 0.3s; max-width: calc(100vw - 32px); }
.toast.show { transform: translateX(-50%); }
.toast.err { background: #5a1d16; color: #ffd9d3; }

/* ---------- scanner ---------- */
body.scan { font-family: var(--sans); font-size: 16px; }
.scan-wrap { max-width: 520px; margin: 0 auto; padding: 12px 16px 40px; }
#reader { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; min-height: 260px; }
#reader video { border-radius: 14px; }
.gate-stats { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; }
.gate-stats div { flex: 1; text-align: center; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px; }
.gate-stats b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-hi); line-height: 1.1; }
.gate-stats span { font-size: 0.72rem; color: var(--muted); }
.verdict { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px; }
.verdict.ok { background: #0f3b22; }
.verdict.already { background: #4a3307; }
.verdict.bad { background: #4a1410; }
.verdict .big { font-size: 4rem; line-height: 1; }
.verdict .head { font-size: 1.1rem; letter-spacing: 0.25em; text-transform: uppercase; }
.verdict .who { font-family: var(--serif); font-size: 2.2rem; line-height: 1.15; }
.verdict .detail { color: rgba(255,255,255,.8); }
.verdict .btn-row { margin-top: 16px; }
.manual { display: flex; gap: 8px; margin-top: 12px; }
.manual input { text-transform: uppercase; letter-spacing: 0.15em; }

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

/* ---------- magic ---------- */
.magic-dust { position: fixed; inset: 0; z-index: 55; pointer-events: none; mix-blend-mode: screen; }
:root[data-theme='light'] .magic-dust { mix-blend-mode: multiply; opacity: 0.7; }

/* a slow sheen travelling across every piece of gold lettering */
:root { --gold-sheen: linear-gradient(110deg, #a8772a 0%, #f1d48a 22%, #fff4d2 30%, #d8ac55 40%, #a8772a 55%, #f1d48a 75%, #c9973f 100%); }
:root[data-theme='light'] { --gold-sheen: linear-gradient(110deg, #7d5a1c 0%, #a87e2f 25%, #d9b162 32%, #8a6420 45%, #7d5a1c 60%, #a87e2f 80%, #7d5a1c 100%); }
.gold-text { background-image: var(--gold-sheen); background-size: 250% 100%; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* glowing halo and slow light rays behind the logo */
.halo { position: relative; isolation: isolate; width: min(86vw, 440px); margin: 0 auto; }
.halo .logo { width: 100%; position: relative; z-index: 1; filter: drop-shadow(0 0 18px rgba(241, 212, 138, 0.25)); }
.halo::before { content: ''; position: absolute; inset: -12%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(241, 212, 138, 0.26), rgba(241, 212, 138, 0.06) 45%, transparent 68%);
  animation: breathe 6s ease-in-out infinite; }
.halo::after { content: ''; position: absolute; inset: -30%; z-index: 0;
  background: repeating-conic-gradient(from 0deg at 50% 42%, rgba(241, 212, 138, 0.08) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(circle at 50% 42%, #000 0, transparent 60%); mask: radial-gradient(circle at 50% 42%, #000 0, transparent 60%);
  animation: spin 90s linear infinite; }
:root[data-theme='light'] .halo::before { background: radial-gradient(circle at 50% 42%, rgba(201, 151, 63, 0.22), transparent 65%); }
:root[data-theme='light'] .halo::after { background: repeating-conic-gradient(from 0deg at 50% 42%, rgba(156, 116, 40, 0.08) 0deg 3deg, transparent 3deg 15deg); }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.75; } }

/* hand-drawn gold flourish (replaces the plain line divider) */
.flourish, .ornament { display: block; width: min(280px, 72%); height: 34px; margin: 0.6rem auto 1rem; max-width: none;
  background: var(--gold-grad); -webkit-mask: url(/assets/img/flourish.svg?v=mvltbuld) center / contain no-repeat; mask: url(/assets/img/flourish.svg?v=mvltbuld) center / contain no-repeat; }
.flourish::before, .flourish::after, .flourish span { display: none; }
.ornament { width: min(220px, 60%); height: 26px; margin: 0.2rem auto 1.2rem; }

/* filigree corners on framed cards */
.corner { position: absolute; width: 44px; height: 44px; pointer-events: none; background: var(--gold-grad);
  -webkit-mask: url(/assets/img/corner.svg?v=mvltbuld) center / contain no-repeat; mask: url(/assets/img/corner.svg?v=mvltbuld) center / contain no-repeat; }
.corner.tl { top: 5px; left: 5px; }
.corner.tr { top: 5px; right: 5px; transform: scaleX(-1); }
.corner.bl { bottom: 5px; left: 5px; transform: scaleY(-1); }
.corner.br { bottom: 5px; right: 5px; transform: scale(-1); }
.frame { padding: 40px 30px 32px; box-shadow: 0 0 40px rgba(201, 161, 74, 0.06) inset; }

/* sections drift in, out of a soft blur */
.reveal { opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(6px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1.1s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }

.countdown div { box-shadow: 0 0 22px rgba(201, 161, 74, 0.1) inset, 0 8px 22px rgba(0, 0, 0, 0.25); }
.countdown b { background-image: var(--gold-sheen); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite; }
.envelope-stage .seal { box-shadow: 0 0 40px rgba(241, 212, 138, 0.35), 0 6px 16px var(--shadow-sm); }
.envelope .letter { box-shadow: 0 0 30px rgba(241, 212, 138, 0.35); }
.hero .date-line { text-shadow: 0 0 24px rgba(241, 212, 138, 0.18); }

/* ---------- gifts ---------- */
.gift-bank { position: relative; max-width: 440px; margin: 1.8rem auto 0; padding: 34px 26px 26px; border-radius: 18px; text-align: center;
  background: linear-gradient(135deg, #1f1a11 0%, #0b0a08 55%, #1b160d 100%); border: 1px solid var(--gold);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 240, 200, 0.15); color: #ece4d2; }
:root[data-theme='light'] .gift-bank { background: linear-gradient(135deg, #fffaf0, #f3e7cd); color: var(--text); box-shadow: var(--shadow-lg); }
.gift-bank .bank-name { font-size: 1.25rem; font-weight: 600; margin-top: 0.4rem; }
.gift-bank .acct { font-family: var(--sans); font-size: clamp(1.5rem, 7vw, 2rem); letter-spacing: 0.16em; margin: 0.4rem 0 0.2rem; }
.gift-bank .acct-name { font-size: 1.1rem; }
.gift-bank .note { font-size: 0.98rem; margin: 1rem auto 0; max-width: 28em; color: var(--muted); }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; margin-top: 1.2rem; text-align: left; }
.gift { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); transition: transform 0.25s, box-shadow 0.25s; }
.gift:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--gold); }
.gift .gimg { aspect-ratio: 1; background: #fff; display: grid; place-items: center; }
.gift .gimg img { width: 100%; height: 100%; object-fit: contain; }
.gift .gimg .ph { font-size: 2.2rem; color: #c9a14a; }
.gift .gi { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gift .gc { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.gift .gn { font-weight: 600; line-height: 1.2; font-size: 1.05rem; }
.gift .gp { font-family: var(--sans); color: var(--gold-hi); font-size: 0.95rem; }
.gift .gb { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.gift .btn { min-height: 36px; padding: 0.45em 0.7em; font-size: 0.6rem; letter-spacing: 0.12em; }
.gift.taken { opacity: 0.55; }
.gift.mine { box-shadow: 0 0 0 2px var(--gold); }
.gift-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 1rem; }
.gift-tabs button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-family: var(--sans); font-size: 0.75rem; cursor: pointer; }
.gift-tabs button[aria-pressed='true'] { border-color: var(--gold); color: var(--gold-hi); }
.copy-line { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 0.6rem; }
.copy-line code { font-family: var(--sans); background: rgba(201, 161, 74, 0.12); border: 1px dashed var(--gold); border-radius: 8px; padding: 6px 10px; }

/* the halo's light rays reach past the screen edge; never let that widen the page */
html, body { overflow-x: clip; }
.hero { overflow: hidden; }

/* ---------- save the date: scratch cards ---------- */
.scratch-row { display: flex; justify-content: center; gap: 12px; margin: 1.4rem auto 0; max-width: 420px; }
.scratch-wrap { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.scratch { position: relative; width: 100%; aspect-ratio: 0.82; border-radius: 14px; overflow: hidden; border: 1px solid var(--gold);
  background: radial-gradient(circle at 50% 40%, var(--panel-2), var(--ink-2)); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 22px rgba(201, 161, 74, 0.15); }
.scratch .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 6vw, 2rem); color: var(--gold-hi); padding: 4px; text-align: center; line-height: 1.1; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity 0.8s ease; }
.scratch.revealed canvas { opacity: 0; pointer-events: none; }
.scratch.revealed .val { animation: pop 0.7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.scratch-done { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 1s ease, opacity 1s ease; }
.save-date.all-revealed .scratch-done { max-height: 200px; opacity: 1; margin-top: 1.2rem; }
.save-date.all-revealed .reveal-all { display: none; }
.reveal-all { margin-top: 1.2rem; border-color: var(--line); color: var(--muted); }

/* ---------- the couple, in a church-window arch ---------- */
.arch { position: relative; max-width: 360px; margin: 0.6rem auto 0; padding: 84px 26px 40px; border: 1px solid var(--gold); border-radius: 190px 190px 16px 16px;
  outline: 1px solid var(--line); outline-offset: 7px; background: radial-gradient(ellipse at 50% 0%, rgba(201, 161, 74, 0.16), transparent 62%); }
.arch::before { content: '✝'; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 1.5rem; text-shadow: 0 0 14px rgba(241, 212, 138, 0.5); }
.arch-name { font-family: var(--script); font-size: clamp(2.8rem, 13vw, 3.6rem); line-height: 1.15; margin-top: 0.6rem; }
.arch-amp { font-family: var(--script); font-size: 2.6rem; line-height: 1; margin: 0.3rem 0 0; }
.arch .parents { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }
.arch-line { font-style: italic; color: var(--muted); margin: 1.4rem auto 0; max-width: 18em; }

/* ---------- order of the day, zig-zag ---------- */
.timeline.alt { max-width: 520px; }
.timeline.alt::before { left: 50%; transform: translateX(-0.5px); }
.timeline.alt li { width: 50%; padding: 0 1.5rem 2rem 0; text-align: right; }
.timeline.alt li:nth-child(even) { margin-left: 50%; padding: 0 0 2rem 1.5rem; text-align: left; }
.timeline.alt li::before { left: auto; right: -6.5px; box-shadow: 0 0 12px rgba(241, 212, 138, 0.5); }
.timeline.alt li:nth-child(even)::before { left: -6.5px; right: auto; }
.timeline.alt .what { font-size: 1.2rem; }

/* ---------- envelope: vines that draw themselves, and light pouring out ---------- */
.env-vines { position: absolute; inset: 0; z-index: 3; pointer-events: none; width: 100%; height: 100%; }
.env-vines path { fill: none; stroke: url(#vineGold); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 3.2s ease forwards; }
.env-vines path:nth-child(2n) { animation-delay: 0.5s; }
.env-vines path:nth-child(3n) { animation-delay: 1s; }
.env-vines circle { fill: #e6c374; opacity: 0; animation: fadein 0.6s ease forwards 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.envelope-stage.opened .env-vines { opacity: 0; transition: opacity 0.4s; }
.env-glow { position: absolute; left: 50%; top: 38%; width: 14%; aspect-ratio: 1; z-index: 6; border-radius: 50%; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #fffaf0 0%, rgba(255, 238, 190, 0.95) 22%, rgba(241, 212, 138, 0.45) 48%, transparent 70%); }
.env-rays { position: absolute; left: 50%; top: 38%; width: 260%; aspect-ratio: 1; z-index: 5; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  background: repeating-conic-gradient(rgba(255, 236, 180, 0.35) 0deg 4deg, transparent 4deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 55%); mask: radial-gradient(circle, #000 0, transparent 55%); }
.envelope-stage.opened .env-glow { animation: glowburst 1.8s ease-out 0.35s forwards; }
.envelope-stage.opened .env-rays { animation: raysburst 1.9s ease-out 0.35s forwards; }
@keyframes glowburst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 35% { opacity: 1; transform: translate(-50%, -50%) scale(7); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(14); } }
@keyframes raysburst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(0deg); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3) rotate(25deg); } }
.gifted-by { font-family: var(--script); font-size: 1.35rem; color: var(--gold-hi); line-height: 1.1; margin-top: 2px; }

/* the hashtag keeps its own spelling (#AcupofU) even inside capitalised labels */
.hashtag { text-transform: none !important; letter-spacing: 0.14em; }

/* =====================================================================
   Pearl & Gold redesign — ivory paper, gold foil, botanical line art.
   (Dark mode is still available with the moon button.)
   ===================================================================== */
:root[data-theme='light'] {
  --ink: #f8f3ea; --ink-2: #f2eadb; --panel: #fffcf6; --panel-2: #f6eedf;
  --line: rgba(168, 128, 52, 0.45); --line-soft: rgba(168, 128, 52, 0.2);
  --gold: #a87e2f; --gold-hi: #8a6420; --gold-lo: #c9a14a;
  --text: #2b2116; --muted: #7a6b55;
  --gold-grad: linear-gradient(135deg, #8a6420 0%, #c9a14a 38%, #e7c879 50%, #b08433 64%, #8a6420 100%);
  --gold-sheen: linear-gradient(110deg, #7d5a1c 0%, #b08433 22%, #e2bf6e 32%, #9c7428 45%, #7d5a1c 60%, #b08433 80%, #7d5a1c 100%);
  --shadow-lg: 0 24px 50px rgba(120, 90, 40, 0.16), 0 2px 6px rgba(120, 90, 40, 0.08);
}
/* fine paper grain on the ivory theme */
:root[data-theme='light'] body {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme='light'] .art { filter: none; }

/* ---------- the envelope ---------- */
.envelope-stage { gap: 1.2rem; background: radial-gradient(ellipse at 50% 40%, #fffdf8 0%, #f3ead8 60%, #e8dcc3 100%); }
:root[data-theme='dark'] .envelope-stage { background: radial-gradient(ellipse at 50% 40%, #1d1912 0%, #070707 70%); }
.envelope-to .caps { color: var(--muted); }
.env2 { position: relative; width: min(84vw, 360px); aspect-ratio: 0.7; perspective: 1400px; }
.env2-back, .env2-pocket, .env2-flap, .env2-letter { position: absolute; left: 0; right: 0; }
.env2-back { inset: 0; border-radius: 10px; background: linear-gradient(160deg, #fbf6ec, #efe4cf); box-shadow: 0 30px 60px rgba(110, 80, 30, 0.28), 0 0 0 1px rgba(168, 128, 52, 0.25); }
.env2-letter { left: 7%; right: 7%; top: 9%; height: 82%; z-index: 1; border-radius: 6px; background: #fffdf8;
  box-shadow: 0 0 0 1px rgba(168, 128, 52, 0.3), 0 0 0 6px #fffdf8, 0 0 0 7px rgba(168, 128, 52, 0.35);
  display: grid; place-items: center; transition: transform 1.3s cubic-bezier(.2, .8, .2, 1) 0.8s; }
.crest { width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1a1712, #050505 70%); display: grid; place-items: center;
  box-shadow: 0 0 0 3px #fffdf8, 0 0 0 4px #c9a14a, 0 12px 26px rgba(0, 0, 0, 0.25); }
.crest img { width: 92%; }
/* front pocket: the two side flaps and the bottom flap, pearl paper with embossed florals */
.env2-pocket { inset: 0; z-index: 2; border-radius: 10px; overflow: hidden; pointer-events: none;
  background: linear-gradient(170deg, #fdf9f1, #f1e7d4);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.env2-pocket::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 49.6%, rgba(168, 128, 52, 0.18) 50%, transparent 50.6%), linear-gradient(to top left, transparent 49.6%, rgba(168, 128, 52, 0.18) 50%, transparent 50.6%); }
.env2-flap { top: 0; height: 58%; z-index: 3; transform-origin: top center; transition: transform 0.9s cubic-bezier(.5, 0, .3, 1) 0.25s, z-index 0s 0.7s;
  filter: drop-shadow(0 8px 10px rgba(110, 80, 30, 0.22)); }
.env2-flap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #fffaf1, #f0e5d0); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env2-flap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #b08433, #ecd08a, #b08433); clip-path: polygon(0 0, 1.4% 0, 50% 97.6%, 98.6% 0, 100% 0, 50% 100%); }
/* embossed florals: the highlight/shadow pair is drawn on a wrapper, the flowers are a mask inside it */
.emboss { position: absolute; inset: 0; z-index: 1; filter: drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.95)) drop-shadow(-1px -1px 0 rgba(140, 105, 50, 0.3)); }
.env2-flap .emboss { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.spray { position: absolute; width: 58%; aspect-ratio: 1; background: #ecdfc6; -webkit-mask: url(/assets/img/florals.svg?v=mvltbuld) center / contain no-repeat; mask: url(/assets/img/florals.svg?v=mvltbuld) center / contain no-repeat; }
.spray.s1 { left: -4%; bottom: -6%; transform: scaleY(-1); }
.spray.s2 { right: -4%; bottom: -6%; transform: scale(-1); }
.spray.s3 { left: 2%; top: 2%; width: 46%; }
.spray.s4 { right: 2%; top: 2%; width: 46%; transform: scaleX(-1); }
/* the seal: black wax with the gold mark */
.env2 .seal { top: 58%; width: 26%; z-index: 4;
  background: radial-gradient(circle at 38% 32%, #3d3a35 0%, #151412 45%, #050505 80%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 -4px 8px rgba(0, 0, 0, 0.6), inset 0 3px 5px rgba(255, 255, 255, 0.18), 0 0 0 2px rgba(201, 161, 74, 0.7); }
.env2 .seal::before { background: radial-gradient(circle at 40% 35%, #2c2a26, #0a0a0a 75%); filter: none; }
.env2 .seal img { width: 70%; mix-blend-mode: normal; opacity: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6)); }
.envelope-stage.opened .env2-flap { transform: rotateX(180deg); z-index: 0; }
.envelope-stage.opened .env2-letter { transform: translateY(-34%) scale(1.04); }
.envelope-stage.opened .env2 .seal { transform: translate(-50%, -50%) scale(0.3); opacity: 0; animation: none; }
.env2 .env-glow, .env2 .env-rays { top: 50%; }

/* ---------- top menu ---------- */
.topnav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(10, 9, 7, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201, 161, 74, 0.45); }
.topnav .mark { width: 34px; height: 34px; flex: none; }
.topnav .links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.topnav .links::-webkit-scrollbar { display: none; }
.topnav a { color: #e9d9b0; text-decoration: none; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 10px; white-space: nowrap; border-radius: 999px; }
.topnav a:hover, .topnav a.on { color: #f1d48a; background: rgba(201, 161, 74, 0.14); }
.topnav .rsvp-btn { background: linear-gradient(135deg, #a8772a, #f1d48a 45%, #c9973f); color: #1a1206 !important; font-weight: 500; }
.theme-btn { top: 64px; }

/* ---------- hero: an arch with florals ---------- */
.hero2 { position: relative; min-height: calc(100svh - 52px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 16px 50px; text-align: center; overflow: hidden; }
.hero2 .arch-frame { position: relative; width: min(82vw, 380px); aspect-ratio: 0.78; border-radius: 200px 200px 14px 14px; padding: 10px;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--gold-grad) border-box; border: 1.5px solid transparent;
  box-shadow: var(--shadow-lg); }
.hero2 .arch-inner { position: relative; height: 100%; border-radius: 190px 190px 8px 8px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 35%, #fffefb 0%, #f4ead6 70%, #eadbbd 100%); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme='dark'] .hero2 .arch-inner { background: radial-gradient(ellipse at 50% 35%, #2a2418 0%, #0c0b09 75%); }
.hero2 .arch-inner > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero2 .arch-inner .crest { width: 74%; position: relative; z-index: 1; }
.hero2 .light { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, rgba(255, 245, 210, 0.9), transparent 55%); animation: breathe 6s ease-in-out infinite; }
.corner-spray { position: absolute; width: 46%; aspect-ratio: 1; pointer-events: none; background: var(--gold-grad); -webkit-mask: url(/assets/img/florals.svg?v=mvltbuld) center / contain no-repeat; mask: url(/assets/img/florals.svg?v=mvltbuld) center / contain no-repeat; opacity: 0.9; }
.hero2 .corner-spray.l { left: -16%; bottom: -10%; transform: scaleY(-1) rotate(8deg); }
.hero2 .corner-spray.r { right: -16%; bottom: -10%; transform: scale(-1) rotate(8deg); }
.hero2 .corner-spray.t { left: -14%; top: -8%; width: 40%; }
.hero2 .dear { margin-top: 1.6rem; font-size: 1.2rem; }
.hero2 .names { font-family: var(--script); font-size: clamp(3rem, 15vw, 4.6rem); line-height: 1.05; margin: 0.3rem 0 0.2rem; }
.hero2 .names .amp { display: block; font-size: 0.6em; line-height: 0.9; }
.hero2 .intro, .hero2 .invite-line { max-width: 26em; margin: 0.4rem auto 0; }
.hero2 .intro { font-style: italic; color: var(--muted); }
.hero2 .date-line { margin-top: 1.1rem; font-size: 1.45rem; letter-spacing: 0.06em; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block + section.block { border-top: none; }
section.block + section.block::before { content: ''; display: block; width: 70%; max-width: 360px; height: 1px; margin: -64px auto 64px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.block h2 { font-size: clamp(2.8rem, 12vw, 3.8rem); }

/* ---------- order of the day with line illustrations ---------- */
.programme { list-style: none; margin: 1.8rem auto 0; padding: 0; max-width: 520px; position: relative; }
.programme::before { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold), var(--line-soft)); }
.programme li { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; align-items: center; padding-bottom: 2.2rem; }
.programme li::before { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; transform: translate(-50%, -50%) rotate(45deg); background: var(--gold-grad); box-shadow: 0 0 0 4px var(--ink); }
.programme .ill { display: grid; place-items: center; color: var(--gold); }
.programme .ill svg { width: 86px; height: 86px; }
.programme .txt { text-align: left; }
.programme li:nth-child(even) .ill { order: 2; }
.programme li:nth-child(even) .txt { text-align: right; }
.programme .when { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--gold); }
.programme .what { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 2px; }
.programme .desc { color: var(--muted); font-size: 1rem; margin-top: 4px; }

/* ---------- venue cards ---------- */
.venue-card { position: relative; max-width: 480px; margin: 1.6rem auto 0; border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); }
.venue-card .pic { height: 170px; display: grid; place-items: center; color: var(--gold); background: radial-gradient(ellipse at 50% 30%, #fffdf8, #efe4cf); border-bottom: 1px solid var(--line-soft); }
:root[data-theme='dark'] .venue-card .pic { background: radial-gradient(ellipse at 50% 30%, #262018, #0d0c0a); }
.venue-card .pic svg { width: 120px; height: 120px; }
.venue-card .body { padding: 22px 20px 24px; }
.venue-card h3 { font-family: var(--script); font-weight: 400; font-size: 2.3rem; margin: 0; line-height: 1.1; }
.venue-card .venue { font-size: 1.3rem; font-weight: 600; margin: 0.5rem 0 0.2rem; }

/* ---------- colours as draped fabric ---------- */
.fabrics { display: flex; justify-content: center; gap: 12px; margin-top: 1.4rem; flex-wrap: wrap; }
.fabric { width: min(28vw, 120px); }
.fabric i { display: block; aspect-ratio: 0.72; border-radius: 10px 10px 4px 4px; box-shadow: var(--shadow-lg);
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 18%, rgba(0, 0, 0, 0.18) 30%, rgba(255, 255, 255, 0.22) 46%, rgba(0, 0, 0, 0.2) 62%, rgba(255, 255, 255, 0.25) 78%, rgba(0, 0, 0, 0.12) 100%); }
.fabric span { display: block; margin-top: 8px; font-family: var(--script); font-size: 1.5rem; color: var(--gold); }

/* ---------- questions & answers ---------- */
.faq { max-width: 540px; margin: 1.4rem auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 14px 4px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 1.15rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0.6rem 0 0; }

footer.site { background: #0a0907; color: #e9d9b0; border-top: 1px solid rgba(201, 161, 74, 0.45); }
footer.site .muted { color: #a99d86; }

/* burnt copper: the fourth colour of the day, used as a fine accent */
:root { --copper: #b4643a; }
:root[data-theme='light'] { --copper: #9a4a24; }
.block > .caps.muted:first-child, .programme .what, .hero2 .dear { color: var(--copper); }
.programme li::before { background: linear-gradient(135deg, #7a3416, #c27a4c 50%, #9a4a24); }

/* ---------- wishlist: preview + "view all" ---------- */
.view-all { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; width: 100%; max-width: 520px; margin: 1.6rem auto 0; padding: 18px 22px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, #0b0a08, #2a2216); color: #f6e7c1; box-shadow: 0 16px 34px rgba(60, 40, 10, 0.3), inset 0 0 0 1.5px #c9a14a; animation: va-glow 2.8s ease-in-out infinite; }
.view-all .va-main { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.view-all .va-sub { grid-column: 1; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d9bc7c; }
.view-all .va-arrow { grid-row: 1 / span 2; grid-column: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #1a1206; background: linear-gradient(135deg, #a8772a, #f1d48a 45%, #c9973f); }
@keyframes va-glow { 50% { box-shadow: 0 16px 34px rgba(60, 40, 10, 0.3), inset 0 0 0 1.5px #c9a14a, 0 0 0 6px rgba(201, 161, 74, 0.18); } }
.gift-all { width: min(980px, calc(100vw - 16px)); max-height: calc(100svh - 16px); padding: 0; background: var(--ink); }
.gift-all .ga-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 10px; background: var(--ink); border-bottom: 1px solid var(--line-soft); }
.gift-all .ga-filters { padding: 4px 14px 0; }
.gift-all .ga-filters .gift-tabs { justify-content: flex-start; margin-top: 10px; }
.gift-all .ga-grid { padding: 6px 14px 20px; }

/* menu fits a phone */
.topnav a { font-size: 0.62rem; letter-spacing: 0.14em; padding: 8px 8px; }

/* cash gifts card: a black-and-gold band instead of a product photo, spanning the row */
.gift.cash { grid-column: 1 / -1; }
.gift.cash .gimg { aspect-ratio: auto; height: 120px; background: radial-gradient(circle at 50% 40%, #2a2318, #070605 75%); }
.cash-crest img { width: 92px; }
/* the four colours sit in one row on a phone */
.fabrics { flex-wrap: nowrap; gap: 8px; }
.fabric { width: auto; flex: 1 1 0; max-width: 130px; }
.fabric span { font-size: 1.25rem; line-height: 1.1; }

/* ---------- seating chart ---------- */
.seating { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; margin-top: 10px; }
@media (max-width: 760px) { .seating { grid-template-columns: 1fr; } }
.unseated { position: sticky; top: 64px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100svh - 90px); }
.unseated-head { display: flex; justify-content: space-between; align-items: center; }
#unseatedList { overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.seat-guest { padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 10px; cursor: grab; background: var(--ink); display: flex; flex-direction: column; }
.seat-guest:hover { border-color: var(--gold); }
.seat-guest.picked { border-color: var(--gold); background: rgba(201, 161, 74, 0.16); box-shadow: 0 0 0 2px var(--gold); }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.table-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow 0.2s, border-color 0.2s; }
.table-card.can-drop { border-color: var(--gold); cursor: pointer; }
.table-card.over { box-shadow: 0 0 0 3px var(--gold); }
.table-card .round { position: relative; width: 150px; aspect-ratio: 1; margin: 6px auto; }
.table-card .round::before { content: ''; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fffdf8, #efe4cf); border: 1.5px solid var(--gold); box-shadow: var(--shadow-lg); }
:root[data-theme='dark'] .table-card .round::before { background: radial-gradient(circle at 50% 35%, #2a2418, #0d0c0a); }
.table-card.full .round::before { border-color: #9a4a24; }
.table-card .dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--ink); }
.table-card .dot.on { background: var(--gold-grad); }
.table-card .tname { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 1; }
.table-card .rename { background: none; border: 0; cursor: pointer; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--text); line-height: 1.1; }
.table-card .tname span { font-family: var(--sans); font-size: 0.75rem; color: var(--muted); }
.table-guests { display: flex; flex-direction: column; gap: 4px; min-height: 28px; }
.tg { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: var(--ink); font-size: 0.88rem; cursor: grab; }
.tg .unseat { background: none; border: 0; color: var(--muted); cursor: pointer; }
.table-card .acts { display: flex; justify-content: space-between; align-items: center; }

/* the table on the guest's pass and the usher's screen */
.pass-table { display: inline-block; margin-top: 0.6rem; padding: 0.35em 1.1em; border-radius: 999px; border: 1.5px solid var(--gold); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--gold-hi); }
.verdict .pass-table { color: #fff; border-color: rgba(255, 255, 255, 0.6); font-size: 1.6rem; }

/* ---------- hero: an invitation card with painted roses on its corners ---------- */
.hero3 { position: relative; min-height: calc(100svh - 52px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 18px 40px; text-align: center; }
.invite-card { position: relative; width: min(88vw, 420px); padding: 14px; border-radius: 6px; background: #fffdf8;
  box-shadow: 0 30px 60px rgba(110, 80, 30, 0.18), 0 2px 6px rgba(110, 80, 30, 0.08); }
:root[data-theme='dark'] .invite-card { background: #15120d; }
/* double gold rule, like a printed invitation */
.invite-card::before, .invite-card::after { content: ''; position: absolute; pointer-events: none; border-radius: 3px; }
.invite-card::before { inset: 10px; border: 1.5px solid #b08433; }
.invite-card::after { inset: 16px; border: 0.75px solid rgba(176, 132, 51, 0.55); }
.card-inner { position: relative; z-index: 1; padding: 64px 26px 56px; background: radial-gradient(ellipse at 50% 30%, rgba(255, 246, 220, 0.9), transparent 70%); }
.card-inner .crest.small { width: 96px; margin: 0 auto 0.6rem; box-shadow: 0 0 0 3px #fffdf8, 0 0 0 4px #c9a14a, 0 10px 22px rgba(0, 0, 0, 0.2); }
.card-inner .crest.small img { width: 84%; }
.card-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 0 0 1px rgba(176, 132, 51, 0.5); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero3 .dear { font-size: 1.15rem; color: var(--copper); margin: 0.4rem 0 0; }
.hero3 .intro { font-style: italic; color: var(--muted); margin: 0.3rem auto 0; max-width: 24em; }
.hero3 .names { font-family: var(--script); font-weight: 400; font-size: clamp(3rem, 15vw, 4.4rem); line-height: 1.05; margin: 0.3rem 0 0.2rem; }
.hero3 .names .amp { display: block; font-size: 0.55em; line-height: 0.95; }
.hero3 .invite-line { max-width: 22em; margin: 0.4rem auto 0; }
.hero3 .date-line { margin-top: 1rem; font-size: 1.4rem; letter-spacing: 0.06em; }
/* painted bouquets spill over the card's corners */
.bouquet { position: absolute; width: 58%; z-index: 2; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(110, 80, 30, 0.18)); animation: sway 9s ease-in-out infinite; }
.bouquet.tl { left: -16%; top: -12%; }
.bouquet.tr { right: -16%; top: -12%; width: 40%; transform: scaleX(-1); animation-delay: -3s; }
.bouquet.bl { left: -14%; bottom: -10%; width: 40%; transform: scaleY(-1); animation-delay: -5s; }
.bouquet.br { right: -16%; bottom: -12%; transform: scale(-1); animation-delay: -1.5s; }
@keyframes sway { 50% { translate: 0 -3px; rotate: 0.6deg; } }
.hero3 .scroll-cue { margin-top: 1.8rem; }

/* the couple section: a card too (no arch) */
.arch { border-radius: 8px; padding: 46px 26px 40px; outline-offset: 6px; }
.arch::before { content: none; }

/* bouquets sit over the card corners (tuned for phones) */
.bouquet { width: 62%; }
.bouquet.tl { left: -9%; top: -7%; }
.bouquet.tr { right: -8%; top: -6%; width: 44%; }
.bouquet.bl { left: -8%; bottom: -5%; width: 44%; }
.bouquet.br { right: -9%; bottom: -7%; }
.card-inner { padding-top: 120px; padding-bottom: 110px; }

/* simpler hero: no card box, two light bouquets framing the names */
.invite-card { background: none; box-shadow: none; padding: 0; width: min(92vw, 440px); }
.invite-card::before, .invite-card::after { content: none; }
.card-inner { background: none; padding: 140px 12px 150px; }
.bouquet { width: 50%; }
.bouquet.tl { left: -6%; top: -2%; }
.bouquet.br { right: -6%; bottom: -2%; }
.hero3 { min-height: auto; padding: 40px 18px 10px; }
.card-inner { padding: 120px 12px 120px; }

/* church-wedding ornaments: laurel-and-rings line instead of scrollwork, no filigree corners */
.flourish, .ornament { -webkit-mask-image: url(/assets/img/sprig.svg?v=mvltbuld); mask-image: url(/assets/img/sprig.svg?v=mvltbuld); }
.corner { display: none; }
.venue-card .pic { height: 150px; }

/* the room plan a guest sees after check-in */
.seat-plan { margin: 0 auto 2rem; padding: 22px 16px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); }
.room { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 14px 8px; margin: 1.2rem 0 1rem; }
.rt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rt i { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--ink); }
.rt span { font-family: var(--sans); font-size: .62rem; letter-spacing: .08em; color: var(--muted); text-align: center; }
.rt.mine i { width: 52px; height: 52px; margin-top: -6px; border-color: transparent; background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(201,161,74,.25); animation: va-glow 2s ease-in-out infinite; }
.rt.mine span { color: var(--copper); font-weight: 500; font-size: .7rem; }

/* ---------- dark mode: black envelope with gold edges, gold wax seal ---------- */
:root[data-theme='dark'] .invite-card { background: none; }
:root[data-theme='dark'] .env2-back { background: linear-gradient(160deg, #1d1a14, #0b0a08); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 161, 74, 0.45); }
:root[data-theme='dark'] .env2-pocket { background: linear-gradient(170deg, #1a1712, #0d0c0a); }
:root[data-theme='dark'] .env2-pocket::after { background: linear-gradient(to top right, transparent 49.6%, rgba(201, 161, 74, 0.4) 50%, transparent 50.6%), linear-gradient(to top left, transparent 49.6%, rgba(201, 161, 74, 0.4) 50%, transparent 50.6%); }
:root[data-theme='dark'] .env2-flap::before { background: linear-gradient(180deg, #24201a, #12100c); }
:root[data-theme='dark'] .env2-flap { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6)); }
/* florals pressed in gold foil instead of blind-embossed */
:root[data-theme='dark'] .emboss { filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8)); }
:root[data-theme='dark'] .spray { background: linear-gradient(135deg, #8a6420, #d9bc7c 50%, #9c7428); opacity: 0.55; }
:root[data-theme='dark'] .env2-letter { background: #f8f1e2; }
:root[data-theme='dark'] .env2 .seal { background: radial-gradient(circle at 38% 32%, #f6dd99 0%, #d2a548 38%, #a7782b 72%, #7d5617 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 -4px 8px rgba(0, 0, 0, 0.3), inset 0 3px 5px rgba(255, 240, 200, 0.5), 0 0 30px rgba(241, 212, 138, 0.35); }
:root[data-theme='dark'] .env2 .seal::before { background: radial-gradient(circle at 40% 35%, #e6c374, #9c7428 75%); }
:root[data-theme='dark'] .env2 .seal img { filter: brightness(0.25) sepia(0.6); }

/* elegant hero: fine gold rules framing the names, no bouquets */
.hero3 .card-inner { padding: 70px 12px 60px; }
.hero3 .ornament { width: min(200px, 56%); height: 22px; margin: 1.2rem auto 0.8rem; opacity: .9; }
.hero3 .names { margin: 0.2rem 0; }
.hero3 .dear { margin-bottom: .2rem; }

/* a small gold cross */
.cross { font-size: 1.6rem; line-height: 1; color: var(--gold); text-shadow: 0 0 14px rgba(241,212,138,.35); margin-bottom: .8rem; }

/* elegant invitation card: lifted panel, thin gold border + inner hairline, no florals */
.hero3 .invite-card, :root[data-theme='dark'] .hero3 .invite-card { width: min(90vw, 430px); padding: 0; border-radius: 4px; background: linear-gradient(180deg, #16130e, #0d0b08); box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(201,161,74,.55); }
:root[data-theme='light'] .hero3 .invite-card { background: linear-gradient(180deg, #fffdf8, #f6eedf); box-shadow: 0 30px 60px rgba(110,80,30,.18), 0 0 0 1px rgba(168,128,52,.55); }
.hero3 .invite-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(201,161,74,.35); border-radius: 2px; pointer-events: none; }
.hero3 .invite-card::after { content: none; }
.hero3 .card-inner { padding: 54px 28px 48px; }
.hero3 .names { font-size: clamp(2.8rem, 13vw, 4rem); }
.hero3 { padding-top: 80px; }

/* a touch of flowers: two small sprays tucked into opposite corners of the card */
.card-flower { position: absolute; z-index: 2; pointer-events: none; width: 34%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.card-flower.tl { left: -7%; top: -5%; }
.card-flower.br { right: -6%; bottom: -4%; width: 26%; transform: scale(-1); }
