.blog-page { --ink: #eeeae4; --copy: #cbc8c4; --rule: #383534; }
.blog-page a:focus-visible { outline: 2px solid var(--accentBright); outline-offset: 4px; }
.blog-page .skip { position: absolute; top: -8em; z-index: 70; background: var(--surfaceBase); padding: 12px; }
.blog-page .skip:focus { top: 0; left: 8px; }
.blog-hero { padding-block: clamp(40px,6vw,82px); border-bottom: 1px solid var(--rule); }
.blog-hero-grid, .story-card { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: clamp(24px,5vw,72px); }
.blog-page .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1.15em; color: var(--textSecondary); font: 500 .78rem/1.6 var(--mono); }
.meta a { color: var(--accentBright); }
.blog-page h1 { font: 500 clamp(2.8rem,5vw,4.8rem)/1.04 var(--display); letter-spacing: -.042em; text-wrap: balance; }
.blog-hero h1 { margin: .32em 0; }
.blog-hero h1 em { color: var(--accentBright); font-weight: 400; white-space: nowrap; }
.blog-hero .lede, .listing-summary { color: var(--copy); font-size: 1.12rem; line-height: 1.65; max-width: 55ch; }
.blog-page strong { color: var(--ink); font-weight: 600; }
.blog-page figure { margin: 1.5em 0 1.8em; width: 100%; }
.blog-page figure picture { display: block; }
.blog-copy figure { border-top: 1px solid var(--rule); }
.blog-copy figure img { border-radius: 0; }
.blog-copy pre { margin: 1em 0; padding: .8em 1em; border-left: 2px solid var(--rule); background: var(--surfaceBase); font-size: .88em; }
.blog-copy pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.blog-page figure > a { display: block; cursor: zoom-in; }
.blog-page figure img, .story-card img { width: 100%; height: auto; display: block; border-radius: 5px; }
.blog-page figcaption { margin-top: .75em; font-size: .92rem; line-height: 1.55; color: var(--textSecondary); }
.blog-hero figure { margin: 0; min-width: 0; }
.figure-viewer { margin: auto; padding: 0; max-width: 100%; max-height: 100%; overflow: hidden; border: 1px solid var(--rule); background: #111214; color: var(--ink); }
.figure-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.figure-viewer::backdrop { background: rgb(0 0 0 / 80%); }
.figure-viewer form { display: flex; justify-content: flex-end; border-bottom: 1px solid var(--rule); }
.figure-viewer button { font: inherit; color: inherit; background: transparent; border: 0; padding: 0 1.25em; min-height: 44px; cursor: pointer; }
.figure-viewer :focus-visible { outline: 2px solid var(--accentBright); outline-offset: -3px; }
.figure-viewer .figure-canvas { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.figure-canvas img { display: block; width: auto; max-width: none; height: auto; }
.blog-page:has(.figure-viewer[open]) { overflow: hidden; }
.blog-layout { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: clamp(24px,5.5vw,72px); padding-block: 48px 80px; }
.blog-toc { align-self: start; position: sticky; top: 104px; }
.blog-toc h2 { color: var(--textSecondary); font: 500 .8rem/1.5 var(--mono); margin-bottom: 16px; }
.blog-toc a { display: block; border-left: 1px solid var(--rule); padding: .52em 1em; color: var(--copy); text-decoration: none; font-size: .96rem; }
.blog-toc a:hover, .blog-toc a:focus-visible { border-left-color: var(--accentBright); color: var(--accentBright); }
.blog-copy { min-width: 0; font-size: 1.08rem; line-height: 1.73; }
.blog-copy p { color: var(--copy); margin: 1em 0; }
.blog-copy > p:first-child { margin-top: 0; }
.blog-copy h2 { margin: 1.55em 0 .48em; padding-top: .85em; border-top: 1px solid var(--rule); font-weight: 500; font-size: clamp(1.85rem,3.2vw,2.5rem); line-height: 1.14; letter-spacing: -.028em; text-wrap: balance; }
.blog-copy a, .blog-hero p a { color: var(--accentBright); }
.blog-copy figcaption a { color: var(--accentBright); }
.blog-copy table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .96rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.blog-copy th, .blog-copy td { padding: .8em .7em; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.blog-copy th { color: var(--ink); font-weight: 500; }
.blog-copy thead th { background: var(--surfaceBase); border-top: 1px solid var(--rule); }
.blog-copy td { color: var(--copy); }
.blog-copy table caption { font-weight: 500; padding-bottom: .65em; text-align: left; color: var(--ink); }
.bench-table :is(th, td):not(:first-child) { text-align: right; white-space: nowrap; }
.blog-footer { position: relative; }
.blog-footer .brand { display: flex; align-items: center; }
.blog-footer .brand img { display: block; height: 34px; width: auto; }
.blog-footer .foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.blog-listing { padding-block: clamp(44px,7vw,84px); }
.blog-listing h1 { margin: 0 0 .7em; }
.story-card { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 2rem 0; color: var(--ink); text-decoration: none; }
.story-card img { border: 1px solid var(--rule); }
.story-card h2 { font-size: clamp(2.2rem,4.1vw,3.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.09; margin: .35em 0; }
.story-card:hover h2, .story-card:focus-visible h2 { text-decoration: underline; text-decoration-color: var(--accentBright); text-underline-offset: .13em; }
@media (max-width: 850px) {
  .blog-layout { grid-template-columns: minmax(0,720px); justify-content: center; gap: 30px; padding-block: 32px 64px; }
  .blog-toc { position: static; }
  .blog-toc nav { display: flex; flex-wrap: wrap; column-gap: 20px; }
  .blog-toc h2 { margin-bottom: 6px; }
  .blog-toc a { padding: 8px 0; border-left: 0; text-decoration: underline; text-decoration-color: var(--rule); }
}
@media (max-width: 710px) {
  .blog-hero-grid, .story-card { grid-template-columns: 1fr; gap: 26px; }
  .blog-page .wrap { padding-inline: 20px; }
  .blog-hero h1 em { white-space: normal; }
  .blog-copy { font-size: 1.02rem; }
  .blog-copy table { font-size: .85rem; }
  .blog-copy th, .blog-copy td { padding: .65em .35em; }
}
@media (max-width: 400px) {
  .bench-table :is(th, td):not(:first-child) { white-space: normal; }
}
@media print {
  .blog-page { --ink: #111; --copy: #252525; --rule: #bbb; --textSecondary: #444; --surfaceBase: #fff; --accentBright: #743444; color: #111; background: white; }
  .blog-page::before, .blog-page > header, .blog-footer, .blog-toc, .blog-page .skip { display: none; }
  .blog-page .wrap { max-width: none; padding-inline: 0; }
  .blog-hero, .blog-layout { display: block; padding-block: 0; border: 0; }
  .blog-hero-grid { display: block; }
  .blog-page h1, .blog-page h2 { color: #111; break-after: avoid; }
  .blog-page h1 { font-size: 32pt; }
  .blog-page figure, .blog-page table { break-inside: avoid; }
  .blog-page figure img { max-height: 16cm; object-fit: contain; }
  .blog-copy { font-size: 11pt; }
}
