/* ---------- Theme tokens (set on :root, swapped by Tweaks) ---------- */
:root {
  --bg: #f4ebe0;
  --bg-deep: #ecdfd0;
  --paper: #faf3e9;
  --ink: #2a1e16;
  --ink-soft: #5a4538;
  --accent: #b86b4b;
  --accent-deep: #8a4a35;
  --line: #c9a48a;
  --rule: rgba(138, 74, 53, 0.25);

  --font-display: "Cormorant Garamond", "Cormorant", serif;
  --font-script: "Pinyon Script", "Allura", cursive;
  --font-body: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout shell: single elegant column ---------- */
.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

.shell-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 96px 0;
  position: relative;
  scroll-margin-top: 80px;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  letter-spacing: 0.22em;
}

.eyebrow-cn {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--accent-deep);
  font-style: normal;
}

.section-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-deep);
  margin: 0 0 8px;
  text-align: center;
}

.section-title-cn {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.6em;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 48px;
  text-transform: uppercase;
}

.section-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 40px;
  color: var(--accent);
}
.section-rule::before, .section-rule::after {
  content: "";
  height: 1px;
  background: var(--rule);
  flex: 1;
  max-width: 80px;
}

p { margin: 0 0 16px; }

a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color 0.2s, color 0.2s; }
a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Top Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(244, 235, 224, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(244, 235, 224, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--rule);
  padding: 12px 40px;
}

.nav-mono {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--accent-deep);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-mono:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: none;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover { color: var(--accent-deep); }
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}
.nav-links a.active { color: var(--accent-deep); }

.nav-rsvp {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper) !important;
  background: var(--accent-deep);
  padding: 10px 22px;
  border: 1px solid var(--accent-deep) !important;
  transition: background 0.2s, color 0.2s;
}
.nav-rsvp:hover {
  background: var(--accent);
  border-color: var(--accent) !important;
}
.nav-rsvp::after { display: none !important; }

.nav-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--accent-deep);
}
.nav-burger svg { display: block; }

@media (max-width: 1080px) {
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(244, 235, 224, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule);
    padding: 16px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }
  .nav-links a::after { display: none; }
  .nav-rsvp { margin: 8px auto; width: max-content; }
  .nav-burger { display: flex; }
}

/* Push hero down to clear fixed nav on scroll-back */
body { padding-top: 0; }

/* ---------- Hero ---------- */
/* ---------- Paged layout ---------- */
.page {
  min-height: calc(100vh - 80px);
  padding-top: 64px;
  animation: pageIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page.leaving { animation: pageOut 0.2s ease both; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes pageOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-8px); }
}

/* On the home page, hero already has its own padding — strip page padding */
.page > .hero:first-child {
  margin-top: -64px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 120px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-stamp {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 56px;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 168px);
  font-style: italic;
  line-height: 0.9;
  color: var(--accent-deep);
  margin: 0;
  font-weight: 400;
}

.hero-names .name-row {
  display: block;
}

.hero-amp {
  font-family: var(--font-script);
  font-size: clamp(80px, 12vw, 140px);
  color: var(--accent);
  display: inline-block;
  line-height: 1;
  margin: 0;
  vertical-align: middle;
  transform: translateY(-0.05em);
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  margin-top: 32px;
  letter-spacing: 0.05em;
}

.hero-cn {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.5em;
  color: var(--accent-deep);
  margin-top: 12px;
  text-transform: none;
}

