/* ============================================================
   TBON Blog — Editorial design
   Layered on top of /assets/style.css (must come AFTER it)
   ============================================================ */

/* ============================================================
   BLOG HERO (list page)
   ============================================================ */
.blog-hero {
  padding: 120px 0 80px;
  position: relative;
  background: var(--bone);
  border-bottom: 1px solid var(--bone-500);
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 24px 0;
  color: var(--ink);
}

/* ============================================================
   BLOG LIST — grid
   ============================================================ */
.blog-list {
  padding: 80px 0 100px;
  background: var(--bone-50);
}
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
  margin-top: 32px;
}
@media (max-width: 800px) {
  .posts-grid { grid-template-columns: 1fr; gap: 48px; }
}

.post-card {
  position: relative;
}
.post-card-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.4s var(--ease-out);
}
.post-card-link:hover {
  transform: translateY(-4px);
}
.post-card-link:hover .post-cover img {
  transform: scale(1.04);
}
.post-card-link:hover .post-card-title {
  color: var(--gold-700);
}
.post-card-link:hover .post-card-arrow {
  color: var(--gold-700);
  letter-spacing: 0.18em;
}

.post-cover {
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  border-radius: 2px;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.post-card-body {
  padding: 0 4px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.post-meta .post-dot { color: var(--gold); }
.post-meta .post-tags { color: var(--blood); font-weight: 500; }

.post-card-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
  transition: color 0.25s;
}
.post-card-excerpt {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--stone);
  margin: 0 0 20px;
}
.post-card-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 600;
  transition: all 0.25s;
}

/* Featured (first post): full width on grid */
.post-card-featured {
  grid-column: 1 / -1;
}
@media (min-width: 800px) {
  .post-card-featured .post-card-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .post-card-featured .post-cover {
    aspect-ratio: 4 / 3;
    margin-bottom: 0;
  }
  .post-card-featured .post-card-title {
    font-size: 56px;
  }
  .post-card-featured .post-card-excerpt {
    font-size: 19px;
  }
}

.empty-blog {
  text-align: center;
  padding: 80px 20px;
}
.empty-blog p {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  color: var(--stone);
  margin-top: 24px;
}

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.post-article {
  padding-top: 60px;
  background: var(--bone-50);
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-header {
  padding: 60px 0 40px;
  text-align: left;
}
.post-back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.post-back:hover {
  color: var(--gold-700);
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 16px 0;
  color: var(--ink);
}
.post-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-style: italic;
  line-height: 1.4;
  color: var(--stone);
  margin: 24px 0 32px;
  font-weight: 400;
}
.post-byline {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bone-500);
}
.post-byline .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.post-byline strong { color: var(--ink); }

.post-cover-wrap {
  margin: 40px 0 56px;
}
.post-cover-img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* ============================================================
   POST PROSE (markdown-rendered HTML)
   ============================================================ */
.post-prose {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-700);
  padding-bottom: 80px;
}
.post-prose > * { margin-top: 0; }
.post-prose > * + * { margin-top: 1.2em; }

.post-prose h1, .post-prose h2, .post-prose h3,
.post-prose h4, .post-prose h5, .post-prose h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  letter-spacing: -0.005em;
}
.post-prose h1 { font-size: 42px; }
.post-prose h2 { font-size: 34px; }
.post-prose h3 { font-size: 26px; }
.post-prose h4 { font-size: 22px; }
.post-prose h5 { font-size: 19px; }
.post-prose h6 { font-size: 17px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); font-weight: 600; }

.post-prose p {
  margin: 0 0 1.4em;
}

.post-prose a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(to top, var(--gold) 1px, transparent 1px);
  background-position: 0 95%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: color 0.2s;
}
.post-prose a:hover {
  color: var(--gold-700);
}

.post-prose strong { color: var(--ink); font-weight: 600; }
.post-prose em { font-style: italic; }
.post-prose del { color: var(--stone-400); }

.post-prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bone-300);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-prose pre {
  background: var(--ink);
  color: var(--bone);
  padding: 24px 28px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  margin: 1.6em 0;
}
.post-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.post-prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 0 0 0 28px;
  margin: 2em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18em;
  color: var(--stone);
  line-height: 1.5;
}
.post-prose blockquote p:last-child { margin-bottom: 0; }

.post-prose ul, .post-prose ol {
  padding-left: 28px;
  margin: 1.2em 0;
}
.post-prose li {
  margin: 0.4em 0;
}
.post-prose li::marker {
  color: var(--gold);
}

.post-prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
  border-radius: 2px;
}

.post-prose hr {
  border: none;
  height: 1px;
  background: var(--bone-500);
  margin: 3em 0;
  position: relative;
}
.post-prose hr::after {
  content: '★';
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  background: var(--bone-50);
  padding: 0 12px;
  color: var(--gold);
  font-size: 12px;
}

/* ============================================================
   POST SIBLINGS (cross-lingua links)
   ============================================================ */
.post-siblings {
  margin-top: 60px;
  padding: 32px;
  background: var(--bone);
  border: 1px solid var(--bone-500);
  border-radius: 4px;
}
.sibling-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.sibling-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--bone-500);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.sibling-link:hover {
  border-color: var(--gold);
  color: var(--gold-700);
}
.sibling-link .badge-lang {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--ink);
  color: var(--bone);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============================================================
   RELATED POSTS section
   ============================================================ */
.post-related {
  padding: 80px 0;
  background: var(--bone);
  border-top: 1px solid var(--bone-500);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.related-grid .post-card-title {
  font-size: 24px;
}
.related-grid .post-cover {
  aspect-ratio: 16 / 11;
  margin-bottom: 16px;
}
