/* =========================================================
   BLOG (halaman publik: /blog dan /blog/judul-tulisan)
   Memakai warna dan huruf situs (variables.css). Huruf isi
   tulisan memakai serif (Source Serif 4) supaya nyaman dibaca.
========================================================= */

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
}

.blog-link {
  font-weight: 600;
  color: var(--ink);
}
.blog-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #3567D6;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header dan footer ---------- */
.blog-banner {
  padding: 8px 16px;
  background: #FFF7E0;
  color: #8A6100;
  font-size: 0.85rem;
  text-align: center;
}

.blog-header { border-bottom: 1px solid var(--line); }
.blog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
}
.blog-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.blog-nav { display: flex; gap: 20px; font-size: 0.92rem; font-weight: 500; }
.blog-nav a { color: var(--ink-soft); }
.blog-nav a:hover { color: var(--ink); }

.blog-footer { margin-top: 24px; border-top: 1px solid var(--line); }
.blog-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.blog-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- kolom utama ---------- */
.blog-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}
.blog-main--narrow { max-width: 640px; }
.blog-main--article { max-width: 960px; padding-top: 40px; }

.blog-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.blog-lede {
  max-width: 56ch;
  margin-top: 12px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.blog-empty { margin: 48px 0; color: var(--ink-soft); }

/* ---------- penyaring tag ---------- */
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 4px; }
.blog-chip {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
}
.blog-chip:hover { background: #F4F5F5; color: var(--ink); }
.blog-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- daftar tulisan ---------- */
.post-list { margin-top: 20px; }
.post-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.post-list .post-card:first-child { border-top: 0; }
.post-card__text { flex: 1 1 auto; min-width: 0; }
.post-card__meta { font-size: 0.85rem; color: var(--ink-soft); }
.post-card__title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
}
.post-card__title a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.post-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.post-card__thumb {
  flex: 0 0 168px;
  width: 168px;
  height: 112px;
  border-radius: 6px;
  overflow: hidden;
  background: #ECEEEF;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- halaman baca ---------- */
.article-head,
.post-body,
.article-foot { max-width: 680px; margin-left: auto; margin-right: auto; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.article-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.article-lede {
  margin-top: 14px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.article-byline__name { font-weight: 600; color: var(--ink); }

.article-cover { max-width: 920px; margin: 36px auto 8px; }
.article-cover img { display: block; width: 100%; height: auto; border-radius: 8px; background: #ECEEEF; }

.post-body {
  margin-top: 36px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.75;
  color: #242424;
  overflow-wrap: anywhere;
}
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.35em; }
.post-body h2 {
  margin: 2em 0 0.6em;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}
.post-body h3 {
  margin: 1.8em 0 0.5em;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}
.post-body h4 {
  margin: 1.6em 0 0.4em;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.post-body a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.post-body figure { margin: 2em 0; }
.post-body figcaption {
  margin-top: 0.6em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}
.post-body blockquote {
  margin: 1.8em 0;
  padding-left: 1.2em;
  border-left: 3px solid #242424;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body ul,
.post-body ol { margin: 0 0 1.35em; padding-left: 1.5em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.45em; }
.post-body hr { margin: 2.4em auto; border: 0; border-top: 1px solid var(--line); }
.post-body pre {
  margin: 1.8em 0;
  padding: 16px 18px;
  overflow: auto;
  background: #F4F5F5;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  background: #F1F2F2;
  border-radius: 4px;
}
.post-body pre code { padding: 0; background: none; font-size: inherit; }

.article-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.share__label { margin-right: 6px; font-size: 0.85rem; color: var(--ink-soft); }
.share__btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.share__btn:hover { background: #F4F5F5; }

.more-posts { max-width: 680px; margin: 72px auto 0; }
.more-posts__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }

/* ---------- HP ---------- */
@media (max-width: 639px) {
  .blog-header__inner { padding: 14px 18px; }
  .blog-main { padding: 32px 18px 40px; }
  .blog-main--article { padding-top: 28px; }
  .blog-title { font-size: 2.1rem; }
  .article-title { font-size: 2.05rem; }
  .article-lede { font-size: 1.15rem; }
  .post-body { font-size: 1.1rem; line-height: 1.72; }
  .post-body blockquote { font-size: 1.15rem; }
  .post-body h2 { font-size: 1.5rem; }
  .post-card { gap: 16px; padding: 24px 0; }
  .post-card__title { font-size: 1.2rem; }
  .post-card__excerpt { -webkit-line-clamp: 2; font-size: 0.95rem; }
  .post-card__thumb { flex-basis: 92px; width: 92px; height: 92px; }
  .blog-footer__inner { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
