/* Noir Editorial — dark, high-contrast, magazine-style: oversized display
   type, a numbered schedule instead of a timeline, and an asymmetric
   grayscale-to-color photo grid. The one motion touch is a thin rule under
   section headings that draws in on scroll — restrained, not Aurora's whole
   animated-glass identity. */
body.template-noir {
  --accent: #c9a227;
  --ink: #f0ece4;
  --muted: #9a938a;
  --bg: #141414;
  font-family: 'Open Sans', sans-serif;
}

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

body.template-noir #cover .eyebrow,
body.template-noir .hero .eyebrow {
  letter-spacing: .3em; text-transform: uppercase; font-size: .68rem; color: var(--accent); margin-bottom: 1.1rem;
}
body.template-noir #cover h1,
body.template-noir .hero h1 { font-size: 3.2rem; margin: 0 0 .75rem; line-height: 1.05; letter-spacing: -.01em; }
body.template-noir #cover .amp,
body.template-noir .hero .amp { display: inline-block; margin: 0 .35rem; color: var(--accent); font-weight: 300; }
body.template-noir #cover .date,
body.template-noir .hero .date { font-size: .95rem; letter-spacing: .15em; color: var(--muted); margin-bottom: 1.75rem; }
body.template-noir #cover .cover-to { font-size: .95rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.6; }
body.template-noir #cover .cover-to strong { color: var(--ink); font-size: 1.1rem; }

body.template-noir .cover-open-btn,
body.template-noir .hero-cta {
  display: inline-block; width: auto; padding: .75rem 2.2rem; text-decoration: none;
  background: transparent; border: 1px solid var(--ink);
  letter-spacing: .15em; text-transform: uppercase; font-size: .75rem;
  transition: background .25s ease, color .25s ease;
}
body.template-noir .cover-open-btn:hover,
body.template-noir .hero-cta:hover { background: var(--ink); color: var(--bg); }
body.template-noir .add-to-calendar-link { display: block; margin-top: .85rem; font-size: .78rem; color: var(--muted); text-decoration: underline; letter-spacing: .05em; }

body.template-noir .hero-photo { max-height: 58vh; filter: grayscale(.3); }
body.template-noir .hero-photo img { max-height: 58vh; }
body.template-noir .hero {
  min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3.5rem 1.25rem;
}

body.template-noir section { padding: 3.5rem 1.25rem; max-width: 600px; margin: 0 auto; text-align: center; }
body.template-noir section h2 {
  position: relative; display: inline-block; font-size: 1.7rem; letter-spacing: .04em;
  margin-bottom: 2rem; padding-bottom: 1rem;
}
body.template-noir section h2::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px; background: var(--accent);
  transform: translateX(-50%); transition: width .9s ease;
}
body.template-noir section.in-view h2::after { width: 56px; }

body.template-noir .story { font-size: 1rem; white-space: pre-line; color: var(--ink); line-height: 1.8; }

/* ── Schedule — numbered list, not a timeline ────────────────────────── */
body.template-noir .numbered-list { display: flex; flex-direction: column; gap: 1.5rem; text-align: left; max-width: 420px; margin: 0 auto; }
body.template-noir .numbered-item { display: flex; gap: 1.25rem; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 1.25rem; }
body.template-noir .num { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--accent); min-width: 2.6rem; flex-shrink: 0; }
body.template-noir .numbered-details strong { display: block; font-size: 1.1rem; letter-spacing: .01em; }
body.template-noir .numbered-details span { display: block; font-size: .85rem; color: var(--muted); margin-top: .2rem; }

body.template-noir .venue-card .name { font-size: 1.2rem; font-weight: 600; font-family: 'Playfair Display', serif; margin-bottom: .25rem; }
body.template-noir .venue-card .address { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
body.template-noir .venue-card .dress-code { font-size: .88rem; color: var(--muted); }

/* ── Gallery — asymmetric editorial grid, grayscale until hovered ───────── */
body.template-noir .gallery-editorial { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 90px; gap: .5rem; }
body.template-noir .gallery-editorial img {
  width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer;
  filter: grayscale(1); transition: filter .4s ease, transform .4s ease;
}
body.template-noir .gallery-editorial img:hover { filter: grayscale(0); transform: scale(1.02); }
body.template-noir .gallery-editorial img:nth-child(4n+1) { grid-column: span 2; grid-row: span 2; }
body.template-noir .gallery-editorial img:nth-child(4n+4) { grid-column: span 2; }
@media (max-width: 480px) {
  body.template-noir .gallery-editorial { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
  body.template-noir .gallery-editorial img:nth-child(4n+4) { grid-column: span 1; }
}

body.template-noir .countdown-tile { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 2px; }
body.template-noir .countdown-value { color: var(--accent); }

body.template-noir .rsvp-card {
  max-width: 460px; margin: 0 auto; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 2px; padding: 1.75rem 1.5rem;
}
body.template-noir .submit-btn {
  width: 100%; margin-top: 1.25rem; padding: .8rem; border-radius: 2px; font-size: .9rem;
  letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #141414;
}

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

body.template-noir #music-toggle { background: rgba(20,20,20,.75); color: var(--accent); border-color: rgba(255,255,255,.15); }

@media (prefers-reduced-motion: reduce) {
  body.template-noir section h2::after { transition: none; }
}

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