.hero-corner {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-corner.tl { top: 24px; left: 24px; }
.hero-corner.tr { top: 24px; right: 24px; transform: scaleX(-1); }
.hero-corner.bl { bottom: 24px; left: 24px; transform: scaleY(-1); }
.hero-corner.br { bottom: 24px; right: 24px; transform: scale(-1, -1); }

/* ---------- Hero photo (full-bleed) ---------- */
.hero-photo {
  position: relative;
  height: 70vh;
  min-height: 520px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(184, 107, 75, 0.08), transparent 60%),
    var(--bg-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Polaroid stack on hero — cinematic wide arrangement */
.hero-stack {
  position: relative;
  width: min(960px, 88vw);
  height: 520px;
  padding: 50px 0 50px;
}

/* film-strip feel: thin labels above the stack */
.hero-stack::before {
  content: "ROLL 01 · 320 ASA · X & A · 2026";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--accent-deep);
  opacity: 0.55;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-stack::after {
  content: "—  three frames  —";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--accent-deep);
  opacity: 0.6;
  white-space: nowrap;
}

/* Left photo — tilted back, slightly recessed */
.poloroid.hpol-1 {
  width: 270px; height: 340px;
  top: 90px; left: 0;
  transform: rotate(-9deg);
  z-index: 1;
}
.poloroid.hpol-1 img { object-position: 50% 30%; }

/* Center hero photo — largest, most upright, anchors the composition */
.poloroid.hpol-2 {
  width: 320px; height: 400px;
  top: 60px; left: 50%;
  margin-left: -160px;
  transform: rotate(2deg);
  z-index: 3;
}
.poloroid.hpol-2 img { object-position: 50% 38%; }

/* Right photo — tilted forward, slightly higher than left */
.poloroid.hpol-3 {
  width: 270px; height: 340px;
  top: 100px; right: 0;
  transform: rotate(7deg);
  z-index: 2;
}
.poloroid.hpol-3 img { object-position: 50% 30%; }

.poloroid.hpol-1:hover { transform: rotate(-4deg) translateY(-10px) scale(1.05); z-index: 5; }
.poloroid.hpol-2:hover { transform: rotate(0deg) translateY(-12px) scale(1.05); }
.poloroid.hpol-3:hover { transform: rotate(3deg) translateY(-10px) scale(1.05); z-index: 5; }

.hero-photo .monogram {
  position: absolute;
  right: 6%;
  bottom: 6%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(72px, 8vw, 120px);
  color: var(--accent-deep);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Cards / detail blocks ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  text-align: center;
}

.detail-grid h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  color: var(--accent-deep);
  margin: 24px 0 8px;
  font-weight: 400;
}

.detail-grid .where {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.detail-grid .when {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}

.detail-grid .addr {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

.detail-illus {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* ---------- Story photo ---------- */
.story-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
}

/* Polaroid stack */
.story-stack {
  position: relative;
  width: 420px;
  height: 480px;
  perspective: 1200px;
}

.poloroid {
  position: absolute;
  background: #faf3e9;
  padding: 12px 12px 44px;
  box-shadow:
    0 1px 2px rgba(42, 30, 22, 0.18),
    0 12px 28px rgba(42, 30, 22, 0.22);
  border: 1px solid rgba(138, 74, 53, 0.12);
  margin: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, z-index 0s;
  cursor: grab;
}

.poloroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.poloroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-family: var(--font-script, "Pinyon Script", cursive);
  font-size: 22px;
  color: var(--accent-deep);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* three polaroids — each tilted differently */
.poloroid.pol-1 {
  width: 230px; height: 290px;
  top: 30px; left: 0;
  transform: rotate(-7deg);
  z-index: 1;
}
.poloroid.pol-1 img { object-position: 50% 35%; }

.poloroid.pol-2 {
  width: 220px; height: 280px;
  top: 8px; left: 175px;
  transform: rotate(4deg);
  z-index: 2;
}
.poloroid.pol-2 img { object-position: 50% 30%; }

.poloroid.pol-3 {
  width: 210px; height: 270px;
  top: 195px; left: 95px;
  transform: rotate(-2deg);
  z-index: 3;
}
.poloroid.pol-3 img { object-position: 50% 50%; }

/* hover: photo lifts slightly and straightens */
.poloroid:hover {
  z-index: 10;
  box-shadow:
    0 2px 4px rgba(42, 30, 22, 0.2),
    0 24px 48px rgba(42, 30, 22, 0.32);
}
.poloroid.pol-1:hover { transform: rotate(-3deg) translateY(-6px) scale(1.04); }
.poloroid.pol-2:hover { transform: rotate(2deg) translateY(-6px) scale(1.04); }
.poloroid.pol-3:hover { transform: rotate(-1deg) translateY(-6px) scale(1.04); }

/* tiny piece of "tape" on top of each — a small visual flourish */
.poloroid::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 50px;
  height: 18px;
  background: rgba(220, 200, 160, 0.55);
  border: 1px dashed rgba(138, 74, 53, 0.15);
  transform: translateX(-50%) rotate(-3deg);
  pointer-events: none;
}
.poloroid.pol-2::before { transform: translateX(-50%) rotate(5deg); }
.poloroid.pol-3::before { transform: translateX(-50%) rotate(-1deg); }

.story-photo .placeholder span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-deep);
  text-transform: uppercase;
}

