/* =========================================================
   刘泉 & 胡玉婷 · 婚礼电子请柬
   Elegant champagne / gold theme, mobile-first
   ========================================================= */

:root {
  --bg: #f7f2ea;
  --bg-soft: #efe7d9;
  --ink: #4a4038;
  --ink-soft: #7a6f63;
  --gold: #b8925a;
  --gold-deep: #9c763f;
  --gold-light: #d8bd8c;
  --rose: #9e2b25;
  --white: #fffdf9;
  --shadow: 0 18px 50px rgba(74, 64, 56, .18);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --script: "Ma Shan Zheng", "Noto Serif SC", cursive;
  --lat: "Cormorant Garamond", "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* app is a centered "phone" column on large screens */
#app {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, .12);
  overflow: hidden;
}

/* ---------- shared section styling ---------- */
.section {
  position: relative;
  padding: 88px 30px;
  text-align: center;
}
.section--tight { padding: 64px 30px; }

.eyebrow {
  font-family: var(--lat);
  letter-spacing: .5em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold-deep);
  margin-bottom: 18px;
  padding-left: .5em;
}

.title-cn {
  font-size: 30px;
  letter-spacing: .18em;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 600;
}

.divider {
  width: 64px;
  height: 1px;
  margin: 24px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.divider::before {
  content: "❦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 15px;
  background: var(--bg);
  padding: 0 10px;
}

.lead {
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: .06em;
}

/* =========================================================
   COVER
   ========================================================= */
.cover {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 24px 150px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cover__bg {
  position: absolute;
  inset: 0;
    background: url("images/p15.jpg") 68% 24% / cover no-repeat;
  transform: scale(1.08);
  animation: kenburns 16s ease-out forwards;
}
@keyframes kenburns {
  to { transform: scale(1); }
}
.cover__scrim {
  position: absolute;
  inset: 0;
  background:
    /* soft top vignette for subtle depth */
    radial-gradient(120% 60% at 50% 20%, rgba(30,22,16,.22) 0%, transparent 55%),
    /* readable band behind names */
    linear-gradient(to bottom, rgba(30,22,16,0) 45%, rgba(30,22,16,.38) 78%, rgba(30,22,16,.62) 100%);
}
.cover__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(247, 242, 234, .95) 18%,
    rgba(247, 242, 234, .72) 40%,
    rgba(247, 242, 234, .28) 68%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}
.cover__inner { position: relative; z-index: 3; }

.cover__we {
  font-family: var(--lat);
  letter-spacing: .55em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 18px;
  padding-left: .55em;
}
.cover__names {
  font-family: var(--script);
  font-size: 11vw;
  line-height: 1;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
@media (min-width: 440px) { .cover__names { font-size: 48px; } }
.cover__names .cover__amp {
  font-family: var(--lat);
  font-size: .5em;
  color: var(--gold-light);
  font-style: italic;
  opacity: .9;
}
.cover__meta {
  margin-top: 22px;
  font-size: 15px;
  letter-spacing: .28em;
  color: rgba(255, 253, 249, .92);
}
.cover__meta span { color: var(--gold-light); }

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--gold-deep);
  font-family: var(--lat);
  letter-spacing: .3em;
  font-size: 11px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: floaty 2.2s ease-in-out infinite;
}
.scroll-hint i {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold-deep), transparent);
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); opacity: .9; }
  50% { transform: translate(-50%, 7px); opacity: .5; }
}

/* =========================================================
   INVITATION WORDS
   ========================================================= */
