/* Tema halaman tamu (undangan digital). Warna dan font datang dari variabel di <body>. */
body.tema { margin: 0; background: var(--t-bg); color: var(--t-ink); font-family: "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.6; background-image: none; }
.tema *, .tema *::before, .tema *::after { box-sizing: border-box; }
.tema h1, .tema h2, .tema p { max-width: none; }
.tema h1, .tema h2 { font-family: var(--t-head); letter-spacing: 0; margin: 0; color: var(--t-ink); }
.tema a { color: inherit; }
.tema .tm-h { margin-bottom: 1rem; }
.tema .tm-btn, .tema .tm-sticky { color: var(--t-on); }
.tema .tm-link { color: var(--t-sub); }
.tm { max-width: 720px; margin: 0 auto; padding: 0 1.25rem 5rem; }
.tm-demo { margin: 0 -1.25rem 1.2rem; padding: 0.55rem 1.25rem; text-align: center; font-size: 0.82rem; background: var(--t-ink); color: var(--t-bg); }
html.in-frame .tm-demo { display: none; }

/* Tombol dan chip */
.tm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0.8rem 1.6rem; border-radius: 12px; background: var(--t-accent); color: var(--t-on); font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.tm-btn:hover { filter: brightness(0.94); }
.tm-btn-block { width: 100%; margin-top: 1rem; }
.tm-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; color: var(--t-sub); }
.tm-chip { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 1rem; min-height: 44px; border-radius: 999px; border: 1px solid var(--t-line); background: var(--t-card); color: var(--t-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.tm-chip:hover { border-color: var(--t-accent); }
.tema :focus-visible { outline: 2px solid var(--t-ink); outline-offset: 3px; }
.tema.tema-malam :focus-visible { outline-color: var(--t-accent); }

/* Hero */
.tm-hero { display: grid; gap: 1.6rem; padding: 2.2rem 0 1rem; }
.tm-media { display: grid; justify-items: center; }
.tm-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--t-line); }
.tm-frame { width: min(300px, 80%); height: auto; }
.tm-eyebrow { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--t-sub); font-weight: 600; }
.tm-names { font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.04; font-weight: 700; }
.tm-when { margin: 0.9rem 0 0; font-size: 1.1rem; font-weight: 600; }
.tm-where { margin: 0.1rem 0 0; color: var(--t-sub); }
.tm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 1.5rem; }

