/* =========================================================
   FONTS
   ========================================================= */

@font-face {
  font-family: Pinyon;
  font-display: swap;
  src: url('/media/fonts/pinyon-script.woff2');
}

@font-face {
  font-family: Cormorant;
  font-display: swap;
  src: url('/media/fonts/cormorant-infant.woff2');
}

@font-face {
  font-family: Cormorant;
  font-weight: 700;
  font-display: swap;
  src: url('/media/fonts/cormorant-infant-bold.woff2');
}

@font-face {
  font-family: Poppins;
  font-display: swap;
  src: url('/media/fonts/poppins-regular.woff2');
}

@font-face {
  font-family: Poppins;
  font-weight: 600;
  font-display: swap;
  src: url('/media/fonts/poppins-semibold.woff2');
}

@font-face {
  font-family: Alex;
  font-display: swap;
  src: url('/media/fonts/alex-brush.woff2');
}


/* =========================================================
   DESIGN TOKENS / ROOT
   ========================================================= */

:root {
  --gold: #d7bb83;
  --brown: #472a1c;
  --paper: #fffcf3;
  --cream: #fefaf5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #15100d;
  color: var(--brown);
  font: 14px/1.75 Poppins, sans-serif;
}

button,
.button {
  display: inline-block;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  cursor: pointer;
  font: 600 11px Poppins;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 5px var(--brown);
}

img,
video {
  max-width: 100%;
}

.photo {
  min-width: 0;
  border: 0;
}


/* =========================================================
   DESKTOP FRAME
   ========================================================= */

.desktop-portrait {
  position: fixed;
  inset: 0;

  display: none;
  place-items: end center;

  padding: 8vh;

  background:
    linear-gradient(#0003, #0006),
    url('/media/photos/cover.webp') center 43% / cover;

  color: #fff;
  text-align: center;
}

.desktop-portrait p,
.hero-copy p {
  margin: 0;
  font: 28px Pinyon;
}

.desktop-portrait h2,
.hero-copy h2 {
  margin: 8px;
  font: 56px/1 Pinyon;
}

.desktop-portrait i,
.hero-copy i,
h1 i,
footer i {
  font-family: Cormorant;
  font-weight: 400;
}

.desktop-portrait span,
.hero-copy span {
  font: 600 11px Poppins;
  letter-spacing: .35em;
}


/* =========================================================
   SHELL
   ========================================================= */

.shell {
  position: relative;

  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-width: 0;

  margin: 0;

  overflow: hidden;

  background: var(--paper);

  box-shadow: none;
}


/* =========================================================
   COVER
   ========================================================= */

#cover {
  position: fixed;
  z-index: 100;

  inset: 0;

  display: grid;

  width: 100%;
  max-width: none;
  min-height: 100svh;

  place-items: center;

  overflow: hidden;

  background:
    url('/media/photos/cover.webp')
    center 35% / cover;

  color: #fff;
  text-align: center;

  transform: none;

  transition:
    transform .7s cubic-bezier(.7, 0, .2, 1),
    opacity .7s;
}

#cover.opening {
  transform: translateY(-100%);
}

.cover-shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      #0002,
      #0009
    );
}

.cover-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  height: 100svh;
  max-height: 80%;
  padding: max(48px, env(safe-area-inset-top)) 28px max(48px, env(safe-area-inset-bottom));
  overflow-y: auto;
  flex-shrink: 0;
}

.cover-heading,
.cover-details {
  flex-shrink: 0;
}

.cover-heading .eyebrow {
  margin: 0;
}

.cover-details {
  padding-bottom: 0;
}

.cover-heart-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.cover-content h1 {
  margin: 12px 0 0;

  font: 64px/1 Pinyon;
}

.cover-content button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--paper);
  color: var(--brown);

  box-shadow: 0 8px 24px #0005;
}

.cover-message {
  margin: 22px auto 18px;

  color: #fff;

  font: italic 15px/1.6 Cormorant;

  text-shadow: 0 2px 8px #0008;
}

.eyebrow {
  font: 600 10px/1.6 Poppins;
  letter-spacing: .24em;
}

.date {
  font: 700 16px Cormorant;
  letter-spacing: .08em;
}

.opening {
  opacity: 0;
  transform: translateY(-100%);
}


/* =========================================================
   OPENING MOTION
   ========================================================= */

