/* Warm paper, quiet rules, and generous typography. */
:root { color-scheme: light; --paper: #f8f8f6; --ink: #15171c; --muted: #62645e; --line: #dcddd8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.container { max-width: 1040px; padding: 0 40px; margin: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #656b50; }
a:focus-visible { outline: 2px solid #656b50; outline-offset: 5px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0 12px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 23px; font-weight: 750; letter-spacing: -.045em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
main { max-width: 760px; min-height: 50vh; padding: 62px 0 16px; }
h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 54px); margin: 0 0 36px; }
h2 { font-size: 30px; margin: 52px 0 20px; }
h3 { font-size: 23px; margin: 36px 0 16px; }
h5, h6 { font-size: 14px; color: var(--muted); font-weight: 400; }
p, ul, ol { margin: 0 0 24px; }
 .post-entry { padding: 28px 0 36px; }
.post-entry + .post-entry { border-top: 1px solid var(--line); }
.post-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.post-heading h2 { margin: 0; font-size: 20.8px; line-height: 1.3; }
.post-heading h2 a { text-decoration: none; }
.post-heading h2 a:hover { text-decoration: underline; }
.post-heading time { flex-shrink: 0; color: #73756f; font-size: 13px; white-space: nowrap; }
.post-preview p { margin-bottom: 18px; }
.continue-reading { display: inline-flex; align-items: center; padding: 7px 16px; border: 1px solid #bfc3b5; border-radius: 999px; background: #eeeee7; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s; }
.continue-reading:hover { background: #e0e3d6; border-color: #858d72; color: var(--ink); }
img, video, iframe { max-width: 100%; }
img { height: auto; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
blockquote { border-left: 3px solid #c6c9bd; margin: 28px 0; padding: 4px 24px; color: var(--muted); }
blockquote p:last-child { margin-bottom: 0; }
pre { overflow-x: auto; background: #eeeee9; padding: 20px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; line-height: 1.6; }
code { font-size: .88em; overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
table { border-collapse: collapse; display: block; overflow-x: auto; }
th, td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.site-footer { border-top: 1px solid var(--line); padding: 8px 0 40px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }
@media (max-width: 600px) { .container { padding: 0 22px; } .site-header { align-items: flex-start; flex-direction: column; gap: 16px; padding: 24px 0 12px; } nav { gap: 20px; } main { padding: 40px 0 16px; } .post-heading { flex-direction: column; align-items: flex-start; gap: 8px; } .post-heading h2 { font-size: 18.4px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.posts-heading { color: var(--ink); }

/* Keep short pages and their final paragraph close to the footer rule. */
main { min-height: 0; }
main > :last-child { margin-bottom: 0; }

.reading-arrow { display: inline-block; width: 1.2em; margin-left: 8px; overflow: hidden; vertical-align: middle; }
.reading-arrow > span { display: block; text-align: center; }
@keyframes reading-arrow-ticket {
  0% { transform: translateX(0); }
  49% { transform: translateX(130%); }
  50% { transform: translateX(-130%); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .continue-reading:hover .reading-arrow > span,
  .continue-reading:focus-visible .reading-arrow > span { animation: reading-arrow-ticket .55s ease-in-out; }
}

/* Projects and homepage section headings share a compact scale. */
.page-projects main > h1, .page-about main > h1, .posts-heading { font-size: clamp(18px, 2.5vw, 27px); }

.page-projects main { padding-bottom: 48px; }

/* Compact spacing around the Projects introduction divider. */
.page-projects main > p:has(+ hr) { margin-bottom: 0; }
.page-projects main > hr { margin: 12px 0 16px; }
.page-projects main > hr + h2 { margin-top: 0; }

.page-projects main > h1 + p + h2 { margin-top: 24px; }

.page-projects main > h1 { margin-bottom: 12px; }

/* Full-post titles use the complete reading width and natural wrapping. */
.article-title { width: 100%; max-width: none; text-wrap: wrap; margin: 0 0 8px; }
.article-meta { margin: 0; font-size: 14px; color: var(--muted); }
.article-divider { margin: 12px 0 16px; }
.article-body > :first-child { margin-top: 0; }

.posts-page main { max-width: none; }

.home-projects { margin-top: 52px; }
.home-projects > .posts-heading { margin: 0 0 12px; }
.project-entry { padding: 24px 0; }
.project-entry + .project-entry { border-top: 1px solid var(--line); }
.project-entry h2 { font-size: 20.8px; margin: 0 0 16px; }
.project-entry h2 a { text-decoration: none; }
.project-entry h2 a:hover { text-decoration: underline; }
.project-entry > :last-child { margin-bottom: 0; }
.section-link { font-size: 14px; font-weight: 600; }
