/*
  Blog decisions
  - Posts are a dated log, so the list is ruled rows (like the FAQ and download help lists) rather than cards: dates line up and scan as a timeline.
  - The newest post gets a larger title because returning visitors come for the latest update; older rows stay compact.
  - Articles keep a 68ch measure with Outfit at a larger size, since long release notes are read, not skimmed.
  - Blue stays the single accent: date labels, links, and the hover state of the row being read.
  - Quotes use a neutral rule, the standard quote convention, so the blue accent is not spread into decoration.
  - The sync line says when GitHub was last checked, so visitors know the list is current without a badge.
*/
.blog-page main { overflow: hidden; }

.blog-hero { padding: clamp(78px, 12vw, 148px) 0 clamp(44px, 6vw, 72px); background: var(--surface); }
.blog-intro { max-width: 790px; }
.blog-title { font-size: clamp(3rem, 6.2vw, 5.7rem); font-weight: 700; letter-spacing: -0.065em; line-height: 0.96; }
.blog-title:focus { outline: none; }
.blog-title:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.blog-copy { max-width: 580px; margin-top: 24px; color: var(--text-soft); font-size: 1.05rem; line-height: 1.72; }
.blog-sync { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--text-muted); font-size: 0.82rem; }
.blog-sync::before { width: 18px; height: 1px; flex-shrink: 0; background: var(--blue); content: ''; }

.blog-list-section { padding-top: clamp(40px, 6vw, 72px); background: var(--bg); }
.post-list { list-style: none; border-top: 1px solid var(--line-strong); }
.post-row { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: border-color var(--ease); }
.post-row:hover { border-bottom-color: var(--line-strong); }
.post-row-date { padding-top: 4px; color: var(--blue); font-size: 0.82rem; font-weight: 650; }
.post-row-copy { max-width: 720px; }
.post-row h2 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.post-row.is-latest h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
.post-row-link { color: var(--text); text-decoration: none; transition: color var(--ease); }
/* The whole row is the click target; the link stays the single focusable element. */
.post-row-link::after { position: absolute; inset: 0; content: ''; }
.post-row-link:focus-visible { outline: none; }
.post-row-link:focus-visible::after { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--radius-xs); }
.post-row:hover .post-row-link { color: var(--blue); }
.post-row-excerpt { display: -webkit-box; margin-top: 10px; overflow: hidden; color: var(--text-soft); font-size: 0.93rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.post-row.is-latest .post-row-excerpt { margin-top: 14px; font-size: 1rem; }

/* Loading, empty, and error states share one panel so the page height stays steady. */
.blog-state { max-width: 560px; padding: 28px 0; border-top: 1px solid var(--line-strong); }
.blog-state[hidden] { display: none; }
.blog-state-title { font-size: 1.05rem; font-weight: 650; }
.blog-state-body { margin-top: 6px; color: var(--text-soft); font-size: 0.92rem; line-height: 1.65; }
.blog-state-bar { display: none; width: 120px; height: 3px; margin-bottom: 20px; overflow: hidden; border-radius: 999px; background: var(--line-strong); }
.blog-state-bar span { display: block; width: 40%; height: 100%; background: var(--blue); animation: blog-state-scan 1.1s var(--motion-curve) infinite; }
.blog-state[data-state="loading"] .blog-state-bar { display: block; }
.blog-state[data-state="error"] .blog-state-title { color: #ef7b95; }
.blog-retry { gap: 9px; margin-top: 20px; cursor: pointer; }
.blog-retry[hidden] { display: none; }
@keyframes blog-state-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

/* Article */
.post { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 112px); background: var(--bg); }
.post-layout { max-width: 760px; }
.post-back { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; margin-bottom: clamp(28px, 5vw, 48px); color: var(--text-soft); font-size: 0.87rem; font-weight: 600; text-decoration: none; transition: color var(--ease); }
.post-back i { color: var(--blue); font-size: 0.8rem; transition: transform var(--ease); }
.post-back:hover { color: var(--text); }
.post-back:hover i { transform: translateX(-3px); }
.post-header .section-label { margin-bottom: 14px; }
.post-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; overflow-wrap: anywhere; }
.post-title:focus { outline: none; }
.post-title:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.post-rule { width: 48px; height: 1px; margin: 30px 0 34px; background: var(--line-strong); }

.post-body { max-width: 68ch; color: #d4d4d8; font-size: 1.07rem; line-height: 1.78; overflow-wrap: anywhere; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 { color: var(--text); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.post-body h2 { margin-top: 2em; font-size: 1.6rem; }
.post-body h3 { margin-top: 1.8em; font-size: 1.3rem; }
.post-body h4, .post-body h5, .post-body h6 { margin-top: 1.6em; font-size: 1.08rem; }
.post-body strong { color: var(--text); font-weight: 650; }
.post-body a { color: var(--blue); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: #6cb6ff; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: 0.4em; }
.post-body li::marker { color: var(--blue); }
.post-body blockquote { padding-left: 20px; border-left: 2px solid var(--line-strong); color: var(--text-soft); }
.post-body blockquote > * + * { margin-top: 0.8em; }
.post-body code { padding: 0.12em 0.4em; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--text); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.86em; }
.post-body pre { overflow-x: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--surface); line-height: 1.6; }
.post-body pre code { padding: 0; border: 0; background: none; font-size: 0.88rem; overflow-wrap: normal; white-space: pre; }
.post-body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.post-body hr { height: 1px; margin: 2.2em 0; border: 0; background: var(--line); }
.post-body del { color: var(--text-muted); }

.post-source { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; margin-top: 48px; padding-top: 4px; color: var(--text-muted); font-size: 0.84rem; font-weight: 600; text-decoration: none; transition: color var(--ease); }
.post-source[hidden] { display: none; }
.post-source:hover { color: var(--text); }

.blog-footer { min-height: 76px; margin-bottom: 0; border-top: 0; padding-top: 0; }

@media (max-width: 780px) {
  .post-row { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .post-row-date { padding-top: 0; }
}

@media (max-width: 640px) {
  .blog-title { font-size: clamp(2.8rem, 14vw, 4.25rem); }
  .post-title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .post-body { font-size: 1.02rem; }
  .blog-footer { padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-state-bar span { width: 100%; animation: none; opacity: 0.6; }
}
