/* ==========================================================
   TEMA MODERN MINIMALIS - tipografi editorial, navy & koral
   ========================================================== */
body.theme-modern {
  --bg: #f6f5f2;
  --bg-alt: #ecebe6;
  --surface: #ffffff;
  --text: #1c2236;
  --muted: #6c7184;
  --primary: #14213d;
  --primary-contrast: #ffffff;
  --accent: #ff6b4a;
  --border: rgba(20, 33, 61, .14);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-script: 'DM Serif Display', Georgia, serif;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: none;
  --cover-shade: linear-gradient(180deg, rgba(10, 16, 34, .25) 0%, rgba(10, 16, 34, .88) 100%);
  --hero-shade: linear-gradient(180deg, rgba(10, 16, 34, .3) 0%, rgba(10, 16, 34, .85) 100%);
}

.theme-modern .eyebrow { font-weight: 800; letter-spacing: .3em; font-size: .72rem; color: var(--accent); }
.theme-modern .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; padding: 1rem 1.6rem; }
.theme-modern .btn-sm { padding: .7rem 1.1rem; font-size: .7rem; }
.theme-modern .btn-ghost { border-width: 1.5px; }

/* Cover: tipografi besar, rata kiri, konten di bawah */
.theme-modern .cover { place-items: end stretch; text-align: left; }
.theme-modern .cover-inner { align-items: flex-start; max-width: 1060px; margin: 0 auto; padding-left: 24px; padding-right: 24px; padding-bottom: max(34px, env(safe-area-inset-bottom)); }
.theme-modern .cover-inner > * { max-width: 560px; }
.theme-modern .cover-names, .theme-modern .hero-names {
  align-items: flex-start; font-family: var(--font-display); line-height: .92; text-transform: none; letter-spacing: -.01em;
}
.theme-modern .cover-names { font-size: clamp(3.6rem, 19vw, 8.4rem); }
.theme-modern .names .amp { font-style: italic; font-size: .42em; color: var(--accent); margin: .1em 0 .12em .06em; }
.theme-modern .cover-date { font-weight: 800; letter-spacing: .24em; font-size: .78rem; }
.theme-modern .cover-guest { background: rgba(255, 255, 255, .08); border-radius: 4px; border-color: rgba(255, 255, 255, .25); text-align: left; max-width: 420px; }
.theme-modern .cover-guest .guest-name { font-size: 1.4rem; }
.theme-modern .btn-open { background: var(--accent); color: #fff; animation: none; }

/* Lencana berputar */
.theme-modern .orn-badge { position: absolute; top: max(22px, env(safe-area-inset-top)); right: 20px; width: clamp(86px, 24vw, 128px); aspect-ratio: 1; color: #fff; z-index: 2; }
.theme-modern .orn-badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.theme-modern .orn-badge .badge-text { font: 800 8.6px 'Manrope', sans-serif; letter-spacing: 2.2px; fill: currentColor; }
.theme-modern .orn-badge .badge-heart { fill: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.theme-modern .orn-line { position: absolute; z-index: 2; background: rgba(255, 255, 255, .5); pointer-events: none; }
.theme-modern .orn-line-a { left: 20px; right: 20px; top: 0; height: 0; }
.theme-modern .orn-line-b { display: none; }

/* Hero */
.theme-modern .hero { place-items: end stretch; text-align: left; }
.theme-modern .hero-inner { align-items: flex-start; max-width: 1060px; margin: 0 auto; padding: 6rem 1.25rem 6rem; }
.theme-modern .hero-names { font-size: clamp(3.6rem, 18vw, 9rem); }
.theme-modern .hero-date { font-weight: 800; letter-spacing: .24em; font-size: .8rem; border-top: 2px solid var(--accent); padding-top: .8rem; margin-top: .4rem; }
.theme-modern .countdown { max-width: 460px; margin-left: 0; gap: 0; }
.theme-modern .countdown > div { background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, .35); border-radius: 0; align-items: flex-start; padding: .2rem .9rem; -webkit-backdrop-filter: none; backdrop-filter: none; }
.theme-modern .countdown > div:first-child { border-left: 0; padding-left: 0; }
.theme-modern .countdown b { font-size: clamp(1.9rem, 8vw, 2.7rem); }
.theme-modern .scroll-cue { border-radius: 0; margin-left: 0; border-color: var(--accent); color: var(--accent); }

/* Section heading rata kiri bergaris */
.theme-modern .section { padding-top: 5rem; }
.theme-modern .sec-head { text-align: left; border-top: 2px solid var(--primary); padding-top: 1.1rem; display: grid; gap: .3rem; }
.theme-modern .sec-head .orn-divider { display: none; }
.theme-modern .sec-title { font-weight: 400; font-size: clamp(2.3rem, 9vw, 3.8rem); line-height: 1; }
.theme-modern .opening { text-align: left; margin-left: 0; font-size: 1.05rem; }

/* Mempelai: foto persegi + blok offset */
.theme-modern .couple { gap: 2.6rem; }
.theme-modern .person { text-align: left; max-width: none; }
.theme-modern .person .photo { width: min(320px, 100%); aspect-ratio: 4 / 5; margin: 0 0 1.5rem; box-shadow: 14px 14px 0 var(--accent); border-radius: 0; }
.theme-modern .person-name { font-size: 1.9rem; font-weight: 400; }
.theme-modern .couple-amp { font-size: 5rem; font-style: italic; text-align: center; }
.theme-modern .couple-amp .amp-char { display: inline-block; }

/* Kutipan */
.theme-modern .sec-quote { text-align: left; background: var(--primary); }
.theme-modern .orn-quote { font-family: var(--font-display); font-size: 7rem; line-height: .6; color: var(--accent); height: 3.2rem; }
.theme-modern .quote-text { font-style: normal; font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2.4rem); line-height: 1.35; }
.theme-modern .quote-src { color: var(--accent); font-weight: 800; letter-spacing: .24em; font-size: .72rem; }

/* Acara: baris bergaris */
.theme-modern .sec-events { background: var(--bg); }
.theme-modern .events { gap: 0; grid-template-columns: 1fr; }
.theme-modern .event {
  background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
  flex-direction: column; align-items: flex-start; text-align: left; padding: 2rem 0;
}
.theme-modern .events .event:only-child { max-width: none; }
.theme-modern .event-date { align-items: flex-start; flex-direction: row; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
.theme-modern .event-date .dd { font-size: 4.6rem; font-weight: 400; line-height: .9; color: var(--primary); }
.theme-modern .event-date .dow { color: var(--accent); }
.theme-modern .event-title { font-size: 2rem; font-weight: 400; }
.theme-modern .event-actions { justify-content: flex-start; }
.theme-modern .hashtag { text-align: left; font-size: 1rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* Galeri */
.theme-modern .gallery { gap: 4px; }
.theme-modern .g-item { border-radius: 0; }

/* Hadiah */
.theme-modern .sec-gift { background: var(--bg-alt); }
.theme-modern .gift-card { border: 1px solid var(--primary); border-radius: 0; background: var(--surface); align-items: flex-start; text-align: left; }
.theme-modern .gift-bank { color: var(--accent); }
.theme-modern .gift-no { font-size: 1.7rem; }
.theme-modern .center.gift-note { text-align: left; }

/* RSVP */
.theme-modern .rsvp-form { border: 1px solid var(--primary); border-radius: 0; box-shadow: none; }
.theme-modern .rsvp-stats > div { border-radius: 0; }
.theme-modern .pills span { border-radius: 4px; }
.theme-modern .wish { border-radius: 0; border-left: 3px solid var(--accent); }
.theme-modern .badge { border-radius: 3px; }

/* Footer */
.theme-modern .footer { text-align: left; }
.theme-modern .closing { margin-left: 0; }
.theme-modern .footer-names { font-family: var(--font-display); font-size: clamp(2.6rem, 12vw, 5rem); color: #fff; }
.theme-modern .footer-tag { color: var(--accent); font-weight: 800; letter-spacing: .2em; font-size: .8rem; text-transform: uppercase; }

/* Dock & musik */
.theme-modern .dock { border-radius: 8px; background: rgba(255, 255, 255, .92); }
.theme-modern .dock a { border-radius: 6px; }
.theme-modern .dock a.active { background: var(--accent); color: #fff; }
.theme-modern .music-btn { border-radius: 8px; background: var(--accent); color: #fff; border: 0; }
.theme-modern .lightbox img { border-radius: 0; }

@media (min-width: 720px) {
  .theme-modern .events { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .theme-modern .events .event:only-child { grid-column: 1 / -1; }
}