.motion-hero {
  position: relative;

  display: grid;

  height: 100svh;
  min-height: 620px;

  place-items: center;

  overflow: hidden;

  background: var(--brown);
}

.motion-hero video {
  position: absolute;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.motion-hero::after {
  content: "";

  position: absolute;
  inset: 0;

  background: #0003;
}

.hero-copy {
  position: relative;
  z-index: 1;

  width: 100%;
  padding-inline: 20px;

  color: #fff;
  text-align: center;

  text-shadow: 0 2px 14px #000;
}


/* =========================================================
   SHARED PAPER
   ========================================================= */

.paper {
  position: relative;

  background-image:
    url('/media/decor/background.webp');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.gunungan {
  display: inline-block;

  width: 50px;
  height: auto;

  aspect-ratio: 1 / 1.25;

  margin-top: 20px;

  object-fit: contain;
}

.script {
  margin: 0;

  color: #a38c5e;

  font: 44px/1 Pinyon;
}


/* =========================================================
   QUR'AN / INTRO
   ========================================================= */

.intro {
  position: relative;
  padding: 38px 34px 54px;
  overflow: hidden;
  background:
    linear-gradient(#432919, #45281cf2),
    url('/media/decor/pattern.webp') center / 116px;
  text-align: center;
}

.intro-motif {
  position: absolute;
  left: 50%;
  z-index: 0;
  width: 100%;
  max-width: 680px;
  opacity: .28;
  pointer-events: none;
}

.intro-motif-top {
  top: 0;
  transform: translate(-50%, -36%);
}

.intro-motif-bottom {
  bottom: 0;
  transform: translate(-50%, 34%);
}

.intro-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 16px;
  /* background: var(--paper); */
  box-shadow: 0 10px 28px #0007;
}

.intro-photo-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 16px;
}

.intro-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(25, 14, 8, .5) 100%);
  pointer-events: none;
}

.intro-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.13;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 16px;
}

.intro-quote-panel {
  position: relative;
  z-index: 1;
  margin-top: -30px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  /* padding: 44px 26px 50px; */
  background:
    linear-gradient(#fffcf3e8, #fffcf3f2),
    url('/media/decor/fallback.webp') center bottom / cover;
  color: #251810;
}

.intro-quote-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/media/decor/motif-top.webp') top center / 100% auto no-repeat;
  opacity: .2;
  pointer-events: none;
}

.intro-quote-panel > * {
  position: relative;
  z-index: 1;
}

.intro p:not(.eyebrow) {
  font: 17px/1.7 Cormorant;
}

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram span {
  font: 64px/1 Cormorant;
}

.monogram i {
  margin-inline: -3px;
  color: var(--gold);
  font: 30px Pinyon;
}

.intro .monogram span {
  color: var(--gold);
  font-size: 47px;
  letter-spacing: .18em;
}

.intro .monogram i {
  color: #24160f;
  font-size: 23px;
}

.quran {
  margin: 24px 0 0;
  font: italic 15px/1.75 Cormorant;
}

.quran cite {
  display: block;
  margin-top: 24px;
  font: 700 17px/1.4 Cormorant;
  letter-spacing: 0;
}



/* =========================================================
   COUPLE
   ========================================================= */

.couple.paper {
  background-attachment: fixed;
}

.couple {
  padding: 55px 25px 55px;
  padding-inline: 0;
  container-type: inline-size;

  text-align: center;
}

.couple h2,
.gallery-section h2 {
  margin: 5px;

  font: 48px/1 Pinyon;
}

.couple article img {
  max-width: 85%;
  height: 235px;

  object-fit: contain;
}


/* =========================================================
   COUPLE SCROLL
   ========================================================= */

.couple-scroll {
  position: relative;
  z-index: 2;

  width: 80%;
  max-width: 560px;
  container-type: inline-size;

  margin: 32px auto 48px;

  padding: clamp(58px, 16cqi, 90px) clamp(18px, 5cqi, 32px) clamp(104px, 24cqi, 150px);

  background:
    rgba(255, 252, 242, .95);

  border:
    3px solid
    rgba(183, 151, 86, .75);

  /*
   * Full rounded / capsule.
   * Pertahankan bentuk ini.
   */
  border-radius: 999px;

  box-shadow:
    0 0 0 5px rgba(244, 229, 193, .45),
    0 10px 30px rgba(88, 62, 30, .12);

  overflow: hidden;
}


