/* ============================================================
   Fjoralba & David — Wedding
   Elegant, minimal, static site
   ============================================================ */

:root {
  --ink:        #2b2a28;   /* main dark text   */
  --muted:      #6f6a63;   /* secondary text   */
  --line:       #e3ddd4;   /* hairlines        */
  --paper:      #f7f4ef;   /* warm off-white   */
  --paper-2:    #efeae1;   /* slightly darker  */
  --gold:       #b89b6e;   /* accent           */
  --gold-dark:  #8f7748;
  --white:      #ffffff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1160px;
  --nav-h: 86px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin: 0 0 18px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

/* solid variant for inner pages */
.nav--solid {
  position: sticky;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav__links a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  padding-bottom: 4px;
  position: relative;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  transition: color 0.25s ease;
}
.nav--solid .nav__links a { color: var(--muted); text-shadow: none; }

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.28s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active,
.nav__links a:hover { color: var(--white); }
.nav--solid .nav__links a.is-active,
.nav--solid .nav__links a:hover { color: var(--ink); }

/* ============================================================
   HERO  (home)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* darker wash, deepest behind the names so the text always reads */
  background:
    radial-gradient(ellipse 85% 55% at 50% 52%, rgba(18, 16, 14, 0.32), transparent 75%),
    rgba(18, 16, 14, 0.50);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  animation: rise 1.2s ease both;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  margin: 0 0 22px;
  opacity: 0.9;
}

