/* WHAT THIS FILE IS: Kanak's self-contained cinematic invitation. Photography
   is scenery, not UI: names, crests, stationery, buttons and forms are real
   responsive HTML. Dark candlelit chapters alternate with ivory paper.
   This stylesheet never reaches outside this template or changes tier limits. */
@font-face {
  font-family: Kanak Serif;
  src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kanak Serif;
  src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kanak Sans;
  src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ivory: #f7f0e4;
  --paper: #fffbf4;
  --ink: #402b2b;
  --wine: #572631;
  --night: #26151a;
  --gold: #ac8550;
  --pale-gold: #e3c38e;
  --line: #ad89504d;
  --serif: "Kanak Serif", Georgia, serif;
  --sans: "Kanak Sans", sans-serif;
  /* The app's preview/watermark wrapper reads this shared canvas hint. */
  --col: 1920px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ivory);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.7 var(--sans);
}
body:not(.open),
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font: 400 1em/1.06 var(--serif);
  text-wrap: balance;
}
h2 {
  font-size: clamp(42px, 5vw, 80px);
  letter-spacing: -0.035em;
}
em {
  font-weight: 400;
  color: var(--wine);
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 120;
  top: 8px;
  left: 8px;
  padding: 10px 20px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.28em;
  line-height: 1.6;
  color: var(--gold);
}
.section {
  position: relative;
  padding: 112px 6%;
  scroll-margin-top: 58px;
}
.section-inner {
  max-width: 1220px;
  margin: auto;
  text-align: center;
  min-width: 0;
  position: relative;
}
.section-inner > .eyebrow {
  margin-bottom: 18px;
}
.section-note {
  font-size: 15px;
  opacity: 0.78;
  margin: 22px auto 0;
  max-width: 600px;
}
.paper {
  background: var(--ivory);
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 32px 0;
  color: var(--gold);
}
.ornament span {
  height: 1px;
  width: 68px;
  background: var(--line);
}
.short-rule {
  width: 60px;
  height: 1px;
  background: var(--line);
  margin: 26px auto;
}
.chapter-crest {
  font: 34px var(--serif);
  color: var(--gold);
  margin: 22px auto;
}
.button {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  background: var(--wine);
  color: var(--paper);
  border: 1px solid var(--wine);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.button:hover {
  background: #733943;
  box-shadow: 0 8px 22px #32141b20;
}
.button span {
  font-size: 20px;
  line-height: 1;
}
.text-button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  min-height: 44px;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.07em;
}
.text-button span {
  margin-left: 14px;
}
/* Silk is CSS rather than another download. Each half slides away from the
   monogram; the full invitation is inert until the guest opens the cover. */
.cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  color: var(--ivory);
  display: grid;
  place-items: center;
  overflow: auto;
  background: var(--night);
}
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background: repeating-linear-gradient(
    90deg,
    #34151d 0%,
    #66323b 9%,
    #7b4850 13%,
    #391821 20%,
    #32141b 25%
  );
  box-shadow: inset 0 0 100px #0f070b80;
  transition: transform 1.5s cubic-bezier(0.72, 0, 0.24, 1);
}
.curtain::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-top: 1px solid #d6b87c55;
  border-bottom: 1px solid #d6b87c55;
}
.curtain-left {
  left: 0;
  transform-origin: left;
}
.curtain-right {
  right: 0;
  transform: scaleX(-1);
  transform-origin: center;
}
.cover-content {
  position: relative;
  text-align: center;
  width: min(90%, 680px);
  padding: 75px 10px;
  transition:
    opacity 0.5s,
    transform 0.8s;
}
.cover .eyebrow {
  color: #e8d0ac;
}
.cover-rule {
  width: 1px;
  height: 56px;
  background: #ddbf8b80;
  margin: 26px auto;
}
.cover-names {
  font: 400 clamp(44px, 5.8vw, 84px)/1.06 var(--serif);
  overflow-wrap: anywhere;
}
.cover-script {
  font: italic 25px var(--serif);
  margin-top: 16px;
  color: #ead5b7;
}
.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 1px solid #e3c28c;
  outline: 1px solid #cfad6866;
  outline-offset: 7px;
  margin: 38px auto 32px;
  background: radial-gradient(circle at 35% 25%, #cfa56b, #9b6d3e 65%, #674029);
  box-shadow:
    0 12px 35px #16090c99,
    inset 0 0 0 6px #e4c99544;
  color: #fff0d4;
  font: 31px var(--serif);
  transition: box-shadow 0.3s;
}
.seal:hover {
  box-shadow:
    0 0 40px #e3c28c55,
    inset 0 0 0 6px #e4c99566;
}
.seal:focus-visible {
  outline: 3px solid var(--ivory);
}
.seal-star {
  position: absolute;
  bottom: 8px;
  font-size: 15px;
}
.cover-date {
  margin-top: 20px;
  font: 21px var(--serif);
  letter-spacing: 0.04em;
}
.cover-edition {
  position: absolute;
  bottom: 22px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #e8d0ac;
  text-align: center;
}
.cover-edition span {
  padding: 0 8px;
}
.opening .curtain-left {
  transform: translateX(-102%);
}
.opening .curtain-right {
  transform: translateX(102%) scaleX(-1);
}
.opening .cover-content,
.opening .cover-edition {
  opacity: 0;
  pointer-events: none;
}
.opening .cover {
  background: transparent;
  pointer-events: none;
}
/* A separate portrait composition leaves space for names on small screens.
   The scene never carries personal text, so long names remain editable. */
