/*
 * baseline.css — diterapkan dari prinsip skill ibelick/ui-skills (baseline-ui).
 * Tujuannya: cegah "UI slop", seragamkan spacing/hierarchy/typography.
 * Identitas anoboy (biru #2e51a2 + pink #f7949e) tetap dipertahankan.
 */

:root {
  /* spacing scale seragam (4px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  /* radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
}

/* 1. Box model konsisten */
*, *::before, *::after { box-sizing: border-box; }

/* 2. Tipografi: hierarchy jelas, body base size */
body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 var(--sp-3);
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p  { margin: 0 0 var(--sp-4); }

/* 3. Spacing konten seragam */
.entry-content > * { margin-top: var(--sp-4); margin-bottom: var(--sp-4); }
.entry-content > *:first-child { margin-top: 0; }

/* 4. Link & tombol konsisten, tanpa dekorasi berlebih */
a { text-decoration: none; }
.bm-btn, .bm-ep-card, .bm-watch, .bm-nav-item a, .nav-links a {
  transition: background-color 120ms ease-out, color 120ms ease-out, transform 120ms ease-out;
}

/* 5. Fokus aksesibel */
a:focus-visible, button:focus-visible, input:focus-visible, .bm-ep-card:focus-visible {
  outline: 2px solid var(--accent, #f7949e);
  outline-offset: 2px;
}

/* 6. Kartu: shadow halus, bukan border tebal */
.blog .post, .archive .post, .home .post,
.blog article, .archive article, .home article,
.bm-ep-card, .bm-player-inner {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

/* 7. Tanpa animasi layout; hanya transform/opacity (respect reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 8. Tabel: padding seragam, zebra halus */
.entry-content table th, .entry-content table td {
  padding: var(--sp-2) var(--sp-3);
}
.entry-content tbody tr:nth-child(even) { background: rgba(46,81,162,0.03); }

/* 9. Container tidak melebar di layar besar */
.wp-site-blocks, .site-content, .entry-content, .is-layout-constrained > *,
.bm-header-inner, .bm-player-page, .bm-player-inner {
  max-width: var(--maxw, 1060px);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
