/* =========================================================
   Arsip Belajar — Edisi Elegan
   ---------------------------------------------------------
   Palet warna terinspirasi Bootstrap (indigo, biru, teal,
   pink, oranye, ungu) di atas latar terang.
   Prinsip: tanpa hitam pekat, tanpa sudut tajam, bayangan
   lembut, dan banyak ruang kosong.

   1.  Token
   2.  Reset & dasar
   3.  Utilitas
   4.  Tombol & tautan
   5.  Header mengambang
   6.  Panel seluler
   7.  Hero
   8.  Statistik
   9.  Struktur section
   10. Kartu video
   11. Kartu buku & sampul
   12. Toolbar: pencarian & filter
   13. Tentang
   14. Kontak
   15. Footer
   16. Halaman dalam & sorotan
   17. Gerak & responsif
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKEN
   --------------------------------------------------------- */
:root {
  color-scheme: light;

  --bg: #f5f6fb;
  --bg-2: #eef1f9;
  --surface: #ffffff;
  --surface-2: #f8f9fd;

  --ink: #1e2333;
  --ink-2: #474f63;
  --muted: #646c7a;
  --line: #e7eaf3;
  --line-2: #d8dcea;

  /* Warna khas Bootstrap */
  --indigo: #6610f2;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --blue: #0d6efd;
  --purple: #6f42c1;
  --pink: #d63384;
  --orange: #fd7e14;
  --green: #198754;
  --teal: #0d9488;
  --cyan: #0aa2c0;
  --yellow: #f0a500;
  --red: #dc3545;

  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 48%, #0d9488 100%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #f4edff 48%, #e5f7f3 100%);

  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4.5vw, 44px);
  --section-y: clamp(64px, 8vw, 116px);

  --radius-lg: 30px;
  --radius: 22px;
  --radius-sm: 15px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(30, 35, 51, 0.05);
  --shadow-sm: 0 10px 26px -14px rgba(30, 35, 51, 0.20);
  --shadow: 0 26px 52px -28px rgba(30, 35, 51, 0.32);
  --shadow-lg: 0 46px 84px -46px rgba(30, 35, 51, 0.40);

  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

/* Warna per kategori.
   --cat      : warna cerah (isi, gradasi, aksen)
   --cat-ink  : versi gelap untuk TEKS di atas latar terang, agar kontras ≥ 4.5 */
[data-cat="Produktivitas"] { --cat: #6610f2; --cat-ink: #4c0bb8; }
[data-cat="Teknologi"]     { --cat: #0d6efd; --cat-ink: #084298; }
[data-cat="Data"]          { --cat: #0d9488; --cat-ink: #0a5f57; }
[data-cat="Komunikasi"]    { --cat: #d63384; --cat-ink: #8b1f57; }
[data-cat="Kreatif"]       { --cat: #fd7e14; --cat-ink: #984c0b; }
[data-cat="Menulis"]       { --cat: #6f42c1; --cat-ink: #4a2b86; }

/* ---------------------------------------------------------
   2. RESET & DASAR
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
::selection { background: #ddd6fe; color: #3b1d8f; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 50%, white);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------------------------------------------------------
   3. UTILITAS
   --------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 18px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

.icon {
  width: 1.1em; height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--fill { fill: currentColor; stroke: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 13px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 9%, #fff);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.label--light { background: rgba(255, 255, 255, 0.16); color: #fff; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule { height: 1px; background: var(--line); border: 0; border-radius: 1px; }

/* ---------------------------------------------------------
   4. TOMBOL & TAUTAN
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 27px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.btn .icon { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 32px -16px rgba(79, 70, 229, 0.75);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -18px rgba(79, 70, 229, 0.8);
}

.btn--soft {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-xs);
}
.btn--soft:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, #fff);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--ghost {
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  color: var(--primary);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--primary) 14%, #fff); }

.btn--sm { padding: 11px 19px; font-size: 0.76rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s var(--ease);
}
.link-arrow .icon { width: 16px; height: 16px; }
.link-arrow:hover { gap: 14px; }

/* ---------------------------------------------------------
   5. HEADER MENGAMBANG
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 66px;
  padding: 9px 11px 9px 20px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-scrolled .header-inner {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 12px 24px -12px rgba(79, 70, 229, 0.8);
}
.brand-text { display: grid; line-height: 1.22; }
.brand-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.main-nav a:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, #fff);
}
.main-nav a.is-active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 11%, #fff);
}

.header-tools { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
              background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.icon-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, #fff);
  color: var(--primary);
  transform: translateY(-1px);
}
.icon-btn .icon { width: 18px; height: 18px; }

.menu-btn { display: none; }
.menu-btn .close-icon { display: none; }
body.nav-open .menu-btn .menu-icon { display: none; }
body.nav-open .menu-btn .close-icon { display: block; }

/* ---------------------------------------------------------
   6. PANEL SELULER
   --------------------------------------------------------- */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 118px var(--gutter) 40px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-2) 100%);
  border-radius: 0 0 32px 32px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
body.nav-open .mobile-panel { opacity: 1; visibility: visible; transform: none; }
body.nav-open { overflow: hidden; }

.mobile-panel ul { display: grid; gap: 10px; margin-bottom: 30px; }
.mobile-panel a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}
.mobile-panel a span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
}
.mobile-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mobile-foot a { font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------------
   7. HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(28px, 4vw, 52px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.34), transparent 68%);
}
.hero::after {
  width: 440px; height: 440px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.30), transparent 68%);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 24px 0 22px;
}
.hero h1 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--ink-2);
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Pencarian */
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 0 8px 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  max-width: 480px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search:focus-within {
  border-color: color-mix(in srgb, var(--primary) 55%, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}
.search .icon { width: 19px; height: 19px; color: var(--primary); }
.search input {
  flex: 1;
  min-width: 0;
  padding: 15px 0;
  border: 0;
  background: transparent;
  font-size: 0.96rem;
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--muted); }
.search .btn { padding: 11px 20px; }

