.blog-page {
    --acid: var(--panel);
    --blog-bg: #000;
    --blog-surface: #151515;
    --blog-text: #f2f2f2;
    --blog-muted: #aaa;
    --blog-rule: rgba(255,255,255,.18);
    color: var(--blog-text);
    background: var(--blog-bg);
    color-scheme: dark;
}
@media screen { html:has(> .blog-page) { background: #000; } }
.blog-page .site-header { --nav-surface: var(--blog-bg); --nav-text: var(--blog-text); --nav-muted: var(--blog-muted); --nav-rule: var(--blog-rule); color: var(--blog-text); background: var(--blog-bg); border-color: var(--blog-rule); }
.blog-page .primary-nav > a, .blog-page .products-menu > summary { color: var(--blog-muted); }
.blog-page .primary-nav > a:hover, .blog-page .primary-nav > a:is([aria-current="page"], [aria-current="location"]), .blog-page .products-menu > summary:hover, .blog-page .products-menu[open] > summary { color: var(--blog-text); }
.blog-page .skip-link { color: var(--blog-bg); background: var(--blog-text); }
.blog-main { width: min(80rem, calc(100% - clamp(2.5rem, 10vw, 10rem))); }
.blog-main { padding-top: clamp(9rem, 12vw, 11rem); }
.blog-heading { max-width: 42rem; margin-bottom: 5rem; }
.blog-heading h1 { margin: 0 0 1.5rem; font-size: clamp(3.5rem, 6.5vw, 6rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.blog-intro { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--blog-muted); }
.blog-posts { border-top: 1px solid var(--blog-rule); }
.blog-entry { padding: 2.5rem 0; border-bottom: 1px solid var(--blog-rule); }
.blog-entry-copy { display: grid; grid-template-columns: 12rem minmax(0, 1fr); column-gap: 3rem; min-width: 0; }
.blog-entry-meta { grid-row: 1 / 4; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding-top: .4rem; color: var(--blog-muted); font-size: .8rem; line-height: 1.5; }
.blog-entry-meta > span { color: var(--blog-text); }
.blog-entry h2 { max-width: 28ch; margin: 0 0 1rem; font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.blog-entry h2 a { text-decoration: none; }
.blog-entry h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.blog-entry-copy > p { max-width: 52ch; margin: 0; color: var(--blog-muted); font-size: 1rem; line-height: 1.6; }
.blog-entry-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.4rem; color: var(--blog-muted); font-size: .73rem; }
.blog-entry-foot > a { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; margin-left: auto; color: var(--blog-text); text-decoration: none; }
.blog-entry-foot > a:hover { text-decoration: underline; text-underline-offset: .2em; }
.blog-entry-featured.has-cover { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.blog-entry-featured.has-cover .blog-entry-copy { display: block; }
.blog-entry-featured.has-cover .blog-entry-meta { flex-direction: row; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; padding: 0; }
.blog-entry-image { display: block; }
.blog-entry-image img { display: block; width: 100%; height: auto; }
.blog-empty { padding: 2rem 0; }
.post-main { padding-top: 8rem; }
.post-heading { max-width: 54rem; margin: 0 auto 5rem; padding-top: clamp(2rem, 6vh, 5rem); text-align: center; }
/* Optional, decorative artwork. The plain heading keeps its original spacing. */
.post-main-with-header { width: 100%; }
.post-main-with-header :is(.post-layout, .post-cover, .post-end, .post-more) { width: min(80rem, calc(100% - clamp(2.5rem, 10vw, 10rem))); margin-inline: auto; }
.post-heading.has-header-image { position: relative; isolation: isolate; max-width: none; padding: clamp(11rem, 20vw, 18rem) max(calc((100% - 54rem) / 2), calc(clamp(2.5rem, 10vw, 10rem) / 2)) 0; }
.post-header-art { position: absolute; z-index: -1; inset: -3rem 0; overflow: clip; pointer-events: none; user-select: none; }
@media screen { .post-heading.has-header-image { --blog-muted: #bbb; } }
.post-header-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .8; }
.post-header-art > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.post-header-art.is-animated > img { visibility: hidden; }
.post-motion-toggle { position: absolute; top: .75rem; right: clamp(1.25rem, 3vw, 3.5rem); min-height: 2.75rem; padding: .5rem; border: 0; background: transparent; color: #aaa; font: inherit; font-size: .7rem; cursor: pointer; }
.post-motion-toggle:hover { color: #f2f2f2; }.post-motion-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .post-header-art.is-animated > img { visibility: visible; }
    .post-header-art > canvas, .post-motion-toggle { display: none; }
}
.post-header-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.08) 18%, rgba(0,0,0,.75) 42%, rgba(0,0,0,.95) 64%, #000 94%); }
.post-dateline { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-bottom: 1.8rem; color: var(--blog-muted); font-size: .82rem; line-height: 1.5; }
.post-heading h1 { max-width: 18ch; margin: 0 auto 1.8rem; font-size: clamp(3rem, 5.2vw, 4.75rem); font-weight: 500; line-height: 1.06; letter-spacing: -.05em; text-wrap: balance; }
.post-description { max-width: 50ch; margin: 0 auto; font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; text-wrap: pretty; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-top: 2rem; color: var(--blog-muted); font-size: .8rem; line-height: 1.5; }
.post-example-notice { margin: 1rem 0 0; color: var(--blog-muted); font-size: .72rem; line-height: 1.5; }
.post-cover { max-width: 60rem; margin: 0 auto 4.5rem; }
.post-cover img { display: block; width: 100%; height: auto; }
.post-cover figcaption { margin-top: 1rem; color: var(--blog-muted); font-size: .8rem; line-height: 1.5; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42rem) minmax(0, 1fr); column-gap: 3rem; }
.post-prose { grid-column: 2; min-width: 0; color: var(--blog-text); font-size: 1.12rem; line-height: 1.75; overflow-wrap: anywhere; }
.post-prose > :first-child { margin-top: 0; }
.post-prose p { margin: 0 0 1.5rem; }
.post-prose strong { font-weight: 650; }
.post-prose :is(h2,h3,h4,h5,h6) { position: relative; margin: 3.5rem 0 1.25rem; font-weight: 550; line-height: 1.25; letter-spacing: -.03em; scroll-margin-top: 7rem; }
.post-prose h2 { font-size: 2rem; }
.post-prose h3 { margin-top: 2.5rem; font-size: 1.45rem; }
.post-prose :is(h4,h5,h6) { font-size: 1.12rem; }
.post-prose a { text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--blog-muted); }
.post-prose a:hover { text-decoration-color: var(--blog-text); }
.post-prose .heading-anchor { display: inline-block; margin-left: .4rem; padding: .2rem; color: var(--blog-muted); font-size: .65em; text-decoration: none; opacity: 0; }
.post-prose :is(h2,h3,h4,h5,h6):hover .heading-anchor, .post-prose .heading-anchor:focus-visible { opacity: 1; }
.post-prose :is(ul,ol) { margin: 1.25rem 0 1.75rem; padding-left: 1.4rem; }
.post-prose li { margin-bottom: .65rem; padding-left: .2rem; }
.post-prose li :is(ul,ol) { margin: .5rem 0; }
.post-prose li > p { margin-bottom: .6rem; }
.post-prose blockquote { margin: 2.5rem 0; padding: .15rem 0 .15rem 1.5rem; border-left: 2px solid var(--blog-rule); font-size: 1.3rem; line-height: 1.6; }
.post-prose blockquote > :last-child { margin-bottom: 0; }
.post-prose hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--blog-rule); }
.post-prose :not(pre) > code { padding: .15em .35em; background: var(--blog-surface); font-size: .82em; overflow-wrap: anywhere; }
.post-prose code { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.post-code { margin: 2rem 0; background: var(--blog-surface); }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; padding: 0 1.4rem; border-bottom: 1px solid var(--blog-rule); color: var(--blog-muted); font-size: .72rem; line-height: 1.4; }
.code-toolbar button { min-height: 2.75rem; padding: .3rem 0 .3rem 1rem; border: 0; color: var(--blog-text); background: none; font: inherit; cursor: pointer; }
.code-toolbar button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.post-code pre { max-width: 100%; overflow-x: auto; margin: 0; padding: 1.5rem; font-size: .83rem; line-height: 1.75; tab-size: 4; }
.post-code pre:focus-visible, .post-table:focus-visible { outline: 2px solid var(--blog-text); outline-offset: 3px; }
.post-table { max-width: 100%; overflow-x: auto; margin: 2rem 0; font-size: .9rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.post-table table { width: 100%; border-collapse: collapse; }
.post-table :is(th,td) { min-width: 7rem; padding: 1rem .9rem 1rem 0; border-bottom: 1px solid var(--blog-rule); text-align: left; vertical-align: top; }
.post-table th { font-weight: 600; }
.post-table .align-center { text-align: center; }.post-table .align-right { text-align: right; }
.post-prose figure { margin: 2.5rem 0; }
.post-prose img { display: block; max-width: 100%; height: auto; }
.post-prose figcaption { margin-top: 1rem; color: var(--blog-muted); font-size: .8rem; line-height: 1.5; }
.post-toc { position: sticky; top: 7rem; align-self: start; grid-column: 1; grid-row: 1; max-width: 12rem; font-size: .75rem; line-height: 1.55; }
.post-toc summary { margin-bottom: 1.1rem; font-weight: 500; cursor: pointer; list-style: none; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary::after { content: "−"; float: right; margin-left: .7rem; }.post-toc:not([open]) summary::after { content: "+"; }
.post-toc ol { padding: 0; margin: 0; list-style: none; }
.post-toc li + li { margin-top: .85rem; }
.post-toc a { display: block; color: var(--blog-muted); text-decoration: none; }
.post-toc a:hover, .post-toc a[aria-current] { color: var(--blog-text); }
.post-toc a[aria-current] { text-decoration: underline; text-underline-offset: .25em; }
.post-end { display: flex; justify-content: space-between; gap: 1rem; max-width: 42rem; margin: 4rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--blog-rule); font-size: .8rem; }
.post-end a { display: inline-flex; gap: .7rem; align-items: center; min-height: 2.75rem; text-decoration: none; }
.post-end a:hover { text-decoration: underline; text-underline-offset: .2em; }
.post-more { margin-top: 6rem; }
.post-more > h2 { margin: 0 0 1rem; font-size: 1.7rem; font-weight: 500; letter-spacing: -.03em; }
@media (max-width: 1100px) {
    .post-layout { display: block; max-width: 42rem; margin-inline: auto; }
    .post-toc { position: static; max-width: none; margin-bottom: 3rem; }
    .post-toc summary { padding-bottom: 1rem; border-bottom: 1px solid var(--blog-rule); }
    .post-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }.post-toc li + li { margin: 0; }
}
@media (max-width: 700px) {
    .blog-main { padding-top: 8rem; }.blog-heading { margin-bottom: 3rem; }.blog-intro { font-size: 1rem; }
    .blog-entry { padding-block: 2rem; }.blog-entry-copy { display: block; }
    .blog-entry-meta { flex-direction: row; flex-wrap: wrap; gap: .7rem 1.2rem; margin-bottom: 1.25rem; padding: 0; font-size: .75rem; }
    .blog-entry h2 { font-size: 1.85rem; }.blog-entry-copy > p { font-size: .95rem; }
    .blog-entry-featured.has-cover { grid-template-columns: 1fr; gap: 1.75rem; }
    .blog-entry-foot { gap: .6rem 1rem; font-size: .68rem; }
    .post-main { padding-top: 7.5rem; }.post-heading { padding-top: 1.5rem; margin-bottom: 3.5rem; }
    .post-heading.has-header-image { padding-top: 9rem; }
    .post-header-art::after { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.08) 12%, rgba(0,0,0,.8) 30%, rgba(0,0,0,.96) 56%, #000 90%); }
    .post-dateline { font-size: .75rem; margin-bottom: 1.5rem; }
    .post-heading h1 { font-size: clamp(2.5rem, 9.2vw, 3.5rem); margin-bottom: 1.5rem; }
    .post-description { font-size: 1.08rem; }.post-meta { margin-top: 1.5rem; font-size: .75rem; }
    .post-example-notice { font-size: .68rem; }
    .post-prose { font-size: 1.04rem; line-height: 1.7; }
    .post-prose h2 { margin-top: 2.8rem; font-size: 1.75rem; }.post-prose h3 { font-size: 1.35rem; }
    .post-prose blockquote { padding-left: 1.2rem; font-size: 1.18rem; }
    .post-prose .heading-anchor { opacity: .55; }
    .post-code pre { padding: 1rem; font-size: .73rem; }.code-toolbar { padding-inline: 1rem; }
    .post-cover { margin-bottom: 3rem; }.post-end { font-size: .73rem; }.post-more { margin-top: 4rem; }
}
@media print {
    .blog-page { --blog-bg: #fff; --blog-surface: #f3f3f3; --blog-text: #111; --blog-muted: #555; --blog-rule: #ccc; color-scheme: light; }
    .site-header, .site-footer, .skip-link, .post-toc, .post-end, .post-more, .heading-anchor, .code-toolbar button, .post-header-art, .post-motion-toggle { display: none !important; }
    .blog-main { width: 100%; padding: 0; }.post-heading, .post-heading.has-header-image { padding: 0; margin-bottom: 2rem; }
    .post-main-with-header :is(.post-layout, .post-cover) { width: 100%; }
    .post-layout { display: block; max-width: none; }.post-prose { width: 100%; font-size: 11pt; }
    .post-heading h1 { font-size: 30pt; }.post-code pre { white-space: pre-wrap; }.post-description { font-size: 13pt; }
}