/* =========================================================
   COUPLE SCROLL MOTIF
   ========================================================= */

.couple-scroll-motif {
  position: absolute;

  left: 0;
  z-index: 0;

  display: block;

  width: 100%;
  height: clamp(240px, 100cqi, 420px);

  object-fit: cover;

  opacity: .28;

  pointer-events: none;
  user-select: none;
}

.couple-scroll-motif-top {
  top: 0;

  object-position: top center;
}

.couple-scroll-motif-bottom {
  bottom: 0;

  object-position: bottom center;
}


/* =========================================================
   MARRIED INTRO
   ========================================================= */

.married-intro {
  position: relative;
  z-index: 1;

  margin-bottom: 50px;
}

.married-intro h2 {
  margin: 12px;

  font: 36px/1 Pinyon;
  font-size: clamp(32px, 14cqi, 48px);
}

.married-intro p {
  font: 15px/1.7 Cormorant;
  font-size: clamp(15px, 6cqi, 19px);
}

.couple-scroll .gunungan {
  width: clamp(45px, 20cqi, 70px);
}

.couple-scroll [data-reveal] {
  --reveal-from:
    translate3d(0, 36px, 0);
}


/* =========================================================
   COUPLE PROFILE
   ========================================================= */

.profile {
  position: relative;
  z-index: 1;

  display: flex;

  min-height: clamp(440px, 185cqi, 700px);

  flex-direction: column;
  align-items: center;

  padding-top: 15px;
}

.profile.bride {
  background:
    url('/media/decor/couple-1.webp')
    3% 16% / 60% auto no-repeat;
}

.profile.groom {
  background:
    url('/media/decor/couple-3.webp')
    97% 14% / 60% auto no-repeat;
}

.profile p {
  margin: 0 0 15px;
}

.couple-scroll .profile h2 {
  font-size: clamp(40px, 18cqi, 64px);
}

.couple-name {
  font: 700 14px/1.45 Cormorant;
  font-size: clamp(14px, 5.7cqi, 18px);
}

.couple-family {
  max-width: 100%;

  color: #5f4634;

  font: 13px/1.6 Cormorant;
  font-size: clamp(13px, 5.3cqi, 17px);
  overflow-wrap: anywhere;
}

.portrait-frame {
  width: clamp(140px, 62cqi, 250px);
  max-width: 90%;
  height: auto;
  aspect-ratio: 165 / 250;
  flex-shrink: 0;

  border: 2px solid var(--gold);
  border-radius: 999px;

  background-position: 50% 0;
  background-size: cover;

  box-shadow: 5px 5px 5px #0005;
}

.bride .portrait-frame {
  background-image:
    url('/media/photos/portrait-tyas.webp');
}

.groom .portrait-frame {
  background-image:
    url('/media/photos/portrait-faris.webp');
}

.couple .couple-illustration {
  position: relative;

  width: 85%;
  max-width: 85%;
  height: clamp(150px, 66cqi, 260px);

  margin-top: calc(-1 * clamp(90px, 40cqi, 156px));

  object-fit: contain;
}

.amp {
  position: relative;
  z-index: 1;

  display: block;

  margin: 10px;

  color: var(--gold);

  font: 35px Cormorant;
  font-size: clamp(35px, 14cqi, 48px);
}


/* =========================================================
   INSTAGRAM
   ========================================================= */

.instagram {
  display: inline-flex;

  width: max-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0 18px;
  flex-shrink: 0;

  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid var(--gold);
  border-radius: 30px;

  background: #fffdf6cc;

  color: var(--brown);

  font: 11px Poppins;
  font-size: clamp(11px, 4.5cqi, 14px);

  text-decoration: none;
}

.instagram-icon {
  width: clamp(18px, 7cqi, 22px);
  height: auto;
  aspect-ratio: 1;

  fill: none;

  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}


/* =========================================================
   STORY OPENING / SLIDESHOW
   ========================================================= */

.story-opening {
  position: relative;

  display: grid;

  height: 100svh;
  min-height: 680px;

  place-items: center;

  overflow: hidden;

  background: var(--brown);

  color: #fff;
}

.story-opening::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      #0002 0%,
      #0005 55%,
      #0009 100%
    );
}

.slideshow,
.slideshow img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

.slideshow img {
  object-fit: cover;

  opacity: 0;

  animation:
    fade 20s infinite ease-in-out;
}