.hero__names {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero__names .amp {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero__meta {
  margin: 26px 0 38px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.hero__meta .dot { margin: 0 12px; opacity: 0.7; }

/* music toggle, bottom-right of the video: gold, pops in, pulses until tapped */
.hero__sound {
  position: absolute;
  right: 20px;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 3;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  animation: soundIn 0.9s cubic-bezier(.2,.9,.3,1.35) 1.2s both;
  transition: background 0.25s ease, transform 0.2s ease;
}
.hero__sound svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.hero__sound:active { transform: scale(0.9); }

/* two soft gold ripples */
.hero__sound::before,
.hero__sound::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: ripple 2.2s ease-out 2.1s infinite;
  pointer-events: none;
}
.hero__sound::after { animation-delay: 3.2s; }
.hero__sound.is-touched::before,
.hero__sound.is-touched::after { animation: none; }

.hero__sound .hero__sound-on { display: none; }
.hero__sound.is-on .hero__sound-on { display: inline; }
.hero__sound.is-on .hero__sound-off { display: none; }
.hero__sound.is-on { background: rgba(20, 18, 16, 0.45); border-color: var(--gold); color: var(--gold); }

@keyframes soundIn {
  0%   { opacity: 0; transform: scale(0.2) rotate(-25deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes ripple {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.9); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  background: transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn--ghost { color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }

.btn--gold {
  color: var(--white);
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.btn--gold:hover { background: var(--gold); border-color: var(--gold); }

.btn--ink { color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); }

.btn svg { width: 16px; height: 16px; }

/* ============================================================
   INNER PAGE SHELL
   ============================================================ */
.page { padding: 84px 0 96px; }

.page__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.page__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}
.page__sub {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

.divider {
  width: 56px; height: 1px;
  background: var(--gold);
  margin: 22px auto;
}

/* ---------- Our Story ---------- */
.story {
  max-width: 760px;
  margin: 0 auto;
}
.story__lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  margin-bottom: 54px;
}
.story__block { margin-bottom: 46px; }
.story__block h3 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.story__block h3 small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.story__block p { color: var(--muted); margin: 0 0 16px; }

.story__figure { margin: 56px 0; }
.story__figure img {
  width: 100%;
  border-radius: 2px;
}
.story__figure figcaption {
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Gallery ---------- */
.gallery {
  columns: 3;
  column-gap: 16px;
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background: var(--paper-2);
}
.gallery__item img {
  width: 100%;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.96);
}
.gallery__item:hover img { transform: scale(1.05); filter: saturate(1.05); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  padding: 10px 18px;
  transition: color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { color: var(--white); }
.lightbox__close { top: 18px; right: 24px; font-size: 2rem; }
.lightbox__nav--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Guests ---------- */
.guests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 920px;
  margin: 0 auto;
}
.guests__col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 44px 40px;
}
.guests__col h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 6px;
}
.guests__col .guests__side {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 26px;
}
.guests__list {
  list-style: none;
  margin: 0; padding: 0;
}
.guests__list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--ink);
}
.guests__list li:last-child { border-bottom: 0; }
.guests__group {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.footer__names {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer__names .amp { font-style: italic; color: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .gallery { columns: 2; }
  .guests { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav { padding: 0 16px; height: 70px; }

  /* links stay visible in the header, just tighter */
  .nav__links { gap: 8px 20px; }
  .nav__links a { font-size: 0.7rem; letter-spacing: 0.1em; }

  .hero__meta { font-size: 0.95rem; }
  .hero__meta .dot { display: block; height: 6px; margin: 6px 0; }

  .gallery { columns: 1; }
  .page { padding: 60px 0 72px; }
}

/* ============================================================
   FIND YOUR TABLE  (styled after the couple's table cards:
   blush paper, wine-red ink, gold sprig, script table names)
   ============================================================ */
.theme-cards {
  --wine:      #8a1d22;
  --wine-soft: #a5585a;
  --blush:     #f6ebe3;
  --blush-2:   #eedcd0;
  --petal:     #dcbfb0;
  --sprig:     #c4913f;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;

  background:
    radial-gradient(ellipse at 0% 0%, rgba(220, 191, 176, 0.35), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(220, 191, 176, 0.35), transparent 55%),
    var(--blush);
  color: var(--wine);
}
.theme-cards .nav--solid { background: var(--blush); border-bottom-color: var(--blush-2); }
.theme-cards .nav--solid .nav__links a { color: var(--wine-soft); }
.theme-cards .nav--solid .nav__links a.is-active,
.theme-cards .nav--solid .nav__links a:hover { color: var(--wine); }
.theme-cards .eyebrow { color: var(--wine); letter-spacing: 0.36em; }
.theme-cards .footer { border-top-color: var(--blush-2); color: var(--wine-soft); }
.theme-cards .footer__names { color: var(--wine); }
.theme-cards .footer__names .amp { color: var(--sprig); }

/* gold sprig ornament, as on the cards */
.orn { display: block; width: 220px; max-width: 70%; height: 22px; margin: 18px auto 22px; }
.orn__line { fill: none; stroke: var(--wine); stroke-width: 0.9; }
.orn__leaf { fill: var(--sprig); }

.page--seat { min-height: calc(100svh - var(--nav-h)); }

.seat,
.reveal {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.seat { animation: rise 1s ease both; }

.seat__question {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 5.6rem);
  line-height: 1.1;
  color: var(--wine);
}
.seat__help { color: var(--wine-soft); margin: 0 0 30px; }

.seat__field { position: relative; text-align: left; }
.seat__field input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.5rem;            /* >=16px: no zoom on iPhone */
  color: var(--wine);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--petal);
  border-radius: 2px;
  padding: 18px 22px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.seat__field input::placeholder { color: var(--petal); font-style: italic; }
.seat__field input:focus {
  background: #fff;
  border-color: var(--wine-soft);
  box-shadow: 0 0 0 4px rgba(138, 29, 34, 0.08);
}

.seat__suggest {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0;
  background: #fffaf7;
  border: 1px solid var(--blush-2);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(138, 29, 34, 0.08);
}
.seat__suggest li {
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--wine-soft);
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.seat__suggest li strong { color: var(--wine); font-weight: 500; }
.seat__suggest li.is-active,
.seat__suggest li:hover {
  background: var(--blush);
  color: var(--wine);
  border-left-color: var(--sprig);
}
.seat__hint {
  float: right;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sprig);
  padding-top: 6px;
}
.seat__empty {
  color: var(--wine-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 22px;
}

/* ---------- the reveal ---------- */
.reveal__hello {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--wine);
  margin: 0 0 14px;
}
.reveal__kicker {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--wine);
  margin: 0;
}
.reveal__name {
  font-family: var(--font-script);
  font-size: clamp(3.6rem, 15vw, 5.8rem);
  line-height: 1.15;
  color: var(--wine);
  margin: 4px 0 0;
}
.reveal__orn { margin: 6px auto 28px; }

