/* =============================================================================
   Wedding — site.css
   The ONLY place colours, fonts, spacing, radius, shadow and motion tokens live.
   Razor carries semantic class names only: no inline styles, no colour literals.
   Palette sampled with an eyedropper from docs/reference/wedding-card-cover-theme.jpg
   (§7.2) and locked in Phase 1.
   ========================================================================== */

:root {
  /* palette — sampled from wedding-card-cover-theme.jpg */
  --wf-red:         #6A1C23;   /* front-card oxblood — primary: red panels, headings, buttons */
  --wf-red-deep:    #55131A;   /* hover / darker bands */
  --wf-red-bright:  #82272E;   /* lit red (back of card) — subtle gradients */
  --wf-gold:        #C6A15B;   /* antique gold — rules, 囍, icon strokes, small accents */
  --wf-gold-bright: #E2D0A6;   /* foil highlight — gradient stop / hover */
  --wf-gold-deep:   #9B7A44;   /* foil shadow — gradient stop / pressed */
  --wf-ivory:       #F5F1E9;   /* main page surface (warm off-white) */
  --wf-linen:       #ECE5D8;   /* alternating sections / muted cards */
  --wf-cream:       #F2E6D0;   /* text + rules ON red panels */
  --wf-ink:         #2A211C;   /* body text on ivory (warm near-black) */
  --wf-ink-muted:   #6E6157;   /* secondary text on ivory */
  --wf-border:      #E0D6C2;   /* hairline on ivory */
  --wf-border-gold: rgba(198, 161, 91, .55);  /* framed elements */
  --wf-surface:     #FFFFFF;   /* white cards (red heading + gold rule) */

  /* gold-foil TEXT ramp (background-clip:text on 囍, "WEDDING INVITATION", the date) */
  --wf-foil: linear-gradient(100deg, #9B7A44, #E2D0A6 42%, #C6A15B 58%, #E2D0A6 78%, #9B7A44);

  /* type */
  --wf-text:            1rem;      /* regular body copy — the baseline reading size */
  --wf-font-script:      "Pinyon Script", cursive;
  --wf-font-italic:      "Cormorant Garamond", serif;
  --wf-font-display:     "Cormorant SC", "Cormorant Garamond", "Noto Serif TC", serif;
  --wf-font-body:        "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --wf-font-han-display: "LXGW WenKai TC", "Noto Serif TC", serif;

  /* shape / rhythm / motion */
  --wf-radius: 2px;
  --wf-shadow: 0 10px 30px rgba(42, 33, 28, .10);
  --wf-maxw: 1120px;
  --wf-space: clamp(1rem, 4vw, 2rem);
  --wf-frame: 1px solid var(--wf-border-gold);
  --wf-ease: cubic-bezier(.22, .61, .36, 1);
  --wf-dur-fast: 140ms;
  --wf-dur-base: 280ms;
  --wf-dur-slow: 600ms;
  --wf-lift: -4px;
  --wf-stagger: 60ms;

  --wf-nav-h: 4rem;

  /* overlay scrim (lightbox / modal backdrops) — --wf-ink at 82% */
  --wf-scrim: rgba(42, 33, 28, .82);

  /* LINE brand green - the Upload page's LINE login button only (PODIUM_PLAN.md §9) */
  --wf-line:       #06C755;
  --wf-line-hover: #05B34C;
  --wf-line-text:  #FFFFFF;
  --wf-avatar:     3rem;
  /* photo album (GALLERY_PLAN.md D12) - layout + motion from the mock-up, in the site palette */
  --wf-album-nav-h: 3.5rem;      /* site nav height; album/nav.ts keeps the measured value on .album */
  --wf-album-bar-h: 3.5rem;      /* the album's sticky bar height; ditto */
  --wf-album-hero-h: min(85svh, 54rem);
  --wf-album-hero-title: clamp(2.6rem, 9vw, 5rem);
  /* the hero is a bright painted sky, left unshaded: dark card colours with an ivory halo on top of it */
  --wf-album-hero-ink: var(--wf-red-deep);          /* the names */
  --wf-album-hero-accent: var(--wf-red);            /* kicker, subtitle, chevron */
  --wf-album-hero-text: var(--wf-ink);              /* date / venue, scroll link */
  --wf-album-hero-icon: var(--wf-gold-deep);
  --wf-album-hero-text-shadow: 0 0 2px rgba(245, 241, 233, .9), 0 0 .9rem rgba(245, 241, 233, .8);
  --wf-album-hero-glass: rgba(245, 241, 233, .6);
  --wf-album-hero-line: rgba(155, 122, 68, .45);
  /* the plain red panel (no image) */
  --wf-album-hero-plain-glass: rgba(245, 241, 233, .12);
  --wf-album-hero-plain-line: rgba(245, 241, 233, .3);
  --wf-album-hero-zoom-from: 1.12;
  --wf-album-hero-dur: 2.4s;
  --wf-album-glass: rgba(245, 241, 233, .88);
  --wf-album-blur: 14px;
  --wf-album-pill-bg: rgba(236, 229, 216, .85);
  --wf-album-label-bg: rgba(42, 33, 28, .6);
  --wf-album-shade: linear-gradient(to top, rgba(42, 33, 28, .82), rgba(42, 33, 28, .2) 65%, transparent);
  --wf-album-quote-bg: #F8F3EA;
  --wf-album-wall-bg: var(--wf-linen);
  --wf-album-note-bg: #FBF6EA;
  --wf-album-heart: #C8434F;
  --wf-album-small: .85rem;
  --wf-album-tiny: .75rem;
  --wf-album-title: clamp(1.9rem, 5vw, 3rem);
  --wf-album-radius-sm: 6px;
  --wf-album-radius: 12px;
  --wf-album-radius-lg: 20px;
  --wf-album-radius-pill: 999px;
  --wf-album-shadow: 0 10px 30px -12px rgba(42, 33, 28, .22);
  --wf-album-shadow-float: 0 20px 40px -15px rgba(42, 33, 28, .32);
  --wf-album-ease: cubic-bezier(.16, 1, .3, 1);
  --wf-album-zoom: 1.05;
  --wf-album-zoom-dur: 700ms;
  --wf-album-fade: 350ms;
  --wf-album-gap: clamp(.6rem, 2vw, 1.5rem);
  --wf-album-grid-gap: clamp(.25rem, 1vw, .6rem);
  --wf-album-masonry-gap: clamp(.6rem, 1.5vw, 1rem);
  --wf-album-chapter-gap: clamp(4rem, 10vw, 7rem);
  --wf-album-feature-h: clamp(18rem, 60vw, 40rem);
  --wf-album-portrait-h: clamp(14rem, 36vw, 24rem);
  --wf-album-reel-w: clamp(10rem, 42vw, 17rem);
  --wf-album-reel-h: clamp(12rem, 48vw, 16rem);
  --wf-album-moment-h: clamp(13rem, 42vw, 22rem);
  --wf-album-mosaic-row: clamp(7rem, 22vw, 15rem);
  --wf-album-line-pad: clamp(1.5rem, 4vw, 2.5rem);
  --wf-album-polaroid-w: clamp(8.5rem, 40vw, 13rem);
  --wf-album-tilt-step: 1.6deg;
  --wf-album-viewer-bg: rgba(20, 15, 12, .97);
  --wf-album-viewer-muted: rgba(242, 230, 208, .62);
  --wf-album-viewer-line: rgba(242, 230, 208, .25);
  --wf-album-viewer-btn: rgba(255, 255, 255, .1);
  --wf-album-viewer-btn-hover: rgba(255, 255, 255, .22);
  --wf-album-viewer-btn-size: 2.5rem;
  --wf-album-viewer-nav: rgba(0, 0, 0, .4);
  --wf-album-viewer-nav-hover: rgba(0, 0, 0, .7);
  --wf-album-viewer-shadow: 0 25px 60px rgba(0, 0, 0, .5);
  /* AL6: share button, access bar, grid hearts, favorites sheet */
  --wf-album-share-bg: var(--wf-foil);
  --wf-album-share-ink: var(--wf-red-deep);
  --wf-album-share-shadow: 0 6px 18px -8px rgba(155, 122, 68, .8);
  --wf-album-access-bg: var(--wf-linen);
  --wf-album-heart-bg: rgba(42, 33, 28, .45);
  --wf-album-heart-size: 2rem;
  --wf-album-sheet-w: 26rem;
  --wf-album-sheet-h: 82svh;
  --wf-album-sheet-thumb: 5.5rem;
  --wf-album-sheet-in: 320ms;
}

/* ---- base ---------------------------------------------------------------- */

.site-body {
  margin: 0;
  background-color: var(--wf-ivory);
  background-image: url("../img/linen.svg");
  color: var(--wf-ink);
  font-family: var(--wf-font-body);
  font-size: var(--wf-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.site-body .container {
  max-width: var(--wf-maxw);
}

main {
  padding-top: var(--wf-nav-h);
}

a {
  color: var(--wf-red);
  text-underline-offset: .18em;
}

h1, h2, h3 {
  font-family: var(--wf-font-display);
  letter-spacing: .06em;
  color: var(--wf-red);
}

/* first-paint fade — only with JS + motion allowed, never blocks content */
@media (prefers-reduced-motion: no-preference) {
  .js .site-body { animation: wf-fade-in var(--wf-dur-slow) var(--wf-ease); }
}
@keyframes wf-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---- accessibility ----------------------------------------------------- */

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 1080;
  padding: .5rem .9rem;
  background: var(--wf-red);
  color: var(--wf-cream);
  border-radius: var(--wf-radius);
}

/* ---- gold-foil text -------------------------------------------------- */

.foil {
  background: var(--wf-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foil--sheen {
  background-size: 220% auto;
  animation: wf-sheen 6s var(--wf-ease) infinite;
}

@keyframes wf-sheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .foil--sheen { animation: none; background-size: 100% auto; }
}

/* ---- ornaments (SVG via mask so the gold comes from a token) --------- */

.ornament {
  display: block;
  background-color: var(--wf-gold);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.flourish {
  width: min(9rem, 42vw);
  height: .85rem;
  margin-inline: auto;
  -webkit-mask-image: url("../img/ornament/flourish.svg");
  mask-image: url("../img/ornament/flourish.svg");
}

.rings {
  width: 3rem;
  height: 1.9rem;
  margin-inline: auto;
  -webkit-mask-image: url("../img/ornament/rings.svg");
  mask-image: url("../img/ornament/rings.svg");
}

/* ---- gold rule ------------------------------------------------------- */

.rule-gold {
  border: 0;
  height: 1px;
  width: min(9rem, 40%);
  margin: 1.25rem auto;
  background: var(--wf-gold);
  opacity: .8;
}

/* ---- red feature panel -------------------------------------------------- */

.panel--red {
  background-color: var(--wf-red);
  background-image: linear-gradient(160deg, var(--wf-red), var(--wf-red-bright));
  color: var(--wf-cream);
}

.panel--red h1,
.panel--red h2,
.panel--red h3 {
  color: var(--wf-cream);
}

/* ---- thin gold inset frame (echoes the invitation card) ------------- */

.frame-gold {
  position: relative;
  border: var(--wf-frame);
}

.frame-gold::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--wf-border-gold);
  pointer-events: none;
}

/* ---- navigation ------------------------------------------------------- */

.site-nav {
  background-color: var(--wf-ivory);
  border-bottom: 1px solid var(--wf-border-gold);
  min-height: var(--wf-nav-h);
  transition: min-height var(--wf-dur-base) var(--wf-ease),
              background-color var(--wf-dur-base) var(--wf-ease),
              box-shadow var(--wf-dur-base) var(--wf-ease);
}

.site-nav--scrolled {
  min-height: 3rem;
  background-color: rgba(245, 241, 233, .92);
  box-shadow: var(--wf-shadow);
  backdrop-filter: blur(6px);
}

.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  text-decoration: none;
}

.site-brand__mark {
  font-family: var(--wf-font-han-display);
  font-size: 1.5rem;
  color: var(--wf-gold);
}

.site-brand__name {
  font-family: var(--wf-font-script);
  font-size: 1.4rem;
  color: var(--wf-red);
}

.site-nav .nav-link {
  font-family: var(--wf-font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-ink);
}

.site-nav .nav-link.active {
  color: var(--wf-red);
  text-decoration: underline;
  text-decoration-color: var(--wf-gold);
  text-decoration-thickness: 2px;
}

.site-lang__btn {
  background-color: transparent;
  border: 1px solid var(--wf-border-gold);
  color: var(--wf-red);
}

.site-lang .dropdown-item.active {
  background-color: var(--wf-red);
  color: var(--wf-cream);
}

/* ---- buttons -------------------------------------------------------- */

.btn-wf {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: .6rem 1.6rem;
  border-radius: var(--wf-radius);
  font-family: var(--wf-font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--wf-dur-base) var(--wf-ease),
              border-color var(--wf-dur-base) var(--wf-ease),
              color var(--wf-dur-base) var(--wf-ease),
              box-shadow var(--wf-dur-base) var(--wf-ease),
              transform var(--wf-dur-base) var(--wf-ease);
}

.btn-wf--primary {
  background-color: var(--wf-red);
  border: 1px solid var(--wf-gold);
  color: var(--wf-cream);
}

.btn-wf--primary:hover {
  background-color: var(--wf-red-deep);
  border-color: var(--wf-gold-bright);
  transform: translateY(var(--wf-lift));
  box-shadow: var(--wf-shadow);
}

.btn-wf--ghost {
  background-color: transparent;
  border: 1px solid var(--wf-gold);
  color: var(--wf-cream);
}

.btn-wf--ghost:hover {
  background-color: var(--wf-gold);
  color: var(--wf-red-deep);
}

/* on ivory surfaces the ghost button needs red text */
.site-body > main .btn-wf--ghost:not(.panel--red *) {
  color: var(--wf-red);
}

.btn-wf__ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .25;
  transform: scale(0);
  pointer-events: none;
  animation: wf-ripple var(--wf-dur-slow) var(--wf-ease);
}