.story-text h2 { margin-bottom: 24px; text-align: left; }
.story-text .section-rule { justify-content: flex-start; margin-left: 0; }
.story-text .section-rule::before { display: none; }

.story-chapter {
  margin-top: 24px;
}
.story-chapter h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-deep);
  margin: 0 0 4px;
  font-weight: 400;
}
.story-chapter .year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Dress guide ---------- */
.dress-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.dress-item:last-child { border-bottom: 1px solid var(--rule); }

.dress-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 4px;
}

.dress-item h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--accent-deep);
  margin: 0 0 6px;
  font-weight: 400;
}

.dress-item p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.dress-item .cn {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ---------- Color swatches ---------- */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  max-width: 360px;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  transition: transform 0.2s ease;
  display: inline-block;
  flex-shrink: 0;
}
.swatch:hover { transform: scale(1.18); }

/* Named swatch grid — chip per color with label */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 14px;
  max-width: 440px;
}
.swatch-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.swatch-chip:hover { color: var(--accent-deep); }
.swatch-chip:hover .swatch { transform: scale(1.18); }
.swatch-chip .swatch {
  width: 18px;
  height: 18px;
}
.swatch-name {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
  .swatch-chip { font-size: 12px; }
}

/* ---------- Schedule timeline ---------- */
.timeline {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
  margin-left: 80px;
  position: relative;
}

.tl-item {
  position: relative;
  padding: 16px 0 28px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.tl-time {
  position: absolute;
  left: -120px;
  top: 22px;
  width: 72px;
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent-deep);
}

.tl-item h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 4px;
  font-weight: 400;
}

.tl-item p { color: var(--ink-soft); font-size: 15px; margin: 0; font-style: italic; }

/* ---------- Travel cards ---------- */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.travel-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-align: left;
}

.travel-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.travel-card h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 400;
}

.travel-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

/* ---------- Map ---------- */
.map-frame {
  width: 100%;
  height: 360px;
  border: 1px solid var(--rule);
  background: var(--bg-deep);
  margin-top: 32px;
  filter: sepia(0.15) saturate(0.9);
}

.travel-map {
  margin-top: 40px;
  border: 1px solid var(--rule);
  background: #f0e4d2;
  padding: 0;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(42, 30, 22, 0.08);
  overflow: hidden;
}

.travel-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.travel-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  padding: 20px 28px 22px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .travel-legend {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
  gap: 10px;
}
.gallery .g-cell {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery .g-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.92);
}
.gallery .g-cell:hover {
  z-index: 2;
  box-shadow: 0 12px 28px rgba(42, 30, 22, 0.22);
}
.gallery .g-cell:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}
.gallery .g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px 8px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #faf3e9;
  background: linear-gradient(to top, rgba(42, 30, 22, 0.78) 0%, rgba(42, 30, 22, 0) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery .g-cell:hover .g-cap {
  opacity: 1;
  transform: translateY(0);
}

/* editorial-style mosaic — explicit row spans tessellate to 6 cols */
/* Rows 1-2 */
.gallery .g-cell:nth-child(1)  { grid-column: span 2; grid-row: span 2; } /* 2nd date */
.gallery .g-cell:nth-child(2)  { grid-column: span 4; grid-row: span 2; } /* Hermann Park */
/* Rows 3-6: tall Run Alex on left, four 2×2 cells filling right 4 cols */
.gallery .g-cell:nth-child(3)  { grid-column: span 2; grid-row: span 4; } /* Run Alex Run — tall, contain */
.gallery .g-cell:nth-child(4)  { grid-column: span 2; grid-row: span 2; } /* Macy's */
.gallery .g-cell:nth-child(5)  { grid-column: span 2; grid-row: span 2; } /* Dunes */
.gallery .g-cell:nth-child(6)  { grid-column: span 2; grid-row: span 2; } /* Jan 21 */
.gallery .g-cell:nth-child(7)  { grid-column: span 2; grid-row: span 2; } /* Christmas */
/* Rows 7-8: 2 + 4 */
.gallery .g-cell:nth-child(8)  { grid-column: span 2; grid-row: span 2; } /* Toast */
.gallery .g-cell:nth-child(9)  { grid-column: span 4; grid-row: span 2; } /* Kayaking */
/* Rows 9-10: 2 + 4 */
.gallery .g-cell:nth-child(10) { grid-column: span 2; grid-row: span 2; } /* China */
.gallery .g-cell:nth-child(11) { grid-column: span 4; grid-row: span 2; } /* Tulip wide */
/* Rows 11-12: 2 + 2 + 2 */
.gallery .g-cell:nth-child(12) { grid-column: span 2; grid-row: span 2; } /* Van */
.gallery .g-cell:nth-child(13) { grid-column: span 2; grid-row: span 2; } /* Halloween */
.gallery .g-cell:nth-child(14) { grid-column: span 2; grid-row: span 2; } /* Japan */

.gallery .g-contain img {
  filter: saturate(0.96) sepia(0.05);
}

/* ---------- Registry ---------- */
.registry-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.registry-row:last-child { border-bottom: 1px solid var(--rule); }

.registry-qr {
  width: 140px;
  height: 140px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.registry-row h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--accent-deep);
  font-weight: 400;
}