.slideshow img:first-child {
  opacity: 1;
}

.slideshow img:nth-child(2) {
  animation-delay: 5s;
}

.slideshow img:nth-child(3) {
  animation-delay: 10s;
}

.slideshow img:nth-child(4) {
  animation-delay: 15s;
}

.story-opening-copy {
  position: relative;
  top: 200px;
  z-index: 2;

  width: 100%;
  max-width: 640px;

  padding: 40px 30px;

  text-align: center;

  text-shadow: 0 2px 15px #0008;
}

.story-opening-copy p,
.story-opening-copy h2 {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 3px 6px rgba(0, 0, 0, 0.8),
    0 6px 18px rgba(0, 0, 0, 0.55);
}

.story-opening-copy .gunungan {
  filter: brightness(0) invert(1);

  opacity: .9;
}

.story-opening-copy > p {
  margin: 12px 0 5px;

  color: var(--gold);

  font: 34px/1 Pinyon;
}

.story-opening-copy > h2 {
  margin: 5px 0 20px;

  color: #fff;

  font: 64px/.9 Pinyon;
}

.story-opening-copy > span {
  display: block;

  font: 500 13px/1.6 Poppins;

  letter-spacing: .22em;

  text-transform: uppercase;
}


/* =========================================================
   OUR JOURNEY
   ========================================================= */

.story {
  position: relative;

  padding: 80px 20px 64px;
}

.story.paper::before {
  content: '';

  position: absolute;
  inset: 0 0 auto;

  height: 400px;

  pointer-events: none;

  background: rgba(45, 27, 18, .94);
  /* background: linear-gradient(to bottom, rgba(45, 27, 18, .94) 0%, rgba(55, 34, 22, .90) 64%, rgba(55, 34, 22, .48) 82%, transparent 100%); */
}

.story-inner {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1200px;

  margin-inline: auto;

  padding: 0;

  overflow: visible;

  border: 0;
  border-radius: 0;

  background: none;
  box-shadow: none;

  text-align: center;
}

.story-heading {
  position: relative;
  z-index: 1;

  max-width: 460px;

  margin: 0 auto 64px;

  color: var(--paper);
}

.story-heading .gunungan {
  width: 46px;
  margin-top: 22px;
}

.story-heading .script {
  margin-top: 8px;

  color: var(--gold);

  font-size: 27px;
}

.story-heading h2 {
  margin: 4px 0 14px;

  font: 50px/1 Pinyon;
}

.story-heading > p:last-child {
  margin: 0;

  font: 18px/1.7 Cormorant;
}


/* =========================================================
   ILLUSTRATED LOVE STORY
   ========================================================= */

.story-chapters {
  display: grid;
  gap: 0;
}

.story-chapter {
  position: relative;
  isolation: isolate;

  min-width: 0;

  padding: 16px 0;

  text-align: left;
}

.story-chapter:first-child {
  padding: 56px 0 16px;
}

.story-chapter-final {
  padding-block: 24px;
}

.story-page {
  display: grid;
  gap: 0;

  width: 100%;
  max-width: none;

  margin: 0;

  box-shadow: 0 10px 28px #0003;
}

.story-art {
  z-index: 3;

  min-width: 0;

  margin: 0;

  overflow: hidden;

  border-radius: 16px;

  background: #e5d5be;

  box-shadow: 0 12px 30px #472a1c20;

  aspect-ratio: 1672 / 941;
}

.story-art-media {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.story-art picture,
.story-art img {
  display: block;

  width: 100%;
  height: 100%;
}

.story-art img {
  object-fit: cover;
}

.story-art-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, .65) 100%);
}

.story .story-prose {
  max-width: none;

  margin: 0;

  border-radius: 0 0 16px 16px;

  background:
    linear-gradient(#eee0cbeF, #f2e7d6f5),
    url('/media/decor/fallback.webp') center bottom / cover;

  color: var(--brown);
}

.story .story-prose::before {
  opacity: .10;
}

.story-prose h3 {
  margin: 0 0 14px;

  color: #80653c;

  font: 500 30px/1.2 Cormorant;
}

.story-prose h3::after {
  content: '';

  display: block;

  width: 42px;
  height: 1px;

  margin-top: 16px;

  background: var(--gold);
}

.story-prose p {
  max-width: 46ch;
  margin: 0;

  font: 20px/1.75 Cormorant;
}

.story-copy {
  padding: 40px 26px 40px;
}

/* Motifs sit behind each paper, with bounds that cannot widen the page. */
.story-motif {
  position: absolute;
  z-index: 0;

  /* width: min(68%, 680px);  */
  height: auto;

  opacity: .5;

  pointer-events: none;
}

.story-motif-top {
  top: -20px;
  left: 0;

  opacity: .2;
}

/* .story-motif-bottom { bottom: -20px; right: 0; } */

.story-closing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin-top: 56px;
}