.hero-media { position: relative; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-figure figcaption {
  position: absolute;
  left: 20px; bottom: 20px; right: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-figure figcaption b { color: var(--primary); }

/* Badge kecil di atas judul */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.hero-tags span {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}

/* ---------------------------------------------------------
   8. STATISTIK
   --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(42px, 5.5vw, 70px);
}
.stat {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--stat, var(--primary)) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--stat, var(--primary)) 18%, #fff);
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--stat, var(--primary));
}
.stat-label {
  display: block;
  margin-top: 9px;
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ---------------------------------------------------------
   9. STRUKTUR SECTION
   --------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section--flush { padding-top: clamp(20px, 3vw, 40px); }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: clamp(34px, 4.5vw, 56px);
}
.section-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  margin-top: 18px;
}
.section-lead { color: var(--ink-2); max-width: 46ch; }
.section-aside { display: grid; gap: 16px; justify-items: start; }

/* ---------------------------------------------------------
   10. KARTU VIDEO
   --------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}

.video-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
.video-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--cat, var(--primary)) 30%, #fff);
}

.video-link { display: block; border-radius: var(--radius-sm); overflow: hidden; }

.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.video-card:hover .video-thumb img { transform: scale(1.05); }

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 35, 51, 0.28));
  transition: background-color 0.4s var(--ease);
}
.play span {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  color: var(--cat, var(--primary));
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}
.play .icon { width: 19px; height: 19px; margin-left: 3px; }
.video-card:hover .play span { transform: scale(1.1); }

.dur {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.video-body { padding: 18px 8px 8px; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
}
.cat-tag {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--cat, var(--primary)) 12%, #fff);
  color: var(--cat-ink, var(--cat, var(--primary)));
  letter-spacing: 0.02em;
}
.card-meta .level { color: var(--muted); }
.card-title {
  font-size: 1.34rem;
  line-height: 1.22;
  margin: 12px 0 8px;
  transition: color 0.25s var(--ease);
}
.video-card:hover .card-title { color: var(--cat-ink, var(--cat, var(--primary))); }
.card-src { font-size: 0.82rem; color: var(--muted); }

/* ---------------------------------------------------------
   11. KARTU BUKU & SAMPUL
   --------------------------------------------------------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}

.book-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
.book-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--cat, var(--primary)) 30%, #fff);
}

.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 3 / 4.1;
  padding: 26px 22px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg,
    var(--cat, var(--primary)) 0%,
    color-mix(in srgb, var(--cat, var(--primary)) 58%, #2a2350) 100%);
  box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--cat, var(--primary)) 70%, transparent);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.book-card:hover .book-cover {
  transform: translateY(-6px) rotate(-0.7deg);
  box-shadow: 0 34px 56px -26px color-mix(in srgb, var(--cat, var(--primary)) 78%, transparent);
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 85% 0%, rgba(255, 255, 255, 0.28), transparent 55%);
  pointer-events: none;
}

.cover-cat {
  position: relative;
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.cover-title {
  position: relative;
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.9vw, 1.62rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.cover-author {
  position: relative;
  display: block;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.cover-badge {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.book-info { padding: 18px 8px 0; }
.book-title {
  font-size: 1.2rem;
  line-height: 1.24;
}
.book-meta {
  margin: 8px 0 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.book-actions { display: flex; align-items: center; gap: 12px; margin-top: auto; }

/* ---------------------------------------------------------
   12. TOOLBAR: PENCARIAN & FILTER
   --------------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  margin-bottom: 40px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip:hover {
  color: var(--cat-ink, var(--cat, var(--primary)));
  border-color: color-mix(in srgb, var(--cat, var(--primary)) 45%, #fff);
  transform: translateY(-1px);
}
.chip[aria-pressed="true"] {
  background: var(--cat-ink, var(--cat, var(--primary)));
  border-color: var(--cat-ink, var(--cat, var(--primary)));
  color: #fff;
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--cat, var(--primary)) 80%, transparent);
}

.toolbar .search { margin-top: 0; flex: 1 1 260px; max-width: 340px; }

.result-count {
  width: 100%;
  padding: 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px dashed var(--line-2);
}
.empty-state strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------
   13. TENTANG
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-media figcaption {
  margin-top: 14px;
  padding-left: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.about-body h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin: 18px 0 20px;
}
.about-body > p { color: var(--ink-2); max-width: 58ch; }
.about-body > p + p { margin-top: 14px; }

.steps {
  display: grid;
  gap: 12px;
  margin: 32px 0;
}
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.steps .num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--step, var(--primary)) 12%, #fff);
  color: var(--step, var(--primary));
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.steps strong { display: block; font-size: 0.98rem; font-weight: 700; }
.steps p { font-size: 0.88rem; color: var(--muted); }

.note {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, #fff);
  font-size: 0.88rem;
  color: var(--ink-2);
}
.note strong { color: var(--ink); }

/* ---------------------------------------------------------
   14. KONTAK
   --------------------------------------------------------- */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, #fff);
  box-shadow: var(--shadow);
}
.contact-panel::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  top: -160px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin: 18px 0 18px;
}
.contact-intro > p { color: var(--ink-2); max-width: 44ch; }

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 10%, #fff);
}
.contact-list .dt {
  flex: 0 0 130px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.contact-list .dd { font-size: 0.95rem; color: var(--ink); }
.contact-list a { color: var(--primary); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card h3 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}
.form-card > p { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }

.form-grid { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa1b1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: color-mix(in srgb, var(--primary) 55%, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--ink-2);
  cursor: pointer;
}
.checkbox input {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
  flex: none;
}

.form-status { font-size: 0.86rem; color: var(--ink-2); }
.form-status:not(:empty) {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--teal) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, #fff);
  color: color-mix(in srgb, var(--teal) 70%, #10312c);
}

/* ---------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(48px, 6vw, 76px) 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-2) 100%);
  border-radius: 44px 44px 0 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -30px 60px -50px rgba(30, 35, 51, 0.35);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.3fr;
  gap: clamp(26px, 4vw, 52px);
}
.footer-brand p {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 34ch;
}
.footer-col h3, .footer-news h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: var(--ink-2); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--primary); }

.footer-news p { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 16px; }
.newsletter-row {
  display: flex;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xs);
}
.newsletter-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
}
.newsletter-row input:focus { outline: none; }
.newsletter-row input::placeholder { color: #9aa1b1; }
.newsletter-row button {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.newsletter-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -14px rgba(79, 70, 229, 0.8);
}
.newsletter .form-status:not(:empty) { margin-top: 12px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   16. HALAMAN DALAM & SOROTAN
   --------------------------------------------------------- */
.page-hero { padding: clamp(30px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.02;
  margin: 20px 0 20px;
}
.page-hero p { max-width: 56ch; color: var(--ink-2); font-size: 1.04rem; }
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.page-meta span {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-2);
}

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--primary); }

