/* Shared chrome for the blog pages: same tokens and header/footer as the homepage. */
:root{
  --paper:#eaf4fc; --sheet:#f7fbff; --rule:#c8def0; --ink:#142b3d; --muted:#4a6478;
  --blue:#1f6fb2; --blue-soft:#d7e9f8; --sky:#bcdcf4; --red:#b23a2e;
  --f-display:"Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --f-body:"Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:"IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --paper:#0f1a24; --sheet:#15222f; --rule:#283a4b; --ink:#e3eef7; --muted:#9cb3c6;
  --blue:#8cc6f2; --blue-soft:#1c3247; --sky:#1d3a55; --red:#ee7b6e; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#0f1a24; --sheet:#15222f; --rule:#283a4b; --ink:#e3eef7; --muted:#9cb3c6;
  --blue:#8cc6f2; --blue-soft:#1c3247; --sky:#1d3a55; --red:#ee7b6e; color-scheme:dark}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1rem/1.6 var(--f-body)}
img{max-width:100%}
[hidden]{display:none!important}
.wrap{max-width:1080px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
h1,h2,h3{font-family:var(--f-display);text-wrap:balance;margin:0;line-height:1.15}
p{margin:0}
a{color:var(--blue)}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.eyebrow{font:500 .75rem/1 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}

header{border-bottom:1px solid var(--rule);background:var(--paper);position:sticky;top:env(safe-area-inset-top,0px);z-index:5}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--paper)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:14px}
.brand{font:700 1.15rem/1.1 var(--f-display);color:var(--ink);text-decoration:none}
.brand small{display:block;font:400 .72rem/1.3 var(--f-mono);color:var(--muted);letter-spacing:.06em}
nav{display:flex;gap:20px;flex-wrap:wrap}
nav a{color:var(--ink);text-decoration:none;font-size:.9rem;font-weight:500}
nav a:hover,nav a[aria-current="page"]{color:var(--blue)}
@media (max-width:720px){nav{display:none}}
.btn{display:inline-block;background:var(--blue);color:var(--sheet);text-decoration:none;font-weight:600;padding:12px 20px;border-radius:3px;font-size:.95rem;border:0;font-family:inherit;cursor:pointer}
.btn.ghost{background:transparent;color:var(--blue);border:1.5px solid var(--blue)}

main{padding-block:56px 80px}
.page-head{display:grid;gap:12px;max-width:62ch;margin-bottom:32px}
.page-head h1{font-size:clamp(2.1rem,4.6vw,3.2rem)}
.page-head p{color:var(--muted);font-size:1.08rem}

.pills{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px}
.pill{border:1px solid var(--rule);background:var(--sheet);color:var(--ink);padding:8px 16px;border-radius:999px;font:500 .9rem/1 var(--f-body);cursor:pointer}
.pill[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:var(--sheet)}

/* single post */
.back{display:inline-block;font:500 .85rem/1 var(--f-mono);text-decoration:none;margin-bottom:28px}
.article{max-width:720px;margin:0 auto}
.article header.post-head{position:static;border:0;background:none;display:grid;gap:14px;margin-bottom:28px}
.post-head h1{font-size:clamp(2rem,4.4vw,3rem)}
.post-meta{font:400 .85rem/1.5 var(--f-mono);color:var(--muted)}
.post-cover{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:4px;border:1px solid var(--rule);margin-bottom:32px;max-height:45vh}
.post-cover.card-cover--empty{display:none}
.post-body{font-size:1.06rem;line-height:1.75}
.post-body > * + *{margin-top:1.1em}
.post-body h2,.post-body h3{font-family:var(--f-display);font-size:1.55rem;margin-top:1.6em;line-height:1.25}
.post-body ul,.post-body ol{padding-left:1.4em}
.post-body li + li{margin-top:.4em}
.post-body li p{margin:0}
.post-body blockquote{margin-inline:0;border-left:3px solid var(--blue);background:var(--sheet);padding:14px 20px;font-family:var(--f-display);font-size:1.2rem;line-height:1.45}
.post-body blockquote p{margin:0}
.post-body img{height:auto;border-radius:4px}
.post-body a{text-underline-offset:3px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:36px;padding-top:24px;border-top:1px solid var(--rule)}
.tag{font:500 .78rem/1 var(--f-mono);color:var(--blue);background:var(--blue-soft);padding:6px 10px;border-radius:2px}
.cta-box{margin-top:40px;background:var(--sky);border-radius:4px;padding:24px 26px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.cta-box p{font:600 1.15rem/1.35 var(--f-display);max-width:40ch}
.related{margin-top:72px;padding-top:40px;border-top:1px solid var(--rule)}
.related h2{font-size:1.6rem;margin-bottom:24px}
.state{max-width:56ch;margin:40px auto;text-align:center;display:grid;gap:14px;justify-items:center}
.state h1{font-size:2rem}
.state p{color:var(--muted)}
.state.error h1{color:var(--red)}

footer{padding-block:28px;font-size:.82rem;color:var(--muted);border-top:1px solid var(--rule)}
footer .wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}