.story-closing::before,
.story-closing::after {
  content: '';

  width: 72px;
  height: 1px;

  background: var(--gold);

  opacity: .65;
}

.story-closing img {
  width: 36px;
  height: auto;
}

.story [data-reveal] {
  --reveal-from:
    translate3d(0, 18px, 0);
}

.story .story-art[data-reveal] {
  --reveal-from:
    translate3d(0, 16px, 0)
    scale(.985);
}

.story [data-reveal].revealed {
  opacity: 1;
}

/* =========================================================
   OUR MEMORIES
   ========================================================= */

.gallery-section {
  padding: 80px 28px;

  background: radial-gradient(ellipse at center, #503426 0%, #352016 55%, #24150f 100%);

  color: var(--paper);

  text-align: center;
}

.gallery-heading {
  margin-bottom: 25px;
}

.gallery-heading .script {
  color: #cdb47d;

  font-size: 26px;
}

.gallery-heading h2 {
  margin-top: 4px;

  color: var(--paper);

  font-size: 52px;
}

.gallery-layout {
  width: 100%;
  max-width: 420px;
  margin: 25px auto 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.gallery-collage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  aspect-ratio: 1.3;
}
.gallery-collage .photo:nth-child(1) {
  grid-area: 1 / 1;
}

.gallery-collage .photo:nth-child(2) {
  grid-area: 1 / 2 / 3 / 3;
}

.gallery-collage .photo:nth-child(3) {
  grid-area: 2 / 1;
}
.gallery-viewport {
  overflow: hidden;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
}
.gallery {
  display: flex;
  gap: 6px;
  margin: 0;
  transition: transform 700ms cubic-bezier(.45, 0, .25, 1);
}
.gallery .photo {
  flex: 0 0 calc((100% - 18px) / 3.15);
  aspect-ratio: 2 / 3;
}
.gallery-wide {
  aspect-ratio: 16 / 9;
}
.gallery-layout .photo {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}
.gallery-layout .photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transition: transform .5s;
}
.gallery-layout .photo:hover img {
  transform: scale(1.07);
}
.gallery-layout .photo:focus-visible {
  outline-offset: -4px;
  box-shadow: none;
}

.gallery-photo {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

/* Foto masih loading */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  filter: blur(16px);
  transform: scale(1.05);

  transition:
    opacity 0.6s ease,
    filter 0.8s ease,
    transform 0.8s ease;
}

/* Foto sudah selesai load */
.gallery-image.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* =========================================================
   WEDDING DAY
   ========================================================= */

.wedding-day {
  position: relative;

  display: grid;

  min-height: 720px;

  padding: 100px 30px;

  place-items: center;

  text-align: center;
}

.wedding-day-inner {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 360px;

  margin: auto;
}

.wedding-day-backdrop {
  position: absolute;
  inset: -24px -12px;
  z-index: -1;
  border: 1px solid rgba(183, 151, 86, .65);
  border-radius: 24px;
  background: rgba(255, 252, 243, .96);
  box-shadow: 0 10px 28px #472a1c24;
  pointer-events: none;
}

.wedding-day .script {
  margin-top: 12px;

  font-size: 34px;
}

.wedding-day h2 {
  margin: 5px 0 30px;

  font: 58px/.9 Pinyon;
}

.wedding-date {
  display: grid;

  grid-template-columns: 1fr auto 1fr;

  gap: clamp(8px, 2vw, 15px);

  align-items: center;

  margin: 30px auto;

  padding-block: 18px;

  border-top:
    1px solid var(--gold);

  border-bottom:
    1px solid var(--gold);
}

.wedding-date strong {
  padding-inline: clamp(10px, 3vw, 18px);

  border-right:
    1px solid var(--gold);

  border-left:
    1px solid var(--gold);

  color: #9b8050;

  font: 700 72px/.8 Cormorant;
}

