/* ProLucius journal: compact archive, readable articles, original clubhouse palette. */
.blog-index{padding-block:2.25rem 3.5rem;max-width:78rem}
.blog-intro{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.3rem}
.blog-intro h1{font-size:clamp(2.2rem,4.5vw,3.6rem);margin:.35rem 0 .65rem}
.blog-intro h1 span{color:var(--purple)}
.blog-intro p:last-child{color:#ded2e8;font-size:1rem}
.blog-intro>img{width:5rem;height:5rem;flex-shrink:0;transform:rotate(-8deg)}
.blog-categories,.blog-pagination{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;width:100%;padding:0}
.blog-categories{margin-bottom:1.5rem}
.blog-categories a{min-height:44px;padding:.45rem 1rem;border:1px solid #b9a0ff77;border-radius:2rem;background:#342a42;font-size:.85rem}
.blog-categories a[aria-current]{background:var(--lavender);color:var(--ink);border-color:var(--lavender)}
.blog-categories a:hover{border-color:var(--cream)}
.filter-label{margin-bottom:1rem}.filter-label a{text-decoration:underline}
.post-card{border:2px solid #100b18;border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:5px 6px 0 #100b18;min-width:0;overflow:hidden}
.post-card .window-title,.blog-article>.window-title{background:#d3bbed;color:var(--ink);border-bottom:2px solid #100b18;font-family:ui-monospace,monospace;overflow-wrap:anywhere}
.post-featured{background:#e5d7f5}
.post-copy{padding:1.5rem 1.6rem;min-width:0}
.post-copy h2{font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.15;margin:.65rem 0 .8rem;overflow-wrap:anywhere}
.post-featured h2{font-size:clamp(2rem,3.5vw,3rem)}
.post-copy h2 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.post-copy>p{font-family:system-ui,sans-serif;font-weight:400;font-size:1.05rem;line-height:1.7;max-width:70ch;margin:0 0 1.15rem;color:#43354e;overflow-wrap:anywhere}
.blog-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem 1rem;font-family:system-ui,sans-serif;font-weight:500;font-size:.85rem;color:#5b466a}
.blog-meta a{text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.blog-meta time,.blog-meta>span{padding-block:.25rem}
.post-cover{display:block;overflow:hidden}.post-cover img{width:100%;max-height:22rem;object-fit:cover}
.post-featured .post-inner:has(.post-cover){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
.post-featured .post-cover img{height:100%;min-height:15rem;max-height:28rem}
.recent-posts{margin-top:2rem}.recent-posts>.eyebrow{margin-bottom:1rem;color:#dac5ee}
.blog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.blog-read-link{min-height:44px;display:inline-flex;align-items:center;gap:.5rem;text-decoration:underline;text-underline-offset:5px}
.blog-pagination{padding-block:2rem 0;justify-content:space-between;font-size:.85rem;color:#e1d6ea}
.archive-end{color:#c9b7db}
.blog-empty{padding:2rem 0 5rem}.blog-empty a{text-decoration:underline}
.blog-page{max-width:65rem;padding-block:1.5rem 4rem;min-width:0}
.blog-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:1rem;text-decoration:underline;text-underline-offset:5px}
.blog-article{background:var(--paper);color:var(--ink);border:2px solid #100b18;border-radius:14px;box-shadow:7px 9px 0 #100b18;min-width:0;overflow:hidden}
.blog-article-header{padding:clamp(1.4rem,4vw,3.5rem) clamp(1.2rem,4vw,4rem) 1.5rem;border-bottom:1px solid #211c2b26;background:linear-gradient(140deg,#e5d7f5,#fff1d4)}
.blog-article-header>.eyebrow{color:#64437d}
.blog-article-header h1{font-size:clamp(2.4rem,5vw,4rem);line-height:1.1;margin:.7rem 0 1rem;overflow-wrap:anywhere}
.blog-content{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:400;font-size:1.1rem;line-height:1.85;max-width:74ch;margin:auto;padding:2rem clamp(1.2rem,4vw,3rem) 3rem;overflow-wrap:anywhere;min-width:0}
.blog-content>:first-child{margin-top:0}.blog-content p,.blog-content ul,.blog-content ol,.blog-content dl{margin:0 0 1.4em}
.blog-content li+li{margin-top:.4rem}.blog-content ul,.blog-content ol{padding-left:1.5em}
.blog-content h1,.blog-content h2,.blog-content h3,.blog-content h4,.blog-content h5,.blog-content h6{font-family:'Bubblegum Sans',sans-serif;font-weight:400;line-height:1.25;margin:1.7em 0 .6em;scroll-margin-top:7rem;color:#553079}
.blog-content h2{font-size:2.2rem}.blog-content h3{font-size:1.7rem}.blog-content h4{font-size:1.4rem}
.blog-content a{color:#602996;text-decoration:underline;text-underline-offset:3px}
.blog-content hr{border:0;border-top:2px dashed #a686bd;margin:2.5rem 0}
.blog-content img{height:auto;max-width:100%;border-radius:8px;margin:1.5rem auto}
.blog-content figure,.blog-cover{margin:1.5rem 0}.blog-cover{padding-inline:clamp(1.2rem,4vw,4rem)}
.blog-cover img{width:100%;height:auto;border-radius:8px}
.blog-content figcaption,.blog-cover figcaption{font-size:.9rem;line-height:1.6;text-align:center;color:#675271;margin-top:.7rem;font-family:system-ui,sans-serif;font-weight:400}
.blog-content blockquote{margin:1.8rem 0;padding:1rem 1.4rem;border-left:5px solid #8150aa;background:#eadcf3;border-radius:0 8px 8px 0;color:#483254}
.blog-content blockquote>:last-child{margin-bottom:0}
.blog-content .callout{border-left-color:#46785b;background:#e2efda}.blog-content .callout-warning{border-left-color:#ac5700;background:#ffdfb0}
.callout-label{display:block;margin-bottom:.5rem;font-size:.85rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em}
.blog-content :not(pre)>code{font: .88em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:#542479;background:#e6d8ed;border:1px solid #c4aad4;border-radius:4px;padding:.15em .35em;overflow-wrap:anywhere;white-space:break-spaces}
.blog-content pre{position:relative;max-width:100%;overflow:auto;background:#211a2b;color:#f5ecff;border:1px solid #715288;border-radius:10px;padding:3.4rem 1.2rem 1.2rem;margin:1.5rem 0;line-height:1.65;tab-size:4;overscroll-behavior-x:contain}
.blog-content pre code{font: .87rem/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;word-break:normal;overflow-wrap:normal;display:block;min-width:max-content}
.code-tools{position:sticky;left:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:-2.9rem;margin-bottom:.65rem;max-width:100%;font:.75rem system-ui,sans-serif;color:#d6b9ec}
.copy-code{min-height:44px;padding:.3rem .75rem;border:1px solid #b9a0ff;border-radius:6px;color:#fff1d4;background:#3c2d4e;font-size:.8rem}
.copy-code:hover{background:#593c72}.copy-status{font:.8rem system-ui,sans-serif}
.table-scroll{max-width:100%;overflow:auto;margin:1.5rem 0;border:1px solid #b99dcd;border-radius:8px;overscroll-behavior-x:contain}
.blog-content table{display:block;overflow-x:auto;max-width:100%;border-collapse:collapse;font-size:.95rem;margin:1.5rem 0}
.table-scroll table{display:table;margin:0;width:100%}
.blog-content th,.blog-content td{padding:.7rem 1rem;text-align:left;border:1px solid #cbb7d5;min-width:7rem;vertical-align:top}
.blog-content th{background:#dfcaef;font-weight:700}.blog-content tbody tr:nth-child(even){background:#f3e7ef}
.blog-content caption{caption-side:bottom;text-align:left;padding:1rem;color:#675271}
.article-toc{max-width:64ch;margin:1.5rem clamp(1.2rem,4vw,4rem) 0;padding:.8rem 1rem;border:1px solid #aa89c3;border-radius:8px;background:#f0e4f6;font-family:system-ui,sans-serif;font-weight:400}
.article-toc summary{cursor:pointer;font-weight:650;min-height:44px;display:flex;align-items:center}
.article-toc nav{display:block;width:100%;padding:0;font-size:.95rem}.article-toc ol{padding-left:1.3rem;margin:.5rem 0}
.article-toc a{display:block;padding:.35rem 0;min-height:36px;text-decoration:underline;color:#5d2b84}
.article-toc .toc-sub{margin-left:1rem;font-size:.9em}
.blog-tags{display:flex;gap:.6rem;flex-wrap:wrap;padding:0 clamp(1.2rem,4vw,4rem) 2rem;color:#674a80;font-size:.85rem}
.article-neighbours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin-top:2rem;width:100%;padding:0}
.article-neighbours>a{display:flex;flex-direction:column;align-items:flex-start;gap:.6rem;min-width:0;padding:1.3rem;border:1px solid #856699;border-radius:10px;background:#33293f;overflow-wrap:anywhere}
.article-neighbours strong{font-size:1.1rem}.article-neighbours .eyebrow{color:#cbb1e5}
.blog-article :focus-visible,.post-card :focus-visible{outline:3px solid #663192;outline-offset:4px}
.blog-content pre:focus-visible{outline:3px solid #663192;outline-offset:3px}.blog-content pre button:focus-visible{outline-color:#07eb95}
.table-scroll:focus-visible{outline:3px solid #663192;outline-offset:3px}
.hljs-comment,.hljs-quote{color:#b7a8c3;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-name{color:#e7b0ff}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute{color:#b5e59b}.hljs-number,.hljs-symbol,.hljs-bullet{color:#ffba86}.hljs-title,.hljs-section,.hljs-selector-id{color:#92dbef}.hljs-variable,.hljs-template-variable,.hljs-params{color:#f9e1a0}.hljs-deletion{color:#ff9db6}.hljs-built_in,.hljs-type{color:#97dccb}.hljs-meta{color:#b9a0ff}
@media(max-width:700px){.blog-index{padding-top:1.5rem}.blog-intro>img{width:3.5rem;height:3.5rem}.blog-intro{align-items:flex-start}.blog-intro h1{font-size:2.35rem}.blog-intro p:last-child{font-size:.92rem}.blog-grid,.article-neighbours,.post-featured .post-inner:has(.post-cover){grid-template-columns:minmax(0,1fr)}.post-copy{padding:1.2rem}.blog-article-header h1{font-size:2.5rem}.blog-content{font-size:1rem}.blog-content h2{font-size:1.9rem}.blog-categories{flex-direction:row;align-items:center;gap:.5rem}.blog-pagination{flex-direction:row;justify-content:flex-start;gap:1rem}.blog-page{padding-top:1rem}.blog-content pre{padding-inline:.8rem}.blog-article{box-shadow:4px 5px 0 #100b18}}
@media print{.header,.footer,.blog-back,.article-neighbours,.copy-code,.skip{display:none}.blog-site main{padding:0}.blog-article{box-shadow:none;border:0}.blog-content{max-width:none}.blog-content pre{white-space:pre-wrap;background:#eee;color:#111}.blog-content pre code{white-space:pre-wrap;min-width:0;color:#111}}

/* Keep code controls visible even when clipboard permission is unavailable. */
.code-tools{flex-wrap:wrap;gap:.3rem .7rem}.copy-code{flex-shrink:0}.copy-status{order:3;flex-basis:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.copy-status:empty{display:none}
.blog-content th,.blog-content td{overflow-wrap:normal}

.post-copy .post-state{font:600 .8rem/1.5 system-ui,sans-serif;color:#623a7e;margin:.2rem 0 .7rem}
