/* Blog pages. Uses the tokens from /style.css (light by default, dark when the device asks). */

.post-wrap { max-width: 720px; padding-top: 56px; padding-bottom: 24px; }
.post .meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.post .meta a { color: var(--slate); text-decoration: none; }
.post h1, .blog-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 18px; }
.dek { font-family: var(--serif); font-size: clamp(19px, 2.3vw, 22px); line-height: 1.4; color: var(--ink-2); margin: 0 0 40px; }

.body { font-size: 18px; line-height: 1.7; }
.body p, .body li { color: var(--ink); }
.body h2 { font-family: var(--serif); font-size: 26px; line-height: 1.2; letter-spacing: -.01em; margin: 48px 0 14px; }
.body h3 { font-family: var(--serif); font-size: 20px; line-height: 1.3; margin: 32px 0 10px; }
.body ul, .body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.body li { margin: .3em 0; }
.body blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--slate); font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.body blockquote p { margin: 0; }
.body figure { margin: 32px 0; }
.body figure img, .body figure svg, .body img { width: 100%; height: auto; border-radius: 6px; }
.body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0; }
.body th, .body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.body th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.body code { font-size: .9em; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 0 4px; }
.body pre { overflow-x: auto; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 14px; font-size: 14px; }
.body hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
.body h2#sources, .body h2#sources-and-notes { font-family: var(--font); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 16px; margin-top: 56px; }
.body h2#sources + ul, .body h2#sources-and-notes + ul { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.disclosure { font-size: 13px; color: var(--muted); margin: 32px 0 0; }

.cta { margin: 56px 0 0; padding: 28px; border-radius: 0; background: var(--tint); }
.cta .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 10px; }
.cta h2 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.cta p { color: var(--ink-2); }
.nl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nl label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nl input[type=email], .nl input[name=first_name] { flex: 1 1 220px; min-width: 0; padding: 11px 16px; border-radius: 4px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.nl input[type=email]:focus-visible, .nl input[name=first_name]:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.nl button { font: inherit; font-size: 15px; cursor: pointer; }
.cta .fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.author p { font-size: 15px; color: var(--ink-2); }

.post-list { list-style: none; margin: 0 0 24px; padding: 0; }
.post-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 20px 0; border-top: 1px solid var(--rule); }
.post-list a { text-decoration: none; color: var(--ink); }
.post-list a:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-list .t { display: block; font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.post-list .d { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.post-list time { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.post-list .flag { grid-column: 1 / -1; font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-list.compact .t, .post-list.compact a { font-size: 17px; }
.post-list.compact li { padding: 12px 0; }
.post-list.compact span { font-size: 13px; color: var(--muted); }
.more-posts { margin-top: 48px; }

.draft-banner { position: sticky; top: 64px; z-index: 5; margin: 0 0 24px; padding: 8px 14px; border-radius: 6px; background: var(--todo); color: var(--ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.blog-foot { padding-top: 24px; padding-bottom: 40px; }

@media (max-width: 640px) {
  .post-wrap { padding-top: 32px; }
  .body { font-size: 17px; }
  .post-list li { grid-template-columns: 1fr; }
  .author { grid-template-columns: 56px minmax(0, 1fr); }
  .author img { width: 56px; height: 56px; }
  .top nav { gap: 14px; font-size: 13px; }
}

.nl .consent { flex: 1 1 100%; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.nl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl .consent input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; }
