/* assets/css/style.css — gaya khusus di luar utilitas Tailwind */

html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
/* overflow-wrap: kata sangat panjang di layar sempit turun baris, tidak menembus kolom */
.font-display { font-family: 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -0.02em; overflow-wrap: break-word; }
::selection { background: #FFE500; color: #121212; }

/* Kartu bergaya "cetak": garis tebal + bayangan keras */
.card-hard {
    background: #fff;
    border: 2px solid #121212;
    box-shadow: 6px 6px 0 #121212;
    transition: transform .15s ease, box-shadow .15s ease;
}
a.card-hard:hover, button.card-hard:hover {
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 #121212;
}

/* Tombol bergaya sama */
.btn-hard {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 2px solid #121212;
    box-shadow: 4px 4px 0 #121212;
    font-weight: 700;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn-hard:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #121212; }
.btn-hard:active { transform: translate(2px, 2px);   box-shadow: 1px 1px 0 #121212; }

/* Fokus keyboard yang jelas */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #EC008C; outline-offset: 2px;
}

/* Efek butiran film halus di atas hero */
.grain::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Titik halftone dekoratif */
.halftone {
    background-image: radial-gradient(#121212 1.4px, transparent 1.6px);
    background-size: 12px 12px;
}

/* Marquee */
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Gerak lembut bentuk hero */
.animate-float      { animation: float 7s ease-in-out infinite; }
.animate-float-slow { animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }

/* Muncul saat di-scroll (hanya aktif bila JS jalan) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Isi artikel berita */
.artikel p { margin: 0 0 1.4rem; line-height: 1.9; font-size: 1.075rem; }

/* Hormati preferensi "kurangi gerak" */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee, .animate-float, .animate-float-slow { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .card-hard, .btn-hard { transition: none; }
}
