@import url("_tren.css");
/* ==========================================================
   DInvite — Tema "Japandi Sakura" (koleksi Tren)
   Kertas washi, garis tipis, ruang kosong yang lega. Lingkaran ensō
   yang tergores sendiri, ranting sakura bertinta, gulungan kakejiku
   untuk foto, cap hanko merah berinisial, kelopak sakura berguguran.
   ========================================================== */
.t-trjapandi {
    --bg: #f4f1ea; --card: #fbf9f4; --ink: #2b2824; --muted: #77716a; --line: rgba(43,40,36,.16);
    --accent: #b8432f; --accent-2: #7e8b72; --on-accent: #fbf8f2; --hero-rgb: 43,40,36; --tint-a: .3; --hero-ink: #2b2824;
    --deep: #26231f; --soft: #e9e3d7; --field: #fdfcf8; --ring: rgba(184,67,47,.14);
    --fn: 'Shippori Mincho', 'Noto Serif JP', serif; --fh: 'Shippori Mincho', serif; --fb: 'Zen Kaku Gothic New', sans-serif;
    --fn-w: 500; --fn-k: .78; --fn-ls: .06em; --fh-w: 500; --fh-ls: .12em;
    --washi: url(../../img/themes/trjapandi/washi.jpg) 0 0 / 420px 420px;
    --card-r: 0; --btn-r: 0; --cd-r: 0; --ph-r: 0;
    --card-sh: none;
    color-scheme: light;
}
@keyframes jpDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes jpUnroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes jpStamp { 0% { opacity: 0; transform: scale(1.6) rotate(-8deg); } 60% { opacity: 1; transform: scale(.96) rotate(-3deg); } 100% { opacity: .92; transform: scale(1) rotate(-4deg); } }
@keyframes jpBloom { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes jpSway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.4deg); } }

body.t-trjapandi .page, .t-trjapandi .cover, .t-trjapandi .hero, .t-trjapandi .aside, body.t-trjapandi .cover.has-photo, body.t-trjapandi .hero.has-photo, body.t-trjapandi .aside.has-photo { background: var(--washi), var(--bg); }
.t-trjapandi .sec--tint, .t-trjapandi .sec--countdown { background: linear-gradient(rgba(126,139,114,.06), rgba(126,139,114,.06)), var(--washi), var(--bg); }
.t-trjapandi .names { font-size-adjust: none; }
body.t-trjapandi .names i { font-family: var(--fn); font-style: normal; color: var(--accent); font-size: .5em; }
body.t-trjapandi .kicker { color: var(--muted); letter-spacing: .5em; font-weight: 500; }

