/* Promptsol Wedding — public site
   Colours come from the admin (Look and language) via CSS variables on <html>. */
/* Self-hosted fonts (SIL Open Font License) — no Google Fonts call, faster on mobile data */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-latin-opsz-italic.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(../fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url(../fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url(../fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --ink: #2F2A3D;
  --accent: #B8935A;
  --bead1: #C98B7A;
  --bead2: #7C8F6E;
  --paper: #F6F2EC;
  --paper-2: #ECE4D8;
  --envelope: #EFE6D8;
  --text: #2A2730;
  --muted: #6E6A72;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --on-ink: #F4F1EC;
  --on-ink-muted: color-mix(in srgb, #F4F1EC 68%, transparent);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --wrap: 880px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 300; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Beadwork band: the site's signature ---------- */
.beads {
  height: 14px;
  background:
    linear-gradient(135deg, var(--bead1) 25%, transparent 25%) -7px 0 / 14px 14px,
    linear-gradient(225deg, var(--bead1) 25%, transparent 25%) -7px 0 / 14px 14px,
    linear-gradient(315deg, var(--bead2) 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(45deg, var(--bead2) 25%, transparent 25%) 0 0 / 14px 14px,
    var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  font: 600 15px/1.2 var(--sans); letter-spacing: .01em;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--accent); color: var(--ink); }
.btn-gold:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 85%, #fff); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn-line-light { border-color: color-mix(in srgb, var(--on-ink) 55%, transparent); color: var(--on-ink); background: transparent; }
.btn-line-light:hover { border-color: var(--on-ink); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--on-ink) 30%, transparent); background: transparent; color: var(--on-ink); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- Envelope opening ---------- */
.envelope-screen {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: var(--ink) radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--ink) 88%, #fff), var(--ink));
  color: var(--on-ink); text-align: center;
  transition: opacity .7s ease, visibility .7s;
}
.envelope-screen.is-gone { opacity: 0; visibility: hidden; }
.env-inner { width: min(100%, 420px); display: grid; justify-items: center; gap: 22px; }
.env-dear { font: italic 300 1.6rem/1.2 var(--display); margin: 0; }
.env-line { color: var(--on-ink-muted); margin: 0; max-width: 30ch; }
.envelope { position: relative; width: min(84vw, 380px); aspect-ratio: 1.45; perspective: 1400px; margin-top: 30px; }
.envelope > div { position: absolute; inset: 0; }
.env-back { background: color-mix(in srgb, var(--envelope) 88%, #000); border-radius: 6px; }
.env-card {
  inset: 7% 6% 10% !important; background: #fff; color: var(--ink); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 9% 12px 12px;
  transition: transform .9s cubic-bezier(.2,.8,.2,1) .55s; z-index: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent) inset, 0 0 0 6px #fff inset, 0 0 0 7px color-mix(in srgb, var(--accent) 35%, transparent) inset;
}
.env-card-names { font: 400 clamp(1.3rem, 5.5vw, 1.8rem)/1.1 var(--display); }
.env-card-date { font-size: .8rem; color: var(--muted); }
.env-front {
  z-index: 2; background: var(--envelope); border-radius: 0 0 6px 6px;
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.env-front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background:
    linear-gradient(135deg, var(--bead1) 25%, transparent 25%) -4.5px 0 / 9px 9px,
    linear-gradient(225deg, var(--bead1) 25%, transparent 25%) -4.5px 0 / 9px 9px,
    linear-gradient(315deg, var(--bead2) 25%, transparent 25%) 0 0 / 9px 9px,
    linear-gradient(45deg, var(--bead2) 25%, transparent 25%) 0 0 / 9px 9px, var(--accent); }
.env-flap {
  z-index: 3; height: 60%; bottom: auto !important;
  background: color-mix(in srgb, var(--envelope) 94%, #000);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center; transition: transform .8s cubic-bezier(.4,0,.2,1), z-index 0s .4s;
}
.env-seal {
  z-index: 4; inset: auto !important; left: 50% !important; top: 60% !important; width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, #000));
  box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000), 0 8px 18px rgba(0,0,0,.35);
  transition: transform .5s ease, opacity .5s ease;
}
.env-seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.env-seal span { font: italic 500 1.25rem/1 var(--display); color: color-mix(in srgb, var(--ink) 85%, var(--accent)); }
.envelope-screen.is-open .env-seal { transform: scale(.6); opacity: 0; }
.envelope-screen.is-open .env-flap { transform: rotateX(180deg); z-index: 0; }
.envelope-screen.is-open .env-card { transform: translateY(-58%); z-index: 2; }
.env-dear, .env-line { transition: opacity .4s; }
.envelope-screen.is-open .env-dear, .envelope-screen.is-open .env-line { opacity: 0; }
.env-open { min-width: 220px; }

/* ---------- Top bar & drawer ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px max(16px, env(safe-area-inset-left)); background: var(--ink); color: var(--on-ink);
}
.mark { font: italic 400 1.15rem/1 var(--display); text-decoration: none; padding: 6px 2px; }
.topbar-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid color-mix(in srgb, var(--on-ink) 30%, transparent); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; font: 600 12px/1 var(--sans); padding: 8px 10px; border-radius: 999px; color: var(--on-ink-muted); }
.lang a[aria-current] { background: var(--on-ink); color: var(--ink); }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 120; background: var(--ink); color: var(--on-ink);
  padding: 80px 32px 32px; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.35);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: none; }
.drawer[hidden] { display: flex !important; visibility: hidden; }
.drawer-close { position: absolute; top: 14px; right: 16px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 10px 0; font: 300 1.7rem/1.2 var(--display); text-decoration: none; }
.drawer li a:hover { color: var(--accent); }
.drawer-foot { margin-top: auto; color: var(--on-ink-muted); font-size: .9rem; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 110; }
.announce, .flash { background: var(--accent); color: var(--ink); text-align: center; padding: 10px 16px; font-weight: 500; font-size: .95rem; }
.flash { background: var(--bead2); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); position: relative; }
.hero-text { padding: clamp(48px, 12vw, 120px) 24px clamp(48px, 10vw, 96px); max-width: 760px; }
.no-photo .hero-text { margin-inline: auto; min-height: 78svh; display: flex; flex-direction: column; justify-content: center; }
.hero-dear { font: italic 300 1.35rem/1.3 var(--display); color: var(--accent); margin-bottom: 1.2em; }
.hero-blessing { color: var(--on-ink-muted); margin-bottom: 1.4em; }
.hero-names { font-size: clamp(3.4rem, 15vw, 7.5rem); font-weight: 300; letter-spacing: -.02em; line-height: .95; display: flex; flex-direction: column; }
.hero-names .amp { font-style: italic; color: var(--accent); font-size: .6em; line-height: 1.1; padding-left: .12em; }
.hero-tag { font: italic 300 clamp(1.15rem, 3.6vw, 1.45rem)/1.35 var(--display); margin: 1.1em 0 .4em; max-width: 26ch; }
.hero-date { font-size: 1.05rem; font-weight: 500; margin: 0; }
.hero-families { color: var(--on-ink-muted); margin: .3em 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2em; }
.hero .btn-line { color: var(--on-ink); }
.hero-photo { margin: 0; height: 56svh; min-height: 340px; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, var(--ink)); }
.has-photo .hero-text { margin-top: -130px; position: relative; padding-top: 0; }
@media (min-width: 900px) {
  .hero.has-photo { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
  .has-photo .hero-photo { order: 2; height: auto; min-height: 0; }
  .has-photo .hero-photo::after { inset: 0 60% 0 0; background: linear-gradient(90deg, var(--ink), transparent); }
  .has-photo .hero-text { margin: 0; align-self: center; padding-left: max(48px, 6vw); }
}

/* ---------- Countdown ---------- */
.countdown { text-align: center; padding: 48px 20px 8px; }
.cd-lead { color: var(--muted); margin-bottom: 14px; }
.cd-grid { display: inline-grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 4px 18px; }
.cd-grid span { display: block; font: 300 clamp(2.4rem, 10vw, 3.6rem)/1 var(--display); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.cd-grid small { color: var(--muted); font-size: .8rem; }
.cd-message { font: italic 300 1.6rem/1.3 var(--display); color: var(--ink); margin: 0; }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 10vw, 104px) 20px; position: relative; }
.sec > * { max-width: var(--wrap); margin-inline: auto; }
.sec > h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 300; letter-spacing: -.01em; margin-bottom: .6em; }
.sec .lead { font-size: 1.1rem; max-width: 60ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.sec .lead { margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.sec-tint { background: var(--paper-2); }
.sec-ink { background: var(--ink); color: var(--on-ink); }
.sec-ink .lead, .sec-ink .note { color: var(--on-ink-muted); }
.sec-flush { padding-left: 0; padding-right: 0; }
.sec-flush > h2 { padding-inline: 20px; }
.beads-top { position: absolute; left: 0; right: 0; top: 0; max-width: none !important; }

/* Events */
.events { display: grid; gap: 0; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 0 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.event-img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.event-date { text-align: center; padding-top: 4px; }
.ed-day { display: block; font: 300 3.2rem/0.9 var(--display); color: var(--ink); }
.ed-month { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.event h3 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
.event-when { color: var(--muted); margin: .3em 0 1em; }
.event-facts { margin: 0 0 1em; display: grid; gap: 12px; }
.event-facts div { display: grid; grid-template-columns: 1fr; }
.event-facts dt { font-size: .82rem; color: var(--muted); }
.event-facts dd { margin: 0; }
.event-desc { max-width: 56ch; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) {
  .event { grid-template-columns: 110px 1fr; }
  .ed-day { font-size: 4.4rem; }
  .event-facts div { grid-template-columns: 140px 1fr; gap: 16px; }
}

/* Programme */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 28px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button {
  border: 0; background: none; padding: 10px 16px 12px; cursor: pointer; text-align: left; white-space: nowrap;
  font: 500 1rem/1.3 var(--sans); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button small { display: block; font-weight: 400; font-size: .8rem; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 0 0 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 81px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper-2); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 85px; top: 14px; bottom: -9px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { font: 400 1.1rem/1.4 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.timeline li > div { padding-left: 26px; }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: .95rem; }

/* Story */
.story { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 40px; }
.story li { display: grid; gap: 6px 28px; }
.story-when { font: italic 300 2.4rem/1 var(--display); color: var(--accent); }
.story h3 { font-size: 1.5rem; margin-bottom: .4em; }
.story p { max-width: 58ch; }
.story img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 720px) {
  .story li { grid-template-columns: 160px 1fr; align-items: start; }
  .story li.with-img { grid-template-columns: 160px 1fr 260px; }
  .story-when { text-align: right; }
}

/* RSVP */
#rsvp > h2, #rsvp > .lead { position: relative; }
.note { max-width: 60ch; }
.note-strong { color: var(--on-ink) !important; border-left: 3px solid var(--accent); padding-left: 14px; }
.rsvp-form, .code-form, .rsvp-done { max-width: 620px !important; margin: 28px 0 0 max(0px, calc((100% - var(--wrap)) / 2)); display: grid; gap: 18px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-weight: 500; font-size: .95rem; }
.fld em { font-style: normal; font-weight: 400; opacity: .65; font-size: .85em; }
.fld small { opacity: .75; }
input, select, textarea {
  font: 400 16px/1.4 var(--sans); width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
}
.sec-ink input, .sec-ink select, .sec-ink textarea {
  background: color-mix(in srgb, #fff 7%, transparent); color: var(--on-ink);
  border-color: color-mix(in srgb, var(--on-ink) 26%, transparent);
}
.sec-ink input::placeholder, .sec-ink textarea::placeholder { color: color-mix(in srgb, var(--on-ink) 45%, transparent); }
.sec-ink select option { color: #222; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { font-weight: 500; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent);
  transition: background-color .15s, color .15s, border-color .15s;
}
.pill small { opacity: .7; display: block; font-size: .8rem; }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.if-attending { display: grid; gap: 18px; }
.if-attending[hidden] { display: none; }
.fld-seats select { max-width: 140px; }
.form-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bead2) 18%, transparent); }
.form-msg.err { background: color-mix(in srgb, var(--bead1) 22%, transparent); }
.sec-ink .form-msg.err { color: #ffd9d4; }
.rsvp-done { justify-items: start; }
.rsvp-done-msg { font: 300 clamp(1.6rem, 5vw, 2.2rem)/1.25 var(--display); margin: 0; }
.code-form { grid-template-columns: 1fr; }
.code-form label { display: grid; gap: 6px; font-weight: 500; }

/* Wedding party */
.party { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; text-align: center; }
@media (min-width: 720px) { .party { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.party li { display: grid; justify-items: center; gap: 2px; }
.party img, .party-initial {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 12px;
  border: 4px solid var(--paper); box-shadow: 0 0 0 3px var(--accent);
}
.party .party-initial { display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: italic 300 2.6rem/1 var(--display); }
.party li:nth-child(3n+2) .party-initial, .party li:nth-child(3n+2) img { box-shadow: 0 0 0 3px var(--bead1); }
.party li:nth-child(3n) .party-initial, .party li:nth-child(3n) img { box-shadow: 0 0 0 3px var(--bead2); }
.party strong { font-weight: 600; }
.party span { color: var(--muted); font-size: .92rem; }
.party small { font-size: .85rem; color: var(--muted); }

/* Gallery */
.gallery { columns: 2; column-gap: 6px; max-width: 1200px !important; padding-inline: 6px; }
@media (min-width: 800px) { .gallery { columns: 3; column-gap: 10px; padding-inline: 20px; } }
.g-item { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 6px; cursor: zoom-in; background: none; break-inside: avoid; }
@media (min-width: 800px) { .g-item { margin-bottom: 10px; } }
.g-item img { width: 100%; border-radius: 4px; }
.gallery-guests { margin-top: 32px; padding: 0 !important; }

/* Gifts */
.bank { margin: 28px auto 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.bank div { display: grid; grid-template-columns: 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bank dt { font-size: .82rem; color: var(--muted); }
.bank dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .bank div { grid-template-columns: 180px 1fr; align-items: center; } }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .85rem; cursor: pointer; }
.copy.done { background: var(--bead2); color: #fff; border-color: var(--bead2); }
.registries { list-style: none; padding: 0; margin: 28px auto 0; display: grid; gap: 14px; }
.registries li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.registries li span { color: var(--muted); flex: 1 1 200px; }

/* Stay */
.stays { list-style: none; padding: 0; margin: 0 auto; }
.stays li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.stays li:last-child { border-bottom: 1px solid var(--line); }
.stays li > div:first-child { display: grid; gap: 2px; }
.stays strong { font: 400 1.3rem/1.2 var(--display); }
.stay-actions { display: flex; gap: 8px; align-items: center; }
.stay-actions .btn { min-height: 40px; padding: 8px 16px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 400 1.2rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 1.6rem/1 var(--sans); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 62ch; color: var(--muted); margin: 0; }

/* Playlist */
.songs { list-style: none; counter-reset: s; padding: 0; margin: 24px auto; }
.songs li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); }
.songs li::before { content: counter(s, decimal-leading-zero); font: 300 1rem/1.6 var(--display); color: var(--accent); grid-row: span 2; }
.songs a { text-decoration: none; }
.songs a:hover strong { color: var(--accent); }
.songs strong { display: block; font-weight: 500; }
.songs span, .songs small { color: var(--on-ink-muted); font-size: .92rem; }
.spotify { width: 100%; border: 0; border-radius: 12px; margin: 8px auto 20px; display: block; }

/* Wishes */
.wish-form, .photo-form { display: grid; gap: 16px; max-width: 620px !important; margin: 0 0 40px max(0px, calc((100% - var(--wrap)) / 2)); }
.wish-form .btn, .photo-form .btn { justify-self: start; }
.wishes { list-style: none; padding: 0; margin: 0 auto; columns: 1; column-gap: 28px; }
@media (min-width: 720px) { .wishes { columns: 2; } }
.wishes li { break-inside: avoid; padding: 4px 0 4px 18px; margin-bottom: 28px; border-left: 3px solid var(--accent); }
.wishes li:nth-child(3n+2) { border-left-color: var(--bead1); }
.wishes li:nth-child(3n) { border-left-color: var(--bead2); }
.wishes p { font: 300 1.15rem/1.5 var(--display); margin-bottom: .4em; }
.wishes cite { font-style: normal; font-weight: 600; font-size: .9rem; }
.wishes .empty { border: 0; padding: 0; color: var(--muted); }
.wishes li.new { animation: pop .5s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* Photos */
.hashtag { font-weight: 600; color: var(--ink); }
.file-pick { position: relative; display: block; border: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; background: color-mix(in srgb, #fff 55%, transparent); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick span { font-weight: 500; }
.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink); text-align: center; }
.footer-inner { padding: 56px 20px 96px; display: grid; justify-items: center; gap: 4px; }
.footer-names { font: 300 2.2rem/1.1 var(--display); margin: 0; }
.footer-inner > p:nth-child(2) { color: var(--on-ink-muted); margin-bottom: 20px; }
.credit { margin-top: 28px; font-size: .8rem; }
.credit a { color: var(--on-ink-muted); }

/* Floating RSVP */
.fab {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  background: var(--accent); color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: opacity .25s, transform .25s;
}
.fab.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100svh; max-width: none; max-height: none; background: rgba(10,10,16,.94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 86svh; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: 92vw; max-height: 80svh; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #ddd; font-size: .95rem; }
.lightbox .icon-btn { position: absolute; color: #fff; border-color: rgba(255,255,255,.35); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; }
.lb-next { right: 12px; top: 50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
