/* ====== THEME (LIGHT) ====== */
:root{
  --bg:#f7f9fc;            /* background terang */
  --card:#ffffff;          /* kartu terang */
  --muted:#5b667a;         /* teks sekunder */
  --text:#111827;          /* teks utama */
  --accent:#7c3aed;        /* aksen (ungu) — bisa ganti jadi #0ea5a4 (teal) */
  --link:#16a34a;          /* hijau badge/link kecil */
  --border:#e5e7eb;        /* border halus */

  /* design tokens kecil */
  --radius:14px;
  --radius-lg:16px;
  --shadow:0 4px 12px rgba(17,24,39,0.06);
  --shadow-lg:0 10px 24px rgba(17,24,39,0.10);
}

/* ====== RESET RINGAN ====== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
  color:var(--text);
  color-scheme: light;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;

  /* Background gradient lembut (no image, ringan) */
  background:
    radial-gradient(1200px 600px at 10% -10%, #eef2ff 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #f0fdf4 0%, transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #f7faff 50%, #f7f9fc 100%);
}

/* Alternatif: body.bg-flat untuk latar polos */
.bg-flat{ background: var(--bg) !important; }

/* ====== GLOBAL ====== */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible{
  outline:2px dashed var(--accent);
  outline-offset:2px;
  border-radius:6px;
}
.container{max-width:1000px;margin:0 auto;padding:24px}

/* ====== HEADER ====== */
.header{
  display:flex;align-items:center;gap:16px;
  padding:18px 16px;
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(4px);
  border:1px solid var(--border);
  border-radius:var(--radius);
}
.logo{
  width:36px;height:36px;border-radius:10px;
  background:linear-gradient(135deg,#34d399,#60a5fa);
  display:inline-block;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.3);
}
.title{font-weight:700;font-size:20px}
.tagline{color:var(--muted);font-size:14px}

/* ====== LAYOUT ====== */
.grid{display:grid;grid-template-columns:2.2fr 1fr;gap:24px;margin-top:24px}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
}
@media (hover:hover){
  .card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lg); }
}

/* ====== POST ====== */
.post-title{font-weight:700;font-size:22px;margin:0 0 6px}
.post-title a{ color: var(--text); }
.post-title a:hover{ color: var(--accent); text-decoration: underline; }
.meta{color:var(--muted);font-size:13px;margin-bottom:10px}
.post-excerpt{color:#374151}

/* ====== SIDEBAR ====== */
.sidebar h3{margin:0 0 12px}
.sidebar .card{padding:14px}

/* ====== FOOTER ====== */
.footer{
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border:1px solid var(--border);
  border-radius:var(--radius);
  color:var(--muted);
  padding:24px;margin-top:30px;
  font-size:14px;text-align:center
}

/* ====== BADGE & BREADCRUMB ====== */
.badge{
  display:inline-block;font-size:12px;color:#0b1220;
  background:linear-gradient(90deg,#22c55e,#60a5fa);
  padding:2px 8px;border-radius:999px;margin-left:8px;
  border:1px solid rgba(0,0,0,.06)
}
nav.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:10px}

/* ====== MEDIA ====== */
.hero{margin-bottom:8px;border-radius:12px;overflow:hidden;max-height:320px}
.hero img{
  width:100%;height:auto;display:block;
  aspect-ratio: 2 / 1;       /* fallback kalau width/height tak diset di HTML */
  object-fit: cover;          /* aman dari layout shift */
  border-radius:12px;
}

/* ====== MISC ====== */
code.inline{background:#f3f4f6;border:1px solid var(--border);padding:2px 6px;border-radius:8px}
blockquote{
  border-left:3px solid #3b82f6;padding-left:12px;color:#374151;background:#f8fafc;
  border-radius:8px
}

/* ====== NAV CHIPS (opsional di header) ====== */
.navchips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0}
.navchips a{
  background: linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid var(--border);
  padding:6px 10px;border-radius:999px;font-size:.9rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (hover:hover){
  .navchips a:hover{ box-shadow: 0 2px 6px rgba(0,0,0,.08) }
}

/* ====== MOBILE ====== */
@media (max-width:860px){
  .grid{grid-template-columns:1fr}
  .sidebar{order:-1}
  .header{padding:14px}
}

/* ====== REDUCE MOTION ====== */
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