.invite {
  position: relative;
  background:
    linear-gradient(rgba(247, 242, 234, .85), rgba(247, 242, 234, .8)),
    url("images/p17.jpg") center 12% / cover no-repeat;
  color: var(--ink);
  overflow: hidden;
}
.invite .eyebrow { color: var(--gold-deep); }
.invite .title-cn { color: var(--ink); }
.invite .divider { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.invite .divider::before { background: var(--bg); color: var(--gold-deep); }
.invite__poem {
  font-size: 17px;
  color: var(--ink);
  letter-spacing: .1em;
  line-height: 2.5;
}
.invite__poem em {
  font-style: normal;
  color: var(--gold-deep);
}
.invite__names {
  margin-top: 30px;
  font-size: 22px;
  letter-spacing: .2em;
  color: var(--ink);
}
.invite__names small {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .3em;
  margin-top: 6px;
}

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown {
  position: relative;
  background:
    linear-gradient(rgba(247, 242, 234, .82), rgba(247, 242, 234, .78)),
    url("images/p16.jpg") center 12% / cover no-repeat;
  color: var(--ink);
  overflow: hidden;
}
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, rgba(255, 253, 249, .45) 0%, rgba(247, 242, 234, .55) 100%);
  pointer-events: none;
  z-index: 0;
}
.countdown .eyebrow { color: var(--gold-deep); }
.countdown .title-cn { color: var(--ink); }
.countdown .divider { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.countdown .divider::before { background: var(--bg); color: var(--gold-deep); }
.countdown .cd-grid,
.countdown .cd-note,
.countdown .eyebrow,
.countdown .title-cn,
.countdown .divider { position: relative; z-index: 1; }

.cd-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.cd-cell {
  flex: 1;
  max-width: 88px;
  background: rgba(255, 250, 240, .72);
  border: 1px solid rgba(184, 146, 90, .35);
  border-radius: 10px;
  padding: 16px 4px;
  box-shadow: 0 6px 18px rgba(74, 64, 56, .1);
}
.cd-num {
  font-family: var(--lat);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  font-weight: 600;
}
.cd-label {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--gold-deep);
  margin-top: 8px;
}
.cd-note {
  margin-top: 26px;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--ink-soft);
}

/* =========================================================
   STORY (alternating photo + text)
   ========================================================= */
.story { background: var(--bg); padding-top: 30px; }
.story__row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0;
  text-align: left;
}
.story__row.rev { flex-direction: row-reverse; }
.story__ph {
  flex: 0 0 46%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}
.story__ph img { width: 100%; height: 100%; object-fit: cover; }
.story__txt { flex: 1; }
.story__txt h4 {
  font-size: 18px;
  letter-spacing: .12em;
  margin-bottom: 8px;
  color: var(--gold-deep);
  font-weight: 600;
}
.story__txt p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--white); }
.grid {
  column-count: 2;
  column-gap: 8px;
  margin-top: 30px;
}
.grid__item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin: 0 0 8px;
  break-inside: avoid;
  box-shadow: 0 8px 22px rgba(74, 64, 56, .12);
}
.grid__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   DETAILS
   ========================================================= */
