/*
Theme Name: Arsip Tegal
Theme URI: https://dinarpus.tegalkota.go.id/
Author: Dinas Kearsipan dan Perpustakaan Kota Tegal
Description: Tema pameran arsip virtual bergaya editorial. Beranda seksi lengkap (hero slideshow, koleksi berfilter, linimasa sejarah, galeri lightbox, profil), halaman post penuh, arsip kategori, pencarian AJAX, dan pengaturan Customizer.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arsip-tegal
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready, right-sidebar
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --background: #F4EFE6;
  --foreground: #18120A;
  --card: #FAF7F2;
  --primary: #18120A;
  --primary-foreground: #F4EFE6;
  --secondary: #E6DDD0;
  --muted: #D9D0C0;
  --muted-foreground: #6E5D45;
  --accent: #B5841A;
  --accent-bright: #D4A030;
  --accent-foreground: #FAF7F2;
  --border: rgba(80,60,30,0.15);
}

html { scroll-behavior: smooth; font-size: 16px; width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { font-family: var(--font-body); background: var(--background); color: var(--foreground); line-height: 1.6; width: 100%; min-width: 0; overflow-x: hidden; }
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
button, a { cursor: pointer; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; }

.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 200; clip-path: none; width: auto; height: auto; background: var(--primary); color: var(--primary-foreground); padding: 10px 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== NAVBAR ===== */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.5s, border-color 0.5s; }
#navbar.scrolled, body.not-front #navbar { background: rgba(250,247,242,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding-left: clamp(1rem,3vw,2.5rem); padding-right: clamp(1rem,3vw,2.5rem); display: flex; align-items: center; justify-content: flex-start; gap: 0; height: 64px; }
@media(min-width:1024px){
  .nav-inner{ height: 80px; }
  /* Desktop: logo utama tetap di kiri, menu digeser ke kanan, lalu 3 logo pendukung. */
  .nav-logo{ position: static; flex: 0 0 auto; z-index: 3; }
  .nav-logo-img img{ max-height: 38px; width: auto; }
  .nav-links{ margin-left: auto; margin-right: 1.25rem; }
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-box { width: 36px; height: 36px; border: 1px solid rgba(181,132,26,0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.nav-logo-a { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--accent); line-height: 1; }
.nav-logo-line { width: 16px; height: 1px; background: rgba(181,132,26,0.6); margin-top: 2px; }
.nav-logo-img img { max-height: 44px; width: auto; }
@media(max-width:1023px){
  .nav-inner{ justify-content: space-between; }
  .nav-logo{ position: static; }
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.nav-logo-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 2px; }
.nav-links { display: none; gap: clamp(.8rem,1.6vw,1.5rem); list-style: none; }
@media(min-width:1024px){ .nav-links{ display: flex; align-items: center; } }
.nav-links a { font-family: var(--font-mono); font-size: clamp(8px,.75vw,10.5px); letter-spacing: clamp(.08em,.12vw,.14em); text-transform: uppercase; color: rgba(24,18,10,0.6); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--accent); }
.nav-support-logos { display: flex; align-items: center; gap: .45rem; margin-right: .8rem; flex: 0 0 auto; }
.nav-support-logo { width: 30px; height: 30px; object-fit: contain; opacity: .92; filter: drop-shadow(0 1px 2px rgba(0,0,0,.12)); }
@media(max-width:1023px){ .nav-support-logos{ display:none; } }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.btn-search { display: flex; align-items: center; gap: 0.5rem; padding: 6px 12px; border: 1px solid var(--border); background: none; color: rgba(24,18,10,0.6); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; transition: all 0.2s; white-space: nowrap; }
.btn-search:hover { border-color: rgba(181,132,26,0.4); color: var(--accent); }
.btn-search svg { flex-shrink: 0; }
.btn-search-label { display: none; }
@media(min-width:1024px){ .btn-search-label{ display: block; } }
.btn-menu { display: flex; padding: 8px; background: none; border: none; color: rgba(24,18,10,0.7); }
@media(min-width:1024px){ .btn-menu{ display: none; } }
#mobile-menu { display: none; background: var(--card); border-top: 1px solid var(--border); }
#mobile-menu.open { display: block; }
.mobile-nav { max-width: 1180px; margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; list-style: none; }
.mobile-nav a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(24,18,10,0.6); padding: 4px 0; display: block; }
.mobile-nav a:hover { color: var(--accent); }
.mobile-search-btn { display: flex; align-items: center; gap: 0.5rem; width: 100%; background: none; border: none; border-top: 1px solid var(--border); padding: 0.75rem 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(24,18,10,0.6); }