@keyframes wf-ripple { to { transform: scale(2.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn-wf--primary:hover { transform: none; }
  .btn-wf__ripple { display: none; }
}

/* ---- home hero ----------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0;
  text-align: center;
}

.hero__sprig {
  position: absolute;
  width: clamp(90px, 18vw, 190px);
  aspect-ratio: 1;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: url("../img/ornament/sprig.svg");
  mask-image: url("../img/ornament/sprig.svg");
}

.hero__sprig--tl { top: 1.25rem; left: 1.25rem; }
.hero__sprig--br { right: 1.25rem; bottom: 1.25rem; transform: rotate(180deg); }

.hero__frame {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
}

.hero__eyebrow {
  font-family: var(--wf-font-display);
  letter-spacing: .34em;
  text-indent: .34em;
  font-size: var(--wf-text);
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.hero__mark {
  font-family: var(--wf-font-han-display);
  font-size: clamp(4rem, 15vw, 7rem);
  line-height: 1;
  margin: .25rem 0;
}

.hero__flourish { margin: 1rem auto 1.25rem; }

.hero__headline {
  font-family: var(--wf-font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  letter-spacing: .04em;
  color: var(--wf-cream);
  margin: .5rem 0;
}

.hero__headline.is-zh {
  font-family: var(--wf-font-han-display);
  font-style: normal;
  letter-spacing: .14em;
}

.hero__tagline {
  font-family: var(--wf-font-italic);
  font-style: italic;
  opacity: .85;
  margin: .25rem 0 1.5rem;
  font-size: 1.05rem;
}

.hero__names {
  font-family: var(--wf-font-script);
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  color: var(--wf-cream);
  margin: 1rem 0 .75rem;
}

.hero__names.is-zh {
  font-family: var(--wf-font-han-display);
  letter-spacing: .1em;
}

.hero__date {
  font-family: var(--wf-font-display);
  letter-spacing: .32em;
  text-indent: .32em;
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  margin: 1.25rem 0 .25rem;
}

.hero__lunar {
  margin: .2rem 0;
  font-size: var(--wf-text);
  opacity: .82;
}

.hero__place {
  margin: .4rem 0 1.75rem;
  letter-spacing: .12em;
  font-size: var(--wf-text);
  text-transform: uppercase;
}

.hero__rsvp { margin-bottom: 2rem; }
.hero__countdown { margin-top: 1rem; }

/* ---- countdown --------------------------------------------------- */

.countdown { display: inline-block; }

.countdown__heading {
  font-family: var(--wf-font-display);
  letter-spacing: .22em;
  font-size: var(--wf-text);
  text-transform: uppercase;
  margin: 0 0 .75rem;
  opacity: .85;
}

.countdown__timer {
  display: flex;
  gap: clamp(.75rem, 3vw, 1.75rem);
  justify-content: center;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.25rem;
}

.countdown__value {
  font-family: var(--wf-font-display);
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1;
  color: var(--wf-cream);
  font-variant-numeric: tabular-nums;
}

.countdown__value.is-tick { animation: wf-tick var(--wf-dur-base) var(--wf-ease); }

.countdown__label {
  font-size: var(--wf-text);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: .4rem;
  color: var(--wf-gold-bright);
}

.countdown__note {
  font-family: var(--wf-font-italic);
  font-style: italic;
  margin: .5rem 0 0;
  color: var(--wf-cream);
}

@keyframes wf-tick {
  from { transform: translateY(-30%); opacity: .3; }
  to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown__value.is-tick { animation: none; }
}

/* ---- generic section + dividers -------------------------------------- */

.section { padding: clamp(3rem, 9vw, 5.5rem) 0; }
.section--alt { background-color: var(--wf-linen); }

.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 .5rem;
}

.section__flourish { margin: .75rem auto 2rem; }
.section__cta { text-align: center; margin: 0; }

.section__intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--wf-ink-muted);
}

.divider { display: flex; justify-content: center; margin: 0 auto 2.25rem; }

.divider__rule {
  display: block;
  width: min(12rem, 50%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wf-gold), transparent);
  transform: scaleX(0);
  transition: transform var(--wf-dur-slow) var(--wf-ease);
}

.divider.is-visible .divider__rule { transform: scaleX(1); }
html:not(.js) .divider__rule { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .divider__rule { transform: scaleX(1); transition: none; }
}

.link-arrow {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--wf-font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-red);
  text-decoration: none;
  border-bottom: 1px solid var(--wf-gold);
  padding-bottom: .15rem;
}

.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--wf-red-deep); }

/* ---- invitation words --------------------------------------------- */

.invitation {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.invitation__line { margin: .5rem 0; font-size: 1.1rem; }

.invitation__line--lead {
  font-family: var(--wf-font-italic);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--wf-red);
}

/* ---- key details -------------------------------------------------- */

.details {
  max-width: 40rem;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  text-align: start;
}

.details__row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.details__row dt {
  margin: 0;
  font-family: var(--wf-font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-red);
}

.details__row dd { margin: 0; }

.details__sub {
  display: block;
  color: var(--wf-ink-muted);
  font-size: var(--wf-text);
}

