/* A blog post (js/pages/blog.js; the posts in www/content/blog/). Scoped to .post; the studio's palette, dark only.
   Its prose is set in Newsreader (a serif, for reading at length; fonts/OFL.txt), loaded only here; headings,
   captions and tables stay in the studio's sans. Figures that compare images break out wider than the text. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/newsreader-latin.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(../fonts/newsreader-latin-italic.woff2) format('woff2'); }
.post { --base: #d9995c; --good: #5fc28d; --warn: #e79a62; --accent: #8db0ea;
    --display: inherit; --body: 'Newsreader', Georgia, 'Times New Roman', serif; --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
    display: grid; gap: 3rem; font-size: var(--fs-l); line-height: 1.6; padding-bottom: var(--s6); }
.blog-list { display: grid; gap: var(--s4); max-width: 980px; }
.blog-card { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--s5); align-items: center;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--s4);
    color: var(--text); text-decoration: none; }
.blog-card:hover { border-color: var(--line); background: var(--raised); text-decoration: none; }
.blog-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.blog-card-text { display: grid; gap: var(--s2); min-width: 0; }
.blog-card time { color: var(--dim); font-size: var(--fs-s); }
.blog-card h2 { font-size: var(--fs-2xl); line-height: 1.15; margin: 0; }
.blog-card p { margin: 0; color: var(--dim); font-size: var(--fs-l); line-height: 1.55; max-width: 62ch; }
/* A post's date and series in the list; a series' parts at the foot of each post. */
.blog-meta { color: var(--dim); font-size: var(--fs-s); }
.post-foot { max-width: 680px; margin: 0 auto var(--s6); width: 100%; }
.post-series { border: 1px solid var(--line-soft); border-radius: var(--radius-l); background: var(--panel); padding: var(--s4) var(--s5); display: grid; gap: var(--s2); }
.post-series b { font-weight: 600; }
.post-series ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.post-series [aria-current] { color: var(--text); font-weight: 500; }
@media (max-width: 640px) {
    .blog-card { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
    .blog-card h2 { font-size: var(--fs-xl); }
}
.post table.grid { table-layout: fixed; }
.post table.grid td { padding: .45rem; }
.post table.grid tr:not(.note) td { border-bottom: 0; padding-bottom: .2rem; }
.post table.grid tr.note td { color: var(--dim); font-size: .9rem; padding-top: .2rem; }
.post table.grid img { aspect-ratio: 3 / 4; object-fit: cover; }
.post .pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post .pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; }
.post .pair img { aspect-ratio: 3 / 4; object-fit: cover; }
.post .pair .arrow { color: var(--dim); font-size: 1.2rem; }
.post .shot img { border: 1px solid var(--line); }
@media (max-width: 640px) { .post .pairs { grid-template-columns: minmax(0, 1fr); } }
.post .post-head { padding-top: var(--s4); }
.post .col {max-width: 680px; margin: 0 auto; width: 100%; min-width: 0;}
.post .col > p:not(.byline), .post .col li, .post .col blockquote, .post .lede {font-family: var(--body); font-size: 19px; line-height: 1.7; font-optical-sizing: auto;}
.post .col > p a, .post .lede a {text-underline-offset: 2px;}
/* A comparison inside the text column breaks out to the wide column (never past the window). */
.post .col > .table-wrap:has(> table.grid), .post .col > .pairs {--w: min(980px, calc(100vw - 32px)); width: var(--w); max-width: none; margin-inline: calc((100% - var(--w)) / 2); justify-self: start;}
.post .wide {max-width: 980px; margin: 0 auto; width: 100%; min-width: 0;}
.post .stack {display: grid; gap: 1rem;}
.post h1, .post h2, .post h3 {font-family: var(--display); text-wrap: balance; line-height: 1.12; margin: 0;}
.post h1 {font-size: clamp(2.2rem, 5.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em;}
.post h2 {font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em;}
.post h3 {font-size: 1.2rem; font-weight: 600;}
.post p {margin: 0;}
.post .byline {font-size: var(--fs-s); line-height: 1.4; font-weight: 500; color: var(--dim);}
.post .lede {font-size: 22px; line-height: 1.5; color: #b4bcc1;}
.post code, .post .mono {font-family: var(--mono); font-size: .86em;}
.post button.zoom {all: unset; cursor: zoom-in; display: block; border-radius: 6px;}
.post button.zoom:focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
.post button.zoom img {width: 100%; height: auto; display: block; border-radius: 6px;}
.post .refs {display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem;}
.post .refs button.zoom {flex: none;}
.post .refs img {height: 120px !important; width: auto !important; max-width: none;}
.post figcaption {font-size: var(--fs-s); line-height: 1.45; color: var(--dim);}
.post figure {margin: 0; display: grid; gap: .35rem; min-width: 0;}
.post .prompts {display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem;}
.post .prompt {background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: .5rem; font-size: 1rem;}
.post .prompt .tag {font-size: var(--fs-s); font-weight: 600;}
.post .prompt.b .tag, .post figcaption.b, .post th.b {color: var(--base);}
.post .prompt.l .tag, .post figcaption.l, .post th.l {color: var(--accent);}
.post .prompt blockquote {margin: 0; font-style: italic;}
.post .comps {display: grid; gap: 2.25rem;}
.post .comp {display: grid; gap: .6rem; max-width: 900px; width: 100%; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 1.5rem;}
.post .comp h3 {grid-column: 1 / -1;}
.post .trio {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem;}
.post .trio.portrait {grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 380px;}
.post .table-wrap {overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);}
.post table {border-collapse: collapse; width: 100%; font-size: .95rem;}
.post th, .post td {text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top;}
.post thead th {font-size: var(--fs-s); font-weight: 500; color: var(--dim);}
.post tbody th {font-weight: 400; color: var(--dim); font-size: .88rem;}
.post tr:last-child > * {border-bottom: 0;}
.post table.eye td.is-ok {color: var(--good);}
.post table.eye td.is-bad {color: var(--warn);}
.post table.eye {table-layout: fixed;}
.post table.eye col.c0 {width: 9.5rem;}
.post table.eye tr.imgs td {padding: .5rem .4rem;}
.post table.eye.portrait tr.imgs td button.zoom {max-width: 200px;}
.post table.eye tr.js td {font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500;}
.post .sweep-wrap {overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);}
.post table.sweep {min-width: 900px; font-size: .85rem;}
.post table.sweep th, .post table.sweep td {padding: .45rem;}
.post table.sweep tbody th {width: 9.5rem; vertical-align: middle;}
.post table.sweep .vl {display: block; color: var(--text); font: 500 .82rem/1.3 var(--display);}
.post table.sweep .vm {display: block; font: 400 .72rem/1.4 var(--mono); color: var(--dim);}
.post table.sweep tr.top .vl {color: var(--accent);}
.post table.sweep tr.base .vl {color: var(--base);}
.post table.sweep td.cell {border-radius: 8px;}
.post table.sweep td.cell .js {display: block; margin-top: .25rem; font: 400 .68rem/1.3 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums;}
.post table.sweep td.pick {background: color-mix(in srgb, var(--accent) 14%, transparent);}
.post table.sweep td.pick .js {color: var(--accent); font-weight: 500;}
.post table.sweep td.cell img {aspect-ratio: 16 / 9; object-fit: cover;}
.post table.judges {min-width: 560px;}
.post table.judges td.cost {font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;}
.post table.judges tr.total td {font-weight: 600;}
.post .llm {display: inline-block; font-size: var(--fs-xs); font-weight: 600; line-height: 1; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 99px; padding: .25rem .45rem;}
.post .bars {display: grid; gap: .4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem;}
.post .bar-row {display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) 2.6rem; gap: .7rem; align-items: center; font: 400 .78rem/1.2 var(--mono);}
.post .bar-row .track {height: .65rem; background: color-mix(in srgb, var(--line) 70%, transparent); border-radius: 99px; overflow: hidden;}
.post .bar-row .fill {display: block; height: 100%; background: color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 99px;}
.post .bar-row.hi .fill {background: var(--accent);}
.post .bar-row.base .fill {background: var(--base);}
.post .bar-row .bv {text-align: right; font-variant-numeric: tabular-nums; font-weight: 500;}
.post .vs {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 560px;}
.post .vs img {aspect-ratio: 5 / 6; object-fit: cover;}
.post .shots {display: grid; gap: 1rem; align-items: start;}
.post .shots.two {grid-template-columns: repeat(2, minmax(0, 1fr));}
.post .shots.narrow-left {grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);}
.post .shots button.zoom img, .post .shot img {border: 1px solid var(--line);}
.post .facts {display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;}
.post .facts div {background: var(--panel); display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: .55rem .9rem; font-size: 1rem;}
.post .facts span {font: 400 .76rem/1.6 var(--mono); color: var(--dim);}
.post ul.clean {margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem;}
@media (max-width: 760px) {
    .post .comp {grid-template-columns: minmax(0, 1fr);}
    .post table.eye col.c0 {width: 5.5rem;}
    .post table.eye th, .post table.eye td {padding: .45rem .4rem; font-size: .85rem;}
    .post .shots.two, .post .shots.narrow-left {grid-template-columns: minmax(0, 1fr);}
    .post .bar-row {grid-template-columns: 8.5rem minmax(0, 1fr) 2.4rem;}
    .post .facts div {grid-template-columns: minmax(0, 1fr); gap: .1rem;}
}
/* A card without a cover: its text takes the whole card, not the cover's column. */
.blog-card:not(:has(.blog-cover)) { grid-template-columns: minmax(0, 1fr); }
/* A post's call to try what it describes: a link that reads as a button. */
.post a.cta {display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem 1rem; border-radius: 10px; font: 600 1rem/1.2 var(--display);
    background: var(--accent); color: #10161d; text-decoration: none;}
.post a.cta:hover {background: color-mix(in srgb, var(--accent) 85%, #fff); text-decoration: none;}
.post a.cta:focus-visible {outline: 2px solid var(--accent); outline-offset: 3px;}
/* The judge's steps (qwopus-vs-qwen): boxes and arrows in the post's palette. */
.post .judge-flow svg {width: 100%; height: auto; display: block;}
.post .judge-flow rect {fill: var(--panel); stroke: var(--line);}
.post .judge-flow .jf-step rect {stroke: var(--accent);}
.post .judge-flow .jf-out rect {stroke: var(--good);}
.post .judge-flow text {fill: var(--text); font: 600 15px var(--display); text-anchor: middle;}
.post .judge-flow text.jf-sub {fill: var(--dim); font-weight: 400; font-size: 12.5px;}
.post .judge-flow .jf-line {fill: none; stroke: var(--dim); stroke-width: 1.5;}
.post .judge-flow .jf-head {fill: var(--dim);}
.post .judge-flow text.jf-label {fill: var(--dim); font-weight: 400; font-size: 11.5px;}
/* A results table breaks out to the wide column, like a comparison. */
.post .col > .table-wrap.results {--w: min(980px, calc(100vw - 32px)); width: var(--w); max-width: none; margin-inline: calc((100% - var(--w)) / 2); justify-self: start;}
/* qwopus-vs-qwen: screenshots in the wide column, a question and its key, the results' legend, a side note. */
.post .col > figure.wide-shot {--w: min(980px, calc(100vw - 32px)); width: var(--w); max-width: none; margin-inline: calc((100% - var(--w)) / 2); justify-self: start;}
.post pre.qa {margin: 0; padding: .9rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; font-size: .85rem; line-height: 1.5; color: var(--text);}
.post pre.qa b {color: var(--accent); font-weight: 600;}
.post .table-wrap.results thead tr.groups th {text-align: center; border-bottom: 0; padding-bottom: 0;}
.post .table-wrap.results .g {border-left: 1px solid var(--line);}
.post .table-wrap.results td {white-space: nowrap;}
.post .table-wrap.results th, .post .table-wrap.results td {padding: .5rem .6rem;}
.post .table-wrap.results thead tr:last-child th {border-bottom: 1px solid var(--line); vertical-align: bottom;}
.post .col > p.note {font-family: inherit; font-size: var(--fs-s); line-height: 1.5; color: var(--dim);}
.post .sidenote {border-top: 1px solid var(--line); padding-top: 1.5rem;}
.post .sidenote > p {font-size: 16px !important; color: var(--dim);}
.post .post-cover {margin: var(--s4) auto 0; max-width: 760px; width: 100%;}
.post .post-cover img {width: 100%; height: auto; display: block; border-radius: var(--radius-l); border: 1px solid var(--line);}
