/* ============================================
   SCARLETT — GLOBAL SETTINGS
   Portrait layout, 430px lock, mobile-first
   ============================================ */

:root {
  --white: #ffffff;
  --black: #000000;
  --gold-gradient: linear-gradient(0deg, #967547 12.07%, #E0B173 45.05%, #977547 84.48%);
  --border-soft: #C37B5F;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* scroll-behavior: smooth; */
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background: var(--black);
}

/* ----- Stars layer: subtle gold twinkle (behind all content) ----- */
.stars-layer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
}

body > *:not(.stars-layer) {
  position: relative;
  z-index: 1;
}

.stars-layer::before,
.stars-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: twinkle 6s infinite ease-in-out alternate;
  opacity: 0.5;
  filter: blur(0.3px);
}

.stars-layer::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(224,177,115,0.8) 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(224,177,115,0.6) 1px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(224,177,115,0.7) 1px, transparent 2px),
    radial-gradient(circle at 90% 10%, rgba(224,177,115,0.5) 1px, transparent 2px);
}

.stars-layer::after {
  background-image:
    radial-gradient(circle at 40% 60%, rgba(224,177,115,0.4) 2px, transparent 4px),
    radial-gradient(circle at 10% 90%, rgba(224,177,115,0.3) 2px, transparent 4px);
  animation-duration: 9s;
}

@keyframes twinkle {
  0%   { opacity: 0.2; }
  50%  { opacity: 0.6; }
  100% { opacity: 0.3; }
}

/* Container: center on desktop, never wider than 430px */
.site-wrapper {
  max-width: 390px;
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  background: url('assets/img/background-main.png');
  background-size: cover;
  background-position: top;
}

/* ============================================
   TYPOGRAPHY
   Cormorant Garamond: headings (bold only)
   Lexend: body (regular + medium)
   ============================================ */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  margin: 0;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

/* Gold text with shimmer inside letter shapes only (no overlay) */
.gold-text {
  background: linear-gradient(
    120deg,
    #967547 0%,
    #E0B173 25%,
    rgba(255, 255, 255, 0.6) 35%,
    #E0B173 45%,
    #977547 60%
  );
  background-size: 200% 100%;
  background-position: -100% 0;

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 4px 5px rgba(0, 0, 0, 0.30);

  animation: shimmerText 6s ease-in-out infinite;
}

@keyframes shimmerText {
  0% {
    background-position: -100% 0;
  }
  60% {
    background-position: 100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 16px;
    padding-top: 30px;
    background-image: url(assets/img/background-hero.png);
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hero__logo {
  width: 110px;
  margin-bottom: 60px;
  display: block;
}

.hero__invitation {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--white);
  margin: 0 0 8px 0;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.hero__subtitle {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.05em;
  margin: 0 0 24px 0;
}

/* Date frame section */
.hero__date-frame {
  background-image: url('assets/img/frame/frame-tanggal.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 260px;
  padding: 30px 20px;
  margin: 0 auto 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__date {
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  font-size: 21px;
  color: var(--white);
  margin: 0 0 8px 0;
}

.hero__location {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 10px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 6px 0;
  margin: 0 0 8px 0;
  color: var(--white);
}

.hero__time {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--white);
  margin: 0;
}

.hero__footnote {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--white);
  opacity: 0.9;
  margin: 0 0 24px 0;
}

.hero__performance {
  width: 210px;
  margin: 0 auto;
  display: block;
}

/* ============================================
   SECTION PRIZE
   ============================================ */

.section-prize {
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-prize__row--grand .section-prize__img {
  margin-bottom: 24px;
}

.section-prize__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.section-prize__grid .section-prize__img {
  width: 100%;
  display: block;
}

.section-prize__row--dresscode .section-prize__img {
  margin-top: 24px;
}

.section-prize__img {
  width: 100%;
  display: block;
}

/* ----- Prize shimmer: subtle luxury reflection (section-prize only) ----- */
.section-prize .prize-item.shimmer {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
}

.section-prize .prize-item.shimmer img {
  display: block;
  width: 100%;
}

.section-prize .prize-item.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(224, 177, 115, 0.2) 45%,
    rgba(224, 177, 115, 0.35) 50%,
    rgba(224, 177, 115, 0.2) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shimmerImage 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerImage {
  0% {
    left: -150%;
  }
  70% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* ============================================
   SECTION GRWM
   ============================================ */

.section-grwm {
  padding: 16px 16px;
  max-width: 355px;
  background-image: url('assets/img/frame/frame-GRWM.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: left;
  color: var(--white);
  margin: auto;
}

.section-grwm__block + .section-grwm__block {
  margin-top: 18px;
}

.section-grwm__heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 18px 0;
}

.section-grwm__heading.gold-text {
  text-align: center;
}

.section-grwm__task-list {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 18px 0;
  padding-left: 1.2em;
  list-style-position: outside;
}

.section-grwm__task-list li {
  margin-bottom: 0.35em;
}

.section-grwm__task-list li:last-child {
  margin-bottom: 0;
}

.section-grwm__subheading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  margin: 0 0 18px 0;
}

.section-grwm__subheading.gold-text {
  text-align: center;
}

.section-grwm__prize-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.section-grwm__prize-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-size: 10px;
  color: var(--white);
}

.section-grwm__prize-item img {
  width: 92px;
  display: block;
  margin: 0 auto 8px auto;
}

.section-grwm__prize-item p {
  margin: 0;
  line-height: 1.4;
}

.section-grwm__divider {
  width: 90%;
  margin: 16px auto;
  display: block;
}

.section-grwm__footnote {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--black);
  text-align: center;
  padding: 20px 16px;
  background-image: url('assets/img/frame/frame-info.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.section-grwm__footnote p {
  margin: 0;
}

/* ============================================
   SECTION RSVP
   ============================================ */

.section-rsvp {
  padding: 40px 16px;
  text-align: center;
}

.section-rsvp__divider {
  width: 90%;
  display: block;
  margin: 0 auto 24px auto;
}

.section-rsvp__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.rsvp-form {
  width: 100%;
  margin: 16px auto 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.rsvp-form iframe {
  min-height: 500px;
}