@media (max-width: 40rem) {
  .details__row { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---- timeline --------------------------------------------------- */

.timeline {
  max-width: 34rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.timeline__day {
  text-align: center;
  font-family: var(--wf-font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-red);
  margin: 0 0 1rem;
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--wf-border);
}

.timeline__item:last-child { border-bottom: 0; }

.timeline__time {
  font-family: var(--wf-font-display);
  letter-spacing: .08em;
  color: var(--wf-gold-deep);
}

.timeline__note {
  text-align: center;
  color: var(--wf-ink-muted);
  font-style: italic;
  font-family: var(--wf-font-italic);
}

/* ---- our story (placeholder, flag-gated) ------------------------ */

.our-story {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  color: var(--wf-ink-muted);
  font-style: italic;
}

/* ---- footer -------------------------------------------------------- */

.site-footer {
  margin-top: 4rem;
  padding: 3.5rem 0;
  text-align: center;
}

.site-footer__mark {
  font-family: var(--wf-font-han-display);
  font-size: 2.5rem;
  line-height: 1;
}

.site-footer__couple {
  font-family: var(--wf-font-script);
  font-size: 1.75rem;
  margin: .5rem 0;
}

.site-footer__meta {
  margin: .35rem 0;
  font-size: var(--wf-text);
  opacity: .92;
}

/* day-of coordinator line — server-side gated so it is gone the day after
   everything (WeddingClock.IsAfterEverything). */
.site-footer__coordinator {
  margin: 1.25rem 0 .35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .25rem .85rem;
  font-size: var(--wf-text);
}

.site-footer__coordinator-role {
  font-family: var(--wf-font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-gold-bright);
}

.site-footer__coordinator-link {
  color: var(--wf-cream);
  text-decoration: underline;
  text-decoration-color: var(--wf-gold);
  text-underline-offset: .18em;
  white-space: nowrap;
}

.site-footer__rings { margin: 1.25rem auto 0; opacity: .8; }

/* ---- error page --------------------------------------------------- */

.error-page { padding: 5rem 0; text-align: center; }

.error-page__id {
  color: var(--wf-ink-muted);
  font-size: var(--wf-text);
}

/* ---- motion / scroll-reveal (no-JS + reduced-motion safe) -------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--wf-dur-slow) var(--wf-ease),
              transform var(--wf-dur-slow) var(--wf-ease);
  transition-delay: calc(var(--reveal-i, 0) * var(--wf-stagger));
}

.reveal.is-visible { opacity: 1; transform: none; }

html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Event Details (Phase 2) — page head, venue + map, tour, local guide
   ========================================================================== */

/* ---- red page-head band ------------------------------------------------ */

.section--head { padding: clamp(2.5rem, 7vw, 4rem) 0; }

.section--head__frame {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) 1.5rem;
  text-align: center;
}

.section--head__title {
  font-family: var(--wf-font-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  margin: 0;
}

.section--head__flourish { margin: 1rem auto .75rem; }

.section--head__sub {
  margin: 0;
  font-family: var(--wf-font-italic);
  font-style: italic;
  opacity: .9;
}

/* ---- venue + transport ---------------------------------------------- */

.venue { max-width: 44rem; margin: 0 auto; text-align: center; }

.venue__name {
  font-family: var(--wf-font-display);
  letter-spacing: .08em;
  font-size: 1.15rem;
  margin: 0 0 .25rem;
  color: var(--wf-red);
}

.venue__addr { margin: 0 0 1.5rem; color: var(--wf-ink-muted); }

.venue__actions { margin: 1.25rem 0 0; }

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--wf-linen);
  border: var(--wf-frame);
  border-radius: var(--wf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-embed__frame {
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity var(--wf-dur-slow) var(--wf-ease);
}

.map-embed.is-loaded .map-embed__frame { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .map-embed__frame { transition: none; }
}

.venue__transport { margin-top: 2.5rem; text-align: left; }

.venue__transport-title {
  text-align: center;
  font-family: var(--wf-font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-red);
  margin: 0 0 1.25rem;
}

.venue__transport-list {
  margin: 0;
  display: grid;
  gap: .9rem;
}

.venue__transport-list > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--wf-border);
}

.venue__transport-list > div:last-child { border-bottom: 0; }

.venue__transport-list dt {
  font-family: var(--wf-font-display);
  letter-spacing: .06em;
  color: var(--wf-gold-deep);
}

.venue__transport-list dd { margin: 0; }

.venue__transport-options {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .35rem;
}

.venue__transport-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-style: italic;
  font-family: var(--wf-font-italic);
  color: var(--wf-ink-muted);
}

@media (max-width: 32rem) {
  .venue__transport-list > div { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---- day-after tour ------------------------------------------------- */

.tour { max-width: 40rem; margin: 0 auto; text-align: center; }

.tour__date {
  font-family: var(--wf-font-display);
  letter-spacing: .16em;
  color: var(--wf-gold-deep);
  margin: 0 0 1rem;
}

.tour__lead { margin: 0 0 1rem; }

.tour__cta { margin: 0 0 1.5rem; color: var(--wf-ink-muted); }

.tour__actions { margin: 0; }

/* ---- local guide -------------------------------------------------- */

.guide-group { margin-bottom: 3rem; }
.guide-group:last-child { margin-bottom: 0; }

.guide-group__title {
  text-align: center;
  font-family: var(--wf-font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--wf-red);
  margin: 0 0 1.5rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
}

.guide-card {
  background-color: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--wf-dur-base) var(--wf-ease),
              box-shadow var(--wf-dur-base) var(--wf-ease);
}

.guide-card:hover {
  transform: translateY(var(--wf-lift));
  box-shadow: var(--wf-shadow);
}

.guide-card__media {
  display: flex;
  gap: 2px;
  aspect-ratio: 3 / 2;
  background-color: var(--wf-linen);
}

.guide-card__thumb {
  display: block;
  overflow: hidden;
  flex: 1 1 0;
  min-width: 0;
}

.guide-card__thumb--extra { display: none; }
.guide-card__media .guide-card__thumb:nth-child(-n+3) { display: block; }

.guide-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--wf-dur-base) var(--wf-ease);
}

.guide-card:hover .guide-card__thumb img { transform: scale(1.03); }

.guide-card__body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1 1 auto;
}

.guide-card__name {
  margin: 0;
  font-family: var(--wf-font-display);
  letter-spacing: .04em;
  font-size: 1.1rem;
  color: var(--wf-red);
}

.guide-card__price {
  margin: 0;
  letter-spacing: .1em;
  color: var(--wf-gold-deep);
  font-weight: 600;
}

.guide-card__price-dim { color: var(--wf-border); }

.guide-card__addr,
.guide-card__desc,
.guide-card__booking {
  margin: 0;
  font-size: var(--wf-text);
}

.guide-card__addr { color: var(--wf-ink-muted); }
.guide-card__desc { color: var(--wf-ink); }

.guide-card__booking {
  color: var(--wf-ink-muted);
  font-style: italic;
  font-family: var(--wf-font-italic);
}

.guide-card__roomblock {
  margin: 0;
  padding: .5rem .75rem;
  background-color: var(--wf-linen);
  border-left: 3px solid var(--wf-gold);
  font-size: var(--wf-text);
}

.guide-card__roomblock-code {
  display: inline-block;
  margin-left: .5rem;
  padding: .05rem .5rem;
  border: 1px solid var(--wf-border-gold);
  border-radius: var(--wf-radius);
  font-family: var(--wf-font-display);
  letter-spacing: .12em;
  color: var(--wf-red);
}

.guide-card__links {
  margin: auto 0 0;
  padding-top: .35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  font-size: var(--wf-text);
}

.guide-card__links a {
  color: var(--wf-red);
  text-decoration: underline;
  text-decoration-color: var(--wf-gold);
}

@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .guide-card__thumb img { transition: none; }
  .guide-card:hover { transform: none; }
  .guide-card:hover .guide-card__thumb img { transform: none; }
}

/* ---- guide lightbox (native <dialog>) ---------------------------- */

.guide-lightbox {
  border: 0;
  padding: 0;
  max-width: 92vw;
  max-height: 92vh;
  background: transparent;
  overflow: visible;
}

.guide-lightbox::backdrop {
  background: var(--wf-scrim);
}

.guide-lightbox__img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  border: 1px solid var(--wf-border-gold);
  background-color: var(--wf-ink);
}

.guide-lightbox__close,
.guide-lightbox__nav {
  position: absolute;
  background-color: var(--wf-red);
  color: var(--wf-cream);
  border: 1px solid var(--wf-gold);
  border-radius: var(--wf-radius);
  cursor: pointer;
  line-height: 1;
}

.guide-lightbox__close {
  top: -1rem;
  right: -1rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
}

.guide-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 3.25rem;
  font-size: 1.5rem;
}

.guide-lightbox__nav--prev { left: -1.25rem; }
.guide-lightbox__nav--next { right: -1.25rem; }

/* ==========================================================================
   RSVP (Phase 3) — warm hand-off page to the external Google Form
   ========================================================================== */

.section--rsvp { text-align: center; }

.rsvp {
  max-width: 40rem;
  margin: 0 auto;
}

.rsvp__lead {
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.rsvp__deadline {
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.rsvp__deadline-label {
  font-family: var(--wf-font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-red);
}

.rsvp__deadline-date {
  font-family: var(--wf-font-display);
  letter-spacing: .1em;
  font-size: 1.35rem;
  color: var(--wf-gold-deep);
}

.rsvp__note {
  margin: 0 auto 2.5rem;
  max-width: 34rem;
  color: var(--wf-ink-muted);
  font-family: var(--wf-font-italic);
  font-style: italic;
}

.rsvp__actions { margin: 0 0 1.25rem; }

.rsvp__contact {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--wf-red);
}

.rsvp__contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  margin: 0 auto 1.25rem;
}

.rsvp__contact-link {
  color: var(--wf-red);
  text-decoration: underline;
  text-decoration-color: var(--wf-gold);
  text-underline-offset: .18em;
  white-space: nowrap;
}