/* ===== HERO ===== */
#beranda { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 100svh; min-height: 100svh; max-height: 100svh; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; transform: translateX(100%); transition: transform 1.3s cubic-bezier(0.65,0,0.35,1); }
.hero-slide.active { transform: translateX(0); }
.hero-slide.prev { transform: translateX(-100%); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.2) brightness(0.45); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(24,18,10,0.82) 0%, rgba(24,18,10,0.5) 45%, rgba(24,18,10,0.88) 100%); }
.hero-grain { position: absolute; inset: 0; opacity: 0.2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-dots { position: absolute; z-index: 2; bottom: 2.35rem; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 22px; height: 2px; background: rgba(255,255,255,0.3); border: none; padding: 0; transition: background 0.3s; }
.hero-dot.active { background: rgba(212,160,48,0.9); }
.hero-corner { position: absolute; width: 48px; height: 48px; pointer-events: none; }
.hero-corner.tl { top: 80px; left: clamp(.75rem,3vw,2.5rem); border-left: 2px solid rgba(181,132,26,0.4); border-top: 2px solid rgba(181,132,26,0.4); }
.hero-corner.tr { top: 80px; right: clamp(.75rem,3vw,2.5rem); border-right: 2px solid rgba(181,132,26,0.4); border-top: 2px solid rgba(181,132,26,0.4); }
.hero-corner.bl { bottom: 2.5rem; left: clamp(.75rem,3vw,2.5rem); border-left: 2px solid rgba(181,132,26,0.4); border-bottom: 2px solid rgba(181,132,26,0.4); }
.hero-corner.br { bottom: 2.5rem; right: clamp(.75rem,3vw,2.5rem); border-right: 2px solid rgba(181,132,26,0.4); border-bottom: 2px solid rgba(181,132,26,0.4); }
.hero-content { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(5rem,11vh,7rem) clamp(1rem,3vw,2.5rem) clamp(1.25rem,3vh,2.5rem); }
.hero-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(181,132,26,0.9); margin-bottom: 1.5rem; animation: fadeUp 0.7s 0.3s both; }
.hero-h1 { font-family: var(--font-display); font-weight: 400; color: #fff; width: 100%; max-width: 1000px; font-size: clamp(2.35rem,6vw,5rem); line-height: 1.06; margin-bottom: 1.25rem; animation: fadeUp 0.9s 0.5s both; }
.hero-h1 em { font-style: italic; color: var(--accent-bright); }
.hero-divider { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; animation: fadeUp 0.8s 0.8s both; }
.hero-divider-line { height: 1px; width: 48px; background: rgba(181,132,26,0.5); }
.hero-divider-diamond { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(181,132,26,0.7); }
.hero-sub { width: min(100%,38rem); color: rgba(255,255,255,0.6); line-height: 1.7; font-size: clamp(.9rem,1.5vw,1.05rem); font-weight: 300; margin-bottom: 2.5rem; animation: fadeUp 0.8s 0.9s both; }
.hero-btns { display: flex; flex-direction: column; align-items: center; gap: 1rem; animation: fadeUp 0.8s 1.1s both; }
@media(min-width:640px){ .hero-btns{ flex-direction: row; } }
.btn-primary { padding: 12px 32px; background: var(--accent); color: var(--accent-foreground); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; border: none; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { padding: 12px 32px; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; background: none; transition: all 0.2s; }
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero-stats { margin-top: clamp(1.5rem,4vh,3.5rem); display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1rem,3vw,3rem); animation: fadeIn 1s 1.4s both; }
@media(min-width:640px){ .hero-stats{ grid-template-columns: repeat(4,1fr); } }
.stat-num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: rgba(255,255,255,0.9); line-height: 1; margin-bottom: 6px; }
.stat-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.hero-scroll { position: relative; display: flex; justify-content: center; padding-bottom: clamp(.75rem,2vh,1.5rem); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,0.35); background: none; border: none; animation: float 2.2s ease-in-out infinite; }
.scroll-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase; }

/* ===== SECTION COMMONS ===== */
section.page-section { padding: 6rem 0; }
@media(min-width:1024px){ section.page-section{ padding: 9rem 0; } }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: clamp(1rem,3vw,2.5rem); padding-right: clamp(1rem,3vw,2.5rem); }
.section-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem,3.5vw,3rem); font-weight: 400; }
.section-title em { font-style: italic; }

