/* Site styles sit outside Markdeep's layers and apply to the blog shell. */
:root { color-scheme: light; --paper:#faf9f6; --ink:#292b28; --muted:#73756f; --line:#deded5; --accent:#a64527; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align:left; }
a { color:inherit; text-decoration-thickness:1px; text-underline-offset:4px; }
a:hover { color:var(--accent); }
a:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.site-header,main,.site-footer { width:min(100% - 64px,1000px); margin-inline:auto; }
.site-header { display:flex; align-items:center; justify-content:space-between; padding:33px 0; border-bottom:1px solid var(--line); }
.wordmark { font-family:Georgia,serif; font-size:25px; font-weight:bold; letter-spacing:-1px; text-decoration:none; }
.wordmark span,.intro h1 span { color:var(--accent); }
nav { display:flex; gap:28px; font-size:13px; }
nav a { text-decoration:none; }
main { min-height:calc(100vh - 228px); padding-bottom:100px; }
.intro { padding:80px 0 64px; max-width:760px; }
.eyebrow { color:var(--accent); font-size:11px; font-weight:650; letter-spacing:2px; margin:0 0 22px; }
h1,h2,p { margin-top:0; }
.intro h1 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(36px,5.6vw,60px); font-weight:400; letter-spacing:-2px; line-height:1.15; margin-bottom:24px; }
.intro>p:last-child { font-size:18px; color:var(--muted); max-width:560px; margin:0; }
.section-heading { display:flex; justify-content:space-between; align-items:baseline; border-bottom:1px solid var(--line); padding-bottom:15px; }
.section-heading h2 { margin:0; font-size:13px; font-weight:600; }
.section-heading h2 span { color:var(--muted); font-size:11px; margin-left:12px; font-weight:400; }
.section-heading>a { color:var(--muted); font-size:12px; text-decoration:none; }
.post-list { list-style:none; padding:0; margin:0; }
.post-list>li { display:grid; grid-template-columns:155px 1fr 20px; gap:24px; padding:34px 0; border-bottom:1px solid var(--line); }
.post-date { color:var(--muted); font-size:12px; }
.post-list .post-date { padding-top:6px; }
.post-list .updated { display:block; margin-top:6px; }
.post-list h2 { font:400 27px/1.25 Georgia,serif; letter-spacing:-.5px; margin-bottom:12px; }
.post-list h2 a { text-decoration:none; }
.post-list p { color:var(--muted); font-size:14px; line-height:1.7; margin-bottom:16px; max-width:570px; }
.post-arrow { font-size:20px; color:var(--accent); }
.tags { display:flex; flex-wrap:wrap; gap:8px; }
.tag { display:inline-block; padding:2px 9px; border:1px solid var(--line); border-radius:4px; text-decoration:none; font:11px/1.7 system-ui,sans-serif; color:#5a5f54; }
.tag:hover { border-color:var(--accent); }
.tag-index { margin:0; padding:0; list-style:none; border-top:1px solid var(--line); }
.tag-index a { display:flex; justify-content:space-between; gap:24px; padding:22px 0; border-bottom:1px solid var(--line); text-decoration:none; font:25px Georgia,serif; }
.tag-index span { font:12px/2 system-ui,sans-serif; color:var(--muted); }
.site-footer { display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--line); padding:26px 0; color:var(--muted); font-size:11px; }
.back-link { display:inline-block; font:12px/1.8 system-ui,sans-serif; color:var(--muted); text-decoration:none; margin-bottom:28px; }
.article-header { max-width:800px; margin:60px auto 42px; border-bottom:1px solid var(--line); padding-bottom:35px; }
.article-header h1 { font:400 clamp(32px,4.5vw,48px)/1.18 Georgia,serif; letter-spacing:-1px; margin:0 0 24px; }
.article-header .tags { margin-top:16px; }
.article-body { max-width:800px; margin:auto; }
.article-body .md { font:17px/1.85 Georgia,"Times New Roman",serif; text-align:left; color:var(--ink); max-width:100%; padding:0; margin:0; background:transparent; }
.article-body .md p { margin:1.2em 0; }
.article-body .md h1,.article-body .md h2,.article-body .md h3 { font-family:Georgia,serif; color:var(--ink); font-weight:400; line-height:1.3; margin-top:1.8em; }
.article-body .md img { max-width:100%; height:auto; border-radius:3px; }
.article-body .md a { color:var(--accent); overflow-wrap:anywhere; }
.article-body .md blockquote { border-left:2px solid var(--line); margin:24px 0; padding:0 0 0 24px; color:#55594f; }
.article-body .md pre { max-width:100%; overflow:auto; text-align:left; }
.article-body .md code { font-size:.85em; }
.article-body .md table { max-width:100%; }
.article-body mjx-container[display="true"] { overflow-x:auto; overflow-y:hidden; padding:10px 0; max-width:100%; }
.article-body .md svg { max-width:100%; }
.article-end { display:block; max-width:800px; margin:60px auto 0; border-top:1px solid var(--line); padding-top:24px; }
.skip-link { position:absolute; left:16px; top:-80px; padding:8px 16px; background:var(--paper); z-index:10; }
.skip-link:focus { top:8px; }
.empty-state { color:var(--muted); padding:40px 0; }
@media(max-width:640px) {
  .site-header,main,.site-footer { width:calc(100% - 36px); }
  .site-header { padding:23px 0; }
  nav { gap:16px; font-size:12px; }
  .wordmark { font-size:22px; }
  .intro { padding:54px 0 44px; }
  .intro h1 { letter-spacing:-1px; }
  .post-list>li { grid-template-columns:1fr 20px; gap:10px; padding:26px 0; }
  .post-list .post-date { grid-column:1/-1; padding:0; }
  .post-list .updated { display:inline; }
  .post-list h2 { font-size:25px; }
  .site-footer { flex-direction:column; gap:6px; }
  .article-header { margin-top:38px; }
  .article-body .md { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
@media print { nav,.back-link,.site-footer,.skip-link { display:none; } body { background:white; } main { width:100%; } .article-header { margin-top:20px; } }