.rsvp__btn {
  padding: .9rem 2.75rem;
  font-size: var(--wf-text);
}

.rsvp__fineprint {
  margin: 0;
  font-size: var(--wf-text);
  color: var(--wf-ink-muted);
}

/* ==========================================================================
   Gallery & guest upload (Phase 4) — the photo album (GALLERY_PLAN.md AL5), upload form
   ========================================================================== */

/* ---- album ---- (GALLERY_PLAN.md AL5 / §5 / D12) ----------------------------
   Story view: hero, frosted sticky bar, chapter layouts per display type, guest wall, viewer.
   Layout patterns + motion from docs/reference/interactive_luxury_wedding_gallery.html, in the site's
   palette and type. Every value is a --wf-album-* token in :root. */

/* hero */
.album-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--wf-album-hero-h);
  padding: 4rem var(--wf-space) 5.5rem;
  overflow: hidden;
  text-align: center;
  color: var(--wf-album-hero-text);
  background-color: var(--wf-red-deep);
}

.album-hero--plain {
  --wf-album-hero-ink: var(--wf-ivory);
  --wf-album-hero-accent: var(--wf-gold-bright);
  --wf-album-hero-text: var(--wf-cream);
  --wf-album-hero-icon: var(--wf-gold-bright);
  --wf-album-hero-text-shadow: none;
  --wf-album-hero-glass: var(--wf-album-hero-plain-glass);
  --wf-album-hero-line: var(--wf-album-hero-plain-line);
}

.album-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--wf-album-zoom));
}

.album-hero__body {
  position: relative;
  max-width: 46rem;
  text-shadow: var(--wf-album-hero-text-shadow);
}

.album-hero__kicker {
  margin: 0 0 1rem;
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-small);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--wf-album-hero-accent);
}

.album-hero .album-hero__title {
  margin: 0 0 .75rem;
  font-family: var(--wf-font-script);
  font-size: var(--wf-album-hero-title);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--wf-album-hero-ink);
}

.album-hero__sub {
  margin: 0 0 1.75rem;
  font-family: var(--wf-font-italic);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--wf-album-hero-accent);
}

.album-hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1.25rem;
  margin: 0;
  padding: .55rem 1.4rem;
  border: 1px solid var(--wf-album-hero-line);
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-album-hero-glass);
  backdrop-filter: blur(var(--wf-album-blur));
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-small);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.album-hero__fact .fa-regular,
.album-hero__fact .fa-solid { color: var(--wf-album-hero-icon); }

.album-hero__dot {
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--wf-album-hero-icon);
}

@media (max-width: 40rem) {
  .album-hero__meta { flex-direction: column; gap: .35rem; border-radius: var(--wf-album-radius-lg); }
  .album-hero__dot { display: none; }
}

.album-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-tiny);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--wf-album-hero-text);
  text-decoration: none;
  text-shadow: var(--wf-album-hero-text-shadow);
  opacity: .85;
}

.album-hero__scroll:hover { color: var(--wf-album-hero-ink); opacity: 1; }
.album-hero__chevron { color: var(--wf-album-hero-accent); }

@media (prefers-reduced-motion: no-preference) {
  .album-hero__img { animation: wf-album-hero-in var(--wf-album-hero-dur) var(--wf-album-ease) both; }
  .album-hero__chevron { animation: wf-album-bounce 1.8s var(--wf-ease) infinite; }
}

@keyframes wf-album-hero-in { from { transform: scale(var(--wf-album-hero-zoom-from)); } to { transform: scale(var(--wf-album-zoom)); } }
@keyframes wf-album-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* sticky bar */
.album { position: relative; }

.album-bar {
  position: sticky;
  top: var(--wf-album-nav-h);
  z-index: 1020;
  padding: .5rem 0;
  background: var(--wf-album-glass);
  backdrop-filter: blur(var(--wf-album-blur));
  border-bottom: 1px solid var(--wf-border-gold);
}

.album-bar__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.album-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: .25rem;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-album-pill-bg);
}

.album-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border-radius: var(--wf-album-radius-pill);
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-small);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wf-ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--wf-dur-base) var(--wf-ease), color var(--wf-dur-base) var(--wf-ease);
}

.album-toggle__btn:hover { color: var(--wf-red); }

.album-toggle__btn.is-active {
  background: var(--wf-surface);
  color: var(--wf-red);
  box-shadow: var(--wf-album-shadow);
}

.album-toggle__btn .fa-solid { color: var(--wf-gold-deep); }

.album-strip {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, var(--wf-ink) 1rem, var(--wf-ink) calc(100% - 1rem), transparent);
}

.album-strip::-webkit-scrollbar { display: none; }

/* phones: the strip gets its own row under the toggle + favorites */
@media (max-width: 40rem) {
  .album-bar__inner { flex-wrap: wrap; justify-content: space-between; row-gap: .4rem; }
  .album-strip { order: 3; flex-basis: 100%; }
  .album-strip__list { padding: .1rem .75rem; }
}

.album-strip__list {
  display: flex;
  gap: .25rem;
  width: max-content;
  margin: 0 auto;
  padding: .1rem 1rem;
  list-style: none;
}

.album-strip__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: var(--wf-album-radius-pill);
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-small);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wf-ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--wf-dur-base) var(--wf-ease), color var(--wf-dur-base) var(--wf-ease);
}

.album-strip__link:hover { color: var(--wf-red); }

.album-strip__num {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid var(--wf-border-gold);
  border-radius: 50%;
  font-size: var(--wf-album-tiny);
  letter-spacing: 0;
  color: var(--wf-gold-deep);
  transition: background-color var(--wf-dur-base) var(--wf-ease), color var(--wf-dur-base) var(--wf-ease);
}

.album-strip__link.is-active { color: var(--wf-red); background: var(--wf-surface); box-shadow: var(--wf-album-shadow); }
.album-strip__link.is-active .album-strip__num { background: var(--wf-red); border-color: var(--wf-red); color: var(--wf-cream); }

.album[data-view="grid"] .album-strip { visibility: hidden; }

.album-fav {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-surface);
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-small);
  color: var(--wf-ink);
  cursor: pointer;
}

.album-fav__icon { color: var(--wf-ink-muted); transition: color var(--wf-dur-base) var(--wf-ease); }
.album-fav.has-favorites .album-fav__icon { color: var(--wf-album-heart); }

.album-fav__count {
  min-width: 1.4rem;
  padding: 0 .35rem;
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-linen);
  text-align: center;
  font-size: var(--wf-album-tiny);
}

/* AL6: favorites + the one filled button (Share your photos) */
.album-bar__end { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; }

.album-share {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .95rem;
  border: 1px solid var(--wf-gold-deep);
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-album-share-bg);
  box-shadow: var(--wf-album-share-shadow);
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-small);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--wf-album-share-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--wf-dur-base) var(--wf-album-ease), box-shadow var(--wf-dur-base) var(--wf-ease);
}

.album-share:hover,
.album-share:focus-visible { color: var(--wf-album-share-ink); transform: translateY(-1px); box-shadow: var(--wf-album-shadow-float); }
.album-share:focus-visible { outline: 2px solid var(--wf-red); outline-offset: 2px; }

/* narrow phones: the camera icon alone (the text stays for screen readers) */
@media (max-width: 26rem) {
  .album-share { padding: .45rem .7rem; }
  .album-share__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* one-shot notice (LINE login / share code) - JS shows it as a toast instead */
.album-notice {
  margin: 1rem 0 0;
  padding: .7rem 1rem;
  border-left: 3px solid var(--wf-gold);
  background: var(--wf-linen);
  color: var(--wf-ink);
}

.album-notice--warn { border-left-color: var(--wf-red); color: var(--wf-red-deep); }

/* access bar (AL6, D5 / D18): visitors without album access */
.album-access {
  padding: .9rem 0;
  border-bottom: 1px solid var(--wf-border-gold);
  background: var(--wf-album-access-bg);
}

.album-access__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}

.album-access__text { margin: 0; color: var(--wf-ink); }
.album-access__icon { margin-inline-end: .35rem; color: var(--wf-gold-deep); }

.album-access__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem 1rem; }

.album-access__summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--wf-gold);
  border-radius: var(--wf-radius);
  background: var(--wf-surface);
  color: var(--wf-red);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.album-access__summary::-webkit-details-marker { display: none; }
.album-access__summary .fa-solid { color: var(--wf-gold-deep); }
.album-access__code[open] .album-access__summary { border-bottom-color: transparent; }

.album-access__form { display: grid; gap: .35rem; margin-top: .6rem; }
.album-access__label { font-size: var(--wf-album-small); color: var(--wf-ink-muted); }
.album-access__row { display: flex; gap: .5rem; }

.album-access__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 11rem;
  padding: .5rem .7rem;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  background: var(--wf-surface);
  font: inherit;
  letter-spacing: .08em;
  color: var(--wf-ink);
}

.album-access__input:focus { outline: 2px solid var(--wf-border-gold); outline-offset: 1px; border-color: var(--wf-gold); }
.album-access__input[aria-invalid="true"] { border-color: var(--wf-red); }
.album-access__btn { flex: 0 0 auto; }
.album-access__error { font-size: var(--wf-album-small); color: var(--wf-red); }

@media (max-width: 40rem) {
  .album-access__actions,
  .album-access__code { width: 100%; }
}

/* only with JS: the toggle, favorites, chips and the guest wall's "Show more" */
html:not(.js) .album-toggle,
html:not(.js) .album-fav,
html:not(.js) .album-chips,
html:not(.js) [data-album-wall-more] { display: none; }

/* chapters */
.album-chapter {
  padding: calc(var(--wf-album-chapter-gap) / 2) 0;
  scroll-margin-top: calc(var(--wf-album-nav-h) + var(--wf-album-bar-h));
}