/* ===== KOLEKSI / CARD GRID ===== */
#koleksi { background: var(--background); }
.coll-header { display: grid; gap: 2.5rem; margin-bottom: 3.5rem; align-items: end; }
@media(min-width:1024px){ .coll-header{ grid-template-columns: 1fr 1fr; } }
.coll-desc { font-size: 0.95rem; font-weight: 300; color: var(--muted-foreground); line-height: 1.8; }
@media(min-width:1024px){ .coll-desc{ text-align: right; } }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); align-items: center; }
.filter-btn { display: flex; align-items: center; gap: 6px; padding: 6px 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--border); background: none; color: var(--muted-foreground); transition: all 0.2s; }
.filter-btn:hover { color: var(--foreground); border-color: rgba(24,18,10,0.25); }
.filter-btn.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.filter-count { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted-foreground); }
.coll-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
@media(min-width:768px){ .coll-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .coll-grid{ grid-template-columns: repeat(3,1fr); } }
.coll-card { background: var(--card); position: relative; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.coll-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.12); z-index: 2; }
.coll-card.is-hidden { display: none; }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--muted); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.25) contrast(1.08) brightness(0.96); transition: transform 0.7s; }
.coll-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-overlay { position: absolute; inset: 0; background: rgba(24,18,10,0.1); transition: background 0.3s; }
.coll-card:hover .card-overlay { background: transparent; }
.card-tag { position: absolute; top: 14px; left: 14px; background: var(--accent); padding: 2px 8px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-foreground); }
.card-arrow { position: absolute; bottom: 14px; right: 14px; width: 28px; height: 28px; background: var(--accent); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(4px); transition: all 0.3s; }
.coll-card:hover .card-arrow { opacity: 1; transform: translateY(0); }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.card-cat { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground); }
.card-year { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: var(--muted-foreground); }
.card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.35; margin-bottom: 0.5rem; transition: color 0.2s; }
.coll-card:hover .card-title { color: var(--accent); }
.card-desc { font-size: 0.87rem; font-weight: 300; color: var(--muted-foreground); line-height: 1.7; }
.card-footer { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-id { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; color: rgba(110,93,69,0.5); }
.card-cta { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--accent); opacity: 0; transition: all 0.2s; white-space: nowrap; }
.coll-card:hover .card-cta { opacity: 1; letter-spacing: 1px; }
.card-link { position: absolute; inset: 0; z-index: 3; }
.coll-footer { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--border); align-items: center; justify-content: space-between; }
@media(min-width:640px){ .coll-footer{ flex-direction: row; } }
.coll-footer-info { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 300; color: var(--muted-foreground); }
.btn-all { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(24,18,10,0.25); padding: 10px 28px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; background: none; transition: all 0.2s; }
.btn-all:hover { background: var(--primary); color: var(--primary-foreground); }
.coll-empty { grid-column: 1/-1; background: var(--card); padding: 3rem 1.5rem; text-align: center; }
.coll-empty p { font-size: .95rem; font-weight: 300; color: var(--muted-foreground); }
.coll-empty code { font-family: var(--font-mono); font-size: .85em; background: var(--secondary); padding: .1em .4em; }

