/* Public blog styles. Colors and fonts come from the theme variables set per site. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);font-size:18px;line-height:1.75;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-underline-offset:3px}
.wrap{max-width:720px;margin:0 auto;padding:0 24px}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 0 22px;border-bottom:1px solid var(--border);font-family:var(--font-heading)}
.site-title{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:17px;color:var(--text);text-decoration:none;letter-spacing:-0.01em}
.site-icon{width:28px;height:28px;border-radius:7px;object-fit:contain;flex-shrink:0}
.site-header nav{display:flex;gap:20px;font-size:14px}
.site-header nav a{color:var(--secondary);text-decoration:none}
.site-header nav a:hover{color:var(--text)}
.site-header nav a.nav-subscribe{color:var(--accent);font-weight:500}
main{padding:40px 0 24px}
.tagline{color:var(--secondary);font-size:17px;margin:0 0 32px}
.post-list{display:flex;flex-direction:column;gap:36px}
.post-card h2{font-family:var(--font-heading);font-size:26px;line-height:1.3;margin:0 0 4px;font-weight:600;letter-spacing:-0.01em}
.post-card h2 a{color:var(--text);text-decoration:none}
.post-card h2 a:hover{color:var(--accent)}
.meta{font-family:var(--font-heading);font-size:13px;color:var(--muted);margin:0 0 10px}
.excerpt{margin:0 0 8px;color:var(--secondary);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.more{font-family:var(--font-heading);font-size:14px}
.empty{color:var(--muted)}
.post h1{font-family:var(--font-heading);font-size:40px;line-height:1.2;margin:0 0 24px;font-weight:600;letter-spacing:-0.02em;padding-bottom:18px;border-bottom:1px solid var(--border)}
.cover{width:100%;border-radius:10px;margin:0 0 28px;border:1px solid var(--border)}
.content h1,.content h2,.content h3,.content h4{font-family:var(--font-heading);line-height:1.3;font-weight:600;margin:1.8em 0 .6em;color:var(--text)}
.content h1{font-size:1.8em}.content h2{font-size:1.45em}.content h3{font-size:1.2em}
.content p{margin:0 0 1.15em}
.content img{max-width:100%;height:auto;border-radius:8px}
.content ul,.content ol{padding-left:1.5em;margin:0 0 1.15em}
.content li{margin-bottom:.35em}
.content blockquote{margin:1.4em 0;padding:.8em 1.2em;border-left:3px solid var(--accent);background:var(--code-bg);border-radius:0 6px 6px 0;color:var(--secondary);font-style:italic}
.content blockquote p{margin:0}
.content code{font-family:var(--font-mono);font-size:.84em;background:var(--code-bg);border:1px solid var(--code-border);padding:.12em .38em;border-radius:4px}
.content pre{background:#2c2420;color:#f1e9df;border-radius:10px;padding:16px 18px;overflow-x:auto;font-size:14px;line-height:1.6;margin:0 0 1.3em}
.content pre code{background:none;border:0;padding:0;font-size:inherit;color:inherit}
.content hr{border:0;border-top:1px solid var(--border);margin:2.2em 0}
.content table{border-collapse:collapse;width:100%;margin:0 0 1.3em;font-size:.92em}
.content th,.content td{border:1px solid var(--border);padding:.45em .7em;text-align:left}
.content th{background:var(--code-bg);font-family:var(--font-heading);font-weight:600}
.tags{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:28px 0 0}
.tags li{font-family:var(--font-heading);font-size:12px;color:var(--secondary);border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:2px 10px}
.subscribe{margin:24px 0 8px;padding:24px;border:1px solid var(--border);border-radius:14px;background:var(--surface);font-family:var(--font-heading)}
.subscribe h2{margin:0 0 4px;font-size:18px;font-weight:600}
.subscribe p{margin:0 0 14px;font-size:14px;color:var(--secondary)}
.subscribe form{display:flex;gap:8px;flex-wrap:wrap}
.subscribe input[type=email]{flex:1;min-width:200px;font:inherit;font-size:15px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text)}
.subscribe button{font:inherit;font-size:15px;font-weight:500;padding:10px 18px;border:0;border-radius:8px;background:var(--accent);color:#fff;cursor:pointer}
.theme-mono .subscribe button{color:#fff}
.subscribe .fine{margin:10px 0 0;font-size:12px;color:var(--muted)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.message{padding:24px 0}
.message h1{font-family:var(--font-heading);font-size:30px;margin:0 0 10px}
.site-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:28px 0 40px;margin-top:24px;border-top:1px solid var(--border);font-family:var(--font-heading);font-size:13px;color:var(--muted)}
.site-footer a{color:var(--muted)}
/* code highlighting on the dark code block */
.hljs-comment,.hljs-quote{color:#a8998c;font-style:italic}
.hljs-keyword,.hljs-selector-tag,.hljs-literal{color:#e0a872}
.hljs-string,.hljs-attr,.hljs-template-tag{color:#b5c98f}
.hljs-number,.hljs-built_in,.hljs-type{color:#e6c07b}
.hljs-title,.hljs-section,.hljs-function{color:#9fc3d6}
.hljs-meta,.hljs-symbol{color:#d79bb5}
@media (max-width:640px){body{font-size:17px}.post h1{font-size:30px}.post-card h2{font-size:22px}.site-header{flex-direction:column;align-items:flex-start}}
.unsubscribe-form{margin:18px 0}
.unsubscribe-form button{font:inherit;font-size:15px;font-weight:500;padding:10px 18px;border:0;border-radius:8px;background:var(--accent);color:#fff;cursor:pointer}