.album-chapter:first-child { padding-top: calc(var(--wf-album-chapter-gap) / 2 + 1rem); }

.album-chapter__head { max-width: 44rem; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }

.album-chapter__label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .4rem;
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-small);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wf-gold-deep);
}

.album-chapter__rule { width: 2rem; height: 1px; background: var(--wf-gold); }

.album-chapter .album-chapter__title {
  margin: 0 0 .5rem;
  font-size: var(--wf-album-title);
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--wf-red);
}

.album-chapter__sub {
  margin: 0;
  font-family: var(--wf-font-italic);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--wf-ink-muted);
}

.album-chapter__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.album-chapter__foot .link-arrow { margin-top: 0; }

.album-chapter__guests { margin: 0; }

.album-chapter__guests-link {
  color: var(--wf-red);
  text-decoration: none;
  border-bottom: 1px dashed var(--wf-gold);
}

.album-chapter__guests-link .fa-solid { color: var(--wf-gold-deep); }

/* AL6: "Were you there? Add your photos of this moment" - its own line under the footer links */
.album-chapter__add { flex-basis: 100%; margin: 0; font-family: var(--wf-font-italic); font-style: italic; }

.album-chapter__add-link {
  color: var(--wf-ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--wf-border-gold);
  transition: color var(--wf-dur-base) var(--wf-ease);
}

.album-chapter__add-link:hover { color: var(--wf-red); }

/* closing invite at the end of the story */
.album-invite { padding: calc(var(--wf-album-chapter-gap) / 2) 0 var(--wf-album-chapter-gap); }

.album-invite__card {
  display: grid;
  justify-items: center;
  gap: .75rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border: var(--wf-frame);
  border-radius: var(--wf-album-radius-lg);
  background: var(--wf-surface);
  box-shadow: var(--wf-album-shadow);
  text-align: center;
}

.album-invite__icon { font-size: 1.75rem; color: var(--wf-gold-deep); }
.album-invite .album-invite__title { margin: 0; font-size: var(--wf-album-title); color: var(--wf-red); }
.album-invite__text { margin: 0 0 .5rem; color: var(--wf-ink-muted); }

/* tiles */
.album-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--wf-album-radius);
  background-color: var(--wf-linen);
  box-shadow: var(--wf-album-shadow);
  transition: box-shadow var(--wf-dur-base) var(--wf-ease);
}

.album-tile:hover { box-shadow: var(--wf-album-shadow-float); }
.album-tile:focus-visible { outline: 2px solid var(--wf-gold); outline-offset: 3px; }

.album-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--wf-album-zoom-dur) var(--wf-album-ease);
}

.album-tile:hover .album-tile__img { transform: scale(var(--wf-album-zoom)); }

.album-tile__label {
  position: absolute;
  left: .65rem;
  bottom: .65rem;
  max-width: calc(100% - 1.3rem);
  padding: .2rem .7rem;
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-album-label-bg);
  backdrop-filter: blur(6px);
  font-size: var(--wf-album-tiny);
  color: var(--wf-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-in { animation: wf-album-in var(--wf-dur-slow) var(--wf-album-ease) both; }
@keyframes wf-album-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Portraits: feature -> quote + pair -> detail reels */
.album-portraits { display: grid; gap: var(--wf-album-gap); }

.album-tile--feature {
  height: var(--wf-album-feature-h);
  border-radius: var(--wf-album-radius-lg);
}

.album-tile--feature .album-tile__label {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  padding: 4rem clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.25rem);
  border-radius: 0;
  background: var(--wf-album-shade);
  backdrop-filter: none;
  font-family: var(--wf-font-italic);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  white-space: normal;
}

.album-portraits__row {
  display: grid;
  gap: var(--wf-album-gap);
  align-items: center;
}

@media (min-width: 48rem) {
  .album-portraits__row { grid-template-columns: 5fr 7fr; }
  .album-portraits__row--solo { grid-template-columns: 1fr; }
}

.album-quote {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-album-radius-lg);
  background: var(--wf-album-quote-bg);
  box-shadow: var(--wf-album-shadow);
}

.album-quote__mark { font-size: 1.75rem; color: var(--wf-gold); }

.album-quote__text {
  margin: .75rem 0 1rem;
  font-family: var(--wf-font-italic);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55;
  color: var(--wf-red-deep);
}

.album-quote__by {
  padding-top: .75rem;
  border-top: 1px solid var(--wf-border);
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-small);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wf-gold-deep);
}

.album-portraits__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wf-album-gap);
}

.album-portraits__pair--1 { grid-template-columns: 1fr; }
.album-tile--portrait { height: var(--wf-album-portrait-h); }

.album-reel { min-width: 0; }

.album-reel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .9rem;
  margin: .5rem 0 .75rem;
}

.album-reel .album-reel__title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: .05em;
  color: var(--wf-ink);
}

.album-reel__note { font-style: italic; color: var(--wf-ink-muted); }

.album-reel__hint {
  margin-left: auto;
  font-size: var(--wf-album-tiny);
  letter-spacing: .1em;
  color: var(--wf-gold-deep);
}

.album-reel__track {
  display: flex;
  gap: var(--wf-album-gap);
  overflow-x: auto;
  padding: .25rem .1rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--wf-gold) transparent;
}

.album-tile--reel {
  flex: 0 0 var(--wf-album-reel-w);
  height: var(--wf-album-reel-h);
  scroll-snap-align: start;
}

/* Timeline: vertical milestone cards on a gold line */
.album-timeline {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
  padding: 0 0 0 var(--wf-album-line-pad);
  list-style: none;
}

.album-timeline::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: calc(var(--wf-album-line-pad) / 2 - .5px);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--wf-gold) 3rem, var(--wf-gold) calc(100% - 3rem), transparent);
}

.album-moment { position: relative; }

.album-moment__dot {
  position: absolute;
  top: 1.5rem;
  left: calc(var(--wf-album-line-pad) / -2 - .5rem);
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--wf-gold);
  border-radius: 50%;
  background: var(--wf-ivory);
}

.album-moment__card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-album-radius-lg);
  background: var(--wf-surface);
  box-shadow: var(--wf-album-shadow);
}

@media (min-width: 48rem) {
  .album-moment__card { grid-template-columns: 3fr 2fr; }
}

.album-moment__media { display: grid; gap: .35rem; padding: .35rem; min-width: 0; }

.album-tile--moment { height: var(--wf-album-moment-h); border-radius: calc(var(--wf-album-radius-lg) - .35rem); box-shadow: none; }

.album-moment__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }

.album-tile--thumb { aspect-ratio: 1; border-radius: var(--wf-album-radius-sm); box-shadow: none; }

.album-moment__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.album-moment__time {
  margin: 0;
  font-family: var(--wf-font-display);
  font-size: 1.1rem;
  letter-spacing: .14em;
  color: var(--wf-gold-deep);
}

.album-moment .album-moment__name {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: .04em;
  color: var(--wf-red);
}

.album-moment__place { margin: 0; color: var(--wf-ink-muted); }
.album-moment__place .fa-solid { color: var(--wf-gold); }

/* Highlight / Trip: chips + a mosaic of 9 (one 2x2) */
.album-chips {
  display: flex;
  gap: .25rem;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: .3rem;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-album-pill-bg);
}

.album-chips::-webkit-scrollbar { display: none; }

.album-chip {
  flex: 0 0 auto;
  padding: .4rem 1rem;
  border: 0;
  border-radius: var(--wf-album-radius-pill);
  background: transparent;
  font-family: var(--wf-font-body);
  font-size: var(--wf-text);
  color: var(--wf-ink-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--wf-dur-base) var(--wf-ease), color var(--wf-dur-base) var(--wf-ease);
}

.album-chip:hover { color: var(--wf-red); }
.album-chip.is-active { background: var(--wf-surface); color: var(--wf-red); box-shadow: var(--wf-album-shadow); }
.album-chip__pin { color: var(--wf-gold-deep); }

.album-chips__note { margin: -.25rem 0 1rem; font-style: italic; color: var(--wf-ink-muted); }

.album-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: var(--wf-album-mosaic-row);
  grid-auto-flow: dense;
  gap: var(--wf-album-gap);
}

@media (min-width: 48rem) {
  .album-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.album-mosaic .album-tile { height: 100%; }
.album-tile--big { grid-column: span 2; grid-row: span 2; border-radius: var(--wf-album-radius-lg); }

/* guest wall (D16a): scattered polaroids + note cards */
.album-guestwall { background: var(--wf-album-wall-bg); }

.album-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: .5rem 0;
}

.album-polaroid {
  width: var(--wf-album-polaroid-w);
  margin: 0;
  padding: .55rem .55rem 0;
  background: var(--wf-surface);
  box-shadow: var(--wf-album-shadow-float);
  transform: rotate(var(--wf-album-tilt, 0deg));
  transition: transform var(--wf-dur-base) var(--wf-album-ease);
}

.album-polaroid--t0 { --wf-album-tilt: calc(var(--wf-album-tilt-step) * -2); }
.album-polaroid--t1 { --wf-album-tilt: calc(var(--wf-album-tilt-step) * -1); }
.album-polaroid--t2 { --wf-album-tilt: calc(var(--wf-album-tilt-step) * .4); }
.album-polaroid--t3 { --wf-album-tilt: var(--wf-album-tilt-step); }
.album-polaroid--t4 { --wf-album-tilt: calc(var(--wf-album-tilt-step) * 2); }

.album-polaroid:hover { position: relative; z-index: 1; transform: rotate(0deg) scale(1.04); }

.album-tile--polaroid { aspect-ratio: 1; border-radius: var(--wf-radius); box-shadow: none; }