.wedding-date span {
  font: 600 9px/1.5 Poppins;

  letter-spacing: .12em;
}

.wedding-day-copy {
  max-width: 270px;

  margin: 35px auto 0;

  font: 15px/1.8 Cormorant;
}


/* =========================================================
   PART OF OUR STORY
   ========================================================= */

.thank-you {
  position: relative;

  display: grid;

  min-height: 100svh;

  padding: 90px 35px;

  place-items: center;

  overflow: hidden;

  background:
    linear-gradient(#0005, #000a),
    url('/media/photos/gallery-01.webp')
    center / cover no-repeat;

  color: #fff;

  text-align: center;
}

.thank-you::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      transparent 35%,
      #24150eee 100%
    );
}

.thank-you-content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 460px;

  margin-top: auto;
}

.thank-you .script {
  margin-bottom: 8px;

  color: var(--gold);

  font-size: 31px;
}

.thank-you h2 {
  margin: 0 0 25px;

  font: 58px/.92 Pinyon;
}

.thank-you p:not(.script) {
  margin: 14px auto;

  font: 14px/1.8 Cormorant;
}


/* =========================================================
   ENDING / FOOTER
   ========================================================= */

footer {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  padding: 85px 30px 70px;
  background: #24150f;
  color: #fff;
  text-align: center;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/media/photos/wide-couple.webp') center / cover no-repeat;
  opacity: .25;
  pointer-events: none;
}

.footer-gunungan {
  width: 60px;

  margin-bottom: 10px;

  filter:
    brightness(0)
    invert(1);

  opacity: .8;
}

footer p {
  margin: 10px 0;

  color: var(--gold);

  font: 29px/1 Pinyon;
}

footer h2 {
  margin: 18px 0 14px;

  font: 53px/1 Pinyon;
}

footer span {
  display: block;

  margin: 0;

  color: #d7bb83;

  font: 600 10px Poppins;

  letter-spacing: .28em;
}

.footer-brand {
  display: grid;
  gap: 3px;

  margin: 24px auto 18px;

  color: var(--paper);
}

.footer-brand strong,
.footer-brand small,
.footer-brand em {
  display: block;
}

.footer-brand strong {
  color: #f6ead2;

  font: 700 15px/1.4 Cormorant;

  letter-spacing: .08em;
}

.footer-brand small {
  color: #e4d2aa;

  font: 13px/1.65 Cormorant;
}

.footer-brand em {
  color: var(--gold);

  font: 600 9px/1.6 Poppins;

  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
}


/* =========================================================
   MUSIC CONTROL
   ========================================================= */

#music-toggle {
  position: fixed;

  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));

  z-index: 110;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 2px solid #fff;

  background: #000;

  color: #fff;

  animation:
    spin 5s linear infinite;
}

.music-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paused {
  opacity: .65;

  animation-play-state:
    paused !important;
}


/* =========================================================
   STATUS
   ========================================================= */

#status:empty {
  display: none;
}

#status {
  position: fixed;

  bottom: 18px;
  left: 50%;

  z-index: 120;

  width: max-content;
  max-width: calc(100% - 100px);

  padding: 10px 18px;

  border-radius: 8px;

  background: #000d;

  color: #fff;

  font-size: 11px;

  transform:
    translateX(-50%);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

dialog {
  max-width: 100vw;
  max-height: 100vh;

  padding: 0;

  border: 0;

  background: transparent;
}

dialog::backdrop {
  background: #000e;
}

dialog img {
  display: block;

  max-width: 88vw;
  max-height: 86vh;

  object-fit: contain;
}

dialog button {
  position: fixed;

  padding: 8px 15px;

  background: #fff2;

  color: #fff;

  font-size: 30px;
}

#close-lightbox {
  top: 18px;
  right: 18px;
}

#prev-photo {
  top: 48%;
  left: 10px;
}

#next-photo {
  top: 48%;
  right: 10px;
}


/* =========================================================
   REVEAL
   ========================================================= */

[data-reveal] {
  opacity: 0;

  transform:
    var(
      --reveal-from,
      translate3d(0, 100px, 0) scale(.6)
    );

  transform-origin: center;

  transition:
    opacity
      var(--reveal-duration, 1000ms)
      ease,
    transform
      var(--reveal-duration, 1000ms)
      ease;

  transition-delay:
    var(--reveal-delay, 150ms);


}

