/* Blog styles: extends ../assets/site.css and uses its colour tokens, so light and dark follow
   prefers-color-scheme the same way the rest of the site does. */

.post-kicker { margin: 0 0 10px; color: var(--muted); font-size: 0.9375rem; font-weight: 650; }
.post-meta { margin: 0 0 18px; color: var(--muted); font-size: 0.9375rem; }
.post-meta span + span::before { content: "\00b7"; margin: 0 8px; color: var(--border-strong); }
.post-body { padding-bottom: 40px; }
.post-body h2 { margin-top: 1.7em; }
.post-body h3 { margin-top: 1.3em; }
.post-body > :first-child { margin-top: 0; }

.in-short { margin: 8px 0 28px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.in-short h2 { margin: 0 0 8px; font-size: 1.0625rem; letter-spacing: 0; }
.in-short ul { margin: 0; }
.in-short li + li { margin-top: 0.45em; }

.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--note-border); background: var(--note-bg); border-radius: var(--radius); }
.status p { margin: 0; flex: 1 1 20rem; }
.status .pill { background: var(--surface); color: var(--text); border: 1px solid var(--note-border); }

.diagram { margin: 24px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.diagram .d-axis { stroke: var(--border-strong); stroke-width: 2; fill: none; }
.diagram .d-grid { stroke: var(--border); stroke-width: 1.5; }
.diagram .d-box { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
.diagram .d-hit { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 2; }
.diagram .d-accent { fill: var(--accent); }
.diagram .d-accent-line { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.diagram .d-gen { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.diagram .d-line { stroke: var(--muted); stroke-width: 1.75; fill: none; }
.diagram .d-dash { stroke-dasharray: 5 5; }
.diagram .d-text { fill: var(--text-2); font: 600 14px var(--font); }
.diagram .d-small { fill: var(--muted); font: 500 12.5px var(--font); }
.diagram .d-mono { fill: var(--text); font: 600 13px var(--mono); }
.diagram .d-strong { fill: var(--text); font: 700 15px var(--font); }

.post-body .table-wrap { margin: 18px 0 8px; overflow-x: auto; }
.post-body .table-note { color: var(--muted); font-size: 0.9375rem; }

.qa h3 { font-size: 1.0625rem; margin-bottom: 0.35em; }
.cta-box { margin-top: 32px; }
.cta-box h2 { margin-top: 0; font-size: 1.25rem; }
.more-posts { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.more-posts h2 { margin-top: 0; font-size: 1.125rem; }
.more-posts ul { padding-left: 1.1em; }

/* Index */
.post-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.post-list li { margin: 0; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.post-card:hover { border-color: var(--border-strong); }
.post-card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.post-card h2 { margin: 0; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card h2 a:focus-visible { outline: none; }
.post-card:hover h2 a { text-decoration: underline; text-underline-offset: 0.18em; }
.post-card p { margin: 0; color: var(--text-2); }
.post-card .post-meta { margin: 0; }
.post-card .pill { align-self: flex-start; }

@media (prefers-reduced-motion: no-preference) {
  .post-card { transition: border-color 0.15s ease; }
}
