/* Blog Hariri — gaya editorial hangat, tanpa dependensi selain Google Fonts */
:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e0d4;
  --accent: #c2410c;
  --accent-soft: #ffedd5;
  --dark: #1c1917;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- header ---- */
.site-header {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: Fraunces, Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 700; color: var(--ink); }
.brand .dot { color: var(--accent); }
.brand:hover { text-decoration: none; }
.site-header nav a { margin-left: 20px; color: var(--muted); font-size: 15px; font-weight: 600; }
.site-header nav a:hover { color: var(--accent); text-decoration: none; }

/* ---- hero ---- */
.hero {
  background: radial-gradient(120% 170% at 8% 0%, #7c2d12 0%, #1c1917 55%, #1c1917 100%);
  color: #fafaf9;
  border-radius: 20px;
  padding: 44px 36px;
  margin: 36px 0 8px;
}
.hero h1 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 14px;
}
.hero h1 em { color: #fdba74; }
.hero p { color: #d6d3d1; font-size: 18px; margin: 0 0 22px; max-width: 540px; }
.topics { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-light { background: rgba(255, 255, 255, 0.12); color: #fed7aa; border: 1px solid rgba(255, 255, 255, 0.18); }

/* ---- daftar tulisan ---- */
main { padding-bottom: 8px; }
.posts h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 40px 0 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 24px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(28, 25, 23, 0.10); }
.post-title {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  display: block;
  margin: 10px 0 6px;
}
.post-title:hover { color: var(--accent); text-decoration: none; }
.cat-ads { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.cat-note { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.cat-proj { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.meta { font-size: 14px; color: var(--muted); }
.excerpt { color: #57534e; margin: 0 0 12px; }
.read-more { font-weight: 700; color: var(--accent); }

/* ---- halaman posting ---- */
.post { padding-top: 36px; }
.post .meta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.post h1 { font-family: Fraunces, Georgia, "Times New Roman", serif; font-size: 36px; line-height: 1.2; margin: 0 0 8px; }
.post-body > p:first-of-type::first-letter {
  font-family: Fraunces, Georgia, serif;
  font-size: 54px;
  line-height: 0.9;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--accent);
  font-weight: 700;
}
.post h2 { font-family: Fraunces, Georgia, serif; font-size: 24px; margin: 32px 0 10px; }
.post h3 { font-family: Fraunces, Georgia, serif; font-size: 19px; margin: 24px 0 8px; }
.post p { margin: 0 0 16px; }
.post ul, .post ol { margin: 0 0 16px; padding-left: 24px; }
.post li { margin-bottom: 6px; }
.post code { background: #f3f4f6; padding: 2px 5px; border-radius: 4px; font-size: 15px; }
.post pre { background: var(--dark); color: #f9fafb; padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
.post pre code { background: none; padding: 0; color: inherit; }
.post blockquote { border-left: 3px solid var(--accent); margin: 0 0 16px; padding: 4px 16px; color: #57534e; }
.post hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.related h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: "Plus Jakarta Sans", sans-serif; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 8px; }
.related .meta { margin-left: 8px; }
.post .back { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }

/* ---- tentang ---- */
.about { padding-top: 36px; }
.about h1 { font-family: Fraunces, Georgia, serif; font-size: 34px; margin: 0 0 14px; }
.about h2 { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 28px 0 10px; }

/* ---- footer ---- */
.site-footer { background: var(--dark); color: #a8a29e; margin-top: 64px; padding: 44px 0 40px; font-size: 15px; }
.site-footer p { margin: 0 0 8px; }
.site-footer h3 { color: #fafaf9; font-family: Fraunces, Georgia, serif; font-size: 19px; margin: 0 0 12px; }
.site-footer h3 .dot { color: #fdba74; }
.site-footer a { color: #fdba74; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 32px 24px; margin-top: 24px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 17px; }
  .post h1 { font-size: 29px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