[data-reveal].revealed {
  opacity: 0.92;

  transform: none;
}

[data-reveal="zoomIn"] {
  --reveal-from:
    scale(.3);
}

[data-reveal="zoom-in-up"],
[data-reveal="aos-zoom-in-up"],
[data-reveal=""] {
  --reveal-from:
    translate3d(0, 100px, 0)
    scale(.6);
}

[data-reveal].reveal-immediate {
  transition: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

  .desktop-portrait {
    display: none;
  }

  .shell,
  #cover {
    width: 100%;
    max-width: none;
  }

  .shell {
    margin: 0;
  }

  .motion-hero {
    min-height: 100svh;
  }

  .gallery-section {
    padding-inline:
      max(18px, 8vw);
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 600px) and (max-width: 1024px) {

  .couple {
    display: block;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .intro {
    padding-inline: 30px;
  }

  .story {
    padding-inline: 18px;
  }

  .story-inner {
    padding-inline: 18px;
  }

  .wedding-day {
    padding-inline: 24px;
  }

  .thank-you {
    padding-inline: 28px;
  }
}


@media (min-width: 600px) {

  .intro {
    padding-block: 64px 80px;
  }

  .cover-content h1 {
    font-size: clamp(64px, 7vw, 96px);
  }

  .hero-copy h2 {
    font-size: clamp(64px, 7vw, 96px);
  }

  .thank-you {
    background-position: center 40%;
  }

  .thank-you p:not(.script) {
    font-size: 18px;
  }
}

@media (min-width: 1025px) {

  #cover {
    background-color: #24150f;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
  }
  .motion-hero {
    background: #472a1c url('/media/decor/fallback.webp') center / cover;
  }

  .motion-hero video {
    object-fit: contain;
  }

  .story-opening {
    height: 85svh;
    min-height: 620px;
  }

  .slideshow img {
    object-position: center 40%;
  }

  .cover-content {
    padding-inline: 48px;
  }
}

@media (max-height: 560px) {

  .cover-content {
    gap: 28px;
    padding-block: 20px;
  }

  .cover-content h1 {
    font-size: clamp(40px, 8vw, 64px);
  }

  .cover-message {
    margin-block: 12px;
  }
}

@media (min-width: 900px) {

  .story {
    padding: 110px 40px 80px;
  }

  .story.paper::before {
    height: 440px;
  }

  .story .story-heading {
    margin-bottom: 88px;
  }

  .story-chapters {
    gap: 100px;
  }

  .story-page {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 0;
    padding: 24px;
  }

  .story-chapter:nth-child(even) .story-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }

  .story-chapter:nth-child(even) .story-art {
    grid-column: 2;
    grid-row: 1;
  }

  .story-chapter:nth-child(even) .story-prose {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .story .story-prose {
    padding: 32px;
    border-radius: 16px;
  }

  .story-chapter:nth-child(3n) .story-page {
    padding: 28px;
  }

  .story-prose h3 {
    font-size: 36px;
  }

  .story-prose p {
    font-size: 22px;
  }

  .story .story-art[data-reveal] {
    --reveal-from:
      translate3d(-16px, 10px, 0)
      scale(.985);
  }

  .story .story-chapter:nth-child(even) .story-art[data-reveal] {
    --reveal-from:
      translate3d(16px, 10px, 0)
      scale(.985);
  }

  .story-chapter-final {
    margin-top: 16px;
    padding-block: 40px;
  }

  .story-chapter-final .story-page {
    padding: 32px;
  }

  .story-motif {
    width: 52%;
    opacity: .16;
  }

  .story-chapter:nth-child(even) .story-motif {
    transform: scaleX(-1);
  }
}

@media (max-width: 899px) {

  .story-motif-bottom {
    opacity: .07;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      .01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      .01ms !important;
  }

  [data-reveal] {
    opacity: 1;

    transform: none;

    transition-delay: 0ms;
  }

  .slideshow img {
    opacity: 0;

    animation: none;
  }

  .slideshow img:first-child {
    opacity: 1;
  }

  .story [data-reveal] {
    opacity: 1;

    transform: none;

    transition: none;
  }
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fade {

  0%,
  100% {
    opacity: 0;
  }

  8%,
  25% {
    opacity: 1;
  }

  33% {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform:
      rotate(360deg);
  }
}