.reveal__card {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.reveal__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(138, 29, 34, 0.08), 0 24px 60px rgba(138, 29, 34, 0.16);
}
.reveal__tap {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--wine-soft);
  margin: 16px 0 30px;
}
.reveal__again {
  color: var(--wine);
  font-size: 0.72rem;
  padding: 13px 24px;
}
.reveal__again:hover { background: var(--wine); color: var(--blush); }

/* staged entrance */
.reveal.is-shown .reveal__hello  { animation: rise 0.8s ease both; }
.reveal.is-shown .reveal__kicker { animation: rise 0.8s ease 0.4s both; }
.reveal.is-shown .reveal__name   { animation: unveil 1.4s cubic-bezier(.2,.7,.2,1) 0.75s both; }
.reveal.is-shown .reveal__orn    { animation: grow 1s ease 1.3s both; }
.reveal.is-shown .reveal__card   { animation: card 1.1s cubic-bezier(.2,.7,.2,1) 1.6s both; }
.reveal.is-shown .reveal__tap,
.reveal.is-shown .reveal__again  { animation: rise 0.8s ease 2.3s both; }

@keyframes unveil {
  from { opacity: 0; transform: scale(0.9); filter: blur(12px); }
  to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}
@keyframes grow {
  from { opacity: 0; transform: scaleX(0.2); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes card {
  from { opacity: 0; transform: translateY(40px) rotate(-1.5deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ---------- all tables ---------- */
.seat-all {
  max-width: 1000px;
  margin: 72px auto 0;
  text-align: center;
}
.seat-all summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
  border-bottom: 1px solid var(--petal);
  padding-bottom: 4px;
}
.seat-all summary::-webkit-details-marker { display: none; }
.seat-all summary::after { content: " +"; color: var(--sprig); }
.seat-all[open] summary::after { content: " −"; }

.seat-all__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 18px;
  margin-top: 36px;
}
.seat-card {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: var(--wine);
}
.seat-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: var(--blush-2);
  box-shadow: 0 10px 26px rgba(138, 29, 34, 0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.seat-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(138, 29, 34, 0.16);
}
.seat-card__label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.theme-cards .lightbox { background: rgba(60, 22, 24, 0.94); }
.theme-cards .lightbox img { max-height: 86vh; max-height: 86svh; }

/* ---------- home: second hero button ---------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 900px) {
  .seat-all__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  /* typing on a phone: title steps aside, field goes to the top */
  .is-typing .page--seat { padding-top: 14px; }
  .is-typing .seat > .eyebrow,
  .is-typing .seat > .seat__question,
  .is-typing .seat > .orn,
  .is-typing .seat > .seat__help,
  .is-typing .seat-all { display: none; }
  .is-typing .seat { animation: none; }
  .seat__suggest {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .seat__field input { font-size: 1.35rem; padding: 16px 18px; }
  .seat__suggest li { padding: 15px 18px; }   /* bigger tap targets */
  .seat-all { margin-top: 56px; }
  .seat-all__grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .seat-card__label { font-size: 1rem; }
  .theme-cards .lightbox { padding: 12px; }
  .theme-cards .lightbox img { max-width: 100%; }
  .theme-cards .lightbox__nav { display: none; }   /* swipe instead */
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { min-width: 250px; justify-content: center; }
}

/* ============================================================
   SHARE YOUR PHOTOS  (same stationery look as the tables)
   ============================================================ */
.share__name { margin-bottom: 18px; }

/* the ways to share */
.share__label {
  margin: 30px 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine);
}
.share__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 128px;
  padding: 24px 12px 18px;
  font: inherit;
  text-align: center;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--petal);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.choice svg { width: 28px; height: 28px; flex: none; }
.choice__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
}
.choice__hint {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.choice--main { background: var(--wine); border-color: var(--wine); color: var(--blush); }
.choice:active { transform: scale(0.97); }
@media (hover: hover) {
  .choice:hover { box-shadow: 0 14px 30px rgba(138, 29, 34, 0.12); transform: translateY(-2px); }
}
.share__note {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--wine-soft);
}