.feature {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.feature-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 16px 0 14px;
}
.feature-body p { color: var(--ink-2); max-width: 48ch; }
.feature-body .btn { margin-top: 24px; }

/* ---------------------------------------------------------
   17. GERAK & RESPONSIF
   --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

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

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .header-tools .btn { display: none; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 560px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 2; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 96px; }
  .header-inner { min-height: 60px; padding: 7px 9px 7px 16px; }
  .brand-text span { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { padding: 14px; }
  .toolbar .search { max-width: none; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list .dt { flex-basis: 100%; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .video-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .book-card { padding: 9px 9px 16px; }
  .cover-title { font-size: 1.08rem; }
  .cover-author { font-size: 0.62rem; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-news { grid-column: auto; }
  .mobile-panel a { font-size: 1.5rem; }
  .site-footer { border-radius: 32px 32px 0 0; }
}

@media print {
  .site-header, .mobile-panel, .search, .newsletter, .form-card { display: none !important; }
  body { background: #fff; }
  .section { padding: 20px 0; break-inside: avoid; }
}

/* ---------------------------------------------------------
   Jaring pengaman reveal
   Bila transisi tidak berjalan (peramban latar/headless),
   JS menandai <html class="no-reveal"> agar konten tetap tampil.
   --------------------------------------------------------- */
.no-reveal [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