.album-polaroid__by {
  padding: .45rem .1rem .6rem;
  font-family: var(--wf-font-italic);
  font-style: italic;
  text-align: center;
  color: var(--wf-ink-muted);
  overflow-wrap: anywhere;
}

.album-polaroid__note {
  margin: 0 -.25rem .65rem;
  padding: .4rem .6rem;
  border-left: 2px solid var(--wf-gold);
  background: var(--wf-album-note-bg);
  font-size: var(--wf-album-small);
  line-height: 1.45;
  color: var(--wf-ink);
  transform: rotate(calc(var(--wf-album-tilt, 0deg) * -.6));
  overflow-wrap: anywhere;
}

.album-wall__more { margin: 2rem 0 0; text-align: center; }

/* Grid panel (AL6): chapter chips, source chips, sub-group chips, the dense grid */
.album-gridview { padding: 2rem 0 3rem; scroll-margin-top: calc(var(--wf-album-nav-h) + var(--wf-album-bar-h)); }

.album-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; margin: 0 0 1.25rem; }
.album-filters .album-chips { margin: 0; }
.album-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.album-filters__row .album-chips--src { flex: none; }
.album-filters__total { margin: 0 0 0 auto; font-size: var(--wf-album-small); color: var(--wf-ink-muted); }

/* wide: chapters + sources share one line, the chapter strip scrolls when it runs out of room */
@media (min-width: 48rem) {
  .album-filters__row { flex-wrap: nowrap; }
  .album-filters__row .album-chips--grid { flex: 0 1 auto; min-width: 0; }
}

.album-chips--src .album-chip,
.album-chips--sub .album-chip { padding: .3rem .85rem; font-size: var(--wf-album-small); }
.album-chips--sub { border-color: var(--wf-border-gold); }

.album-chip[hidden] { display: none; }
.album-chip__n { margin-inline-start: .3rem; font-size: var(--wf-album-tiny); color: var(--wf-gold-deep); }
.album-chip__icon { margin-inline-end: .2rem; color: var(--wf-gold-deep); }
.album-chip.is-active .album-chip__n { color: var(--wf-red); }

/* a grid tile + its heart (a button can't sit inside the tile's link) */
.album-cell { position: relative; }

.album-heart {
  position: absolute;
  top: .3rem;
  right: .3rem;
  display: grid;
  place-items: center;
  width: var(--wf-album-heart-size);
  height: var(--wf-album-heart-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wf-album-heart-bg);
  color: var(--wf-cream);
  font-size: var(--wf-album-small);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--wf-dur-base) var(--wf-ease), color var(--wf-dur-fast) var(--wf-ease);
}

.album-cell:hover .album-heart,
.album-heart:focus-visible,
.album-heart.is-on { opacity: 1; }
.album-heart.is-on { color: var(--wf-album-heart); }
.album-heart:focus-visible { outline: 2px solid var(--wf-gold); outline-offset: 1px; }
.album-heart.is-beat .fa-heart { animation: wf-album-beat 450ms var(--wf-album-ease); }

@media (hover: none) {
  .album-heart { opacity: 1; }   /* touch: always there */
}

.album-cell__guest {
  position: absolute;
  left: .35rem;
  bottom: .35rem;
  padding: .15rem .4rem;
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-album-label-bg);
  font-size: var(--wf-album-tiny);
  color: var(--wf-cream);
  pointer-events: none;
}

.album-gridview__sentinel { height: 1px; }

/* newspaper columns at each photo's own aspect (the Phase 4 gallery look): 2 -> 3 -> 4 */
.album-grid {
  columns: 2;
  column-gap: var(--wf-album-masonry-gap);
}

@media (min-width: 40rem) { .album-grid { columns: 3; } }
@media (min-width: 75rem) { .album-grid { columns: 4; } }

.album-grid .album-cell { break-inside: avoid; margin-bottom: var(--wf-album-masonry-gap); }
.album-tile--masonry { border-radius: var(--wf-album-radius-sm); }
.album-tile--masonry .album-tile__img { height: auto; }

.album-tile--grid { aspect-ratio: 1; border-radius: var(--wf-album-radius-sm); }
.album-gridview__more { margin: 2rem 0 0; text-align: center; }
.album-gridview__empty { margin: 2rem 0; text-align: center; color: var(--wf-ink-muted); }

/* viewer (native <dialog>) */
html.album-viewer-open { overflow: hidden; }

.album-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(.75rem, 2.5vw, 1.75rem);
  border: 0;
  background: var(--wf-album-viewer-bg);
  color: var(--wf-cream);
}

.album-viewer[open] { display: flex; flex-direction: column; gap: .75rem; }
.album-viewer::backdrop { background: var(--wf-scrim); }

.album-viewer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.album-viewer__info { display: flex; align-items: center; gap: .65rem; min-width: 0; }

.album-viewer__count {
  font-variant-numeric: tabular-nums;
  font-size: var(--wf-album-small);
  letter-spacing: .1em;
  color: var(--wf-album-viewer-muted);
  white-space: nowrap;
}

.album-viewer__badge {
  padding: .15rem .7rem;
  border: 1px solid var(--wf-album-viewer-line);
  border-radius: var(--wf-album-radius-pill);
  font-family: var(--wf-font-display);
  font-size: var(--wf-album-tiny);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wf-gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-viewer__badge:empty { display: none; }

.album-viewer__actions { display: flex; flex: 0 0 auto; gap: .4rem; }

.album-viewer__btn {
  display: inline-grid;
  place-items: center;
  width: var(--wf-album-viewer-btn-size);
  height: var(--wf-album-viewer-btn-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wf-album-viewer-btn);
  color: var(--wf-cream);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--wf-dur-fast) var(--wf-ease);
}

.album-viewer__btn:hover,
.album-viewer__btn:focus-visible { background: var(--wf-album-viewer-btn-hover); color: var(--wf-ivory); }
.album-viewer__btn:focus-visible { outline: 2px solid var(--wf-gold); outline-offset: 2px; }
.album-viewer__btn.is-on { color: var(--wf-album-heart); }
.album-viewer__btn--close { background: var(--wf-album-viewer-btn-hover); }
.album-viewer__btn.is-beat .fa-heart { animation: wf-album-beat 450ms var(--wf-album-ease); }

@keyframes wf-album-beat { 25% { transform: scale(1.3); } 50% { transform: scale(.95); } 75% { transform: scale(1.15); } }

@media (max-width: 30rem) {
  .album-viewer__actions { gap: .25rem; }
  .album-viewer__top { flex-wrap: wrap; }
}

.album-viewer__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
}

.album-viewer__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--wf-album-radius-sm);
  box-shadow: var(--wf-album-viewer-shadow);
  transition: opacity var(--wf-album-fade) var(--wf-ease);
  -webkit-user-drag: none;
}

.album-viewer__img.is-loading { opacity: .25; }

.album-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--wf-album-viewer-nav);
  color: var(--wf-cream);
  transform: translateY(-50%);
  cursor: pointer;
}

.album-viewer__nav:hover { background: var(--wf-album-viewer-nav-hover); }
.album-viewer__nav--prev { left: .25rem; }
.album-viewer__nav--next { right: .25rem; }

@media (hover: none) {
  .album-viewer__nav { display: none; }   /* phones swipe */
}

.album-viewer__caption { max-width: 42rem; margin: 0 auto; text-align: center; }
.album-viewer__text { margin: 0; font-family: var(--wf-font-italic); font-style: italic; font-size: 1.1rem; }
.album-viewer__by { margin: .15rem 0 0; font-size: var(--wf-album-small); color: var(--wf-album-viewer-muted); }
.album-viewer__terms { margin: .35rem 0 0; font-size: var(--wf-album-small); color: var(--wf-album-viewer-muted); opacity: .8; }

/* favorites sheet (AL6, D14): bottom sheet on phones, side panel from 48rem */
.album-sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: var(--wf-album-sheet-h);
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--wf-border-gold);
  border-radius: var(--wf-album-radius-lg) var(--wf-album-radius-lg) 0 0;
  background: var(--wf-ivory);
  color: var(--wf-ink);
  box-shadow: var(--wf-album-shadow-float);
}

.album-sheet[open] { display: flex; flex-direction: column; animation: wf-album-sheet-up var(--wf-album-sheet-in) var(--wf-album-ease); }
.album-sheet::backdrop { background: var(--wf-scrim); }

@keyframes wf-album-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes wf-album-sheet-side { from { transform: translateX(100%); } to { transform: none; } }

@media (min-width: 48rem) {
  .album-sheet {
    inset: 0 0 0 auto;
    width: var(--wf-album-sheet-w);
    height: 100%;
    max-height: none;
    border-top: 0;
    border-left: 1px solid var(--wf-border-gold);
    border-radius: 0;
  }
  .album-sheet[open] { animation-name: wf-album-sheet-side; }
}

.album-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--wf-border);
}

.album-sheet .album-sheet__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: 1.4rem;
  color: var(--wf-red);
}

.album-sheet__heart { color: var(--wf-album-heart); font-size: 1.1rem; }

.album-sheet__count {
  min-width: 1.6rem;
  padding: 0 .4rem;
  border-radius: var(--wf-album-radius-pill);
  background: var(--wf-linen);
  font-family: var(--wf-font-body);
  font-size: var(--wf-album-small);
  text-align: center;
  color: var(--wf-ink);
}

.album-sheet__close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--wf-border);
  border-radius: 50%;
  background: var(--wf-surface);
  color: var(--wf-ink);
  cursor: pointer;
}

.album-sheet__close:hover { color: var(--wf-red); border-color: var(--wf-gold); }

.album-sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1rem 1.25rem; overscroll-behavior: contain; }
.album-sheet__empty { margin: 1rem 0; text-align: center; color: var(--wf-ink-muted); }