/* sticky "Sending…" pill */
.share-pill {
  position: fixed;
  left: 0; right: 0;
  margin: 0 auto;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 150;
  width: min(92vw, 420px);
  padding: 12px 18px 14px;
  border-radius: 14px;
  background: var(--wine);
  color: var(--blush);
  box-shadow: 0 12px 30px rgba(60, 22, 24, 0.3);
  text-align: center;
  font-size: 0.9rem;
  animation: rise 0.4s ease both;
}
.share-pill[hidden] { display: none; }
.share-pill__note {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 2px;
}
.share-pill__bar {
  display: block;
  height: 3px;
  margin-top: 9px;
  border-radius: 3px;
  background: rgba(246, 235, 227, 0.25);
  overflow: hidden;
}
.share-pill__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sprig);
  transition: width 0.25s ease;
}

/* the "Sent" moment */
.share-toast {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  pointer-events: none;          /* never blocks the next photo */
}
.share-toast[hidden] { display: none; }
.share-toast__card {
  position: relative;
  width: 170px;
  padding: 14px 14px 16px;
  border-radius: 6px;
  background: #fffaf7;
  box-shadow: 0 24px 60px rgba(60, 22, 24, 0.3);
  text-align: center;
}
.share-toast.is-on .share-toast__card { animation: toast 1.9s cubic-bezier(.2,.8,.2,1) both; }
.share-toast__pic {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
  background: var(--blush-2);
}
.share-toast__pic img,
.share-toast__pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-toast__check {
  position: absolute;
  left: 50%;
  top: calc(14px + (170px - 28px) / 2);
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sprig);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.share-toast.is-on .share-toast__check { animation: checkpop 0.6s cubic-bezier(.2,.9,.3,1.4) 0.15s both; }
.share-toast__check svg { width: 34px; height: 34px; }
.share-toast__text {
  display: block;
  margin-top: 10px;
  font-family: var(--font-script);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--wine);
}
@keyframes toast {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); }
  14%  { opacity: 1; transform: scale(1.04) translateY(0); }
  22%  { transform: scale(1); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.92) translateY(-14px); }
}
@keyframes checkpop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.share__notice {
  margin: 8px auto 0;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--petal);
  border-radius: 2px;
  color: var(--wine-soft);
  animation: rise 0.8s ease both;
}
.share__notice p { margin: 0; }
.share__notice-title {
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--wine);
  margin-bottom: 8px !important;
}

.share__summary {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--wine);
  margin: 22px 0 10px;
  min-height: 0;
}
.share__list {
  list-style: none;
  margin: 0; padding: 0;
  text-align: left;
}
.share-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--blush-2);
  border-radius: 2px;
  animation: rise 0.5s ease both;
}
.share-item__thumb {
  width: 56px; height: 56px;
  flex: none;
  background: var(--blush-2);
  border-radius: 2px;
  overflow: hidden;
}
.share-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.share-item__body { flex: 1; min-width: 0; }
.share-item__name {
  display: block;
  font-size: 0.85rem;
  color: var(--wine-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-item__state {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--wine);
}
.share-item__bar {
  display: block;
  height: 2px;
  margin-top: 6px;
  background: var(--blush-2);
  overflow: hidden;
}
.share-item__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sprig);
  transition: width 0.2s ease;
}
.share-item.is-done .share-item__bar,
.share-item.is-skipped .share-item__bar,
.share-item.is-retry .share-item__bar,
.share-item.is-waiting .share-item__bar { visibility: hidden; }
.share-item.is-done .share-item__state::before { content: "✓ "; color: var(--sprig); }
.share-item.is-skipped { opacity: 0.7; }
.share-item.is-skipped .share-item__state,
.share-item.is-retry .share-item__state { font-style: italic; color: var(--wine-soft); }
.share-item.is-retry { cursor: pointer; border-style: dashed; }

/* phones: leave room for the sticky pill under the list */
.share__list { padding-bottom: 0; }
.share-item__thumb video { width: 100%; height: 100%; object-fit: cover; }
.share-item__thumb.is-video { position: relative; }
.share-item__thumb.is-video::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  margin: -7px 0 0 -5px;
  border-left: 12px solid rgba(255,255,255,0.9);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* rows that arrived fade away: the gallery below shows them */
.share-item { transition: opacity 0.5s ease, transform 0.5s ease; }
.share-item.is-gone { opacity: 0; transform: translateY(-6px); }
.share-toast { z-index: 260; }                 /* also above the camera */
.cam-open .share-pill { display: none; }       /* the camera shows its own status */

