/* ============ Wedding Landing — Arya & Dinda ============ */
:root {
  --bg: #fdfbf7;
  --ink: #2f2a26;
  --muted: #7a7269;
  --gold: #b08d57;
  --gold-soft: #d9c39a;
  --green: #1d2b23;
  --green-2: #24382d;
  --rose: #c98383;
  --card: #ffffff;
  --line: #ece5da;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

/* ============ Animations ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp .9s ease forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .6s; }
.delay-5 { animation-delay: .75s; }

.fade-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-scroll.visible { opacity: 1; transform: translateY(0); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f5efe4;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(176,141,87,.22), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(201,131,131,.14), transparent 50%),
    linear-gradient(160deg, var(--green) 0%, var(--green-2) 55%, #16211b 100%);
  overflow: hidden;
  padding: 80px 24px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.monogram {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  letter-spacing: .12em;
  color: var(--gold-soft);
  border: 1px solid rgba(217,195,154,.45);
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  border-radius: 50%;
}
.monogram span { font-style: italic; margin: 0 .08em; color: var(--gold); }
.monogram.small { width: 74px; height: 74px; font-size: 1.5rem; margin-bottom: 14px; }

.eyebrow {
  font-size: .8rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.couple-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  line-height: 1.12;
  letter-spacing: .02em;
}
.couple-name .amp {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  margin: 0 .12em;
}

.wedding-date {
  margin-top: 18px;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(.72rem, 2.2vw, .9rem);
  color: rgba(245,239,228,.85);
}

/* Countdown */
.countdown {
  display: flex;
  gap: clamp(8px, 2.5vw, 18px);
  justify-content: center;
  margin: 40px 0 36px;
}
.cd-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(217,195,154,.28);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 14px clamp(10px, 3vw, 22px);
  min-width: clamp(64px, 18vw, 96px);
}
.cd-box span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  color: var(--gold-soft);
  line-height: 1.2;
}
.cd-box label {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245,239,228,.6);
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  text-decoration: none;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .74rem;
  border-radius: 999px;
  transition: .35s ease;
}
.hero-btn:hover { background: var(--gold); color: var(--green); }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(217,195,154,.5);
  border-radius: 14px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--gold-soft);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============ Section umum ============ */
section { padding: clamp(64px, 10vw, 110px) 0; }

.section-label {
  font-size: .72rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 18px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: .95rem;
}

/* ============ Sambutan ============ */
.welcome {
  background:
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.welcome-text {
  color: var(--muted);
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  margin-top: 8px;
}
.welcome-couple {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 26px;
}

/* ============ Guestbook ============ */
.guestbook { background: var(--bg); }

.gb-form {
  max-width: 640px;
  margin: 0 auto 52px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 18px 40px -28px rgba(47,42,38,.35);
}
.gb-row { position: relative; margin-bottom: 16px; }

.gb-form input,
.gb-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: #fbf9f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  resize: vertical;
  transition: border-color .25s;
}
.gb-form input:focus,
.gb-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.gb-form textarea { padding-bottom: 28px; }

.char-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: .68rem;
  color: var(--muted);
  pointer-events: none;
}

.gb-submit {
  width: 100%;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, #96733f 100%);
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: .3s ease;
}
.gb-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gb-submit:disabled { opacity: .6; cursor: wait; transform: none; }

.gb-status {
  text-align: center;
  font-size: .84rem;
  margin-top: 12px;
  min-height: 1.2em;
  color: var(--gold);
}
.gb-status.err { color: #c0392b; }

/* Wall of messages */
.gb-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.gb-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp .5s ease both;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -22px rgba(47,42,38,.4);
}

.gb-card-head { display: flex; align-items: center; gap: 12px; }
.gb-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--gold));
}
.gb-meta { line-height: 1.3; }
.gb-name { font-weight: 600; font-size: .95rem; }
.gb-time { font-size: .72rem; color: var(--muted); }

.gb-msg {
  font-size: .92rem;
  color: #55504a;
  white-space: pre-wrap;
  word-break: break-word;
}

.gb-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 30px 0;
  font-style: italic;
}

/* ============ Footer ============ */
.footer {
  background: var(--green);
  color: rgba(245,239,228,.8);
  text-align: center;
  padding: 56px 24px;
}
.footer p { font-size: .88rem; }
.footer .monogram.small {
  color: var(--gold-soft);
  border-color: rgba(217,195,154,.4);
  margin: 0 auto 16px;
}
.footer-date {
  margin-top: 8px;
  letter-spacing: .35em;
  font-size: .72rem !important;
  color: var(--gold-soft);
}

/* ============ Responsive ============ */
@media (max-width: 520px) {
  .monogram { width: 104px; height: 104px; }
  .cd-box { padding: 11px 8px; }
  .countdown { gap: 7px; }
}
