/* Heritage Elegance — formal, ceremonial: parent-lineage profiles, a gold
   rule divider threaded through every section, framed gallery, and an
   embedded venue map. Inspired by traditional Indonesian invitation sites. */
body.template-heritage {
  --accent: #b8935a;
  --ink: #2c261f;
  --muted: #8a7d6c;
  --bg: #faf6ef;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}

body.template-heritage h1,
body.template-heritage #cover h1,
body.template-heritage section h2 { font-family: 'Playfair Display', serif; font-weight: 600; }

body.template-heritage .divider { width: 130px; height: 14px; color: var(--accent); display: block; margin: .6rem auto; }
body.template-heritage .divider-sm { width: 70px; height: 10px; margin: .5rem auto; }

body.template-heritage #cover .eyebrow,
body.template-heritage .hero .eyebrow {
  letter-spacing: .28em; text-transform: uppercase; font-size: .68rem; color: var(--accent); margin-bottom: 1.1rem;
}
body.template-heritage #cover h1,
body.template-heritage .hero h1 { font-size: 2.15rem; margin: 0; line-height: 1.2; }
body.template-heritage #cover .date,
body.template-heritage .hero .date { font-size: 1rem; letter-spacing: .1em; color: var(--muted); margin: 1.1rem 0 1.75rem; }
body.template-heritage #cover .cover-to { font-size: .95rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.6; }
body.template-heritage #cover .cover-to strong { color: var(--ink); font-size: 1.1rem; }
body.template-heritage .cover-open-btn,
body.template-heritage .hero-cta {
  display: inline-block; width: auto; padding: .7rem 2.1rem; border-radius: 2px; text-decoration: none;
  letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; border: 1px solid var(--accent);
}
body.template-heritage .add-to-calendar-link { display: block; margin-top: .85rem; font-size: .8rem; color: var(--muted); text-decoration: underline; }

body.template-heritage .hero-photo { max-height: 54vh; }
body.template-heritage .hero-photo img { max-height: 54vh; }
body.template-heritage .hero {
  min-height: 44vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3.25rem 1.25rem;
}

body.template-heritage section { padding: 3rem 1.25rem; max-width: 600px; margin: 0 auto; text-align: center; }
body.template-heritage section h2 {
  font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 0;
}

/* ── Couple lineage profiles ─────────────────────────────────────────── */
body.template-heritage .couple-profiles { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; }
body.template-heritage .profile-card { flex: 1; max-width: 220px; }
body.template-heritage .profile-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: .5rem; }
body.template-heritage .profile-parents { font-size: .9rem; color: var(--muted); line-height: 1.5; }
body.template-heritage .profile-amp { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.6rem; color: var(--accent); }
@media (max-width: 480px) { body.template-heritage .couple-profiles { flex-direction: column; gap: .75rem; } }

body.template-heritage .story { font-size: 1.08rem; white-space: pre-line; margin-top: 1.5rem; }

/* ── Schedule — formal bordered ceremony cards, not a timeline ──────────── */
body.template-heritage .ceremony-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.75rem; }
body.template-heritage .ceremony-card { border: 1px solid #e6ddcd; border-radius: 4px; padding: 1.5rem 1.25rem; background: #fff; }
body.template-heritage .ceremony-time { font-size: 1.3rem; font-family: 'Playfair Display', serif; color: var(--accent); }
body.template-heritage .ceremony-card strong { display: block; font-size: 1.15rem; margin-bottom: .2rem; }
body.template-heritage .ceremony-card span { display: block; font-size: .9rem; color: var(--muted); }

body.template-heritage .venue-card { margin-top: 1.5rem; }
body.template-heritage .venue-card .name { font-size: 1.25rem; font-weight: 600; font-family: 'Playfair Display', serif; margin-bottom: .25rem; }
body.template-heritage .venue-card .address { color: var(--muted); font-size: .95rem; margin-bottom: .75rem; }
body.template-heritage .venue-card .dress-code { font-size: .9rem; color: var(--muted); }
body.template-heritage .venue-map {
  margin-top: 1.5rem; border-radius: 4px; overflow: hidden; border: 1px solid #e6ddcd;
  aspect-ratio: 16/10;
}
body.template-heritage .venue-map iframe { width: 100%; height: 100%; border: 0; }
body.template-heritage .venue-map-link {
  display: inline-block; margin-top: 1.5rem; padding: .65rem 1.6rem; border: 1px solid var(--accent);
  border-radius: 2px; color: var(--accent); text-decoration: none;
  letter-spacing: .08em; text-transform: uppercase; font-size: .78rem;
  transition: background .2s ease, color .2s ease;
}
body.template-heritage .venue-map-link:hover { background: var(--accent); color: #fff; }

/* ── Gallery — matted picture frames ─────────────────────────────────── */
body.template-heritage .gallery-framed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
body.template-heritage .frame { background: #fff; border: 1px solid #e6ddcd; padding: .4rem; }
body.template-heritage .frame img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
@media (min-width: 480px) { body.template-heritage .gallery-framed { grid-template-columns: repeat(3, 1fr); } }

body.template-heritage .countdown-tile { background: #fff; border: 1px solid #e6ddcd; border-radius: 4px; }

body.template-heritage .rsvp-card { max-width: 460px; margin: 1.5rem auto 0; background: #fff; border: 1px solid #e6ddcd; border-radius: 4px; padding: 1.75rem 1.5rem; text-align: left; }
body.template-heritage .submit-btn { width: 100%; margin-top: 1.25rem; padding: .8rem; border-radius: 2px; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }

body.template-heritage .wishes-list { display: flex; flex-direction: column; gap: .85rem; max-width: 460px; margin: 1.5rem auto 0; text-align: left; }
body.template-heritage .wish-card { background: #fff; border: 1px solid #e6ddcd; border-radius: 4px; padding: 1.1rem 1.3rem; }
body.template-heritage .wish-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
body.template-heritage .wish-head strong { font-size: 1.02rem; font-family: 'Playfair Display', serif; }
body.template-heritage .wish-attending { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
body.template-heritage .wish-message { margin: 0; font-size: .95rem; white-space: pre-line; }
body.template-heritage .wish-date { margin-top: .5rem; font-size: .75rem; color: var(--muted); }

@media (max-width: 420px) {
  body.template-heritage section h2 { font-size: 1.3rem; }
  body.template-heritage #cover h1, body.template-heritage .hero h1 { font-size: 1.8rem; }
}

/* ── Gold dust rise — a single restrained rise of motes on cover-open
   (public-invite.js); no continuous trail or RSVP burst, to match this
   template's formal tone. No-op on every other template since it only
   runs when #heritage-dust-canvas is present in the markup. ──────────── */
body.template-heritage #heritage-dust-canvas {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  width: 100%; height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  body.template-heritage #heritage-dust-canvas { display: none; }
}