/* ===== LINIMASA ===== */
#linimasa { background: var(--secondary); overflow: hidden; }
.timeline-grid { display: grid; gap: 0; }
@media(min-width:1024px){ .timeline-grid{ grid-template-columns: 2fr 3fr; gap: 3rem; } }
.timeline-list { display: flex; flex-direction: column; }
.tl-btn { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; text-align: left; background: none; border: none; border-left: 2px solid var(--border); width: 100%; transition: all 0.2s; }
.tl-btn:hover { border-left-color: rgba(181,132,26,0.4); background: rgba(250,247,242,0.5); }
.tl-btn.active { border-left-color: var(--accent); background: var(--card); }
.tl-year-wrap { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding-top: 2px; }
.tl-year { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1; color: var(--muted-foreground); transition: color 0.2s; }
.tl-btn.active .tl-year, .tl-btn:hover .tl-year { color: var(--accent); }
.tl-era { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(110,93,69,0.6); margin-top: 2px; text-align: center; }
.tl-title { font-size: 0.9rem; font-weight: 300; color: var(--muted-foreground); line-height: 1.4; flex: 1; transition: color 0.2s; }
.tl-btn.active .tl-title { color: var(--foreground); font-weight: 500; }
.tl-btn:hover .tl-title { color: var(--foreground); }
.tl-arrow { color: rgba(110,93,69,0.4); margin-top: 2px; flex-shrink: 0; }
.tl-btn.active .tl-arrow { color: var(--accent); }
.timeline-detail { margin-top: 2rem; }
@media(min-width:1024px){ .timeline-detail{ margin-top: 0; } }
.tl-card { background: var(--card); padding: 2rem 2.5rem; border: 1px solid var(--border); position: relative; display: none; }
.tl-card.active { display: block; animation: fadeSlide 0.35s ease; }
.tl-card-corner-tr { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-right: 1px solid rgba(181,132,26,0.3); border-top: 1px solid rgba(181,132,26,0.3); }
.tl-card-corner-bl { position: absolute; bottom: 16px; left: 16px; width: 32px; height: 32px; border-left: 1px solid rgba(181,132,26,0.3); border-bottom: 1px solid rgba(181,132,26,0.3); }
.tl-card-top { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.tl-big-year { font-family: var(--font-display); font-size: 4rem; font-weight: 400; line-height: 1; color: var(--accent); opacity: 0.15; }
.tl-card-era { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.tl-card-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin-bottom: 1rem; line-height: 1.3; }
.tl-card-desc { font-size: 1rem; color: rgba(24,18,10,0.8); line-height: 1.7; margin-bottom: 1.25rem; }
.tl-card-detail { border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: 0.9rem; font-weight: 300; color: var(--muted-foreground); line-height: 1.7; font-style: italic; }
.tl-dots { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.tl-dot { height: 2px; background: var(--border); width: 12px; border: none; padding: 0; transition: all 0.3s; }
.tl-dot.active { background: var(--accent); width: 32px; }
.tl-counter { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: var(--muted-foreground); }

/* ===== FIX WARNA TEKS LINIMASA ===== */
/* Memaksa warna teks linimasa agar tidak berubah menjadi putih akibat CSS/cache/plugin eksternal. */
.tl-btn .tl-year { color: #6E5D45 !important; }
.tl-btn .tl-era { color: rgba(110,93,69,0.72) !important; }
.tl-btn .tl-title { color: #6E5D45 !important; }
.tl-btn.active .tl-year, .tl-btn:hover .tl-year { color: #B5841A !important; }
.tl-btn.active .tl-title, .tl-btn:hover .tl-title { color: #18120A !important; }

/* ===== GALERI + LIGHTBOX ===== */
#galeri { background: var(--background); }
.gallery-header { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 3.5rem; }
@media(min-width:1024px){ .gallery-header{ flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.gallery-sub { font-size: 0.92rem; font-weight: 300; color: var(--muted-foreground); max-width: 20rem; line-height: 1.7; }
.gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.75rem; }
@media(min-width:1024px){ .gallery-grid{ grid-template-columns: repeat(3,1fr); } }
.gallery-item { position: relative; overflow: hidden; background: var(--muted); border: none; padding: 0; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.3) contrast(1.06) brightness(0.92); transition: transform 0.7s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(24,18,10,0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s, background 0.3s; padding: 1rem; text-align: center; }
.gallery-item:hover .gallery-item-overlay, .gallery-item:focus-visible .gallery-item-overlay { opacity: 1; background: rgba(24,18,10,0.5); }
.gallery-item-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: #fff; margin-top: 0.5rem; line-height: 1.3; }
.gallery-item-year { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); margin-top: 4px; }
#lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(24,18,10,0.92); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1rem; }
#lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 56rem; width: 100%; background: var(--card); box-shadow: 0 25px 60px rgba(0,0,0,0.5); animation: scaleIn 0.25s ease; }
.lightbox-img { width: 100%; max-height: 70vh; object-fit: contain; filter: sepia(0.2) contrast(1.05); }
.lightbox-caption { padding: 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.lightbox-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.25rem; }
.lightbox-desc { font-size: 0.9rem; font-weight: 300; color: var(--muted-foreground); line-height: 1.6; }
.lightbox-year { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; color: var(--accent); opacity: 0.4; flex-shrink: 0; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: rgba(24,18,10,0.7); display: flex; align-items: center; justify-content: center; color: #fff; border: none; transition: background 0.2s; }
.lightbox-close:hover { background: var(--primary); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(24,18,10,0.6); display: flex; align-items: center; justify-content: center; color: #fff; border: none; transition: background 0.2s; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--primary); }
.lightbox-counter { position: absolute; bottom: 80px; right: 1.5rem; font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,.6); }

/* ===== TENTANG ===== */
#tentang { background: var(--primary); color: var(--primary-foreground); overflow: hidden; position: relative; }
.about-bg { position: absolute; inset: 0; opacity: 0.1; }
.about-bg img { width: 100%; height: 100%; object-fit: cover; filter: sepia(1); }
.about-corner { position: absolute; width: 64px; height: 64px; pointer-events: none; }
.about-corner.tl { top: 48px; left: 40px; border-left: 1px solid rgba(181,132,26,0.3); border-top: 1px solid rgba(181,132,26,0.3); }
.about-corner.tr { top: 48px; right: 40px; border-right: 1px solid rgba(181,132,26,0.3); border-top: 1px solid rgba(181,132,26,0.3); }
.about-corner.bl { bottom: 48px; left: 40px; border-left: 1px solid rgba(181,132,26,0.3); border-bottom: 1px solid rgba(181,132,26,0.3); }
.about-corner.br { bottom: 48px; right: 40px; border-right: 1px solid rgba(181,132,26,0.3); border-bottom: 1px solid rgba(181,132,26,0.3); }
.about-inner { position: relative; }
.about-header { text-align: center; max-width: 36rem; margin: 0 auto 4rem; }
.about-header .section-eyebrow { color: var(--accent); }
.about-title { font-family: var(--font-display); font-size: clamp(1.9rem,3.5vw,3rem); font-weight: 400; margin-bottom: 1.25rem; line-height: 1.2; }
.about-title em { font-style: italic; color: var(--accent-bright); }
.about-text { font-size: 1rem; font-weight: 300; color: rgba(240,235,224,0.6); line-height: 1.8; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255,255,255,0.1); margin-bottom: 4rem; }
@media(min-width:640px){ .features-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .features-grid{ grid-template-columns: repeat(4,1fr); } }
.feature-card { background: var(--primary); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.feature-icon { color: var(--accent); }
.feature-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.feature-desc { font-size: 0.87rem; font-weight: 300; color: rgba(240,235,224,0.55); line-height: 1.7; }
.contact-grid { display: grid; gap: 3rem; }
@media(min-width:1024px){ .contact-grid{ grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.contact-title { font-family: var(--font-display); font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 400; margin-bottom: 1rem; line-height: 1.3; }
.contact-desc { font-size: 0.92rem; font-weight: 300; color: rgba(240,235,224,0.5); line-height: 1.7; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(240,235,224,0.5); }
.contact-item-icon { color: rgba(181,132,26,0.6); margin-top: 2px; flex-shrink: 0; }
.contact-item-text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; line-height: 1.5; }

/* ===== FOOTER ===== */
footer.site-footer { background: var(--primary); color: var(--primary-foreground); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 4rem 1.5rem; }
@media(min-width:1024px){ .footer-main{ padding: 4rem 3rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width:1024px){ .footer-grid{ grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-brand-box { width: 36px; height: 36px; border: 1px solid rgba(181,132,26,0.5); display: flex; align-items: center; justify-content: center; flex: none; }
.footer-brand-a { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent); }
.footer-brand-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1; }
.footer-brand-sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,235,224,0.4); margin-top: 2px; }
.footer-tagline { font-size: 0.88rem; font-weight: 300; color: rgba(240,235,224,0.5); line-height: 1.7; margin-bottom: 1.5rem; max-width: 280px; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.625rem; color: rgba(240,235,224,0.4); }
.footer-contact-icon { color: rgba(181,132,26,0.6); margin-top: 2px; flex-shrink: 0; }
.footer-contact-text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; }
.footer-nav-heading { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; list-style: none; }
.footer-col a { font-size: 0.88rem; font-weight: 300; color: rgba(240,235,224,0.45); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: space-between; }
@media(min-width:640px){ .footer-bottom-inner{ flex-direction: row; } }
@media(min-width:1024px){ .footer-bottom-inner{ padding: 1.25rem 3rem; } }
.footer-copy { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: rgba(240,235,224,0.3); text-align: center; }
.footer-ornament { display: flex; align-items: center; gap: 4px; }
.footer-ornament-line { height: 1px; width: 32px; background: rgba(181,132,26,0.3); }
.footer-ornament-diamond { width: 4px; height: 4px; transform: rotate(45deg); background: rgba(181,132,26,0.5); }

/* ===== SEARCH MODAL ===== */
#search-modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(24,18,10,0.75); backdrop-filter: blur(4px); align-items: flex-start; justify-content: center; padding: 80px 1rem 1rem; }
#search-modal.open { display: flex; }
.search-box { width: 100%; max-width: 42rem; background: var(--card); border: 1px solid var(--border); box-shadow: 0 25px 50px rgba(24,18,10,0.3); animation: fadeSlide 0.25s ease; }
.search-input-row { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.search-input-row input { flex: 1; background: none; border: none; outline: none; font-family: var(--font-body); font-size: 1rem; color: var(--foreground); }
.search-input-row input::placeholder { color: rgba(110,93,69,0.5); }
.search-clear { background: none; border: none; color: var(--muted-foreground); display: none; }
.search-clear.show { display: block; }
.search-esc { background: none; border: 1px solid var(--border); padding: 2px 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--muted-foreground); }
.search-results { max-height: 320px; overflow-y: auto; }
.search-empty { padding: 1.25rem; text-align: center; font-size: 0.9rem; font-weight: 300; color: var(--muted-foreground); }
.search-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.search-hint { padding: 4px 12px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted-foreground); background: none; transition: all 0.2s; }
.search-hint:hover { color: var(--foreground); border-color: rgba(24,18,10,0.2); }
.search-result-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.search-result-item:hover { background: var(--secondary); }
.search-result-item:last-child { border-bottom: none; }
.search-result-icon { width: 32px; height: 32px; background: var(--secondary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted-foreground); }
.search-result-title { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted-foreground); margin-top: 2px; }
.search-footer { padding: 10px 1rem; border-top: 1px solid var(--border); background: rgba(230,221,208,0.5); display: flex; justify-content: space-between; gap: 1rem; }
.search-footer-text { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--muted-foreground); }

/* ===== HALAMAN POST & ARSIP ===== */
.page-hero { position: relative; background: var(--primary); color: var(--primary-foreground); padding: 9rem 0 4rem; overflow: hidden; }
@media(min-width:1024px){ .page-hero{ padding: 11rem 0 5rem; } }
.page-hero-bg { position: absolute; inset: 0; opacity: .22; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.55) brightness(.5); }
.page-hero-inner { position: relative; }
.page-hero .section-eyebrow { color: var(--accent-bright); }
.entry-crumbs { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(240,235,224,.45); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.entry-crumbs a { color: rgba(240,235,224,.7); transition: color .2s; }
.entry-crumbs a:hover { color: var(--accent-bright); }
.entry-crumbs .sep { color: rgba(181,132,26,.6); }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem,4.4vw,3.4rem); line-height: 1.14; color: #fff; max-width: 30ch; }
.page-hero h1 em { font-style: italic; color: var(--accent-bright); }
.page-hero-desc { margin-top: 1.25rem; max-width: 62ch; font-size: .98rem; font-weight: 300; line-height: 1.75; color: rgba(240,235,224,.6); }
.entry-meta-bar { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.entry-meta-item { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(240,235,224,.5); }
.entry-meta-item svg { color: rgba(181,132,26,.85); flex: none; }
.entry-meta-item a { color: rgba(240,235,224,.72); }
.entry-meta-item a:hover { color: var(--accent-bright); }

.content-wrap { padding: 4.5rem 0 6rem; }
@media(min-width:1024px){ .content-wrap{ padding: 6rem 0 8rem; } }
.layout-grid { display: grid; gap: 3.5rem; }
@media(min-width:1024px){ .layout-grid.has-sidebar{ grid-template-columns: minmax(0,1fr) 300px; gap: 4.5rem; } }

.featured-figure { margin-bottom: 3rem; background: var(--card); border: 1px solid var(--border); }
.featured-figure img { width: 100%; filter: sepia(.18) contrast(1.04); }
.featured-figure figcaption { padding: .9rem 1.25rem; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--muted-foreground); border-top: 1px solid var(--border); }

.entry-content { max-width: 68ch; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content p { font-size: 1.05rem; line-height: 1.85; color: rgba(24,18,10,.86); text-wrap: pretty; }
.entry-content > p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.2rem; line-height: .82; padding: .08em .12em 0 0; color: var(--accent); }
.entry-content h2 { font-family: var(--font-display); font-size: clamp(1.5rem,2.4vw,2rem); font-weight: 500; line-height: 1.25; margin-top: 3rem; }
.entry-content h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin-top: 2.4rem; }
.entry-content h4 { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 2.2rem; }
.entry-content a { color: var(--accent); border-bottom: 1px solid rgba(181,132,26,.4); transition: border-color .2s; }
.entry-content a:hover { border-bottom-color: var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content li { font-size: 1.02rem; line-height: 1.8; margin-bottom: .55rem; color: rgba(24,18,10,.86); }
.entry-content ul li::marker { color: var(--accent); }
.entry-content blockquote { border: 1px solid var(--border); background: var(--card); padding: 1.75rem 2rem; }
.entry-content blockquote p { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; line-height: 1.6; }
.entry-content blockquote p::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; }
.entry-content blockquote cite { display: block; margin-top: .9rem; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); font-style: normal; }
.entry-content figure { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.entry-content figure img { width: 100%; filter: sepia(.18) contrast(1.04); }
.entry-content figcaption { margin-top: .7rem; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--muted-foreground); line-height: 1.6; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: .7rem .9rem; text-align: left; }
.entry-content th { background: var(--secondary); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.entry-content code { font-family: var(--font-mono); font-size: .88em; background: var(--secondary); padding: .12em .4em; }
.entry-content pre { background: var(--primary); color: var(--primary-foreground); padding: 1.25rem; overflow-x: auto; font-family: var(--font-mono); font-size: .85rem; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; width: 100%; }
.entry-content .alignleft { float: left; margin: .4rem 1.75rem 1.25rem 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .4rem 0 1.25rem 1.75rem; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

.entry-tags { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.entry-tags-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground); margin-right: .5rem; }
.entry-tag { border: 1px solid var(--border); padding: 5px 14px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); transition: all .2s; }
.entry-tag:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.post-nav { margin-top: 4rem; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media(min-width:640px){ .post-nav{ grid-template-columns: 1fr 1fr; } }
.post-nav-item { background: var(--card); padding: 1.5rem 1.75rem; display: block; transition: background .2s; }
.post-nav-item:hover { background: var(--secondary); }
.post-nav-item.next { text-align: right; }
.post-nav-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .55rem; }
.post-nav-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; line-height: 1.4; }

