/* Blog styles. Loaded after styles.css and reuses its tokens (--ink, --paper, --teal, --head, --line-light ...). */

.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--muted-dark); margin-bottom: 18px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.crumbs a:hover { border-bottom-color: var(--teal); }

.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-dark); margin: 0 0 14px; max-width: none; }
.post-meta span:first-child { color: var(--teal); }
.on-paper .post-meta { color: var(--muted-light); }
.on-paper .post-meta span:first-child { color: var(--teal-deep); }
.post-head h1 { max-width: 30ch; }

/* Index */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.post-card { border-top: 1px solid var(--line-light); padding-block: 32px 36px; min-width: 0; }
.post-card h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.22; margin-bottom: 12px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--teal-deep); text-underline-offset: 4px; }
.post-card p:not(.post-meta) { color: var(--muted-light); }
.post-card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--teal-deep); padding-bottom: 2px; }
.post-card .more svg { width: 16px; height: 16px; }

/* Article body */
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose p { max-width: none; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 2.1em 0 0.6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.55em; padding-left: 0.2em; }
.prose li::marker { color: var(--teal-deep); font-weight: 600; }
.prose a { color: var(--teal-deep); font-weight: 600; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 1.4em 0 1.6em; border: 1px solid var(--line-light); background: var(--field); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-light); }
.prose thead th { background: var(--ink); color: var(--paper); font-family: var(--head); font-weight: 600; border-bottom: 0; }
.prose tbody th { font-weight: 600; width: 22%; }
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-bottom: 0; }

.related { max-width: 70ch; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.related h2 { font-size: 1.2rem; margin-bottom: 14px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 10px; }
.related a { color: var(--teal-deep); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .post-list { grid-template-columns: minmax(0, 1fr); }
}

/* Figures */
.fig { margin: 2em 0 2.2em; }
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted-light); max-width: 62ch; }
.fig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fig-pair div { background: var(--paper); border: 1px solid var(--line-light); display: flex; align-items: center; justify-content: center; }
.fig-pair img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.fig-pair figcaption { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 560px) { .fig-pair { grid-template-columns: minmax(0, 1fr); } }