/* ============================================================
   LIVE CAMERA (full screen, PHOTO / VIDEO)
   ============================================================ */
.cam {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  color: #fff;
  height: 100vh;
  height: 100dvh;
}
.cam[hidden] { display: none; }
.cam__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cam__video.is-mirrored { transform: scaleX(-1); }
.cam__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam__flash.is-on { animation: camflash 0.35s ease-out; }
@keyframes camflash { from { opacity: 0.85; } to { opacity: 0; } }

.cam__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  background: linear-gradient(rgba(0,0,0,0.45), transparent);
}
.cam__status {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.cam__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.cam__icon svg { width: 24px; height: 24px; }
.cam__icon--ghost { visibility: hidden; }

.cam__timer {
  position: absolute;
  top: calc(max(14px, env(safe-area-inset-top)) + 58px);
  left: 0; right: 0;
  margin: 0 auto;
  width: max-content;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--wine, #8a1d22);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.cam__timer span { opacity: 0.7; }
.cam__quality {
  position: absolute;
  top: calc(max(14px, env(safe-area-inset-top)) + 62px);
  right: 18px;
  margin: 0;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0,0,0,0.25);
}
.cam__quality[hidden] { display: none; }
.cam__timer[hidden] { display: none; }

.cam__bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 26px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,0.55) 35%);
}
.cam__modes {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.cam__modes button {
  padding: 6px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.cam__modes button.is-on { background: rgba(255,255,255,0.18); color: #fff; }
.cam.is-recording .cam__modes { visibility: hidden; }
.cam.is-recording #cam-flip { visibility: hidden; }

.cam__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cam__shutter {
  width: 78px; height: 78px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
}
.cam__shutter i {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease, border-radius 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}
.cam__shutter:active i { transform: scale(0.86); }
.cam__shutter:disabled { opacity: 0.35; }
.cam.is-video .cam__shutter i { background: var(--sprig, #c4913f); }
.cam.is-recording .cam__shutter i {          /* round button turns into a "stop" square */
  width: 30px; height: 30px;
  border-radius: 6px;
}
.cam.is-recording .cam__shutter { animation: recpulse 1.6s ease-in-out infinite; }
@keyframes recpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 145, 63, 0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(196, 145, 63, 0); }
}

.cam__last {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12) center / cover no-repeat;
}
.cam__last.is-pop { animation: pop 0.45s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* calm card when the camera can't open or the album is full */
.cam__msg {
  position: absolute;
  left: 20px; right: 20px; top: 50%;
  transform: translateY(-50%);
  max-width: 420px;
  margin: 0 auto;
  padding: 30px 24px;
  text-align: center;
  color: var(--wine);
  background: var(--blush);
  border-radius: 2px;
}
.cam__msg p { margin: 0 0 18px; color: var(--wine-soft); }
.cam__msg .cam__msg-title {
  font-family: var(--font-script);
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--wine);
  margin-bottom: 10px;
}
.cam__msg-btn { color: var(--wine); font-size: 0.72rem; padding: 14px 20px; }
.cam__msg-btn[hidden] { display: none; }

/* ============================================================
   LIVE GALLERY
   ============================================================ */
.album {
  max-width: 1000px;
  margin: 40px auto 0;
  text-align: center;
}
.album .orn { margin-bottom: 34px; }
.album__dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin: 0 10px 1px 0;
  border-radius: 50%;
  background: var(--sprig);
  animation: live 1.8s ease-in-out infinite;
}
@keyframes live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 145, 63, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(196, 145, 63, 0); }
}
.album__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 4.6rem);
  line-height: 1.15;
  color: var(--wine);
}
.album__empty {
  margin: 30px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--wine-soft);
}
.album__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 28px;
}
.album__tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--blush-2);
  cursor: zoom-in;
}
.album__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.album__tile.is-loaded img { opacity: 1; }
@media (hover: hover) { .album__tile:hover img { transform: scale(1.04); } }
.album__tile.is-video::after {                 /* play symbol */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.45)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 1.5px solid rgba(255,255,255,0.8);
}
.album__tile.is-fresh { animation: fresh 0.9s cubic-bezier(.2,.9,.3,1.2) both; }
.album__tile.is-fresh::before {              /* gold glow on new arrivals */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 2px solid var(--sprig);
  border-radius: 2px;
  animation: freshglow 3s ease forwards;
  pointer-events: none;
}
@keyframes fresh { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes freshglow { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.album__more { margin-top: 26px; color: var(--wine); font-size: 0.72rem; padding: 13px 24px; }
.album__more[hidden] { display: none; }

.album-new {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 0; right: 0;
  margin: 0 auto;
  width: max-content;
  z-index: 120;
  padding: 10px 20px;
  border: 0;
  border-radius: 22px;
  background: var(--sprig);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 26px rgba(60, 22, 24, 0.25);
  cursor: pointer;
  animation: rise 0.5s ease both;
}
.album-new[hidden] { display: none; }

/* full screen viewer */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1e0c0e;
  padding: 56px 12px calc(56px + env(safe-area-inset-bottom));
}
.viewer[hidden] { display: none; }
.viewer__stage {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer__stage img,
.viewer__stage video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.viewer__caption {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(246, 235, 227, 0.85);
  min-height: 1.4em;
}
.viewer__close,
.viewer__nav {
  position: absolute;
  border: 0;
  background: none;
  color: rgba(255,255,255,0.85);
  font-size: 2.4rem;
  line-height: 1;
  padding: 10px 18px;
  cursor: pointer;
}
.viewer__close { top: max(8px, env(safe-area-inset-top)); right: 10px; font-size: 2.2rem; }
.viewer__nav--prev { left: 4px; top: 50%; transform: translateY(-50%); }
.viewer__nav--next { right: 4px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .album { margin-top: 28px; }
  .album__grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .viewer__nav { display: none; }            /* swipe instead */
}

/* window onto the live gallery, right under the buttons */
.peek {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0;
  padding: 14px 16px;
  text-align: left;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--petal);
  border-radius: 2px;
  animation: rise 0.8s ease 0.3s both;
}
.peek__thumbs { display: flex; flex: none; }
.peek__thumbs[hidden] { display: none; }
.peek__thumbs img {
  width: 38px; height: 38px;
  object-fit: cover;
  border: 2px solid #fffaf7;
  border-radius: 50%;
  margin-left: -14px;
  box-shadow: 0 2px 6px rgba(60, 22, 24, 0.15);
}
.peek__thumbs img:first-child { margin-left: 0; }
.peek__text { flex: 1; min-width: 0; line-height: 1.3; }
.peek__live {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine-soft);
  margin-bottom: 2px;
}
.peek__live .album__dot { width: 7px; height: 7px; margin-right: 7px; }
.peek strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
}
.peek__sub { display: block; font-size: 0.8rem; color: var(--wine-soft); margin-top: 1px; }
.peek__arrow { width: 22px; height: 22px; flex: none; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.album__count {
  margin: -8px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--wine);
}
.album__count[hidden] { display: none; }
.share-toast__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--wine-soft);
}

