/* ============================================================
   Renjana Senandika — replika tema vintage / surat tua
   Font utama: Source Serif Pro (Source Serif 4 di Google Fonts)
   ============================================================ */

:root {
  --paper-dark: #25160a;
  --paper-mid: #412712;
  --brown: #5a381c;
  --gold: #e7c88a;
  --gold-deep: #c9a24e;
  --ink: #3a2a18;
  --ink-soft: #5a4630;
  --cream: #f2e6cc;
  --cream-dim: #d9c8a6;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Source Serif 4", Georgia, serif;
  --deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --hand: "IM Fell English", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--cream);
  background: var(--paper-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--gold); }

/* ---------- latar bertekstur kertas tua ---------- */
.paper-bg {
  background-image: url("../img/paper-bg.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section { position: relative; padding: 5rem 1.5rem; }
.wrap { max-width: 1080px; margin: 0 auto; }

/* ---------- transisi & efek reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

.page-fade { animation: pageIn 1.1s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   HALAMAN 1 — HERO (aset asli)
   ============================================================ */
.hero-page {
  background: url("../img/hero-bg.png") center/cover no-repeat fixed;
  position: relative;
}
.hero-page::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(60,36,16,.15), rgba(20,11,4,.55) 90%);
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  z-index: 1;
}

/* siluet empat pria di belakang judul */
.hero-men {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(780px, 96vw);
  opacity: .38;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 74%);
}

/* logo judul emas (gambar PNG) */
.hero-logo {
  position: relative;
  z-index: 2;
  margin: 0;
}
.hero-logo img {
  width: min(680px, 90vw);
  height: auto;
}

.envelope-btn {
  position: relative;
  z-index: 2;
  margin-top: 2.2rem;
  width: min(320px, 72vw);
  cursor: pointer;
  border: none; background: none;
  transition: transform .35s ease, filter .35s ease;
  animation: bob 4s ease-in-out infinite;
}
.envelope-btn:hover { transform: scale(1.06) rotate(-1deg); filter: brightness(1.08); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.tagline {
  position: relative; z-index: 2;
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  color: #fff;
  text-shadow: 1px 2px 6px rgba(0,0,0,.8);
}
.byline {
  position: relative; z-index: 2;
  margin-top: .6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(.85rem, 2vw, 1rem);
  color: #f3ead7;
  text-shadow: 1px 2px 5px rgba(0,0,0,.8);
}

/* ornamen sudut kanan bawah */
.corner-flourish {
  position: absolute;
  right: 1rem; bottom: 1.2rem;
  width: min(220px, 40vw);
  opacity: .85;
  z-index: 1;
  pointer-events: none;
}

.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: .8rem; letter-spacing: 3px; color: var(--cream-dim);
  opacity: .7; text-transform: uppercase;
  animation: bob 3s ease-in-out infinite;
}

/* ============================================================
   HALAMAN 2 — NARASI
   ============================================================ */
.narrative { padding-top: 4rem; }

.opening {
  max-width: 640px; margin: 0 auto 3rem;
  text-align: center;
}
.opening .lead {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-style: italic; color: var(--cream);
  text-shadow: 1px 2px 6px rgba(0,0,0,.75);
}
.opening .lead .big::first-letter {
  font-family: var(--deco);
  font-size: 2.6em; line-height: 1;
  float: left; padding: .05em .12em 0 0;
  color: var(--gold);
}

/* kertas surat yang di-flip */
.letter {
  position: relative;
  max-width: 560px; margin: 2.2rem auto;
  padding: 2.4rem 2.6rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f3e7c9 0%, #e7d3a6 100%);
  border-radius: 3px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 60px rgba(120,80,30,.15);
  transform: rotate(-1.4deg);
  font-family: var(--hand);
  font-size: 1.06rem;
  line-height: 1.75;
}
.letter.tilt-right { transform: rotate(1.6deg); }
.letter::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(120,90,45,.35); border-radius: 2px; pointer-events: none;
}
.letter p + p { margin-top: 1rem; }