.album-sheet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--wf-album-sheet-thumb), 1fr));
  gap: var(--wf-album-grid-gap);
}

.album-sheet__grid .album-heart { opacity: 1; color: var(--wf-album-heart); }

.album-sheet__foot {
  display: grid;
  gap: .5rem;
  padding: .85rem 1.25rem 1.1rem;
  border-top: 1px solid var(--wf-border);
}

.album-sheet__note { margin: 0; font-size: var(--wf-album-small); color: var(--wf-ink-muted); }
.album-sheet__zip { justify-self: stretch; }
.album-sheet__lock { margin-inline-end: .35rem; color: var(--wf-gold-deep); }
.album-sheet__zip[disabled] { opacity: .5; pointer-events: none; }

/* toast */
.album-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  max-width: calc(100% - 2rem);
  padding: .7rem 1.1rem;
  border: 1px solid var(--wf-border-gold);
  border-radius: var(--wf-album-radius);
  background: var(--wf-ink);
  color: var(--wf-cream);
  box-shadow: var(--wf-album-shadow-float);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity var(--wf-dur-base) var(--wf-ease), transform var(--wf-dur-base) var(--wf-album-ease);
}

.album-toast.is-shown { opacity: 1; transform: none; }
.album-toast:empty { display: none; }

/* reduced motion: no zoom, no stagger / fade-in, no beat, no slide transitions */
@media (prefers-reduced-motion: reduce) {
  .album-tile__img,
  .album-polaroid,
  .album-toast,
  .album-viewer__img,
  .album-toggle__btn,
  .album-strip__link,
  .album-share,
  .album-heart,
  .album-chip,
  .album-tile,
  .album-strip__num,
  .album-fav__icon,
  .album-chapter__add-link,
  .album-viewer__btn { transition: none; }
  .album-tile:hover .album-tile__img { transform: none; }
  .album-share:hover { transform: none; }
  .album-polaroid:hover { transform: rotate(var(--wf-album-tilt, 0deg)); }
  .album-in,
  .album-sheet[open],
  .album-heart.is-beat .fa-heart,
  .album-viewer__btn.is-beat .fa-heart { animation: none; }
  .album-hero__img { transform: none; }
}

/* ---- gallery CTA band ------------------------------------------------ */

.section--gallery-cta { text-align: center; }
.section--gallery-cta .section__intro { margin-bottom: 1.5rem; }

/* ---- upload form -------------------------------------------------- */

/* "Join the game" banner (Upload / ThankYou while a game session is Live) */
.game-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1rem;
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: var(--wf-frame);
  background-color: var(--wf-linen);
  text-align: center;
}

.game-banner__icon { color: var(--wf-red); font-size: 1.4rem; }

.game-banner__text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: var(--wf-text);
  color: var(--wf-ink);
}

.game-banner__btn { flex: 0 0 auto; }

.upload--message .game-banner { margin: 0 0 2rem; }

.section--upload { text-align: center; }

/* 「上傳者」 chip + LINE login (PODIUM_PLAN.md §9) */
.upload-account {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.5rem;
  padding: .75rem 1rem;
  border: var(--wf-frame);
  background-color: var(--wf-surface);
}

.upload-account__face {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--wf-avatar);
  width: var(--wf-avatar);
  height: var(--wf-avatar);
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--wf-red);
  color: var(--wf-cream);
}

.upload-account__img { width: 100%; height: 100%; object-fit: cover; }
.upload-account__initial { font-family: var(--wf-font-han-display); font-size: calc(var(--wf-avatar) * .42); }
.upload-account__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }

.upload-account__label {
  font-family: var(--wf-font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-red);
}

.upload-account__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.15rem;
  color: var(--wf-ink);
}

.upload-account__switch { flex: 0 0 auto; color: var(--wf-ink-muted); font-size: var(--wf-text); }
.upload-account__switch:hover { color: var(--wf-red); }

.upload-line { margin: 0 0 1.5rem; text-align: center; }

.upload-line__btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.25rem;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-radius);
  background-color: var(--wf-line);
  color: var(--wf-line-text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--wf-dur-fast) var(--wf-ease);
}

.upload-line__btn:hover,
.upload-line__btn:focus-visible { border-color: var(--wf-line-hover); background-color: var(--wf-line-hover); color: var(--wf-line-text); }

.upload-line__mark {
  padding: .05rem .35rem;
  border-radius: var(--wf-radius);
  background-color: var(--wf-line-text);
  color: var(--wf-line);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.upload-notice {
  margin: 0 0 1.5rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--wf-gold);
  background-color: var(--wf-linen);
  color: var(--wf-ink);
  font-size: var(--wf-text);
}

.upload-notice--warn { border-left-color: var(--wf-red); color: var(--wf-red-deep); }

.upload {
  max-width: 34rem;
  margin: 0 auto;
  text-align: start;
}

.upload--message { text-align: center; }

.upload__lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.upload--message .upload__lead { color: var(--wf-ink-muted); }

.upload__errors:not(:empty) {
  margin: 0 0 1.5rem;
  padding: .9rem 1rem;
  border-left: 3px solid var(--wf-red);
  background-color: var(--wf-linen);
  color: var(--wf-red-deep);
  font-size: var(--wf-text);
}

.upload__errors ul { margin: 0; padding-left: 1.1rem; }

.upload-field { margin-bottom: 1.5rem; }

.upload-field__label {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--wf-font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-red);
}

.upload-field__input,
.upload-field__file {
  width: 100%;
  padding: .65rem .8rem;
  font: inherit;
  color: var(--wf-ink);
  background-color: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
}

.upload-field__input:focus,
.upload-field__file:focus {
  outline: 2px solid var(--wf-border-gold);
  outline-offset: 1px;
  border-color: var(--wf-gold);
}

textarea.upload-field__input { resize: vertical; }
.upload-field__select { cursor: pointer; }
.upload-field[hidden] { display: none; }

.upload-field__help {
  display: block;
  margin-top: .35rem;
  font-size: var(--wf-text);
  color: var(--wf-ink-muted);
}

/* ---- drag-and-drop photo dropzone ---------------------------------- */

.upload-drop {
  position: relative;
  padding: 1.75rem 1rem;
  border: 1.5px dashed var(--wf-border-gold);
  border-radius: var(--wf-radius);
  background-color: var(--wf-linen);
  text-align: center;
  transition: border-color var(--wf-dur-fast) var(--wf-ease),
              background-color var(--wf-dur-fast) var(--wf-ease);
}

.upload-drop.is-dragover {
  border-color: var(--wf-gold);
  background-color: color-mix(in srgb, var(--wf-gold) 14%, var(--wf-linen));
}

.upload-drop__hint {
  margin: 0;
  font-size: var(--wf-text);
  color: var(--wf-ink-muted);
  pointer-events: none;
}

/* JS-enhanced: the native input becomes a full-bleed invisible click target
   while the dropzone is empty, then yields to the grid once photos are added. */
.upload-drop--live { cursor: pointer; padding: 1.25rem; }

.upload-drop--live .upload-field__file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-drop--live.has-files { text-align: start; }
.upload-drop--live.has-files .upload-field__file { display: none; }
.upload-drop--live.has-files .upload-drop__hint { display: none; }

.upload-drop__grid {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
  gap: .6rem;
}

.upload-drop--live.has-files .upload-drop__grid { display: grid; }

.upload-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--wf-radius);
  background-color: var(--wf-border);
}

.upload-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-thumb.is-bad { outline: 2px solid var(--wf-red); outline-offset: -2px; }

.upload-thumb.is-bad::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Overlay is decorative — never let it swallow the remove button's clicks. */
  pointer-events: none;
  background-color: color-mix(in srgb, var(--wf-red) 32%, transparent);
}

.upload-thumb__remove {
  position: absolute;
  top: .25rem;
  right: .25rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--wf-scrim);
  color: var(--wf-cream);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--wf-dur-fast) var(--wf-ease);
}

.upload-thumb__remove:hover,
.upload-thumb__remove:focus-visible { background-color: var(--wf-red); }

.upload-thumb--add { background-color: var(--wf-surface); }

.upload-thumb__add {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1.5px dashed var(--wf-border-gold);
  border-radius: var(--wf-radius);
  background: transparent;
  color: var(--wf-gold-deep);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--wf-dur-fast) var(--wf-ease),
              color var(--wf-dur-fast) var(--wf-ease);
}

.upload-thumb__add:hover,
.upload-thumb__add:focus-visible { border-color: var(--wf-gold); color: var(--wf-red); }

.upload-drop__note {
  grid-column: 1 / -1;
  margin: .2rem 0 0;
  font-size: var(--wf-text);
  font-style: italic;
  color: var(--wf-red-deep);
}

.upload-drop__note--bad {
  margin-top: .6rem;
  font-style: normal;
  font-weight: 600;
  color: var(--wf-red);
}

@media (prefers-reduced-motion: reduce) {
  .upload-drop,
  .upload-thumb__remove,
  .upload-thumb__add { transition: none; }
}

.cf-turnstile { min-height: 65px; }

.upload__actions { margin: 2rem 0 0; text-align: center; }
.upload__submit { padding: .9rem 2.75rem; font-size: var(--wf-text); }

/* ---- ThankYou check-mark + confetti ----------------------------- */

.upload-check {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 2px solid var(--wf-gold);
  position: relative;
}

.upload-check::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: .6rem;
  width: .8rem;
  height: 1.5rem;
  border: solid var(--wf-gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .js .upload-check::after {
    animation: wf-check-draw var(--wf-dur-slow) var(--wf-ease) both;
  }
}