.page--seat .album:last-child { padding-bottom: 70px; }   /* room for the sending pill */

/* ============================================================
   HOME in the same stationery style as the other pages
   ============================================================ */
.theme-home { background: #1e0c0e; }
.theme-home .hero__overlay {
  background:
    radial-gradient(ellipse 85% 55% at 50% 52%, rgba(30, 10, 12, 0.32), transparent 75%),
    rgba(30, 10, 12, 0.50);
}
.theme-home .hero__kicker { letter-spacing: 0.4em; }
.theme-home .hero__names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.2rem, 17vw, 8.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.theme-home .hero__names .amp { font-style: normal; color: var(--sprig); margin-left: 0.12em; }
.theme-home .btn--gold {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--blush);
}
@media (hover: hover) {
  .theme-home .btn--gold:hover { background: #6f161b; border-color: #6f161b; }
}
.theme-home .hero__sound { background: var(--sprig); }
.theme-home .hero__sound::before,
.theme-home .hero__sound::after { border-color: var(--sprig); }
.theme-home .hero__sound.is-on { background: rgba(30, 10, 12, 0.5); border-color: var(--sprig); color: var(--sprig); }
.theme-home .nav__links a { color: rgba(246, 235, 227, 0.92); }
.theme-home .nav__links a.is-active,
.theme-home .nav__links a:hover { color: #fff; }