.details {
  background:
    linear-gradient(rgba(247,242,234,.9), rgba(247,242,234,.9)),
    url("images/p13.jpg") center / cover fixed no-repeat;
}
.info-card {
  background: var(--white);
  border: 1px solid rgba(184, 146, 90, .28);
  border-radius: 12px;
  padding: 34px 26px;
  margin-top: 30px;
  box-shadow: var(--shadow);
}
.info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  text-align: left;
  border-bottom: 1px dashed rgba(184, 146, 90, .3);
}
.info-row:last-child { border-bottom: none; }
.info-ic {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--gold-deep);
}
.info-k { font-size: 12px; letter-spacing: .25em; color: var(--gold-deep); }
.info-v { font-size: 16px; color: var(--ink); letter-spacing: .05em; margin-top: 2px; }
.info-v small { color: var(--ink-soft); font-size: 13px; }
.info-sub { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* clickable address -> map */
.map-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 12px;
  text-align: left;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid rgba(184, 146, 90, .3);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.map-btn:active { background: #e7dcc9; }
.map-btn__pin { flex: 0 0 auto; font-size: 15px; }
.map-btn__addr { flex: 1; }
.map-btn__go {
  flex: 0 0 auto;
  color: var(--gold-deep);
  font-size: 13px;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* map action sheet */
.map-sheet { position: fixed; inset: 0; z-index: 120; }
.map-sheet__mask {
  position: absolute; inset: 0;
  background: rgba(20, 14, 9, .5);
  animation: mapfade .25s ease;
}
@keyframes mapfade { from { opacity: 0; } to { opacity: 1; } }
.map-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .28);
  animation: mapup .3s cubic-bezier(.2, .8, .3, 1);
}
@keyframes mapup { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.map-sheet__title {
  text-align: center;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--ink);
  margin-bottom: 4px;
}
.map-sheet__venue {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.map-opt {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--gold-deep);
  background: var(--bg);
  border: 1px solid rgba(184, 146, 90, .3);
  border-radius: 12px;
  cursor: pointer;
}
.map-opt:active { background: var(--bg-soft); }
.map-opt--copy { color: var(--ink); }
.map-opt--cancel {
  margin-top: 14px;
  color: var(--ink-soft);
  background: var(--white);
  border: none;
  font-size: 15px;
}

/* =========================================================
   CLOSING
   ========================================================= */
.closing {
  position: relative;
  color: #fff;
  height: 92svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
  overflow: hidden;
}
.closing__bg {
  position: absolute; inset: 0;
  background: url("images/p14.jpg") center 30% / cover no-repeat;
}
.closing__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,20,14,.55), rgba(28,20,14,.4) 45%, rgba(28,20,14,.8));
}
.closing__inner { position: relative; z-index: 2; }
.closing__ty {
  font-family: var(--lat);
  font-size: 46px;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: .04em;
}
.closing__cn {
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: .3em;
}
.closing__names {
  margin-top: 40px;
  font-family: var(--script);
  font-size: 40px;
}
.closing__date {
  margin-top: 10px;
  font-family: var(--lat);
  letter-spacing: .35em;
  font-size: 14px;
  color: rgba(255, 253, 249, .85);
}

/* =========================================================
   FLOATING UI: music + petals
   ========================================================= */
.music-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, .6);
  background: rgba(28, 20, 14, .35);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
}
/* keep the button aligned to the phone column on desktop */
@media (min-width: 560px) {
  .music-btn { right: calc(50% - 260px + 18px); }
}
.music-btn.spin i { display: inline-block; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

/* =========================================================
   RSVP FORM
   ========================================================= */
.rsvp { background: var(--white); }
.rsvp .lead { margin-top: 4px; }

.rsvp-form {
  max-width: 380px;
  margin: 34px auto 0;
  text-align: left;
}
.field { display: block; margin-bottom: 20px; }
.field__label {
  display: block;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(184, 146, 90, .35);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
}
.rsvp-form textarea { resize: none; line-height: 1.7; }
.rsvp-form input[type="text"]:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 90, .16);
}
.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder { color: #b7ac9d; }

/* stepper */
.stepper {
  display: flex;
  align-items: stretch;
  width: 160px;
  border: 1px solid rgba(184, 146, 90, .35);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.stepper__btn {
  flex: 0 0 46px;
  border: none;
  background: var(--bg-soft);
  color: var(--gold-deep);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.stepper__btn:active { background: var(--gold-light); }
.stepper input {
  flex: 1;
  width: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--lat);
  font-size: 20px;
  color: var(--ink);
  outline: none;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* attend chips */
.attend { display: flex; gap: 12px; }
.chip { position: relative; flex: 1; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block;
  text-align: center;
  padding: 12px 6px;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid rgba(184, 146, 90, .35);
  border-radius: 10px;
  transition: all .2s;
}
.chip input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: var(--gold-deep);
  box-shadow: 0 6px 16px rgba(156, 118, 63, .3);
}

.rsvp-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .3em;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .2s;
}
.rsvp-submit:active { transform: translateY(1px) scale(.99); }
.rsvp-tip {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  text-align: center;
}

/* done state */
.rsvp-done {
  max-width: 380px;
  margin: 34px auto 0;
  padding: 34px 26px;
  background: var(--bg);
  border: 1px solid rgba(184, 146, 90, .3);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.rsvp-done__ic { font-size: 40px; }
.rsvp-done__title {
  font-size: 20px;
  letter-spacing: .16em;
  color: var(--gold-deep);
  margin: 12px 0 14px;
  font-weight: 600;
}
.rsvp-done__text {
  font-size: 15px;
  color: var(--ink);
  line-height: 2;
  white-space: pre-line;
  margin-bottom: 22px;
}
.rsvp-again {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--gold-deep);
  background: transparent;
  border: 1px solid rgba(184, 146, 90, .5);
  border-radius: 30px;
  cursor: pointer;
}

/* =========================================================
   VIEW TOGGLE + SINGLE-PAGE FORM
   ========================================================= */
.view-toggle {
  position: fixed;
  right: 12px;
  bottom: 22px;
  z-index: 90;
  padding: 8px 14px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold-deep);
  background: rgba(255, 253, 249, .92);
  border: 1px solid rgba(184, 146, 90, .4);
  border-radius: 30px;
  box-shadow: 0 6px 18px rgba(74, 64, 56, .14);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.single-page {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}
.single-page[hidden] { display: none; }

.single-page__bg {
  position: fixed;
  inset: 0;
  background: url("images/p15.jpg") center 30% / cover no-repeat;
  z-index: 0;
}
.single-page__scrim {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 25%, rgba(30,22,16,.32) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(30,22,16,.2) 0%, rgba(30,22,16,.45) 55%, rgba(30,22,16,.7) 100%);
  z-index: 1;
}

