/* Nocturne: halaman undangan mandiri, seluruh aturan dibatasi pada dokumen ini. */
:root {
  --night: #21191a;
  --wine: #681f2b;
  --ivory: #f3eee4;
  --gold: #b39a72;
  --quiet: #c8b9a9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font: 14px/1.8 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-open {
  overflow: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #efcd96;
  outline-offset: 6px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
}
h2 {
  font-size: clamp(44px, 5.1vw, 80px);
  letter-spacing: -0.025em;
}
em {
  font-weight: 500;
  color: #d1b791;
}
button[hidden],
[hidden] {
  display: none !important;
}
.eyebrow {
  display: block;
  font: 500 10px/1.6 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d1b791;
}
p {
  color: var(--quiet);
}
.section-space {
  padding: 115px max(7vw, 24px);
}
.gold-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 48px;
  padding: 12px 27px;
  border: 1px solid var(--gold);
  background: #cbb18b;
  color: #21191a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  transition:
    background 0.25s,
    transform 0.25s;
}
.gold-button:hover {
  background: #e0c6a0;
  transform: translateY(-2px);
}
.outline-button {
  color: var(--ivory);
  background: transparent;
}
.outline-button:hover {
  background: #b39a7218;
}
.gold-button svg {
  width: 18px;
  height: 18px;
}
.text-link {
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #b39a7270;
  padding-bottom: 9px;
  display: inline-flex;
  gap: 30px;
}
.fine-rule {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 18px;
  width: 180px;
  margin: 30px auto;
}
.fine-rule:before,
.fine-rule:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #b39a7260;
}

.nocturne-page {
  background: var(--night);
}

