:root {
  color-scheme: light dark;
  --paper: #fffdf8;
  --ink: #24231f;
  --quiet: #605e56;
  --rule: #d7d4cb;
  --link: #244a78;
  font-family: "Charter", "Iowan Old Style", "Baskerville", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.65;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1c19; --ink: #eeeae1; --quiet: #b9b7ae; --rule: #484940; --link: #a9c8ec; }
}
* { box-sizing: border-box; }
body { max-width: 45rem; margin: auto; padding: 2.75rem 1.4rem 5rem; }
header, footer, .post-list time, .post-date, figcaption, .footnotes {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
header { border-bottom: 1px solid var(--rule); padding-bottom: .8rem; font-size: .82rem; }
header a { color: var(--quiet); }
main { margin-top: 2rem; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 1.75em 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 5vw, 2.85rem); font-weight: 550; letter-spacing: -.035em; margin: 0 0 .65em; }
h2 { font-size: 1.55rem; }
p, ul, ol { margin-block: .8em; }
ul, ol { padding-left: 1.5em; }
a { color: var(--link); text-underline-offset: .17em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: .2em; }
main, .content { overflow-wrap: break-word; }
.post-date, .post-list time, figcaption { font-size: .78rem; color: var(--quiet); }
.post-date { display: block; margin: -.5rem 0 1.5rem; }
.post-list, .section-list { padding: 0; list-style: none; }
.post-list li { display: flex; gap: 1rem; margin: .4em 0; align-items: baseline; }
.post-list time { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.section-list { margin-top: 1.4rem; }
.section-list li { margin-block: .35rem; }
blockquote { border-left: 2px solid var(--rule); margin: 1.4rem 0; padding-left: 1.2rem; }
pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--rule); }
code, pre { font: .85em/1.5 "IBM Plex Mono", ui-monospace, monospace; }
pre code { font: inherit; }
img { max-width: 100%; height: auto; }
figure { margin: 1.5rem 0; }
figcaption { margin: .4rem 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; }
td, th { border: 1px solid var(--rule); padding: .3em .65em; text-align: left; vertical-align: top; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.footnotes { font-size: .86rem; border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.footnotes h2 { font-size: 1rem; }
.footnotes li { margin-block: .75em; }
.footnotes p { display: inline; }
sup { font-size: .72em; line-height: 0; }
footer { display: flex; gap: 1.2em; margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: .8rem; font-size: .8rem; }
@media (max-width: 480px) { body { padding: 1.5rem 1rem 3rem; } .post-list li { gap: .65rem; } }
/* ---- Site Desk additions ---- */
header nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.1rem; }
header .site-name { color: var(--ink); font-weight: 600; text-decoration: none; margin-right: auto; }
header .nav-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.about { margin-bottom: 1.5rem; }
.section-list li a { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .95rem; }
h2.year { font-size: 1rem; color: var(--quiet); margin: 2rem 0 .3rem; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.post-list time { min-width: 6.2em; }
.back, .pager, .project-url, .file-meta { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .82rem; color: var(--quiet); }
.back { margin-top: 3rem; }
.download a { font-weight: 600; }
.resume-list, .project-list, .page-list { list-style: none; padding: 0; }
.resume-list > li, .project-list > li { padding: 1rem 0 1.2rem; border-bottom: 1px solid var(--rule); }
.resume-list h2, .project-list h2 { font-size: 1.2rem; margin: 0 0 .25rem; }
.project-url { margin: 0 0 .5rem; }
.page-list li { margin: .45em 0; }
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; }
.gallery li { margin: 0; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--rule); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.gallery a:hover img { opacity: .88; }
figure.photo { margin: 0 0 1rem; }
figure.photo img { display: block; max-height: 82vh; width: auto; margin: 0 auto; }
.pager { display: flex; justify-content: space-between; margin-top: 2rem; }
.fn-back { text-decoration: none; }
.fnref a { text-decoration: none; padding: 0 .1em; }
:target { scroll-margin-top: 1rem; }
.footnotes li:target { background: color-mix(in srgb, var(--link) 12%, transparent); }