.related-section { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.related-heading { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 2rem; }

.sidebar { display: flex; flex-direction: column; gap: 2.5rem; }
.widget { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.widget-title, .widget h2 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.widget li { font-size: .9rem; font-weight: 300; color: var(--muted-foreground); line-height: 1.55; }
.widget li a:hover { color: var(--accent); }
.widget select, .widget input[type="search"], .widget input[type="text"] { width: 100%; padding: .6rem .75rem; border: 1px solid var(--border); background: var(--card); font-family: var(--font-body); font-size: .9rem; color: var(--foreground); }
.widget-arsip-list { display: flex; flex-direction: column; gap: 1.1rem; }
.widget-arsip-item { display: flex; gap: .9rem; align-items: flex-start; }
.widget-arsip-thumb { width: 62px; height: 46px; flex: none; overflow: hidden; background: var(--muted); }
.widget-arsip-thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25); }
.widget-arsip-title { font-family: var(--font-display); font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--foreground); }
.widget-arsip-item:hover .widget-arsip-title { color: var(--accent); }
.widget-arsip-date { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; color: var(--muted-foreground); margin-top: 4px; }

.search-form-inline { display: flex; gap: .5rem; }
.search-form-inline input[type="search"] { flex: 1; padding: .65rem .8rem; border: 1px solid var(--border); background: var(--card); font-family: var(--font-body); font-size: .92rem; color: var(--foreground); }
.search-form-inline button { padding: .65rem 1.1rem; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-foreground); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
.search-form-inline button:hover { background: var(--accent); border-color: var(--accent); }

