:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --line: #262626;
  --ivory: #ece7df;
  --accent: #8a1f2d;
  --muted: #8f8a82;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-family: "Italiana", serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--ivory);
  text-decoration: none;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-left: 32px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ivory); }

/* Hero */
.hero { padding: 96px 24px 64px; }
.hero-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-title {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 14ch;
}
.hero-title em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
}
.hero-sub {
  color: var(--muted);
  max-width: 52ch;
  margin-top: 24px;
  font-size: 16px;
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.search {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ivory);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 16px;
  width: 260px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.search::placeholder { color: var(--muted); }
.search:focus { border-color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--ivory); border-color: var(--muted); }
.chip.active {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--bg);
}

.count { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; margin-bottom: 24px; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 96px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s;
  text-align: left;
  font-family: inherit;
  color: inherit;
  padding: 0;
}
.card:hover, .card:focus-visible { border-color: var(--ivory); }
.card:not([role="button"]) { cursor: default; }
.card-cover {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover .card-cover img { transform: scale(1.04); }
.card-body { padding: 20px 20px 22px; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.card-cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b04a56; /* aksen burgundy #8a1f2d diterangkan agar terbaca di latar hitam */
}
.badge-soon {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}
.card-title {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.card-desc {
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card-meta .live { color: #b04a56; }.empty {
  color: var(--muted);
  padding: 64px 0 96px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 20px;
}

/* About */
.about {
  padding: 80px 24px 96px;
  border-top: 1px solid var(--line);
  max-width: 1180px;
}
.section-title {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: 36px;
  margin-bottom: 24px;
}
.section-title em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
}
.about-text {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 16px;
}
.about-text strong { color: var(--ivory); font-weight: 500; }
.about-text a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: border-color 0.2s;
}
.about-text a:hover { border-color: var(--ivory); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); }
.modal-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--line);
  color: var(--ivory);
  width: 36px;
  height: 36px;
  border-radius: 2px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s;
}
.modal-close:hover { border-color: var(--ivory); }
.modal-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.modal-body { padding: 28px 28px 32px; }
.modal-title {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: 32px;
  margin: 8px 0 12px;
}
.modal-desc { color: var(--muted); margin-bottom: 20px; max-width: 60ch; }
.modal-body .card-meta { margin-bottom: 24px; }
.modal-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ivory);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 2px;
  transition: background 0.2s;
}
.modal-btn:hover { background: #a12838; }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 24px 48px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .nav a { margin-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== anim- — keyframes & aturan pendukung lapisan animasi (anim.js) ===== */

/* baris judul hero hasil split anim.js */
.anim-line { display: block; }

/* anim- cover: zoom lambat & lebih halus saat hover (menimpa durasi bawaan) */
.card-cover img { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }

/* anim- chip: isi pill aktif memudar halus + settle kecil */
.chip { transition: color 0.2s, border-color 0.2s, background-color 0.3s ease; }
.chip.active { animation: anim-chip-in 0.3s ease; }
@keyframes anim-chip-in {
  from { transform: scale(0.94); }
  to { transform: scale(1); }
}

/* anim- modal: panel masuk scale 0.96 → 1 + fade */
.anim-modal-in { animation: anim-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes anim-modal-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