/* La première page: titre et portrait composés comme un livre ouvert. */
.invitation-nav {
  height: 83px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #241a1bf2;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  border-bottom: 1px solid #b39a7233;
}
.nav-monogram {
  font: 400 31px var(--serif);
}
.nav-monogram span {
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  margin: 0 3px;
}
.invitation-nav nav {
  display: flex;
  gap: 36px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.invitation-nav nav a {
  padding: 12px 0;
}
.invitation-nav nav a:hover {
  color: #dfc099;
}
.nav-date {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.invitation-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - 83px);
  padding: 45px 6vw 55px;
  gap: 5vw;
  background: radial-gradient(ellipse at 20% 30%, #43252b, #241b1d 72%);
}
.hero-copy {
  align-self: center;
  text-align: center;
  padding: 30px 0;
}
.hero-copy h1 {
  font-size: clamp(80px, 9.2vw, 150px);
  line-height: 0.85;
  margin-top: 40px;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.hero-copy h1 em {
  font-size: 0.56em;
  vertical-align: 12%;
  margin-left: 5px;
}
.hero-copy p {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.5;
  color: #d6c5b6;
}
.hero-date {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 35px 0 25px;
}
.hero-portrait {
  position: relative;
  align-self: center;
  border: 1px solid #b39a7270;
  padding: 12px;
  max-width: 555px;
  justify-self: center;
  width: 100%;
}
.hero-portrait:before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid #d6bb813c;
  pointer-events: none;
}
.hero-portrait img {
  width: 100%;
  height: clamp(530px, 70vh, 800px);
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-portrait figcaption {
  position: absolute;
  bottom: 31px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ebd8bc;
  font-size: 8px;
  letter-spacing: 0.23em;
  text-shadow: 0 2px 5px #000;
}
.hero-margin {
  position: absolute;
  bottom: 22px;
  left: 6vw;
  font-size: 8px;
  color: #ab917b;
  letter-spacing: 0.25em;
}
.love-note {
  text-align: center;
  max-width: 1150px;
  margin: auto;
}
.love-note h2 {
  margin: 28px 0;
}
.love-note > p {
  max-width: 540px;
  margin: auto;
  font-size: 13px;
}
.couple-introduction {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin-top: 65px;
}
.couple-introduction span {
  font-size: 9px;
  letter-spacing: 0.19em;
  color: var(--gold);
}
.couple-introduction h3 {
  font-size: 38px;
  margin: 17px 0 12px;
}
.couple-introduction p {
  font-size: 11px;
  line-height: 1.9;
}
.couple-introduction > i {
  font: italic 60px var(--serif);
  color: var(--gold);
}
.story-section {
  background: #2d2022;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12vw;
  border-block: 1px solid #b39a7229;
}
.story-heading h2 {
  margin: 28px 0;
}
.story-heading p {
  font-size: 12px;
}
.story-heading img {
  opacity: 0.6;
  margin-top: 40px;
  object-fit: contain;
  object-position: left;
  width: 130px;
  height: 150px;
}
.story-timeline {
  border-left: 1px solid #b39a7240;
  padding-left: 42px;
}
.story-chapter {
  position: relative;
  padding: 0 0 45px;
}
.story-chapter:last-child {
  padding-bottom: 0;
}
.story-chapter:before {
  content: "";
  position: absolute;
  left: -47px;
  top: 10px;
  width: 9px;
  height: 9px;
  background: #b39a72;
  transform: rotate(45deg);
}
.story-chapter > span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.story-chapter h3 {
  font-size: 34px;
  margin: 16px 0;
}
.story-chapter p {
  font-size: 12px;
  max-width: 380px;
}
.celebration {
  text-align: center;
  background: radial-gradient(ellipse at top, #40252a, var(--night) 70%);
}
.celebration h2 {
  margin: 25px 0;
}
.event-date {
  font: 400 22px var(--serif);
}
.countdown {
  display: flex;
  justify-content: center;
  margin: 50px 0;
  gap: 45px;
}
.countdown strong {
  display: block;
  font: 400 45px var(--serif);
  font-variant-numeric: tabular-nums;
  min-width: 72px;
}
.countdown span {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 870px;
  margin: 0 auto 35px;
  gap: 28px;
}
.event-card {
  position: relative;
  padding: 47px 25px;
  background: #372429;
  border: 1px solid #b39a725c;
  outline: 1px solid #b39a7229;
  outline-offset: -9px;
}
.event-card h3 {
  font-size: 45px;
  margin: 20px 0 15px;
}
.event-card p {
  font-size: 12px;
}
.event-card h4 {
  font-size: 25px;
  margin-bottom: 12px;
}
.event-rule {
  height: 1px;
  width: 60px;
  background: var(--gold);
  margin: 30px auto;
}
.demo-caption,
.photo-note {
  font-size: 10px;
  margin: 20px auto 0;
  color: #ae9c8d;
  max-width: 450px;
}
.dress-code {
  margin-top: 65px;
}
.dress-code h3 {
  font-size: 33px;
  margin: 15px 0;
}
.dress-swatches {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 20px;
}
.dress-swatches i {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid #b39a7260;
  background: #100f10;
}
.dress-swatches i:nth-child(2) {
  background: #d4bfa2;
}
.dress-swatches i:nth-child(3) {
  background: #681f2b;
}
.dress-code p {
  font-size: 10px;
  letter-spacing: 0.07em;
}
.memories {
  background: #eee5d6;
  color: #302124;
}
.memories .eyebrow {
  color: #785d43;
}
.memories h2 {
  margin: 25px 0 50px;
}
.memories em {
  color: #681f2b;
}
.memory-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 7vw;
  align-items: center;
}
.memory-grid img {
  width: 100%;
  object-fit: cover;
}
.memory-wide img {
  height: 650px;
  object-position: 50% 64%;
}
.memory-detail {
  padding-top: 60px;
}
.memory-detail img {
  height: 400px;
  object-fit: none;
  object-position: 50% 60%;
  max-width: 100%;
}
.memory-grid figcaption {
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #705b4b;
  margin-top: 15px;
}
.photo-note {
  color: #705b4b;
  max-width: none;
  margin-top: 35px;
}
.invitation-ending {
  text-align: center;
  background: radial-gradient(ellipse at bottom, #55232d, #291d20 70%);
}
.invitation-ending h2 {
  margin: 28px 0;
}
.invitation-ending p {
  font-size: 12px;
}
.ending-names {
  display: block;
  font: italic 48px var(--serif);
  color: #ccb28c;
  margin-top: 45px;
}
.design-consultation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 75px 7vw 30px;
  border-top: 1px solid #b39a7240;
  background: #191617;
}
.design-consultation h2 {
  font-size: 48px;
  margin-top: 20px;
}
.design-consultation p {
  font-size: 12px;
  margin-bottom: 25px;
}
.design-colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1/-1;
  border-top: 1px solid #b39a722f;
  padding-top: 25px;
  font-size: 9px;
  color: #baa48b;
}
.design-colophon > a:first-child {
  font: 400 23px var(--serif);
}
.music-control {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
}
.music-control button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #b39a7280;
  background: #281c20;
  color: #d7bd97;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 15px #0004;
}
.music-control svg {
  width: 22px;
  height: 22px;
}
.music-control p {
  padding: 8px 14px;
  background: #281c20;
  border: 1px solid #b39a7233;
  font-size: 10px;
  max-width: 225px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.music-control:hover p,
.music-control:focus-within p,
.music-control.show-status p {
  opacity: 1;
  visibility: visible;
}
.music-control button[aria-pressed="true"] {
  box-shadow: 0 0 0 5px #b39a721c;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@keyframes envelope-sway {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(1.5deg) translateY(-5px);
  }
}
@keyframes page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1700px) {
  .nocturne-page {
    max-width: 1800px;
    margin: auto;
    border-inline: 1px solid #b39a7220;
  }
}