/* ---------- Notes / Mga Kuwentang ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}

.note h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-deep);
  margin: 0 0 8px;
  font-weight: 400;
}
.note p {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
}
.faq-q .plus {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 24px;
  font-style: normal;
  transition: transform 0.3s;
}

.faq-item[open] .faq-q .plus { transform: rotate(45deg); }

.faq-a {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 12px;
  padding-right: 40px;
}

/* ---------- RSVP CTA ---------- */
.rsvp-block {
  text-align: center;
  padding: 32px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent-deep);
  padding: 18px 48px;
  border: 1px solid var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
}
.btn-ghost:hover { background: var(--accent-deep); color: var(--paper); }

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin: 32px 0;
}
.countdown .unit {
  text-align: center;
}
.countdown .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  color: var(--accent-deep);
  line-height: 1;
  font-weight: 400;
}
.countdown .label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Footer ---------- */
footer {
  padding: 96px 0 56px;
  text-align: center;
  background: var(--bg-deep);
  border-top: 1px solid var(--rule);
}

.footer-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 80px;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 400;
}

.footer-meta {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-hash {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent-deep);
  margin-top: 32px;
  font-weight: 400;
}

/* ---------- Section divider with botanical ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--accent);
  margin: 0 auto;
  max-width: 320px;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  background: var(--rule);
  flex: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-layout { grid-template-columns: 1fr; gap: 32px; }
  .story-photo { margin: 0 auto; }
  .story-stack { width: 320px; height: 380px; margin: 0 auto; }
  .poloroid.pol-1 { width: 180px; height: 230px; top: 20px; left: 0; }
  .poloroid.pol-2 { width: 170px; height: 220px; top: 6px; left: 140px; }
  .poloroid.pol-3 { width: 160px; height: 210px; top: 150px; left: 80px; }
  .hero-stack { width: min(420px, 92vw); height: 420px; padding: 40px 0; }
  .poloroid.hpol-1 { width: 170px; height: 215px; top: 80px; left: 0; }
  .poloroid.hpol-2 { width: 200px; height: 250px; top: 50px; left: 50%; margin-left: -100px; }
  .poloroid.hpol-3 { width: 170px; height: 215px; top: 90px; right: 0; left: auto; }
  .story-text h2 { text-align: center; }
  .story-text .section-rule { justify-content: center; }
  .timeline { margin-left: 90px; padding-left: 24px; }
  .tl-time { left: -100px; width: 72px; }
  .travel-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-cell { grid-column: span 1 !important; grid-row: span 1 !important; }
  .notes-grid { grid-template-columns: 1fr; }
  .countdown { gap: 24px; }
  .countdown .num { font-size: 40px; }
  .registry-row { grid-template-columns: 100px 1fr; gap: 20px; }
  .registry-qr { width: 100px; height: 100px; }
  section { padding: 64px 0; }
  .section-title { font-size: 44px; }
}
