* { box-sizing: border-box; }
html { color: #242b33; background: #fafaf8; font: 18px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; }
.shell { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
a { color: #215b91; text-underline-offset: .2em; }
a:hover { color: #123c63; }
a:focus-visible { outline: 3px solid #215b91; outline-offset: 4px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid #d9dce0; }
.site-name { font-weight: 700; color: inherit; text-decoration: none; }
nav { display: flex; gap: 1.25rem; }
nav [aria-current] { font-weight: 700; }
main { padding-block: 3rem; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p, ul, ol { margin-block: 1rem; }
.intro { display: flex; align-items: flex-start; gap: 2rem; }
.intro-copy { min-width: 0; }
.intro h1 { font-size: clamp(1.8rem, 4vw, 2.25rem); margin-bottom: .35rem; }
.intro-subtitle { margin-top: 0; color: #59616b; font-size: .95rem; line-height: 1.5; }
.intro-description { max-width: 60ch; margin-block: 1.5rem 1rem; }
.technology-line { color: #59616b; font-size: .85rem; line-height: 1.6; }
.intro .profile-links { margin-top: 1.5rem; }
.portrait { flex: 0 0 auto; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.eyebrow { font-size: .85rem; letter-spacing: .06em; }
.muted, .site-footer { color: #59616b; font-size: .9rem; }
.profile-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; }
.latest { margin-top: 3rem; padding-top: .5rem; border-top: 1px solid #d9dce0; }
.post-list { padding: 0; list-style: none; }
.post-list .post-title { font-size: 1.25rem; margin-block: 1rem .5rem; }
.post-list li { padding-block: 1rem; border-bottom: 1px solid #d9dce0; }
.draft { font-weight: 700; }
.draft-note { padding: 1rem; border-left: 3px solid #9c7533; background: #f4efe4; font-size: .95rem; }
.prose { overflow-wrap: anywhere; }
.prose h2 { margin-top: 2.5rem; }
.term-button { display: inline; padding: 0; border: 0; border-radius: 0; background: none; color: #215b91; font: inherit; text-align: inherit; text-decoration: underline dotted; text-underline-offset: .2em; cursor: pointer; }
.term-button:hover { color: #123c63; text-decoration-style: solid; }
.term-button:focus-visible, .term-close:focus-visible { outline: 3px solid #215b91; outline-offset: 3px; }
.term-definition { color: #59616b; }
.term-popover { position: fixed; z-index: 10; display: block; width: 22rem; padding: 1rem; overflow-y: auto; border: 1px solid #d9dce0; border-radius: .35rem; background: #fafaf8; color: #242b33; box-shadow: 0 .3rem 1rem #242b3326; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.term-popover[hidden] { display: none; }
.term-close { display: block; margin-top: .75rem; padding: .35rem .65rem; min-height: 2.75rem; border: 1px solid #d9dce0; border-radius: .2rem; background: #eceef0; color: #215b91; font: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; background: #eceef0; padding: .15em .3em; border-radius: .2rem; }
pre { overflow-x: auto; padding: 1rem; background: #eceef0; border-radius: .35rem; font-size: .95rem; line-height: 1.6; }
pre code { padding: 0; background: none; }
.highlight .c, .highlight .c1 { color: #59616b; }
.highlight .k, .highlight .kd { color: #6b398d; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #256644; }
.article-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #d9dce0; justify-content: space-between; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.25rem; border-top: 1px solid #d9dce0; padding-block: 1.5rem; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .5rem; background: white; }
.skip-link:focus { top: .5rem; }
@media (max-width: 600px) {
  html { font-size: 16px; }
  main { padding-block: 2rem; }
  .intro { flex-direction: column; gap: 1.5rem; }
  .portrait { width: 112px; height: 112px; }
}
.reading-progress { margin-block: 1.5rem; }
.read-toggle { padding: .35rem .75rem; min-height: 2.75rem; border: 1px solid #d9dce0; border-radius: .2rem; background: #eceef0; color: #215b91; font: inherit; cursor: pointer; }
.read-toggle:hover { background: #e1e5e8; }
.read-toggle:focus-visible { outline: 3px solid #215b91; outline-offset: 4px; }
.read-indicator { margin-left: .4rem; color: #59616b; font-size: .8rem; font-weight: 400; letter-spacing: normal; white-space: nowrap; }
.series-nav { display: block; margin-top: 2rem; font-size: .9rem; }
.reading-state { margin-left: .75rem; }
.reading-management { margin-block: 1.5rem; }
.reading-progress .reading-management { margin-block: .5rem 1rem; }
.reading-management p { margin-block: .5rem; }
.reading-clear { font-size: .85rem; }
.reading-management [data-reading-note]:empty { margin: 0; }