.arsip-pagination { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.arsip-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
.arsip-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 .8rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted-foreground); transition: all .2s; }
.arsip-pagination .page-numbers:hover { border-color: rgba(24,18,10,.3); color: var(--foreground); }
.arsip-pagination .page-numbers.current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.arsip-pagination .page-numbers.dots { border-color: transparent; }

.comments-area { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--border); max-width: 68ch; }
.comments-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: 2rem; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1.75rem; }
.comment-list ol.children { list-style: none; margin-top: 1.75rem; padding-left: 1.5rem; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 1.75rem; }
.comment-body { background: var(--card); border: 1px solid var(--border); padding: 1.5rem 1.75rem; }
.comment-author { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.comment-author .fn { font-family: var(--font-display); font-size: 1rem; font-weight: 600; font-style: normal; }
.comment-metadata { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: .9rem; }
.comment-content p { font-size: .96rem; line-height: 1.75; }
.reply a { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.comment-respond { margin-top: 3rem; }
.comment-reply-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; margin-bottom: 1.25rem; }
.comment-form p { margin-bottom: 1.1rem; }
.comment-form label { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: .45rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--border); background: var(--card); font-family: var(--font-body); font-size: .95rem; color: var(--foreground); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit { padding: 12px 30px; background: var(--primary); color: var(--primary-foreground); border: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; transition: background .2s; }
.comment-form .submit:hover { background: var(--accent); }

.state-block { text-align: center; max-width: 44ch; margin: 0 auto; }
.state-code { font-family: var(--font-display); font-size: clamp(4rem,12vw,8rem); line-height: 1; color: var(--accent); opacity: .22; }
.state-title { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.3rem); font-weight: 400; margin-top: -.5rem; }
.state-text { margin-top: 1rem; font-size: .98rem; font-weight: 300; line-height: 1.75; color: var(--muted-foreground); }
.state-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.btn-solid { display: inline-flex; align-items: center; gap: .5rem; padding: 12px 30px; background: var(--primary); color: var(--primary-foreground); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; transition: background .2s; }
.btn-solid:hover { background: var(--accent); }