.hero {
  position: relative;
  min-height: 860px;
  min-height: max(800px, 100svh);
  color: var(--ivory);
  background:
    linear-gradient(#100b0940, #100b0910 60%, #100b0940),
    url("assets/candle-aisle.webp") center/cover;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 85px 9% 45px;
  isolation: isolate;
}
.hero-frame {
  position: absolute;
  inset: 23px;
  border: 1px solid #f4dfb936;
  z-index: -1;
  pointer-events: none;
}
.hero-copy {
  width: 100%;
  max-width: 1120px;
  margin-top: clamp(24px, 4vh, 80px);
  text-shadow: 0 2px 24px #12080b90;
}
.hero .eyebrow {
  color: #f6e1bf;
  font-size: 11px;
}
.hero-monogram {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 26px auto 12px;
  border: 1px solid #e7c79688;
  border-radius: 50%;
  font: 22px var(--serif);
  color: #f8e3bd;
}
.hero h1 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  font-size: clamp(75px, 9.8vw, 162px);
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.hero h1 span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hero h1 em {
  color: #e7c796;
  font-size: 0.62em;
}
.hero-invite {
  font: italic clamp(20px, 2.4vw, 31px) var(--serif);
  margin: 10px 0 26px;
}
.hero-details {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: #f1dcc0;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.hero-details p + p {
  border-left: 1px solid #e7c79677;
  padding-left: 24px;
}
.explore {
  margin-top: auto;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.explore span:last-child {
  font: 27px var(--serif);
  width: 40px;
  height: 40px;
  border: 1px solid #ead5b755;
  border-radius: 50%;
}
.hero-edition {
  position: absolute;
  left: 42px;
  bottom: 50px;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 0.24em;
  opacity: 0.75;
}
.fireflies {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.fireflies i {
  position: absolute;
  bottom: 12%;
  left: 23%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffdaa1;
  box-shadow: 0 0 12px 3px #d49c5480;
  animation: ember 9s infinite ease-in;
}
.fireflies i:nth-child(2) {
  left: 31%;
  animation-delay: -5s;
}
.fireflies i:nth-child(3) {
  left: 75%;
  animation-delay: -2s;
}
.fireflies i:nth-child(4) {
  left: 60%;
  animation-delay: -7s;
}
.fireflies i:nth-child(5) {
  left: 81%;
  animation-delay: -3s;
}
.fireflies i:nth-child(6) {
  left: 16%;
  animation-delay: -6s;
}
@keyframes ember {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20% {
    opacity: 0.6;
  }
  90% {
    opacity: 0;
    transform: translate(26px, -240px);
  }
}
.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: #faf4e9f5;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--wine);
}
.chapter-nav a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.chapter-nav span {
  font-size: 12px;
  color: var(--gold);
}
.chapter-nav a:hover {
  color: var(--gold);
}
.welcome {
  background: url("assets/floral-silk.webp") center/cover;
  padding: 110px 12%;
}
.invitation-letter {
  max-width: 1020px;
  padding: 65px 6%;
  background: #fffaf1e8;
  border: 1px solid #c9ac7d66;
  box-shadow: 0 14px 75px #6c462617;
}
.letter-edge {
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.stationery-edition {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 30px;
}
.invitation-letter h2 {
  font-size: clamp(42px, 4.3vw, 66px);
  margin: 18px 0 27px;
}
.blessing {
  color: #7d674e;
  font-size: 12px;
  margin: 20px 0;
}
.blessing img {
  max-width: 65px;
  max-height: 65px;
  object-fit: contain;
  margin: 0 auto 15px;
}
#blessing-symbol {
  font-size: 32px;
}
.intro {
  max-width: 610px;
  font-size: 14px;
  margin: auto;
  line-height: 1.9;
  color: #76655b;
}
.hosted {
  margin: 24px auto;
  max-width: 680px;
}
.families {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 35px auto;
}
.family {
  flex: 1;
  max-width: 310px;
  min-width: 0;
}
.family-cameo {
  display: none;
}
.family h3 {
  font-size: 33px;
  color: var(--wine);
  overflow-wrap: anywhere;
}
.family small {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 10px auto 5px;
  color: var(--gold);
}
.family p {
  font-size: 11px;
  color: #776457;
}
.family-join {
  font: italic 42px var(--serif);
  color: var(--gold);
}
.letter-signoff {
  font: italic 25px var(--serif);
  color: var(--wine);
}
/* A dark canopy and tactile gold mask make the countdown its own scene.
   Its text stays in the DOM even while the decorative canvas covers it. */
.countdown {
  background:
    linear-gradient(#35151b8c, #28151ca3),
    url("assets/night-canopy.webp") center/cover;
  color: var(--ivory);
  padding-top: 100px;
  padding-bottom: 95px;
}
.countdown .section-inner {
  max-width: 1020px;
}
.countdown em,
.film-section em {
  color: var(--pale-gold);
}
.countdown .eyebrow,
.film-section .eyebrow {
  color: var(--pale-gold);
}
.chapter-number {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: #e2c69499;
  margin-bottom: 32px;
}
.countdown-card {
  position: relative;
  margin: 42px auto 18px;
  max-width: 690px;
  border: 1px solid #d5b47a;
  outline: 1px solid #d5b47a44;
  outline-offset: 8px;
  background: #30151ed9;
  padding: 42px 25px;
}
.clock {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.clock div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.clock strong {
  font: 400 clamp(38px, 5.8vw, 78px)/1.2 var(--serif);
  color: #f8e4be;
}
.clock span {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 10px;
  color: #e4c99f;
}
.clock b {
  font: 28px var(--serif);
  color: #d3b989;
}
#foil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  transition: opacity 0.7s;
  cursor: crosshair;
}
#foil-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #533923;
  pointer-events: none;
  transition: opacity 0.4s;
}
#foil-label > span {
  font: 30px var(--serif);
}
#foil-label p {
  font: italic clamp(25px, 3.5vw, 43px) var(--serif);
  margin: 7px 0 16px;
}
#foil-label small {
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 0.26em;
}
.revealed #foil,
.revealed #foil-label {
  opacity: 0;
  pointer-events: none;
}
.countdown .text-button {
  color: #e3c99e;
  border-color: #e3c99e55;
}
.countdown-footnote {
  font: italic 25px var(--serif);
  color: #e3c99e;
  margin-top: 27px;
}
.celebrations {
  background:
    radial-gradient(ellipse at 10% 40%, #e3cdb455, transparent 55%), var(--ivory);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 38px auto 34px;
  gap: 8px;
}
.tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  padding: 10px 25px;
  background: transparent;
  color: #816b54;
  font: italic 24px var(--serif);
}
.tabs button[aria-selected="true"] {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--paper);
}
.event-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1040px;
  margin: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 60px #42281e12;
}
.event-scene {
  position: relative;
  min-width: 0;
  min-height: 655px;
  overflow: hidden;
}
.event-scene img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.event-scene::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #ffedc65e;
  pointer-events: none;
}
.event-scene-label {
  position: absolute;
  left: 35px;
  right: 35px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #fff1d4;
  text-shadow: 0 2px 10px #2d1a11;
}
.event-scene-label .eyebrow {
  color: inherit;
}
#event-number {
  font: 76px var(--serif);
}
.event-copy {
  min-width: 0;
  padding: 50px 40px;
  align-self: center;
}
.small-crest {
  margin: 0 auto 28px;
  font-size: 32px;
}
.event-copy h3 {
  font-size: clamp(43px, 4vw, 62px);
  margin: 14px 0;
  color: var(--wine);
  overflow-wrap: anywhere;
}
.event-time {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #8b6a44;
}
.venue-name {
  font: 28px var(--serif);
}
#event-address {
  font-size: 11px;
  color: #8a786b;
  margin-top: 7px;
}
.event-note {
  font-size: 14px;
  color: #78665d;
  margin-top: 22px;
}
.dress-code {
  border-top: 1px solid var(--line);
  font: italic 21px/1.4 var(--serif);
  color: #926a42;
  margin-top: 25px;
  padding-top: 20px;
}
.event-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 24px;
  margin-top: 27px;
}
/* The story spread uses two actual columns, not a single flattened collage.
   No-photo stories become full-width text without leaving a blank slot. */
