/* Pages built from templates/: home, blog, posts, newsletter, about.
   The data pages in site/ do not load this file. */
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--site-surface);
  color: var(--site-text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
.page { max-width: 980px; margin: 0 auto; padding: 32px 20px 64px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.lede { color: var(--site-text-2); max-width: 70ch; }
.quiet { color: var(--site-text-2); font-size: 13px; }
.signup + .quiet, .signup-pending + .quiet { margin-top: 12px; }
.intro { padding-bottom: 28px; }
.block { padding: 28px 0; border-top: 1px solid var(--site-line); }
.block > :last-child { margin-bottom: 0; }
time, .byline, .crumb { color: var(--site-text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.crumb { margin-bottom: 6px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.draft {
  font-size: 12px; font-weight: 600; color: var(--site-text-2);
  border: 1px solid var(--site-control); border-radius: 3px; padding: 0 5px; white-space: nowrap;
}

/* Lists of pages and posts */
.entries { list-style: none; margin: 0 0 12px; padding: 0; max-width: 70ch; }
.entries li { padding: 10px 0; }
.entries li:first-child { padding-top: 4px; }
.entries time { display: block; }
.entry-title { font-size: 17px; font-weight: 600; text-decoration: none; }
.entry-title:hover { text-decoration: underline; }
.entries p { margin: 2px 0 0; color: var(--site-text-2); }

/* Earlier / later links under a post */
.pager { display: flex; justify-content: space-between; gap: 24px; }
.pager a { max-width: 45%; font-weight: 600; text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager a.next { margin-left: auto; text-align: right; }
.pager span { display: block; color: var(--site-text-2); font-size: 13px; font-weight: 400; }

/* Long-form text: posts and standalone pages */
.prose { max-width: 68ch; font-size: 17px; line-height: 1.65; padding-bottom: 36px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose figure, .prose table { margin: 0 0 18px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote { padding-left: 16px; border-left: 3px solid var(--site-control); color: var(--site-text-2); }
.prose img { max-width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--site-line); margin: 32px 0; }
.prose code { font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.prose pre { overflow-x: auto; padding: 12px 14px; border: 1px solid var(--site-line); border-radius: 6px; line-height: 1.45; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 6px 16px 6px 0; border-bottom: 1px solid var(--site-line); }
.prose th { color: var(--site-text-2); font-size: 12px; font-weight: 500; white-space: nowrap; border-bottom-color: var(--site-control); }
.prose td { font-variant-numeric: tabular-nums; }
.prose .footnote { font-size: 14px; color: var(--site-text-2); }
a:focus-visible { outline: 2px solid var(--site-text); outline-offset: 2px; border-radius: 2px; }
