:root { color-scheme:light; color:#202934; background:#fcfdff; }
* { box-sizing:border-box; }
body { max-width:48rem; margin:auto; padding:clamp(28px,5vw,64px) clamp(18px,4vw,32px); font:1.08rem/1.65 Georgia,serif; }
nav,.byline { font:.88rem/1.5 ui-monospace,monospace; }
a { color:#215c94; text-underline-offset:.17em; }
a:hover { color:#123f70; }
:focus-visible { outline:2px solid #366c9f; outline-offset:3px; }
header { padding:18px 0; border-bottom:1px solid #c4cfda; margin-bottom:24px; }
h1 { font:600 clamp(1.75rem,4vw,2.6rem)/1.16 ui-monospace,monospace; letter-spacing:-.05em; margin:0; }
header p { margin:.65rem 0 0; }
.byline { color:#526172; }
.blog-content h2,.blog-content h3 { font-family:system-ui,sans-serif; line-height:1.25; margin-top:1.6em; }
.blog-content img { max-width:100%; height:auto; }
.blog-content figure { margin:1.5em 0; }
.blog-content figcaption { color:#526172; font:.88rem/1.5 system-ui,sans-serif; }
.blog-content pre { overflow:auto; padding:12px; background:#f1f4f7; }
.blog-content table { display:block; overflow-x:auto; max-width:100%; }
#toc-side { display: none; }
#toc-side .toc-title { font-family: 'Lato', sans-serif; font-weight: 700; color: #333; font-size: 12.5px; margin-bottom: 6px; }
#toc-side a { display: block; color: #1772d0; text-decoration: none; padding: 3px 0 3px 9px; border-left: 2px solid #eee; font-family: 'Lato', sans-serif; font-size: 12.5px; line-height: 1.4; }
#toc-side a.sub { padding-left: 20px; font-size: 12px; color: #5b8fbf; }
#toc-side a:hover { color: #f09228; }
#toc-side a.cur { color: #08306b; font-weight: 700; border-left-color: #1772d0; }

/*******************************/
/* Right-margin sidenotes      */
/*******************************/
.blog-content > *:first-child { margin-top: 0; }
.sidenote { display: none; position: absolute; width: 200px; font-family: 'Lato', sans-serif; font-size: 12px; line-height: 1.45; color: #666; }
.sidenote-num { color: #1772d0; font-weight: 700; margin-right: 3px; }

@media screen and (min-width: 1240px) {
  #toc-side { display: block; position: fixed; top: 90px; left: calc(50% - 590px); width: 180px; max-height: 78vh; overflow: auto; }
  body.sidenotes-on .sidenote { display: block; left: calc(50% + 398px); }
  body.sidenotes-on .footnotes { display: none; }
}