.ornament-divider {
  width: 220px; height: 24px; margin: 2.4rem auto;
  background: url("../img/flourish.svg") center/contain no-repeat;
  opacity: .8;
}

.pull-quote {
  max-width: 720px; margin: 3rem auto; text-align: center;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.2rem, 3.4vw, 1.85rem);
  color: var(--gold); line-height: 1.4;
  text-shadow: 1px 2px 8px rgba(0,0,0,.7);
}

/* ---------- galeri bingkai emas ---------- */
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center; color: var(--gold);
  text-shadow: 1px 2px 8px rgba(0,0,0,.7);
  margin-bottom: .4rem; letter-spacing: 1px;
}
.section-sub {
  text-align: center; font-style: italic; color: var(--cream-dim);
  margin-bottom: 2.6rem;
}

.frame-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.frame {
  position: relative; aspect-ratio: 4/5;
  background: url("../img/gold-frame.svg") center/100% 100% no-repeat;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s ease;
}
.frame:hover { transform: translateY(-6px) scale(1.02); }
.frame .photo {
  position: absolute; inset: 10.5%;
  background-size: cover; background-position: center;
  filter: sepia(.55) contrast(1.05) brightness(.92);
  border-radius: 2px;
}
.frame .caption {
  position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
  width: 82%; text-align: center;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(.72rem, 2vw, .95rem);
  color: var(--gold); text-shadow: 0 1px 3px #000;
  background: linear-gradient(90deg, transparent, rgba(20,12,4,.55), transparent);
  padding: .18rem 0;
}

/* ---------- daftar atraksi / show ---------- */
.mini-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1rem;
}
.card {
  background: rgba(28,17,7,.55);
  border: 1px solid rgba(201,162,78,.4);
  border-radius: 4px;
  padding: 1.6rem 1.3rem;
  text-align: center;
  transition: transform .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-deep); }
.card .ic { font-size: 2.2rem; margin-bottom: .7rem; filter: grayscale(.2); }
.card h3 {
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  color: var(--gold); margin-bottom: .4rem; letter-spacing: .5px;
}
.card p { font-size: .92rem; color: var(--cream-dim); }

/* ---------- save the date ---------- */
.save-date { text-align: center; }
.save-date .event-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.1rem); color: var(--gold);
  margin-bottom: .5rem; text-shadow: 1px 2px 8px rgba(0,0,0,.7);
}
.save-date .big-date {
  font-family: var(--deco); font-size: clamp(2rem, 7vw, 3.6rem);
  color: var(--cream); text-shadow: 2px 3px 10px rgba(0,0,0,.7);
  margin: .3rem 0;
}
.save-date .venue { font-style: italic; color: var(--cream-dim); font-size: 1.1rem; }
.save-date .venue .pin { color: var(--gold); }

.cta {
  display: inline-block; margin-top: 1.8rem;
  padding: .85rem 2.4rem;
  font-family: var(--display); font-weight: 600; letter-spacing: 1px;
  color: var(--paper-dark); text-decoration: none;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border-radius: 3px;
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
  transition: transform .3s ease, filter .3s ease;
}
.cta:hover { transform: translateY(-3px); filter: brightness(1.08); }

/* ---------- tombol navigasi halaman ---------- */
.nav-page {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem;
}
.nav-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.7rem;
  font-family: var(--display); letter-spacing: 1px;
  color: var(--cream); text-decoration: none;
  border: 1px solid var(--gold-deep); border-radius: 3px;
  background: rgba(28,17,7,.4);
  transition: background .3s ease, transform .3s ease;
}
.nav-btn:hover { background: rgba(201,162,78,.22); transform: translateY(-3px); }

/* ---------- footer ---------- */
.footer {
  background: #120a03;
  padding: 2.2rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(201,162,78,.25);
}
.footer .links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer a { color: var(--cream); text-decoration: none; font-size: .95rem; }
.footer a:hover { color: var(--gold); }
.footer .credit { font-size: .8rem; color: var(--cream-dim); font-style: italic; }

@media (max-width: 560px) {
  .section { padding: 3.4rem 1.1rem; }
  .letter { padding: 1.8rem 1.5rem; }
}
