/* Nocturnal (2026-11-28): the black-tie evening design. Builds on the Monograph rules (invite-monograph.css, shared
   through :is()), and is simpler: no crop marks, no drop cap, no drifting ampersand behind the story, no outlined place
   name. Its own voice is high contrast: pure white pages in ink, with three ink-black "evening" sections (countdown,
   dress code, ending) that echo the black envelope. Names set in tracked capitals, like an engraved gala card.
   Gold stays a flat hairline under the issue line. Scoped to html[data-design=nocturnal]. */
[data-design=nocturnal] {
  --night: #161514;           /* the envelope's paper */
  --night-fg: #f4f2ee;
  --night-soft: rgba(244, 242, 238, .64);   /* 8:1 on --night */
  --night-line: rgba(244, 242, 238, .2);
}

/* ---------- ink-black evening sections: same markup, colours inverted through the shared custom properties */
[data-design=nocturnal] :is(.s-countdown, .s-dresscode) {
  --bg: var(--night); --fg: var(--night-fg); --fg-soft: var(--night-soft); --line: var(--night-line);
  background: var(--night); color: var(--fg); padding-top: 96px; padding-bottom: 104px;
}
[data-design=nocturnal] :is(.s-countdown, .s-dresscode) .btn { color: var(--fg); border-color: var(--fg); background: transparent; }
[data-design=nocturnal] :is(.s-countdown, .s-dresscode) .btn:hover { background: var(--fg); color: var(--night); }
/* a section of night needs no running header hairline pressed against it: the change of colour is the break */
[data-design=nocturnal] .divider.rh { padding-top: 40px; }

/* ---------- 1 page one: issue line, gold hairline, the names in tracked capitals inside the open V; no crop marks */
[data-design=nocturnal] .s-hero.mono .crop { display: none; }
[data-design=nocturnal] .s-hero.mono .names { font-size: min(40px, 4.3svh); line-height: 1.18; letter-spacing: .1em; text-transform: uppercase; padding-left: .1em; }
[data-design=nocturnal] .s-hero.mono .amp { display: block; font-size: .62em; letter-spacing: 0; text-transform: none; padding: 0; margin: .5svh 0 .3svh; }
[data-design=nocturnal] .s-hero.mono .dline { margin-top: 2.8svh; }

/* ---------- 2 countdown: a large numeral in the dark, two short hairlines */
[data-design=nocturnal] .s-countdown .rule { opacity: .35; height: 40px; }
[data-design=nocturnal] .s-countdown .n { font-weight: 400; }

/* ---------- 3 story: plain columns, the closing line set as a quiet quote; no drop cap, no ampersand behind */
[data-design=nocturnal] .s-story .clouds.mono { display: none; }
[data-design=nocturnal] .s-story .copy p:first-of-type::first-letter { float: none; font: inherit; padding: 0; }
[data-design=nocturnal] .s-story .stage { padding: 12svh var(--pad) 14svh; }

/* ---------- 4 venue: no drifting place name; the card stands on its own */
[data-design=nocturnal] .s-venue .scene.mono { display: none; }
[data-design=nocturnal] .s-venue .card { margin-top: 28px; }

/* ---------- 6 dress code: the dark section; the level in italic, generous space */
[data-design=nocturnal] .s-dresscode .level { font-size: clamp(30px, 8vw, 40px); }
[data-design=nocturnal] .s-dresscode .code .rule { opacity: .35; }

/* ---------- 9 rsvp: a black envelope with the black "&" seal, as the guest received it */
[data-design=nocturnal] .s-rsvp .env .body { background: var(--night); border-color: var(--night); }
[data-design=nocturnal] .s-rsvp .env .flap { background: #24221f; }
[data-design=nocturnal] .s-rsvp .env .seal { background: #050505; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
[data-design=nocturnal] .s-rsvp .env .seal::after { color: rgba(255, 255, 255, .42); }

/* ---------- 11 ending: night falls; a white hairline ampersand to pass through, then the names in white */
[data-design=nocturnal] .s-ending.mono, [data-design=nocturnal] .s-ending.mono .stage { background: var(--night); }   /* the section too: no pale hairline where the stage meets the last line */
[data-design=nocturnal] .s-ending.mono .arch span { -webkit-text-stroke: 1px rgba(244, 242, 238, .34); }
[data-design=nocturnal] .s-ending.mono .words { color: var(--night-fg); }
[data-design=nocturnal] .s-ending.mono .words .issue, [data-design=nocturnal] .s-ending.mono .words .line { color: var(--night-soft); }
[data-design=nocturnal] .s-ending.mono .words .n { font-size: 34px; letter-spacing: .1em; text-transform: uppercase; padding-left: .1em; line-height: 1.15; }
[data-design=nocturnal] .s-ending .made { background: var(--night); color: var(--night-fg); }
/* the passing light: soft grey type so the gold band reads as light moving over it (pale type would swallow it) */
[data-design=nocturnal] .s-ending .made { color: #9a968f; }   /* 6.5:1 on --night */
[data-design=nocturnal] .s-ending .made.lit a { background-image: linear-gradient(100deg, #9a968f 34%, #f2d7a0 50%, #9a968f 66%); }
@media (prefers-reduced-motion: reduce) { [data-design=nocturnal] .s-ending .made.lit a { background: none; color: #9a968f; } }

/* ---------- Tap to open: plain white type on the black envelope, no haze */
[data-design=nocturnal] .overlay .tap { color: #f4f2ee; }
