/* Sakura: krem lembut dan merah muda, foto sampul pudar dalam bingkai lengkung. */
@import url('https://fonts.googleapis.com/css2?family=Alata&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,700&family=Lobster&family=Mrs+Saint+Delafield&display=swap');

:root {
    --bg: #f5f3e8; --card: #ffffff; --ink: #3e3e3e; --muted: #6c757d; --line: #eadfe3;
    --accent: #bd91a5; --on-accent: #ffffff;
    --font-head: 'Alata', system-ui, sans-serif; --font-name: 'Lobster', cursive; --font-body: 'DM Sans', system-ui, sans-serif;
}
body { background: #e9e5d6; --photo: var(--cover-img, linear-gradient(160deg, #f3dfe7, #f5f3e8)); }
/* Foto dipudarkan dengan lapisan krem agar teks gelap tetap terbaca. */
.cover, .hero::before { background: linear-gradient(#f5f3e8bf, #f5f3e8e6), var(--photo) center / cover no-repeat; }
.hero { isolation: isolate; padding-top: 5rem; min-height: 90svh; display: grid; align-content: center; }
.hero::before { content: ''; position: absolute; inset: 1.25rem 1.25rem 0; z-index: -1; border-radius: 999px 999px 0 0; border: 1px solid #ffffffcc; }
/* Lingkaran merah muda dengan ranting daun gelap menyilang di atasnya. */
.ornament { -webkit-mask: none; mask: none; position: relative; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: #efc9d6; }
.ornament::after { content: ''; position: absolute; inset: 0 -26px; background: #4a3b3f; rotate: -55deg;
    -webkit-mask: url(/themes/ornaments/daun.svg) center / contain no-repeat; mask: url(/themes/ornaments/daun.svg) center / contain no-repeat; }
.closing .ornament { margin: 1.5rem auto 0; }
.cover .deco, .closing .deco { display: block; --deco: url(/themes/ornaments/bunga.svg); --deco-color: #d9a3b6; --deco-opacity: .6; }
.eyebrow { font: 400 2.6rem 'Mrs Saint Delafield', cursive; letter-spacing: 0; text-transform: none; margin-bottom: 0; }
.names { font-size: clamp(2.2rem, 10vw, 3rem); }
.hero > .date { justify-self: center; padding: .3rem 1.3rem; background: #e8a9b8; color: #fff; font: italic 700 1rem var(--font-body); }
.title { font-family: var(--font-name); color: var(--accent); }
.card { border-radius: 20px; }
.person img { border-radius: 999px 999px 16px 16px; height: 200px; }
.hero > .countdown { width: 100%; }
.hero-photo { display: none; }

/* Hiasan berwarna di sudut (public/themes/hiasan). */
.cover .deco, .sheet section .deco { display: block; --deco: none; --deco-img: url(/themes/hiasan/mawar-blush.svg); --deco-opacity: .95; }
/* Noda cat air bergantian kiri-kanan di bagian isi. */
.sheet section:not(.hero):nth-of-type(odd) { background: url(/themes/hiasan/cat-air-blush.svg) right -110px top 0 / 280px no-repeat; }
.sheet section:not(.hero):nth-of-type(even) { background: url(/themes/hiasan/cat-air-blush.svg) left -110px bottom 0 / 280px no-repeat; }
.sheet { background: url(/themes/hiasan/kertas.svg), var(--bg); }

/* Ranting di atas lingkaran merah muda bergoyang pelan. */
.ornament::after { animation: twig 6.5s ease-in-out infinite alternate; }
@keyframes twig { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .ornament::after { animation: none; } }