@media (max-width: 700px) {
  .section-space {
    padding: 76px 25px;
  }
  h2 {
    font-size: 45px;
  }

  .invitation-nav {
    height: 67px;
    padding: 0 23px;
  }
  .nav-monogram {
    font-size: 27px;
  }
  .invitation-nav nav {
    gap: 23px;
    font-size: 9px;
  }
  .nav-date {
    display: none;
  }
  .invitation-hero {
    display: flex;
    flex-direction: column;
    padding: 25px 25px 46px;
    gap: 30px;
    min-height: auto;
  }
  .hero-copy {
    padding: 20px 0 0;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
  }
  .hero-copy h1 {
    font-size: 88px;
    margin-top: 28px;
  }
  .hero-copy .fine-rule {
    margin: 24px auto;
    width: 140px;
  }
  .hero-copy p {
    font-size: 21px;
  }
  .hero-date {
    font-size: 9px;
    margin: 25px 0 20px;
  }
  .hero-portrait {
    width: min(100%, 420px);
    padding: 9px;
  }
  .hero-portrait:before {
    inset: 16px;
  }
  .hero-portrait img {
    height: 460px;
    object-position: center 70%;
  }
  .hero-margin {
    display: none;
  }
  .couple-introduction {
    gap: 20px;
    margin-top: 40px;
    flex-direction: column;
  }
  .couple-introduction h3 {
    font-size: 35px;
  }
  .couple-introduction > i {
    font-size: 40px;
  }
  .story-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .story-heading img {
    display: none;
  }
  .story-timeline {
    padding-left: 27px;
    margin-left: 5px;
  }
  .story-chapter:before {
    left: -32px;
  }
  .story-chapter h3 {
    font-size: 31px;
  }
  .countdown {
    gap: 15px;
    margin: 35px 0;
  }
  .countdown strong {
    font-size: 36px;
    min-width: 52px;
  }
  .countdown span {
    font-size: 7px;
  }
  .event-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .event-card {
    padding: 38px 22px;
  }
  .event-card h3 {
    font-size: 41px;
  }
  .event-date {
    font-size: 20px;
  }
  .demo-caption {
    font-size: 9px;
  }
  .memory-grid {
    gap: 25px;
    grid-template-columns: 1fr;
  }
  .memory-wide img {
    height: 470px;
  }
  .memory-detail {
    padding-top: 0;
    width: 82%;
    justify-self: end;
  }
  .memory-detail img {
    height: 310px;
  }
  .memories h2 {
    margin-bottom: 35px;
  }
  .memory-grid figcaption {
    font-size: 7px;
  }
  .photo-note {
    font-size: 9px;
  }
  .design-consultation {
    padding: 55px 25px 85px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .design-consultation h2 {
    font-size: 44px;
  }
  .design-colophon {
    flex-wrap: wrap;
    gap: 17px;
  }
  .design-colophon span {
    display: none;
  }
  .design-colophon > a:first-child {
    font-size: 21px;
  }
  .music-control {
    bottom: 18px;
    right: 18px;
  }
  .invitation-ending p br {
    display: none;
  }
  .ending-names {
    font-size: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .is-entering .nocturne-page {
    animation: none;
  }
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
