/* Blog (blog/templates). Tokens, header, buttons, cards and the signup form: landing.css + catalog.css. */
.post-list { padding: 32px 0 8px; }
.post-list .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.post-list .head a { color: var(--ink); font-weight: 700; }
.post-list ul { list-style: none; margin: 16px 0 0; padding: 0; }
.post-list li { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 4px; }
.post-list .cat, .post-head .cat { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); text-decoration: none; justify-self: start; }
.post-list .t { font: 600 21px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.post-list .t:hover { color: var(--red); }
.post-list .meta { font-size: 14px; color: var(--muted); }
.draft { color: var(--red); }
.empty { padding: 24px 0 40px; }
.draft-bar { margin: 16px 0 0; padding: 10px 14px; background: var(--yellow); border-radius: 8px; font-weight: 700; font-size: 14px; }

.post { padding: 8px 0 24px; }
.post-head { padding: 20px 0 28px; display: grid; gap: 14px; max-width: 780px; }
.post-head h1 { font-size: 34px; line-height: 1.15; margin: 0; }
.post-head h1 em { font-style: italic; color: var(--red); }
.post-head .lead { font-size: 19px; margin: 0; max-width: 62ch; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); padding: 4px; }
.byline b { color: var(--ink); display: block; font-size: 15px; }

.post-grid { display: grid; gap: 32px; }
.toc { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 16px 18px; font-size: 15px; align-self: start; }
.toc b { display: block; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--red); }

.body { max-width: 70ch; font-size: 17px; line-height: 1.7; min-width: 0; }
.body h2 { font-size: 26px; margin: 40px 0 12px; scroll-margin-top: 90px; }
.body h3 { font-size: 19px; margin: 24px 0 6px; }
.body p { margin: 0 0 14px; }
.body ul, .body ol { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 6px; }
.body a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.body .table { overflow-x: auto; margin: 8px 0 20px; }
.body table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.body th, .body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.body th { font: 700 13px var(--sans); background: var(--bg); }
.short { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: 8px; padding: 16px 20px; margin: 0 0 24px; }
.short b.t { display: block; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.short ul { margin: 0; }
.note { background: #fff; border-radius: 8px; border: 1px dashed var(--ink); padding: 14px 18px; margin: 20px 0; }
.note b { color: var(--red); }
.inline-signup { margin: 32px 0; padding: 22px; background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.inline-signup h3 { margin: 0 0 6px; font-size: 22px; }
.inline-signup p { margin: 0 0 12px; }
.sheets-box { margin: 36px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheets-box h2 { margin-top: 0; }
.sheets-box .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.body .faq { font-size: 16px; }
.author { display: flex; gap: 16px; align-items: flex-start; margin: 40px 0 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.author img { width: 64px; height: 64px; flex: none; }
.author b { font-family: var(--serif); font-size: 18px; }
.author p { margin: 4px 0 0; font-size: 15px; }

@media (min-width: 960px) {
  .post-head h1 { font-size: 48px; }
  .post-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
  .toc { position: sticky; top: 90px; order: 2; }
  .sheets-box .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