/* Ranting sakura (jp-branch dari trjapandi.js) */
.t-trjapandi .jp-branch { position: absolute; top: 0; right: 0; width: min(270px, 68vw); pointer-events: none; z-index: 2; transform-origin: 100% 0; animation: jpSway 9s ease-in-out infinite; }
.t-trjapandi .jp-branch--bl { top: auto; right: auto; bottom: 0; left: 0; width: min(200px, 50vw); transform: rotate(180deg); animation: none; opacity: .9; }
.t-trjapandi .jp-branch svg { display: block; width: 100%; height: auto; overflow: visible; }
.t-trjapandi .jp-branch .jp-ink { fill: none; stroke: #3a332c; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: jpDraw 2.4s var(--ease) .2s forwards; }
.t-trjapandi .jp-branch .jp-fl { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: jpBloom .8s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(1.4s + var(--i) * .09s); }
.t-trjapandi .jp-lines { position: absolute; inset: 22px 18px; pointer-events: none; z-index: 1; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.t-trjapandi .jp-vert { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font: 500 .62rem/1 var(--fb); letter-spacing: .5em; color: var(--muted); z-index: 2; white-space: nowrap; }
.t-trjapandi .jp-vert b { color: var(--accent); font-weight: 700; }

/* Ensō & hanko */
.t-trjapandi .jp-enso { position: relative; display: grid; place-items: center; width: min(280px, 74vw); aspect-ratio: 1; margin: 0 auto; }
.t-trjapandi .jp-enso > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.t-trjapandi .jp-enso > svg path { fill: none; stroke: #2b2824; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .88; }
.t-trjapandi .jp-enso.is-drawn > svg path { animation: jpDraw 2.2s cubic-bezier(.6,.05,.3,1) forwards; }
.t-trjapandi .jp-enso.is-drawn > svg path + path { animation-duration: 2.4s; opacity: .35; }
.t-trjapandi .jp-enso .names { position: relative; z-index: 1; margin: 0; font-size: calc(clamp(2.4rem, 11vw, 3.2rem) * var(--fn-k)); line-height: 1.12; }
.t-trjapandi .jp-enso .names br { display: none; }
body.t-trjapandi .jp-enso .names i { display: block; margin: .15em 0; line-height: 1; vertical-align: 0; }
.t-trjapandi .jp-hanko { display: inline-grid; place-items: center; width: 54px; height: 54px; margin: .6rem auto 0; border: 2px solid var(--accent); border-radius: 6px; color: var(--accent); font: 700 1.05rem/1 var(--fn); letter-spacing: .02em; transform: rotate(-4deg); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px rgba(184,67,47,.65); background: rgba(184,67,47,.06); opacity: 0; }
.t-trjapandi .jp-hanko.is-drawn { animation: jpStamp .7s cubic-bezier(.3,1.4,.5,1) 1.6s forwards; }

/* Gulungan kakejiku untuk foto */
.t-trjapandi .jp-scroll { position: relative; width: min(170px, 44vw); margin: 0 auto 1rem; padding: 12px 10px; background: #e9e2d3; box-shadow: 0 18px 30px -22px rgba(0,0,0,.5); animation: jpUnroll 1.6s cubic-bezier(.6,.05,.3,1) .2s both; }
.t-trjapandi .jp-scroll::before, .t-trjapandi .jp-scroll::after { content: ''; position: absolute; left: -10px; right: -10px; height: 9px; border-radius: 5px; background: linear-gradient(180deg, #6a5440, #3e2f22); }
.t-trjapandi .jp-scroll::before { top: -5px; } .t-trjapandi .jp-scroll::after { bottom: -5px; }
.t-trjapandi .jp-scroll > i { display: block; aspect-ratio: 3 / 4.4; background: var(--cover, var(--tp-hero, none)) center 25% / cover no-repeat, #d7cdb9; outline: 1px solid rgba(43,40,36,.2); outline-offset: 4px; }

/* Sampul */
.t-trjapandi .cover, body.t-trjapandi .cover.has-photo { place-items: center; padding: 3rem 2.2rem; overflow: hidden; color: var(--ink); }
.t-trjapandi .cover__inner { position: relative; z-index: 3; gap: .45rem; max-width: 330px; }
.t-trjapandi .cover .kicker { animation: trFade 1.4s ease .3s both; }
.t-trjapandi .cover__date { letter-spacing: .32em; color: var(--ink); animation: trFade 1.4s ease 1.2s both; }
.t-trjapandi .cover__to { margin: .8rem 0 .9rem; padding: .8rem .4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); animation: trFade 1.2s ease 1.5s both; }
.t-trjapandi .cover__to small { color: var(--muted); }
.t-trjapandi .cover__to strong { font: 500 1.3rem var(--fn); letter-spacing: .04em; color: var(--ink); }
.t-trjapandi .cover .ibtn { animation: trFade 1.2s ease 1.8s both; }
body.t-trjapandi .ibtn { border-color: var(--ink); color: var(--ink); letter-spacing: .3em; }
body.t-trjapandi .ibtn:hover { background: var(--ink); color: var(--bg); }
body.t-trjapandi .ibtn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.t-trjapandi .ibtn--solid::after { display: none; }
body.t-trjapandi .ibtn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.t-trjapandi .cover.is-open { transform: none; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
@media (max-height: 740px) { .t-trjapandi .jp-enso { width: min(220px, 60vw); } .t-trjapandi .cover__to small:last-child { display: none; } .t-trjapandi .cover__inner { gap: .3rem; } .t-trjapandi .jp-hanko { width: 44px; height: 44px; font-size: .9rem; } }

/* Pembuka */
.t-trjapandi .hero, .t-trjapandi .aside, body.t-trjapandi .hero.has-photo, body.t-trjapandi .aside.has-photo { position: relative; overflow: hidden; min-height: 100svh; color: var(--ink); place-items: center; padding: 5rem 2.2rem; }
.t-trjapandi .hero__inner, .t-trjapandi .aside__inner { position: relative; z-index: 3; }
body.t-trjapandi.is-locked .jp-scroll { animation-play-state: paused; }

/* Bagian */
.t-trjapandi .sec { padding-block: 5rem; }
body.t-trjapandi .sec__title { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
.t-trjapandi .sec__title::before { content: ''; display: block; width: 12px; height: 12px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--accent); }
.t-trjapandi .sec__title::after { content: ''; display: block; width: 1px; height: 34px; margin: 1rem auto 0; background: var(--ink); opacity: .35; }
body.t-trjapandi .event { padding: 2.2rem 1.4rem; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); background: transparent; }
body.t-trjapandi .event h3 { font-family: var(--fn); font-size: 1.5rem; letter-spacing: .12em; color: var(--ink); }
.t-trjapandi .event .divider { background: var(--accent); width: 8px; height: 8px; border-radius: 50%; }
body.t-trjapandi .countdown div { background: transparent; border: 0; border-left: 1px solid var(--line); }
body.t-trjapandi .countdown div:first-child { border-left: 0; }
body.t-trjapandi .countdown b { color: var(--ink); font-family: var(--fn); font-weight: 400; }
body.t-trjapandi .pframe::before { border: 1px solid var(--line); border-radius: 0; inset: -10px; box-shadow: none; }
body.t-trjapandi .pframe__arch { border-radius: 0; }
body.t-trjapandi .gallery__item { box-shadow: none; outline: 1px solid var(--line); outline-offset: 5px; }
body.t-trjapandi .rsvp, .t-trjapandi .gift, .t-trjapandi .wish, .t-trjapandi .lstory__card, .t-trjapandi .qr-card { border-radius: 0; }
body.t-trjapandi .quote { font-family: var(--fn); font-style: normal; line-height: 2.1; letter-spacing: .04em; }
body.t-trjapandi .thanks { font-family: var(--fn); color: var(--ink); letter-spacing: .1em; }
.t-trjapandi .sec--closing { position: relative; overflow: hidden; padding-block: 7rem 6rem; }
.t-trjapandi .sec--closing > :not(.jp-deco) { position: relative; z-index: 3; }
.t-trjapandi .jp-deco { position: absolute; inset: 0; pointer-events: none; }
.t-trjapandi .am-fall i { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .t-trjapandi .jp-branch .jp-ink, .t-trjapandi .jp-enso path { stroke-dashoffset: 0 !important; } .t-trjapandi .jp-fl { transform: none !important; } .t-trjapandi .jp-hanko { opacity: .92 !important; } }
.t-trjapandi .cover .jp-branch--bl { width: min(140px, 36vw); }