.story {
  background: #592932;
  color: var(--ivory);
}
.story::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #e1c48f30;
  pointer-events: none;
}
.story .eyebrow {
  color: #cda677;
}
.story-heading {
  text-align: left;
  max-width: 850px;
  margin: 0 0 48px;
}
.story-heading h2 {
  margin-top: 18px;
}
.story-heading em {
  color: #dfb989;
}
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  text-align: left;
  max-width: 1080px;
  margin: auto;
  position: relative;
  box-shadow: 0 20px 60px #21080e30;
}
.story-photo-wrap {
  position: relative;
  min-height: 680px;
  padding: 0;
  background: #26191a;
}
.story-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.photo-inscription {
  position: absolute;
  inset: auto 25px 23px;
  color: #fff1d8;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-shadow: 0 2px 7px #000;
}
.story-copy {
  background: var(--paper);
  color: var(--ink);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.story-copy::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.story-progress {
  font-size: 8px;
}
.story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 38px;
}
.story-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  width: 44px;
  height: 44px;
  font: 22px var(--serif);
}
.story-tabs button[aria-selected="true"] {
  background: var(--wine);
  color: var(--paper);
  border-color: var(--wine);
}
.story-copy .eyebrow {
  color: #936d43;
}
#story-heading {
  font-size: clamp(36px, 3.5vw, 54px);
  margin: 17px 0 22px;
  letter-spacing: -0.03em;
}
#story-body {
  color: #7c6b5f;
  font-size: 15px;
  line-height: 1.9;
}
.chapter-prompt {
  font: italic 22px var(--serif);
  padding-top: 26px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--gold);
}
.story-layout.without-photo {
  grid-template-columns: 1fr;
  max-width: 780px;
}
.without-photo .story-copy {
  min-height: 480px;
}
#memories {
  background: var(--paper);
}
#memories .section-inner {
  max-width: 1300px;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: 32px 0 20px;
}
.gallery-controls span {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.gallery-controls button {
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font: 25px var(--serif);
}
.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0 35px;
  scrollbar-width: thin;
  scrollbar-color: #bfa27b transparent;
}
.gallery > button {
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  scroll-snap-align: start;
  text-align: left;
}
.memory-mount {
  display: block;
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
}
.memory-mount img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: filter 0.3s;
}
.gallery > button:hover img {
  filter: brightness(1.08);
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  padding: 17px 2px;
  font: italic 22px/1.2 var(--serif);
  color: var(--wine);
}
.gallery-caption small {
  font: 9px var(--sans);
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
}
.film-section {
  background:
    linear-gradient(#211216af, #211216b5),
    url("assets/night-canopy.webp") center/cover;
  color: var(--ivory);
}
.film-frame {
  position: relative;
  width: 100%;
  max-width: 1030px;
  aspect-ratio: 16/9;
  margin: 45px auto 0;
  outline: 1px solid #caa46655;
  outline-offset: 9px;
  border: 1px solid #caa46699;
  background:
    linear-gradient(#170e0e60, #170e0e99),
    url("assets/candle-aisle.webp") center/cover;
  box-shadow: 0 15px 55px #180b1366;
}
.film-placeholder,
.play-film {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff1d7;
}
.film-placeholder p {
  font: clamp(36px, 5vw, 72px) var(--serif);
}
.film-placeholder > span:not(.film-reel) {
  font: italic 24px var(--serif);
  margin-top: 8px;
}
.film-placeholder small {
  margin-top: 25px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.film-reel {
  font: 45px var(--serif);
  color: var(--pale-gold);
  margin-bottom: 18px;
}
.play-film {
  width: 100%;
  border: 0;
  background: #160a0d40;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.play-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.play-film > span {
  position: relative;
}
.play-circle {
  width: 82px;
  height: 82px;
  border: 1px solid #e1c18c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
}
.film-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.reply {
  background: #eee2d0;
}
.reply .section-inner > h2 {
  margin-top: 17px;
}
.reply-layout {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  max-width: 1110px;
  margin: 50px auto 0;
  text-align: left;
  box-shadow: 0 20px 65px #42282215;
}
.reply-vignette {
  background:
    linear-gradient(#3a192588, #341522bc),
    url("assets/night-canopy.webp") 18% center/cover;
  color: #f5e7ce;
  padding: 60px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.reply-vignette::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #e1bd7940;
  pointer-events: none;
}
.reply-vignette .eyebrow {
  color: #ddbd87;
}
.reply-vignette p {
  font: 46px/1.15 var(--serif);
  margin-top: 35px;
}
.reply-vignette em {
  color: #deb885;
}
.vignette-initials {
  font: 44px var(--serif);
  border-top: 1px solid #d6b78960;
  margin-top: 50px;
  padding-top: 32px;
  color: #ddbd87;
}
.rsvp-stationery {
  background: var(--paper);
  position: relative;
  padding: 48px 45px 34px;
}
.reply-seal {
  position: absolute;
  right: 30px;
  top: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font: 18px var(--serif);
}
.reply-letter-title {
  font: italic 41px var(--serif);
  color: var(--wine);
  padding-right: 35px;
}
.rsvp-stationery .ornament {
  justify-content: flex-start;
  margin: 15px 0 25px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend,
.form-grid label {
  font-size: 11px;
  letter-spacing: 0.025em;
}
legend {
  margin-bottom: 12px;
}
.reply-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.reply-choices label {
  position: relative;
  display: block;
}
.reply-choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.reply-choices span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  font-size: 11px;
  padding: 10px;
  cursor: pointer;
}
.reply-choices input:checked + span {
  background: var(--wine);
  color: var(--paper);
  border-color: var(--wine);
}
.reply-choices input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.reply-choices i {
  font-size: 19px;
  font-style: normal;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 25px;
  margin: 27px 0;
}
.form-grid label {
  display: block;
  min-width: 0;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid textarea {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #af98746e;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.form-grid textarea {
  resize: vertical;
  min-height: 76px;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #978c7e;
  opacity: 1;
}
#send-rsvp {
  width: 100%;
}
#rsvp-status {
  margin-top: 17px;
  font-size: 12px;
  color: var(--wine);
  min-height: 20px;
}
.contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 28px;
}
.contacts:empty {
  display: none;
}
.contacts a {
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.closing-scene {
  background:
    linear-gradient(#1b0e1866, #1b0e181a),
    url("assets/candle-aisle.webp") center/cover;
  min-height: 750px;
  padding: 105px 10% 320px;
  text-align: center;
  color: var(--ivory);
}
.closing-copy {
  max-width: 900px;
  margin: auto;
}
.closing-copy .eyebrow {
  color: var(--pale-gold);
}
.closing-names {
  font: clamp(50px, 8vw, 115px)/1.1 var(--serif);
  margin-top: 25px;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 20px #16090e;
}
#hashtag {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
#instagram {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  border-bottom: 1px solid #d7b27880;
}
.closing-credit {
  background: var(--night);
  text-align: center;
  padding: 25px 20px;
  color: #dabd98;
}
.credit {
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.music {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cba77980;
  border-radius: 30px;
  padding: 12px 17px;
  min-height: 44px;
  color: #f5e1c1;
  background: #361d24ed;
  font-size: 10px;
  letter-spacing: 0.07em;
  box-shadow: 0 4px 25px #170b1420;
}
.music-bars {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 16px;
}
.music-bars i {
  display: block;
  width: 2px;
  height: 7px;
  background: #d8b27d;
}
.music-bars i:nth-child(2) {
  height: 14px;
}
.music-bars i:nth-child(3) {
  height: 10px;
}
.music[aria-pressed="true"] i {
  animation: sound 1.1s alternate infinite ease-in-out;
}
.music[aria-pressed="true"] i:nth-child(2) {
  animation-delay: -0.7s;
}
.music[aria-pressed="true"] i:nth-child(3) {
  animation-delay: -0.3s;
}
@keyframes sound {
  to {
    transform: scaleY(0.35);
  }
}
dialog {
  color: var(--ivory);
  background: #24141bf5;
  border: 1px solid #c8a57955;
  width: min(94vw, 1100px);
  max-height: 94svh;
  padding: 55px 24px 20px;
}
dialog::backdrop {
  background: #150c14ed;
}
dialog figure {
  margin: 0;
  text-align: center;
}
#lightbox-image {
  margin: auto;
  max-height: 67svh;
  width: auto;
  object-fit: contain;
}
dialog figcaption {
  font: italic 24px var(--serif);
  padding-top: 14px;
}
.lightbox-close {
  position: absolute;
  right: 12px;
  top: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  color: #f7e5c6;
  background: none;
  font-size: 30px;
}
.lightbox-controls {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 15px;
}
.lightbox-controls button {
  background: none;
  color: #f7e5c6;
  border: 1px solid #b99c7166;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 23px;
}
.noscript {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  background: var(--paper);
  padding: 15px;
  text-align: center;
}
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}
.motion-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (min-width: 1700px) {
  .section {
    padding-top: 135px;
    padding-bottom: 135px;
  }
  .hero-copy {
    margin-top: 6vh;
  }
}
@media (max-width: 1000px) {
  .section {
    padding: 80px 5%;
  }
  .hero {
    min-height: 820px;
    padding-left: 7%;
    padding-right: 7%;
  }
  .welcome {
    padding: 75px 7%;
  }
  .invitation-letter {
    padding: 50px 5%;
  }
  .event-scene {
    min-height: 610px;
  }
  .event-copy {
    padding: 35px 25px;
  }
  .story-copy {
    padding: 40px 30px;
  }
  .story-photo-wrap {
    min-height: 650px;
  }
  .reply-vignette {
    padding: 45px 28px;
  }
  .reply-vignette p {
    font-size: 37px;
  }
  .rsvp-stationery {
    padding: 45px 28px 30px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  .section {
    padding: 65px 6%;
    scroll-margin-top: 52px;
  }
  h2 {
    font-size: clamp(39px, 10.3vw, 58px);
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.22em;
  }
  .section-note {
    font-size: 13px;
    margin-top: 18px;
  }
  .cover-content {
    padding: 60px 6px 85px;
  }
  .cover-names {
    font-size: clamp(44px, 11vw, 70px);
  }
  .cover-script {
    font-size: 23px;
  }
  .cover-rule {
    height: 35px;
    margin: 24px auto;
  }
  .cover-edition {
    bottom: 24px;
    font-size: 7px;
  }
  .seal {
    width: 95px;
    height: 95px;
  }
  .cover .eyebrow {
    font-size: 8px;
  }
  .hero {
    background-image:
      linear-gradient(#110b1020, #110b1010 70%, #110b1066),
      url("assets/candle-aisle-portrait.webp");
    min-height: max(760px, 100svh);
    padding: 92px 12% 32px;
  }
  .hero-frame {
    inset: 14px;
  }
  .hero-copy {
    margin-top: 5vh;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .hero-monogram {
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin: 22px auto 16px;
  }
  .hero h1 {
    flex-direction: column;
    align-items: center;
    font-size: clamp(60px, 17vw, 98px);
    gap: 0;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }
  .hero h1 em {
    font-size: 34px;
    line-height: 1.15;
    margin: 5px 0;
  }
  .hero h1 span {
    max-width: 100%;
  }
  .hero-invite {
    font-size: 20px;
    margin: 20px 0 22px;
  }
  .hero-details {
    display: block;
    font-size: 10px;
    line-height: 1.8;
    max-width: 235px;
    margin: auto;
  }
  .hero-details p + p {
    border: 0;
    padding: 0;
    margin-top: 4px;
  }
  .hero-edition {
    display: none;
  }
  .explore {
    padding-top: 105px;
    font-size: 8px;
    gap: 10px;
  }
  .explore span:last-child {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
  .long-names .hero {
    padding-left: 8%;
    padding-right: 8%;
  }
  .long-names .hero h1 {
    font-size: clamp(32px, 10.7vw, 64px);
  }
  .chapter-nav {
    min-height: 52px;
    gap: 14px;
    padding: 0 10px;
  }
  .chapter-nav a {
    font-size: 8px;
    letter-spacing: 0.07em;
  }
  .chapter-nav span {
    font-size: 10px;
  }
  .welcome {
    padding: 55px 5%;
  }
  .invitation-letter {
    padding: 44px 8%;
  }
  .letter-edge {
    inset: 7px;
  }
  .stationery-edition {
    font-size: 6px;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
  }
  .invitation-letter h2 {
    font-size: 39px;
  }
  .intro {
    font-size: 13px;
  }
  .intro br {
    display: none;
  }
  .families {
    flex-direction: column;
    gap: 16px;
    margin: 28px auto;
  }
  .family {
    width: 100%;
  }
  .family h3 {
    font-size: 31px;
  }
  .family-join {
    font-size: 31px;
    line-height: 1;
  }
  .letter-signoff {
    font-size: 23px;
  }
  .countdown {
    padding: 78px 7%;
  }
  .countdown h2 {
    max-width: 450px;
    margin: auto;
  }
  .chapter-number {
    font-size: 7px;
    letter-spacing: 0.17em;
  }
  .countdown-card {
    padding: 34px 14px;
    margin-top: 36px;
    outline-offset: 5px;
  }
  .clock strong {
    font-size: clamp(35px, 10vw, 57px);
  }
  .clock span {
    font-size: 6px;
    letter-spacing: 0.1em;
  }
  .clock b {
    font-size: 20px;
  }
  #foil-label p {
    font-size: clamp(24px, 6vw, 34px);
  }
  #foil-label > span {
    font-size: 23px;
  }
  #foil-label small {
    font-size: 6px;
  }
  .countdown .text-button {
    font-size: 10px;
  }
  .tabs {
    gap: 6px;
    margin: 30px auto 24px;
  }
  .tabs button {
    font-size: 20px;
    padding: 8px 13px;
  }
  .event-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .event-scene {
    min-height: 0;
    aspect-ratio: 4/4.3;
  }
  .event-scene img {
    object-position: center 55%;
  }
  .event-scene-label {
    bottom: 20px;
    left: 27px;
    right: 27px;
  }
  #event-number {
    font-size: 66px;
  }
  .event-copy {
    padding: 36px 25px 40px;
  }
  .event-copy h3 {
    font-size: clamp(38px, 11vw, 49px);
  }
  .venue-name {
    font-size: 28px;
  }
  .story::before {
    inset: 12px;
  }
  .story-heading {
    text-align: center;
    margin-bottom: 34px;
  }
  .story-layout {
    grid-template-columns: 1fr;
  }
  .story-photo-wrap {
    min-height: 0;
    aspect-ratio: 4/5;
  }
  .story-copy {
    padding: 37px 29px;
  }
  #story-heading {
    font-size: 41px;
  }
  #story-body {
    font-size: 14px;
  }
  .story-tabs {
    margin-bottom: 25px;
  }
  .chapter-prompt {
    font-size: 21px;
  }
  .without-photo .story-copy {
    min-height: 0;
  }
  .gallery {
    padding-top: 8px;
  }
  .gallery > button {
    flex-basis: 86%;
  }
  .gallery-caption {
    font-size: 22px;
  }
  .gallery-controls {
    gap: 16px;
  }
  .gallery-controls span {
    font-size: 7px;
  }
  .film-frame {
    margin-top: 35px;
    aspect-ratio: 4/3;
    outline-offset: 5px;
  }
  .film-placeholder p {
    font-size: 37px;
  }
  .film-placeholder > span:not(.film-reel) {
    font-size: 18px;
  }
  .film-placeholder small {
    font-size: 7px;
    margin-top: 18px;
  }
  .film-reel {
    font-size: 30px;
    margin-bottom: 8px;
  }
  .play-circle {
    width: 60px;
    height: 60px;
  }
  .reply-layout {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }
  .reply-vignette {
    padding: 34px 32px;
  }
  .reply-vignette p {
    font-size: 33px;
    margin-top: 16px;
    max-width: 250px;
  }
  .reply-vignette p br {
    display: none;
  }
  .vignette-initials {
    position: absolute;
    right: 30px;
    bottom: 35px;
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 29px;
    opacity: 0.6;
  }
  .rsvp-stationery {
    padding: 35px 24px 25px;
  }
  .reply-letter-title {
    font-size: 36px;
    padding-right: 0;
  }
  .reply-seal {
    /* The vignette already carries this monogram. Do not let a duplicate
       collide with the letter heading on a narrow phone. */
    display: none;
  }
  .reply-choices {
    gap: 7px;
  }
  .reply-choices span {
    font-size: 10px;
    padding: 9px 5px;
    gap: 6px;
  }
  .form-grid {
    gap: 24px 15px;
  }
  .form-grid input,
  .form-grid textarea {
    font-size: 16px;
  }
  .form-grid label {
    font-size: 10px;
  }
  .closing-scene {
    min-height: 690px;
    padding: 115px 12% 330px;
    background-image:
      linear-gradient(#1b0e1855, #1b0e181a), url("assets/candle-aisle-portrait.webp");
  }
  .closing-names {
    font-size: 65px;
  }
  .long-names .closing-names {
    font-size: clamp(34px, 9.5vw, 60px);
  }
  .closing-credit {
    padding-bottom: 74px;
  }
  .music {
    bottom: 13px;
    right: 13px;
    padding: 10px 13px;
  }
  dialog {
    padding: 52px 15px 15px;
  }
  dialog figcaption {
    font-size: 21px;
  }
}
@media (max-width: 360px) {
  .chapter-nav {
    gap: 9px;
  }
  .chapter-nav a {
    font-size: 7px;
  }
  .hero {
    padding-top: 80px;
  }
  .hero-copy {
    margin-top: 3vh;
  }
  .hero h1 {
    font-size: 59px;
  }
  .reply-choices {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .reply-vignette p {
    max-width: 185px;
    font-size: 29px;
  }
  .film-placeholder p {
    font-size: 32px;
  }
}
/* Do not trade accessibility for atmosphere: all content remains visible
   without motion and the reveal canvas always has a normal button fallback. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