.single-page__card {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 28px 90px;
  text-align: center;
  color: #fffdf9;
}

.single-page__we {
  font-family: var(--lat);
  font-size: 13px;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  padding-left: .45em;
}
.single-page__names {
  font-family: var(--script);
  font-size: 42px;
  line-height: 1.1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}
.single-page__names span {
  font-family: var(--lat);
  font-size: .46em;
  font-style: italic;
  color: var(--gold-light);
  margin: 0 8px;
  vertical-align: middle;
}
.single-page__date {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: .12em;
  color: rgba(255, 253, 249, .92);
}
.single-page__venue {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .06em;
  color: rgba(255, 253, 249, .85);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.single-page__form {
  width: 100%;
  max-width: 340px;
  margin-top: 34px;
  padding: 26px 22px;
  background: rgba(255, 253, 249, .94);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  text-align: left;
  color: var(--ink);
}
.single-page__field {
  display: block;
  margin-bottom: 16px;
}
.single-page__field span {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: .08em;
}
.single-page__field input[type="text"],
.single-page__field input[type="number"],
.single-page__field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(184, 146, 90, .35);
  border-radius: 8px;
  outline: none;
  -webkit-appearance: none;
}
.single-page__field input:focus,
.single-page__field textarea:focus {
  border-color: var(--gold);
}
.single-page__field textarea {
  resize: none;
  line-height: 1.7;
}
.single-page__radio {
  display: flex;
  gap: 10px;
}
.single-page__radio label {
  flex: 1;
  position: relative;
}
.single-page__radio input {
  position: absolute;
  opacity: 0;
}
.single-page__radio input + span {
  display: block;
  padding: 10px 6px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid rgba(184, 146, 90, .35);
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
}
.single-page__radio input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.single-page__submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .2em;
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(156, 118, 63, .28);
}

.single-page__done {
  width: 100%;
  max-width: 340px;
  margin-top: 34px;
  padding: 34px 24px;
  background: rgba(255, 253, 249, .94);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  text-align: center;
  color: var(--ink);
}
.single-page__done-ic { font-size: 42px; }
.single-page__done h3 {
  font-size: 18px;
  letter-spacing: .14em;
  color: var(--gold-deep);
  margin: 12px 0 10px;
  font-weight: 600;
}
.single-page__done p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 18px;
  white-space: pre-line;
}

.single-page__back {
  margin-top: 28px;
  padding: 10px 20px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .14em;
  color: rgba(255, 253, 249, .9);
  background: rgba(255, 253, 249, .15);
  border: 1px solid rgba(255, 253, 249, .35);
  border-radius: 30px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

/* keep toggle hidden when single page is active */
body.single-active .view-toggle { display: none; }

/* =========================================================
   scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