/* Bagian */
.tm-sec { padding: 2.4rem 0 0.4rem; }
.tm-h { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 1rem; }
.tm-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.tm-clock div { background: var(--t-card); border: 1px solid var(--t-line); border-radius: 12px; padding: 0.9rem 0.3rem; text-align: center; }
.tm-clock b { display: block; font-family: var(--t-head); font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tm-clock span { font-size: 0.8rem; color: var(--t-sub); }
.tm-done { margin: 0.8rem 0 0; color: var(--t-sub); }
.tm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.tm-card { background: var(--t-card); border: 1px solid var(--t-line); border-radius: 12px; padding: 0.95rem 1rem; display: grid; gap: 0.15rem; align-content: start; }
.tm-card small { color: var(--t-sub); font-size: 0.82rem; }
.tm-card b { font-size: 1.05rem; }
.tm-card span { color: var(--t-sub); font-size: 0.92rem; }
.tm-card-wide { grid-column: 1 / -1; }
.tm-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.tm-welcome p { margin: 0; font-family: var(--t-head); font-size: clamp(1.2rem, 4.2vw, 1.55rem); line-height: 1.5; }
.tm-booth { display: grid; gap: 1.4rem; }
.tm-booth p { margin: 0 0 0.9rem; color: var(--t-sub); }
.tm-label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }
.tm-input { width: 100%; min-height: 50px; padding: 0.7rem 1rem; font: inherit; color: var(--t-ink); background: var(--t-card); border: 1px solid var(--t-line); border-radius: 12px; }
.tm-quick { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.tm-note { margin: 0.7rem 0 0 !important; font-size: 0.85rem; text-align: center; }
.tm-booth-frame { display: grid; justify-items: center; align-content: start; }
.tm-booth-frame .tm-frame { width: min(260px, 70%); }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.tm-shot { padding: 0; border: 0; background: var(--t-line); border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.tm-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-more { margin: 0.9rem 0 0; color: var(--t-sub); }
.tm-foot { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--t-line); text-align: center; color: var(--t-sub); font-size: 0.88rem; }
.tm-sticky { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 20; padding: 0.85rem 1.6rem; border-radius: 12px; background: var(--t-accent); color: var(--t-on); font-weight: 700; text-decoration: none; }
.tm-sticky[hidden] { display: none; }
.tm-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 520px); }
.tm-lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.tm-lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.tm-lightbox p { margin: 0.5rem 0 0; color: #fff; text-align: center; }
.tm-close { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; font: inherit; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 8px; border: 0; background: #fff; color: #1a1612; cursor: pointer; }

/* Muncul saat di-scroll */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }

/* ===== center: Klasik ===== */
.tm[data-layout="center"] .tm-hero { text-align: center; justify-items: center; border: 1px solid var(--t-line); outline: 1px solid var(--t-line); outline-offset: 6px; margin-top: 0.6rem; padding: 2rem 1.2rem 2.2rem; }
.tm[data-layout="center"] .tm-cover { width: min(300px, 80%); border-radius: 160px 160px 8px 8px; }
.tm[data-layout="center"] .tm-actions { justify-content: center; }
.tm[data-layout="center"] .tm-eyebrow { font-family: "Caveat", cursive; font-size: 1.5rem; font-weight: 600; color: var(--t-accent-ink); }
.tm[data-layout="center"] .tm-eyebrow::after { content: ""; display: block; width: 7px; height: 7px; margin: 0.6rem auto 0; background: var(--t-accent); transform: rotate(45deg); }
.tm[data-layout="center"] .tm-sec { text-align: center; }
.tm[data-layout="center"] .tm-tools { justify-content: center; }
.tm[data-layout="center"] .tm-booth { text-align: left; }

/* ===== split: Modern ===== */
.tema-modern .tm { max-width: 1040px; }
.tm[data-layout="split"] .tm-names { font-size: clamp(3rem, 13vw, 5.4rem); line-height: 0.98; font-weight: 800; letter-spacing: -0.02em; }
.tm[data-layout="split"] .tm-eyebrow { color: var(--t-accent-ink); font-weight: 700; }
.tm[data-layout="split"] .tm-cover { aspect-ratio: 4 / 5; border-radius: 4px; }
.tm[data-layout="split"] .tm-media { position: relative; order: 2; padding: 0 14px 14px 0; }
.tm[data-layout="split"] .tm-media::before { content: ""; position: absolute; inset: 14px 0 0 14px; background: var(--t-accent); border-radius: 4px; z-index: 0; }
.tm[data-layout="split"] .tm-cover, .tm[data-layout="split"] .tm-frame { position: relative; z-index: 1; }
.tm[data-layout="split"] .tm-copy { order: 1; }
.tm[data-layout="split"] .tm-sec { border-top: 1px solid var(--t-ink); margin-top: 2.4rem; padding-top: 1.2rem; }
.tm[data-layout="split"] .tm-h { font-size: 1.1rem; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; }
.tm[data-layout="split"] .tm-clock div, .tm[data-layout="split"] .tm-card { border-radius: 4px; }
@media (min-width: 860px) {
  .tm[data-layout="split"] .tm-hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem; padding-top: 3.5rem; }
  .tm[data-layout="split"] .tm-cards { grid-template-columns: repeat(3, 1fr); }
  .tm[data-layout="split"] .tm-card-wide { grid-column: auto; }
  .tm[data-layout="split"] .tm-booth { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ===== arch: Garden ===== */
.tm[data-layout="arch"] .tm-hero { text-align: center; justify-items: center; }
.tm[data-layout="arch"] .tm-media { position: relative; padding-top: 12px; }
.tm[data-layout="arch"] .tm-cover { width: min(320px, 84%); border-radius: 999px 999px 12px 12px; position: relative; z-index: 1; }
.tm[data-layout="arch"] .tm-media::before { content: ""; position: absolute; top: 0; left: 50%; width: min(344px, 90%); height: calc(100% + 0px); transform: translateX(-50%); border: 2px solid var(--t-accent); border-radius: 999px 999px 18px 18px; }
.tm[data-layout="arch"] .tm-names { font-weight: 600; font-style: italic; font-size: clamp(3rem, 12vw, 4.8rem); }
.tm[data-layout="arch"] .tm-eyebrow { font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--t-sub); }
.tm[data-layout="arch"] .tm-actions { justify-content: center; }
.tm[data-layout="arch"] .tm-sec { text-align: center; }
.tm[data-layout="arch"] .tm-h::after { content: ""; display: block; width: 56px; height: 2px; background: var(--t-accent); margin: 0.7rem auto 0; }
.tm[data-layout="arch"] .tm-tools { justify-content: center; }
.tm[data-layout="arch"] .tm-booth { text-align: left; }
.tm[data-layout="arch"] .tm-booth .tm-h::after { margin-left: 0; }
.tm[data-layout="arch"] .tm-clock div, .tm[data-layout="arch"] .tm-card { border-radius: 999px; padding-block: 1.1rem; }
.tm[data-layout="arch"] .tm-card { border-radius: 20px; }

/* ===== cover: Malam ===== */
body.tema-malam { --tm-ov: rgba(12, 10, 8, 0.55); }
.tm[data-layout="cover"] { max-width: none; padding: 0 0 5rem; }
.tm[data-layout="cover"] > :not(.tm-hero):not(.tm-demo) { max-width: 720px; margin-inline: auto; padding-inline: 1.25rem; }
.tm[data-layout="cover"] .tm-foot { max-width: 720px; margin-inline: auto; }
.tm[data-layout="cover"] .tm-hero { position: relative; min-height: 100svh; padding: 0; display: flex; align-items: flex-end; }
.tm[data-layout="cover"] .tm-media { position: absolute; inset: 0; }
.tm[data-layout="cover"] .tm-cover { width: 100%; height: 100%; aspect-ratio: auto; }
.tm[data-layout="cover"] .tm-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 8, 0.88) 0%, rgba(12, 10, 8, 0.35) 55%, rgba(12, 10, 8, 0.1) 100%); }
.tm[data-layout="cover"] .tm-copy { position: relative; z-index: 1; padding: 2rem 1.5rem 3rem; max-width: 720px; margin: 0 auto; width: 100%; color: #f6efe6; }
.tm[data-layout="cover"] .tm-names, .tm[data-layout="cover"] .tm-when { color: #fff; }
.tm[data-layout="cover"] .tm-eyebrow, .tm[data-layout="cover"] .tm-where, .tm[data-layout="cover"] .tm-link { color: #e9dcc0; }
.tm[data-layout="cover"] .tm-names { font-size: clamp(3rem, 14vw, 5.6rem); }
.tm[data-layout="cover"] .tm-demo { margin: 0; position: relative; z-index: 3; }
.tm.no-cover[data-layout="cover"] .tm-hero { min-height: auto; padding: 2.5rem 1.25rem; display: grid; justify-items: center; text-align: center; }
.tm.no-cover[data-layout="cover"] .tm-media { position: static; }
.tm.no-cover[data-layout="cover"] .tm-copy { padding: 1rem 0 0; }
.tm.no-cover[data-layout="cover"] .tm-actions { justify-content: center; }
.tm[data-layout="cover"] .tm-clock div { background: transparent; }

/* ===== stack: Pop ===== */
.tm[data-layout="stack"] .tm-names { font-weight: 800; font-size: clamp(3.2rem, 15vw, 6rem); line-height: 0.95; letter-spacing: -0.03em; }
.tm[data-layout="stack"] .tm-eyebrow { display: inline-block; background: var(--t-accent); color: var(--t-on); padding: 0.2rem 0.7rem; border-radius: 6px; font-weight: 700; transform: rotate(-2deg); }
.tm[data-layout="stack"] .tm-media { padding: 0.8rem 0.6rem; }
.tm[data-layout="stack"] .tm-cover, .tm[data-layout="stack"] .tm-frame { transform: rotate(-3deg); border: 3px solid var(--t-ink); box-shadow: 6px 6px 0 var(--t-ink); border-radius: 6px; width: min(300px, 82%); }
.tm[data-layout="stack"] .tm-btn, .tm[data-layout="stack"] .tm-sticky { border: 2px solid var(--t-ink); box-shadow: 4px 4px 0 var(--t-ink); }
.tm[data-layout="stack"] .tm-clock div, .tm[data-layout="stack"] .tm-card { border: 2px solid var(--t-ink); box-shadow: 3px 3px 0 var(--t-ink); border-radius: 8px; }
.tm[data-layout="stack"] .tm-clock div:nth-child(odd) { background: var(--t-accent); color: var(--t-on); }
.tm[data-layout="stack"] .tm-clock div:nth-child(odd) span { color: var(--t-on); }
.tm[data-layout="stack"] .tm-h { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 5vw, 2rem); }
.tm[data-layout="stack"] .tm-chip { border: 2px solid var(--t-ink); }
.tm[data-layout="stack"] .tm-shot { border: 2px solid var(--t-ink); }
@media (min-width: 860px) {
  .tm[data-layout="stack"] { max-width: 960px; }
  .tm[data-layout="stack"] .tm-hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 2rem; padding-top: 3rem; }
  .tm[data-layout="stack"] .tm-media { order: 2; }
}
@media (min-width: 640px) { .tm-grid { grid-template-columns: repeat(4, 1fr); } .tm-booth { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
@media (min-width: 860px) { .tm[data-layout="center"] .tm-booth, .tm[data-layout="arch"] .tm-booth { grid-template-columns: 1.2fr 0.8fr; } }