/* ===== ANIMASI ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* WordPress core */
.alignnone { margin: 1.5rem 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { margin-top: .6rem; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-foreground); }
.sticky .card-tag { background: var(--primary); }
.bypostauthor > .comment-body { border-color: rgba(181,132,26,.45); }
.gallery-caption { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-foreground); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  #beranda { min-height: 100svh; height: auto; max-height: none; }
  .hero-content { min-height: calc(100svh - 40px); justify-content: center; }
  .hero-corner { width: 32px; height: 32px; }
  .hero-stats { width: min(100%,700px); }
  .about-corner { display: none; }
}
@media (max-width: 639px) {
  .hero-content { padding-top: 5.5rem; padding-bottom: 1rem; }
  .hero-eyebrow { font-size: 8px; letter-spacing: .2em; margin-bottom: .9rem; }
  .hero-h1 { font-size: clamp(2.15rem,10vw,3.4rem); line-height: 1.04; margin-bottom: .9rem; }
  .hero-divider-line { width: 32px; }
  .hero-sub { font-size: .88rem; line-height: 1.55; margin-bottom: 1.35rem; }
  .hero-btns { gap: .65rem; width: 100%; }
  .btn-primary, .btn-outline { width: min(100%,250px); padding: 10px 18px; font-size: 9px; text-align: center; }
  .hero-stats { margin-top: 1.5rem; gap: 1.2rem .8rem; }
  .stat-num { font-size: 1.35rem; }
  .stat-label { font-size: 7px; }
  .hero-dots { bottom: 34px; }
  .tl-card { padding: 1.5rem 1.25rem; }
  .page-hero { padding: 7.5rem 0 3rem; }
  .post-nav-item.next { text-align: left; }
  .lightbox-counter { display: none; }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .hero-content { min-height: 0; height: 100%; padding: 4.75rem 2rem 3.75rem; transform: translateY(-12px); }
  .hero-eyebrow { margin-bottom: .65rem; font-size: 9px; }
  .hero-h1 { font-size: clamp(3rem,5vw,4rem); line-height: 1.02; margin-bottom: .65rem; }
  .hero-sub { max-width: 34rem; font-size: .9rem; line-height: 1.45; margin-bottom: 1rem; }
  .btn-primary, .btn-outline { padding: 10px 26px; font-size: 10px; }
  .hero-stats { margin-top: 1.05rem; gap: 1.5rem 2.25rem; }
  .stat-num { font-size: 1.5rem; margin-bottom: 4px; }
  .stat-label { font-size: 8px; }
  .hero-scroll { position: absolute; left: 0; right: 0; bottom: .45rem; padding-bottom: 0; }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .hero-content { padding-top: 4.2rem; padding-bottom: 3.2rem; }
  .hero-h1 { font-size: clamp(2.7rem,4.7vw,3.6rem); }
  .hero-sub { margin-bottom: .8rem; font-size: .85rem; }
  .hero-scroll { display: none; }
  .hero-dots { bottom: 1.15rem; }
}
@media (max-width: 639px) {
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1.5rem 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  #navbar, #beranda, footer.site-footer, #search-modal, #lightbox, .post-nav, .comments-area, .sidebar { display: none !important; }
  body { background: #fff; color: #000; }
  .content-wrap { padding: 0; }
}

/* ===== JUMLAH POST DI TOMBOL KATEGORI ===== */
.filter-jml { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .04em; color: var(--accent); background: rgba(181,132,26,.12); padding: 1px 5px; margin-left: 2px; }
.filter-btn.active .filter-jml, .filter-btn:hover .filter-jml { background: rgba(250,247,242,.16); color: inherit; }

/* ===== JENDELA MENGAMBANG ===== */
.fw { position: fixed; z-index: 90; display: flex; flex-direction: column; gap: .6rem; pointer-events: none; }
.fw > * { pointer-events: auto; }
.fw-kanan-bawah, .fw.fw-kanan-bawah { right: 20px; bottom: 20px; align-items: flex-end; }
.fw.fw-kiri-bawah { left: 20px; bottom: 20px; align-items: flex-start; }
.fw.fw-kanan-atas { right: 20px; top: 92px; align-items: flex-end; flex-direction: column-reverse; }
.fw.fw-kiri-atas { left: 20px; top: 92px; align-items: flex-start; flex-direction: column-reverse; }

.fw-launcher {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 11px 18px; min-height: 44px;
  background: var(--primary); color: var(--primary-foreground);
  border: 1px solid rgba(181,132,26,.55);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 10px 28px -10px rgba(24,18,10,.55);
  transition: background .2s, color .2s, transform .2s;
}
.fw-launcher:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.fw-launcher-icon { display: flex; color: var(--accent); transition: color .2s; }
.fw-launcher:hover .fw-launcher-icon { color: var(--primary-foreground); }
.fw.is-open .fw-launcher { display: none; }

.fw-panel {
  display: none; width: var(--fw-w, 420px); max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -18px rgba(24,18,10,.5);
  overflow: hidden;
}
.fw.is-open .fw-panel { display: block; animation: fwIn .32s cubic-bezier(.22,1,.36,1) both; }
@keyframes fwIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.fw-bar { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; background: var(--primary); color: var(--primary-foreground); cursor: grab; }
.fw-bar:active { cursor: grabbing; }
.fw-grip { display: flex; color: rgba(181,132,26,.75); flex: none; }
.fw-titles { flex: 1; min-width: 0; }
.fw-title { display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-sub { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(240,235,224,.5); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.fw-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: none; color: rgba(240,235,224,.72); transition: background .18s, color .18s;
}
.fw-btn:hover { background: var(--accent); color: var(--accent-foreground); }

.fw-body { position: relative; height: var(--fw-h, 300px); background: var(--secondary); overflow: hidden; }
.fw-body iframe, .fw-body model-viewer { position: absolute; inset: 0; z-index: 2; width: 100% !important; height: 100% !important; border: 0; display: block; }
.fw-body > div { position: absolute !important; inset: 0 !important; padding: 0 !important; height: auto !important; width: auto !important; }
.fw-loading, .fw-empty { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.5rem; text-align: center; pointer-events: none; }
.fw-loading.is-hidden { display: none; }
.fw-loading { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground); }
.fw-empty p { font-size: .85rem; font-weight: 300; line-height: 1.65; color: var(--muted-foreground); max-width: 34ch; }
.fw-empty strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--foreground); }

.fw.is-maximized { left: 0; right: 0; top: 0; bottom: 0; align-items: center; justify-content: center; background: rgba(24,18,10,.86); padding: 2vh 2vw; }
.fw.is-maximized .fw-panel { width: min(1180px, 96vw); }
.fw.is-maximized .fw-body { height: min(78vh, 900px); }

@media (max-width: 639px) {
  .fw { left: 12px !important; right: 12px !important; bottom: 12px !important; top: auto !important; align-items: stretch; flex-direction: column; }
  .fw-panel { width: 100%; }
  .fw-launcher { justify-content: center; }
  .fw-bar { cursor: default; }
  .fw-grip { display: none; }
}
@media print { .fw { display: none !important; } }