@keyframes wf-check-draw {
  from { height: 0; opacity: 0; }
  to   { height: 1.5rem; opacity: 1; }
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.upload--message[data-upload-success] { position: relative; }

/* ==========================================================================
   Registry & FAQ (Phase 5) — gift cards, FAQ accordion, day-of contacts
   ========================================================================== */

/* ---- registry (flag-gated) --------------------------------------------- */

.section--registry { text-align: center; }

.registry { max-width: 46rem; margin: 0 auto; }

.registry__lead {
  margin: 0 auto 2.5rem;
  max-width: 38rem;
  font-size: 1.05rem;
}

.registry__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
  text-align: left;
}

.registry-card {
  background-color: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 1.5rem 1.35rem;
}

.registry-card__title {
  margin: 0 0 .6rem;
  font-family: var(--wf-font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-red);
}

.registry-card__body { margin: 0; color: var(--wf-ink-muted); font-size: var(--wf-text); }

.registry__note {
  margin: 2.5rem 0 0;
  font-family: var(--wf-font-italic);
  font-style: italic;
  color: var(--wf-ink-muted);
}

/* ---- FAQ accordion (native <details>, no-JS-safe) -------------------- */

.faq-group { margin-bottom: 3rem; }
.faq-group:last-child { margin-bottom: 0; }

.faq-group__title {
  text-align: center;
  font-family: var(--wf-font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--wf-red);
  margin: 0 0 1.5rem;
}

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  border-top: 1px solid var(--wf-border);
}

.faq-item {
  border-bottom: 1px solid var(--wf-border);
}

.faq-item__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem .25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--wf-font-display);
  letter-spacing: .03em;
  font-size: 1.05rem;
  color: var(--wf-ink);
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q:hover { color: var(--wf-red); }

.faq-item__q:focus-visible {
  outline: 2px solid var(--wf-border-gold);
  outline-offset: 2px;
}

.faq-item__marker {
  flex: 0 0 auto;
  position: relative;
  width: 1rem;
  height: 1rem;
  margin-top: .35rem;
}

.faq-item__marker::before,
.faq-item__marker::after {
  content: "";
  position: absolute;
  background-color: var(--wf-gold-deep);
  transition: transform var(--wf-dur-base) var(--wf-ease),
              opacity var(--wf-dur-base) var(--wf-ease);
}

.faq-item__marker::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-item__marker::after  { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }

.faq-item[open] .faq-item__marker::after { opacity: 0; transform: translateX(-50%) scaleY(0); }
.faq-item[open] .faq-item__q { color: var(--wf-red); }

.faq-item__a {
  padding: 0 .25rem 1.35rem;
  color: var(--wf-ink-muted);
  line-height: 1.7;
}

.faq-item__a > :first-child { margin-top: 0; }
.faq-item__a > :last-child { margin-bottom: 0; }
.faq-item__a a { color: var(--wf-red); text-decoration: underline; }
.faq-item__a img { border: 1px solid var(--wf-border); border-radius: var(--wf-radius); }

.faq-item:target {
  scroll-margin-top: 6rem;
  background-color: color-mix(in srgb, var(--wf-gold) 10%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__marker::before,
  .faq-item__marker::after { transition: none; }
}

/* ---- day-of emergency contacts ------------------------------------- */

.section--emergency { text-align: center; }

.emergency { max-width: 40rem; margin: 0 auto; }

.emergency__lead {
  margin: 0 auto 2rem;
  color: var(--wf-ink-muted);
  font-family: var(--wf-font-italic);
  font-style: italic;
}

.emergency__list {
  margin: 0;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.emergency__item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wf-border);
}

.emergency__item:last-child { border-bottom: 0; }

.emergency__item dt {
  font-family: var(--wf-font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  color: var(--wf-gold-deep);
  align-self: center;
}

.emergency__item dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.emergency__name { color: var(--wf-ink); }

.emergency__tel {
  font-family: var(--wf-font-display);
  letter-spacing: .08em;
  font-size: 1.1rem;
  color: var(--wf-red);
}

.emergency__qr {
  display: inline-grid;
  justify-items: center;
  gap: .4rem;
  margin-top: .6rem;
  padding: 0 .5rem .5rem;
  background-color: var(--wf-surface);
  border: 1px solid var(--wf-border-gold);
  border-radius: var(--wf-radius);
  overflow: hidden;   /* clip the red header bar to the rounded corners */
  width: max-content;
  text-decoration: none;
}

.emergency__qr-head {
  align-self: stretch;
  margin: 0 -.5rem;
  padding: .3rem 0;
  background-color: var(--wf-red);
  color: var(--wf-cream);
  font-family: var(--wf-font-display);
  font-size: var(--wf-text);
  letter-spacing: .24em;
  text-indent: .24em;   /* offset trailing letter-spacing so the word stays centred */
  text-transform: uppercase;
  text-align: center;
}

.emergency__qr img {
  display: block;
  width: 11.5625rem;   /* 185px — the asset is a 5× nearest-neighbour scale of the 37-module QR */
  height: 11.5625rem;
  image-rendering: pixelated;   /* keep modules crisp on HiDPI too — no antialiasing */
}

.emergency__qr-id {
  font-family: var(--wf-font-display);
  font-size: var(--wf-text);
  letter-spacing: .12em;
  color: var(--wf-red);
}

.emergency__note {
  margin: 1.75rem 0 0;
  font-size: var(--wf-text);
  color: var(--wf-ink-muted);
}

@media (max-width: 32rem) {
  .emergency__item { grid-template-columns: 1fr; gap: .25rem; }
  .emergency__item dt { text-align: left; }
}

/* ==========================================================================
   E-card (§8.6) — standalone shareable invitation at /ecard.
   Reuses the home-hero red-panel language; only layout/sizing tokens here.
   ========================================================================== */

.ecard-body main { padding-top: 0; }

.ecard-topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(.75rem, 3vw, 1.25rem) clamp(1rem, 5vw, 2rem);
}

.ecard-topbar__brand { text-decoration: none; line-height: 1; }

.ecard-topbar__mark {
  font-family: var(--wf-font-han-display);
  font-size: 1.6rem;
  color: var(--wf-gold);
}

.ecard-topbar__lang {
  font-family: var(--wf-font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .85rem;
}

.ecard-topbar__lang a { color: var(--wf-cream); text-decoration: none; }
.ecard-topbar__lang a:hover { text-decoration: underline; text-decoration-color: var(--wf-gold); }
.ecard-topbar__lang span { color: var(--wf-cream); opacity: .5; margin: 0 .35rem; }

.ecard {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 12vw, 7rem) 0 clamp(3rem, 9vw, 5rem);
  text-align: center;
}

/* /ecardtemp has no top bar, so the extra top padding that clears it is dropped
   and the vertical padding matches top and bottom. */
.ecard--bare { padding-top: clamp(3rem, 9vw, 5rem); }

.ecard__frame {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
}

.ecard__mark {
  font-family: var(--wf-font-han-display);
  font-size: clamp(3.5rem, 13vw, 6rem);
  line-height: 1;
  margin: .25rem 0;
}

.ecard__flourish { margin: 1rem auto 1.25rem; }

.ecard__names {
  font-family: var(--wf-font-script);
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  color: var(--wf-cream);
  margin: 1rem 0 .5rem;
}

.ecard__names.is-zh {
  font-family: var(--wf-font-han-display);
  letter-spacing: .16em;
}

.ecard__date {
  font-family: var(--wf-font-display);
  letter-spacing: .28em;
  text-indent: .28em;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  margin: 1.25rem 0 .25rem;
}

.ecard__weekday { letter-spacing: .18em; }

.ecard__verse-wrap { margin: 1.5rem auto; }

.ecard__verse {
  max-width: 34rem;
  margin: 0 auto;
}

.ecard__verse-line {
  margin: .45rem 0;
  font-size: 1.05rem;
  color: var(--wf-cream);
}

.ecard__verse-line--lead {
  font-family: var(--wf-font-italic);
  font-style: italic;
  font-size: 1.2rem;
}

.ecard__ceremony-heading {
  font-family: var(--wf-font-display);
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  font-size: var(--wf-text);
  margin: 2rem 0 .5rem;
  color: var(--wf-cream);
}

.ecard__when {
  font-family: var(--wf-font-display);
  letter-spacing: .1em;
  font-size: 1.05rem;
  margin: .25rem 0 1.25rem;
}

.ecard__venue {
  margin: .75rem 0;
  letter-spacing: .04em;
}

.ecard__venue-addr {
  display: block;
  font-size: var(--wf-text);
  opacity: .8;
  letter-spacing: normal;
}

.ecard__hosts {
  display: grid;
  gap: .35rem;
  justify-content: center;
  margin: 1.5rem 0 .5rem;
}

.ecard__hosts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  font-size: var(--wf-text);
}

.ecard__hosts-row dt {
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}

.ecard__hosts-row dd { margin: 0; }

.ecard__celebrate {
  font-family: var(--wf-font-italic);
  font-style: italic;
  font-size: 1.1rem;
  margin: 1.5rem 0 0;
  color: var(--wf-cream);
}

.ecard__countdown { margin-top: 1.75rem; }

/* Bare "More Info" block on /ecardtemp — a blank square to drop a QR code into. */
.ecard__qr {
  width: 12rem;
  height: 12rem;
  margin: 1rem auto;
  border: 1px solid var(--wf-gold);
  background: var(--wf-cream);
}

.ecard__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

/* Forces the following control ("download as image") onto its own row. */
.ecard__actions-break {
  flex-basis: 100%;
  height: 0;
}

.ecard__share-hint {
  margin: .9rem auto 0;
  max-width: 32rem;
  text-align: center;
  font-size: calc(var(--wf-text) * .92);
  color: var(--wf-gold);
}

.ecard__share-hint[hidden] {
  display: none;
}
