/* Undra site, blog: the index cards and the post skeleton (docs/ spec section 3). */
.blog-index { padding-bottom: 8px; }
.post-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, background .2s; }
.post-card:hover { border-color: var(--accent-line); background: var(--surface-2); }
.post-card > a { display: flex; flex-direction: column; flex: 1; padding: 24px; text-decoration: none; }
.post-card h2 { font-size: 1.3rem; margin-top: 4px; }
.post-card p { margin: 10px 0 0; font-size: .95rem; }
.post-card .eyebrow { margin: 0; color: var(--text-3); font-size: .7rem; }
.post-card .post-meta { margin: auto 0 0; padding-top: 18px; font: 400 .78rem/1.4 var(--font-mono); color: var(--text-3); }
.post-card.empty { border-style: dashed; padding: 28px; grid-column: 1 / -1; }
.post-card.empty h2 { margin-top: 6px; }
.rss-link { color: var(--accent); }

/* a post */
.post { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.post-header { padding: clamp(40px, 7vw, 80px) 0 8px; }
.post-header h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.post-header .eyebrow { font-size: .75rem; color: var(--accent); margin: 0 0 14px; }
.post-header .lede { font-size: 1.25rem; line-height: 1.55; color: var(--text-2); margin: 16px 0 0; }
.post .post-meta { margin: 18px 0 0; font: 400 .8rem/1.4 var(--font-mono); color: var(--text-3); }
.post-meta time { color: var(--text-2); }
.post-header + .toc, .post > article > .toc { margin: 28px 0 8px; }
.toc { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc::before { content: "On this page"; display: block; margin-bottom: 8px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.post .toc ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 4px; }
.post .toc li { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text-3); }
.toc li::marker { font: 400 .8rem var(--font-mono); }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--accent); }
.post article > section { margin-top: 2.6rem; }
.post h2 { font-size: clamp(1.5rem, 3vw, 1.85rem); margin: 0 0 .7rem; }
.post h3 { margin: 1.9rem 0 .4rem; font-size: 1.15rem; }
.post p, .post li { color: var(--prose); font-size: 1.0625rem; line-height: 1.75; }
.post p { margin: 0 0 1.1rem; }
.post ul, .post ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.post li { margin: .35rem 0; }
.post li::marker { color: var(--text-3); }
.post strong { color: var(--text); font-weight: 500; }
.post em { font-style: italic; }
.post a { text-decoration-color: var(--accent-line); text-decoration-thickness: 1.5px; }
.post blockquote { margin: 1.5rem 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--line-strong); color: var(--text-2); }
.post hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
.post img, .post figure { margin: 1.6rem 0; border-radius: var(--radius); }
.post figcaption { margin-top: 8px; font-size: .86rem; color: var(--text-3); }
.post pre { margin: 1.25rem 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); font-size: .85rem; line-height: 1.7; }
.post .code pre { margin: 0; padding: 16px 18px; border: 0; border-radius: 0; background: none; }
.post .code { margin: 1.4rem 0; }
.callout { margin: 1.6rem 0; padding: 16px 18px; background: var(--accent-soft); }
.callout::before { display: block; margin-bottom: 6px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.callout.tip::before { content: "Tip"; }
.callout.note::before { content: "Note"; }
.callout.warn::before { content: "Watch out"; }
.callout p { margin: 0; font-size: 1rem; line-height: 1.65; }
.callout p + p { margin-top: .6rem; }
.callout.note { border-color: var(--line-strong); background: var(--surface); }
.callout.note::before { color: var(--text-2); }
.callout.warn { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.08); }
.callout.warn::before { color: #f59e0b; }
:root[data-theme="light"] .callout.warn { border-color: rgba(180,83,9,.4); background: rgba(180,83,9,.06); }
:root[data-theme="light"] .callout.warn::before { color: #b45309; }
.post .table-wrap { margin: 1.6rem 0; }
table.compare { min-width: 560px; }
table.compare th { position: sticky; top: 0; }
table.compare td { font-size: .93rem; line-height: 1.55; }
table.compare tbody th, table.compare td:first-child { color: var(--text); font-weight: 500; }
table.compare tbody th { text-transform: none; letter-spacing: 0; font: 500 .93rem/1.55 var(--font-body); background: none; white-space: normal; }
table.compare tbody tr:hover td, table.compare tbody tr:hover th { background: var(--surface-2); }
/* the limitations matrix: a class per row; below 760px each row is a card, so nothing scrolls sideways */
table.matrix { min-width: 0; table-layout: fixed; }
table.matrix th, table.matrix td { padding: 10px 8px; overflow-wrap: break-word; }
table.matrix thead th { white-space: normal; font-size: .66rem; letter-spacing: .05em; }
table.matrix thead th:nth-child(1), table.matrix thead th:nth-child(2), table.matrix thead th:nth-child(3) { width: 16%; }
table.matrix thead th:nth-child(4) { width: 20%; }
table.matrix thead th:nth-child(5) { width: 32%; }
table.matrix td { font-size: .86rem; line-height: 1.5; }
table.matrix tbody th small { display: block; margin-top: 4px; font: 400 .72rem/1.3 var(--font-mono); color: var(--text-3); }
table.matrix td:last-child { border-left: 2px solid var(--accent-line); }
@media (max-width: 760px) {
  table.matrix, table.matrix tbody, table.matrix tr, table.matrix tbody th, table.matrix td { display: block; }
  table.matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.matrix tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.matrix tr:last-child { border-bottom: 0; }
  table.matrix tbody th, table.matrix td { padding: 0 0 8px; border: 0; }
  table.matrix td:last-child { padding: 8px 0 8px 12px; margin-top: 4px; }
  table.matrix td::before { content: attr(data-label); display: block; font: 500 .68rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
}
.post-footer { margin: 3rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
