Files

373 lines
37 KiB
CSS

/* Blog post (prefix xbg-), MASTER.md: container 1152, prose 768, 13-col 8/5 split, deck sizes (12 13 14 16 17 21 26 32
44 52 64 84 112), weights 220 / 400 / 497 / 606, golden steps (4 6.5 10.5 17 27 44 72 116 188), no hue. */
.xbg { --xbg-top: 120px; --gut: clamp(16px, 4vw, 32px); --ink2: var(--room-ink); --mute: var(--room-soft); --hair: var(--room-line); --fr: min(680px, calc(100svh - 128px)); overflow-x: clip; }
.xbg-w { width: min(100% - 2 * var(--gut), 1152px); margin-inline: auto; }
.xbg-meta, .xbg-role, .xbg-plate-k, .xbg-src > p, .xbg-card-k, .xbg-num, .xbg-numeral-of { font-family: var(--mono); font-size: 12px; font-weight: 606; letter-spacing: .14em; text-transform: uppercase; }
/* ---------- screen one: plain, no pinned scene. The words on the 5, the film card on the 8 ---------- */
.xbg-hero { padding: clamp(72px, 11svh, 104px) 0 clamp(40px, 6svh, 64px); }
.xbg-hero-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: clamp(27px, 3.4vw, 52px); align-items: center; min-height: min(calc(100svh - 200px), 600px); }
.xbg-hero.alt .xbg-cover-t { order: 2; }
@media (min-width: 900px) { .xbg-hero.alt .xbg-hero-g { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.xbg-cover-t { display: flex; flex-direction: column; align-items: flex-start; }
.xbg-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10.5px; margin: 0; padding: 0; list-style: none; }
.xbg-crumbs li { display: inline-flex; align-items: center; }
.xbg-crumbs .xbg-chip::before { content: '/'; width: auto; height: auto; background: none; color: var(--mute); }
.xbg-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--mute); text-decoration: none; font: inherit; transition: color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
.xbg-back svg { transition: transform 300ms cubic-bezier(.4, 0, .2, 1); }
@media (hover: hover) { .xbg-back:hover { color: var(--ink2); } .xbg-back:hover svg { transform: translateX(-4px); } }
.xbg-back:active { transform: translateY(1px); transition-duration: 0s; }
.xbg-h1 { position: relative; margin: 0; max-width: 15ch; font-size: clamp(2.4rem, 3.7vw, 3.6rem); font-weight: 497; line-height: 1; letter-spacing: -.042em; text-wrap: balance; }
.xbg-h1:focus { outline: none; box-shadow: none !important; }
.xbg-wm { display: inline-block; overflow: hidden; padding: .04em 0 .12em; margin: -.04em 0 -.12em; vertical-align: top; }
.xbg-wi { display: inline-block; animation: xbg-rise 700ms cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(50ms + var(--i, 0) * 55ms); }
@keyframes xbg-rise { from { transform: translateY(105%); } }
/* the film (or its poster, before it plays) drifts from first paint, so the first second is never still */
.xbg-art-film { animation: xbg-drift 9s ease-in-out infinite alternate; }
@keyframes xbg-drift { from { transform: scale(1.06) translate3d(1.5%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .xbg-wi, .xbg-art-film, .xbg-gist * { animation: none !important; } }
.xbg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 17px; margin: 6.5px 0 0; color: var(--mute); }
/* one solid at a time from the first paint (the /affiliate pattern): the header's ask is outlined on a post until the
post's hook says none of its own asks is on screen (html[data-xbg-solid]) */
html:has(main.xbg):not([data-xbg-solid]) header[data-slot=masthead] a[href="https://hanzo.ai/signup"],
html:has(main.xbg):not([data-xbg-solid]) header[data-slot=masthead] a[data-x-ask] { background-color: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border, rgba(0, 0, 0, .14)); }
.xbg-chip { display: inline-flex; align-items: center; gap: 10.5px; color: var(--ink2); }
.xbg-chip::before { content: ''; width: 17px; height: 1px; background: currentColor; }
.xbg-lede { margin: 27px 0 0; max-width: 44ch; font-size: 21px; line-height: 1.4; color: var(--mute); text-wrap: pretty; }
.xbg-ask { margin-top: 27px; }
/* the film card */
.xbg-art { position: relative; aspect-ratio: 8 / 7; max-height: min(600px, calc(100svh - 200px)); width: 100%; border-radius: 24px; overflow: hidden; background: #000; color: rgba(255, 255, 255, .6); box-shadow: 0 40px 80px -60px rgba(0, 0, 0, .55); }
html:not(.light) .xbg-art { box-shadow: 0 0 0 1px var(--border), 0 40px 80px -50px rgba(0, 0, 0, .9); }
/* Hanzo's halftone, lit from the card's top corner, over the post's film */
.xbg-art-ht { position: absolute; inset: 0; z-index: 1; pointer-events: none;
background: radial-gradient(circle, rgba(255, 255, 255, .24) 1px, transparent 1.5px) 0 0 / 12px 12px, radial-gradient(55% 60% at 100% 0%, rgba(255, 255, 255, .12), transparent 70%);
-webkit-mask-image: radial-gradient(65% 75% at 100% 0%, #000, transparent 72%); mask-image: radial-gradient(65% 75% at 100% 0%, #000, transparent 72%); }
.alt .xbg-art-ht { -webkit-mask-image: radial-gradient(65% 75% at 0% 0%, #000, transparent 72%); mask-image: radial-gradient(65% 75% at 0% 0%, #000, transparent 72%); background-position: 0 0, 0 0; }
@media (prefers-reduced-motion: no-preference) { .xbg-art-ht { animation: xbg-ht 16s linear infinite; } }
@keyframes xbg-ht { to { background-position: 24px -48px, 0 0; } }
.xbg-art .xbg-sigil, .xbg-art-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.xbg-pause { position: absolute; right: 17px; bottom: 17px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fafafa; cursor: pointer; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
@media (hover: hover) { .xbg-pause:hover { background: #262626; } }
.xbg-pause:active { transform: scale(.97); }
/* the plate: after the reading, the post's figures or products on one lifted stage that tilts up into place */
.xbg-plate { position: relative; isolation: isolate; padding: clamp(56px, 9svh, 104px) 0; color: var(--ink2); }
.xbg-plate::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--ink2) 15%, transparent) 1px, transparent 1.5px) 0 0 / 12px 12px; -webkit-mask-image: radial-gradient(40% 60% at 100% 50%, #000, transparent 72%); mask-image: radial-gradient(40% 60% at 100% 50%, #000, transparent 72%); }
html:not(.light) .xbg-plate::before { background-image: radial-gradient(circle, color-mix(in srgb, var(--foreground) 22%, transparent) 1px, transparent 1.5px); }
.xbg-plate > .xbg-w { padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 50px 100px -70px rgba(0, 0, 0, .45); }
html:not(.light) .xbg-plate > .xbg-w { box-shadow: 0 0 0 1px var(--border), 0 40px 80px -50px rgba(0, 0, 0, .9); }
.xbg-plate-k { display: flex; justify-content: space-between; gap: 17px; margin: 0 0 27px; color: var(--mute); }
.xbg-plate-k span:first-child { color: var(--ink2); }
.xbg-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 27px; row-gap: 27px; }
.xbg-facts:not(.figs) { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.xbg-facts li { display: flex; flex-direction: column; gap: 10.5px; padding-top: 17px; border-top: 1px solid var(--hair); }
.xbg-fig, .xbg-facts .x-stat-v { font-size: clamp(40px, 3.6vw, 56px); font-weight: 220; line-height: 1; letter-spacing: -.03em; font-feature-settings: 'tnum'; color: var(--ink2); white-space: nowrap; }
.xbg-facts .xbg-role { color: var(--mute); }
.xbg-facts .xbg-note { color: var(--mute); max-width: 34ch; font-size: 14px; line-height: 1.5; }
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {
.xbg-plate > .xbg-w { animation: xbg-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; transform-origin: 50% 100%; }
@keyframes xbg-tilt { from { transform: perspective(1600px) rotateX(14deg) scale(.95); } }
}
}
/* a figures post keeps its reading rail on the right of the column */
@media (min-width: 1200px) {
.alt .xbg-room { grid-template-columns: minmax(0, 768px) minmax(0, 1fr); }
.alt .xbg-rail { order: 2; }
}
/* ---------- the room: the thread on the left, one 768px reading column on the right ---------- */
.xbg-body { padding: clamp(72px, 11vw, 188px) 0 0; }
.xbg-room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 768px); column-gap: 72px; align-items: start; }
.xbg-rail { position: sticky; top: var(--xbg-top); display: flex; flex-direction: column; gap: 17px; }
.xbg-text { min-width: 0; font-size: 16px; line-height: 1.65; }
.xbg-ch + .xbg-ch { margin-top: 116px; }
.xbg-ch-h { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10.5px; align-items: baseline; margin: 0 0 27px; padding-top: 17px; border-top: 1px solid var(--hair); }
.xbg-num { color: var(--mute); }
.xbg-h2 { margin: 0; max-width: 18ch; font-size: 26px; font-weight: 497; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; scroll-margin-top: var(--xbg-top); outline: none; }
.xbg-p { margin: 0 0 1.1em; max-width: 66ch; color: var(--ink2); text-wrap: pretty; }
.xbg-a { color: var(--ink2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: light-dark(rgba(0, 0, 0, .3), var(--white-30)); transition: text-decoration-color 150ms cubic-bezier(0, 0, .2, 1); }
@media (hover: hover) { .xbg-a:hover { text-decoration-color: currentColor; } }
.xbg-c { font: .875em/1 var(--mono); padding: .18em .42em; border-radius: 6px; background: var(--room-fill); white-space: nowrap; }
.xbg-wide { margin: 44px 0; }
/* the thread */
.xbg-numeral { position: relative; display: flex; align-items: baseline; gap: 10.5px; height: 64px; overflow: hidden; }
.xbg-numeral-n { display: block; font-size: 64px; font-weight: 220; line-height: 1; letter-spacing: -.03em; font-feature-settings: 'tnum'; }
.xbg-numeral-of { color: var(--mute); }
.xbg-left { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mute); }
.xbg-left span:last-child { color: var(--ink2); font-size: 14px; }
.xbg-thread { position: relative; }
.xbg-spine { position: absolute; left: 5px; top: 17px; bottom: 17px; width: 2px; background: var(--hair); border-radius: 2px; }
.xbg-spine i { position: absolute; inset: 0; background: var(--ink2); transform-origin: top; border-radius: 2px; }
.xbg-knots { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.xbg-knots button { display: grid; grid-template-columns: 12px 22px 1fr; column-gap: 10.5px; align-items: start; width: 100%; min-height: 44px; padding: 10.5px 0; border: 0; background: none; text-align: left; font: 400 14px/1.35 var(--sans); color: var(--mute); cursor: pointer; transition: color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
.xbg-knots button .x-mono { font-size: 12px; padding-top: 1px; }
.xbg-knots button span:last-child { transition: transform 300ms cubic-bezier(.4, 0, .2, 1); }
@media (hover: hover) { .xbg-knots button:hover { color: var(--ink2); } .xbg-knots button:hover span:last-child { transform: translateX(4px); } }
.xbg-knots button:active { transform: scale(.97); }
.xbg-knots li[data-on] button { color: var(--ink2); font-weight: 606; }
.xbg-knot { position: relative; margin-top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--room-bg); box-shadow: inset 0 0 0 1.5px light-dark(rgba(0, 0, 0, .25), var(--white-30)); transition: background-color 300ms cubic-bezier(.4, 0, .2, 1), box-shadow 300ms cubic-bezier(.4, 0, .2, 1); }
.xbg-knots li[data-past] .xbg-knot, .xbg-knots li[data-on] .xbg-knot { background: var(--ink2); box-shadow: none; }
.xbg-knots li[data-on] .xbg-knot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink2); }
.xbg-bar { display: none; }
/* parts, asymmetric: the first leads large with its film playing; the rest are a list beside it, each with a small mark */
.xbg-parts { list-style: none; margin: 44px 0; padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 44px; align-items: start; }
.xbg-parts li { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: 'm n' 'm r' 'm t'; column-gap: 17px; row-gap: 4px; grid-column: 2; padding: 17px 0; border-top: 1px solid var(--hair); }
.xbg-parts li .xbg-name { grid-area: n; font-size: 21px; }
.xbg-parts li .xbg-role { grid-area: r; }
.xbg-parts li .xbg-note { grid-area: t; }
.xbg-parts li.lead { grid-column: 1; grid-row: 1 / span var(--rest); display: flex; flex-direction: column; gap: 10.5px; padding-top: 17px; border-top: 1px solid var(--ink2); }
.xbg-parts li.lead .xbg-name { font-size: 44px; font-weight: 220; letter-spacing: -.03em; }
.xbg-part-mark { grid-area: m; position: relative; display: block; width: 56px; aspect-ratio: 4 / 5; border-radius: 10.5px; overflow: hidden; background: #000; color: rgba(255, 255, 255, .6); }
.xbg-part-mark img, .xbg-part-mark .xbg-sigil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xbg-part-film { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 20px; background: #000; margin-bottom: 6.5px; }
.xbg-name { font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.1; }
.xbg-role { color: var(--mute); }
.xbg-note { font-size: 14px; line-height: 1.5; color: var(--mute); text-wrap: pretty; }
/* the gist: a text-only chapter's own figures or steps, drawn (Gist.jsx) */
.xbg-gist { margin: 44px 0; }
.xbg-gist .xbg-gist-s .x-stat-v { font-size: 64px; font-weight: 220; letter-spacing: -.03em; }
.xbg-gist .x-stat-l { font: 606 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.xbg-gist.figs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 27px; }
.xbg-gist.figs .x-stat { padding-top: 17px; border-top: 1px solid var(--ink2); gap: 10.5px; }
.xbg-gist.bars { display: flex; flex-direction: column; gap: 27px; }
.xbg-gist-bar { display: grid; grid-template-columns: 188px minmax(0, 1fr); align-items: center; column-gap: 27px; }
.xbg-gist-bar .x-stat-v { font-size: 44px; }
.xbg-gist-track { position: relative; height: 10.5px; border-radius: 6px; background: var(--room-fill-strong); overflow: hidden; }
.xbg-gist-track i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 6px; border-radius: 6px; background: var(--ink2); transform: scaleX(0); transform-origin: left; transition: transform 1200ms cubic-bezier(.16, 1, .3, 1); }
.xbg-gist[data-on='true'] .xbg-gist-track i { transform: scaleX(1); }
html:not(.js) .xbg-gist-track i { transform: none; }
.xbg-gist.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 17px; position: relative; }
.xbg-gist.steps::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: var(--hair); }
.xbg-gist.steps li { position: relative; display: flex; flex-direction: column; gap: 10.5px; color: var(--mute); animation: xbg-step calc(var(--n) * 1.6s) linear infinite; animation-delay: calc(var(--i) * 1.6s); animation-play-state: paused; }
.xbg-gist.steps[data-on='true'] li { animation-play-state: running; }
.xbg-gist-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--room-bg); box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color 300ms; }
.xbg-gist.steps li .x-mono { font-size: 12px; letter-spacing: .14em; }
.xbg-gist-t { font-size: 17px; line-height: 1.35; max-width: 18ch; }
@keyframes xbg-step { 0%, 30% { color: var(--ink2); } 36%, 100% { color: var(--mute); } }
.xbg-gist.steps li .xbg-gist-dot { animation: xbg-dot calc(var(--n) * 1.6s) linear infinite; animation-delay: inherit; animation-play-state: inherit; }
@keyframes xbg-dot { 0%, 30% { background: var(--ink2); transform: scale(1.15); } 36%, 100% { background: var(--room-bg); transform: scale(1); } }
/* the Life gists: the collision on a small board, the glider alone as the emblem */
.xbg-gist.life { display: flex; }
.xbg-gist-board { display: grid; gap: 2px; padding: 10.5px; border-radius: 20px; background: var(--room-surface); width: 100%; max-width: 520px; }
.xbg-gist.emblem .xbg-gist-board { max-width: 188px; gap: 6.5px; padding: 17px; border-radius: 16px; }
.xbg-gist-board i { aspect-ratio: 1; border-radius: 2px; background: light-dark(var(--hz-100), var(--glass-strong)); transition: background-color 180ms cubic-bezier(0, 0, .2, 1), transform 180ms cubic-bezier(.4, 0, .2, 1); }
.xbg-gist.emblem .xbg-gist-board i { border-radius: 50%; }
.xbg-gist-board i[data-on='1'] { background: var(--ink2); transform: scale(.92); }
/* code: kit CodeBlock (and kit Tabs above it) */
.xbg-code { margin: 44px 0; display: flex; flex-direction: column; gap: 10.5px; align-items: flex-start; }
.xbg-code > *, .xbg-code [role='tabpanel'] { width: 100%; }
.xbg-code > .x-tablist { width: auto; }
/* Game of Life */
.xbg-life { margin: 0; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 17px 44px; align-items: start; }
.xbg-board { display: grid; gap: 2px; padding: 10.5px; border-radius: 24px; background: var(--room-surface); touch-action: none; }
/* the board is one control painted by drag, not 160 tap targets: the site's coarse-pointer 44px floor would stretch its cells into stripes */
.xbg-board { --tap-target: 0px; }
.xbg-board button { aspect-ratio: 1; width: 100%; min-width: 0; min-height: 0; height: auto; padding: 0; border: 0; border-radius: 3px; background: light-dark(var(--hz-100), var(--glass-strong)); cursor: crosshair; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), transform 150ms cubic-bezier(.4, 0, .2, 1); }
@media (hover: hover) { .xbg-board button:hover { background: light-dark(var(--hz-200), var(--white-14)); } }
.xbg-board button[data-on='1'] { background: var(--ink2); transform: scale(.94); }
.xbg-board button:focus-visible { outline: 2px solid var(--ink2); outline-offset: 1px; position: relative; z-index: 1; }
.xbg-life-bar { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6.5px; }
.xbg-turn { margin-left: auto; font-size: 13px; color: var(--mute); }
.xbg-turn b { color: var(--ink2); font-weight: 400; display: inline-block; min-width: 3ch; }
.xbg-life figcaption { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
/* the GPQA frontier */
.xbg-gpqa { margin: 0; }
.xbg-plot { position: relative; aspect-ratio: 640 / 380; margin: 27px 0 44px; }
.xbg-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xbg-grid { stroke: light-dark(rgba(0, 0, 0, .08), var(--white-08)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xbg-edge { fill: none; stroke: light-dark(rgba(0, 0, 0, .4), var(--white-40)); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.xbg-dot { cursor: pointer; outline: none; }
.xbg-dot .xbg-hit { fill: transparent; }
.xbg-dot circle:not(.xbg-hit) { fill: var(--ink2); stroke: var(--room-bg); stroke-width: 2; transition: fill 150ms, stroke 150ms; }
.xbg-dot.reported circle:not(.xbg-hit) { fill: var(--room-bg); stroke: var(--ink2); stroke-width: 1.6; }
.xbg-dot.enso circle:not(.xbg-hit) { fill: var(--room-bg); stroke: var(--ink2); stroke-width: 2.4; stroke-dasharray: 3 2.4; }
.xbg-dot:hover circle:not(.xbg-hit), .xbg-dot.on circle:not(.xbg-hit) { fill: var(--ink2); stroke: var(--ink2); }
.xbg-dot .xbg-hit { stroke: transparent; stroke-width: 1.5; transition: stroke 150ms; }
.xbg-dot.on .xbg-hit, .xbg-dot:focus-visible .xbg-hit { stroke: light-dark(rgba(0, 0, 0, .4), var(--white-40)); }
.xbg-tk { position: absolute; font-size: 12px; font-family: var(--mono); color: var(--mute); pointer-events: none; }
.xbg-tk.y { left: 0; width: calc(48 / 640 * 100% - 10px); text-align: right; transform: translateY(-50%); }
.xbg-tk.x { top: calc(340 / 380 * 100% + 10px); transform: translateX(-50%); }
.xbg-ax { position: absolute; font-size: 12px; font-family: var(--mono); color: var(--mute); pointer-events: none; }
.xbg-ax.y { left: calc(48 / 640 * 100%); top: -27px; }
.xbg-ax.x { left: 50%; bottom: -44px; transform: translateX(-50%); white-space: nowrap; }
.xbg-pin { position: absolute; transform: translate(-50%, calc(-100% - 17px)); padding: 6.5px 10.5px; border-radius: 6px; background: var(--ink2); color: var(--room-bg); font: 400 12px/1 var(--mono); white-space: nowrap; pointer-events: none; }
.xbg-gpqa .xbg-read { min-height: 5.6em; display: flex; flex-direction: column; gap: 6.5px; padding: 17px 21px; border-radius: 16px; background: var(--room-surface); }
.xbg-gpqa .xbg-read b { font-size: 16px; font-weight: 606; }
.xbg-gpqa .xbg-read span { font-size: 14px; line-height: 1.5; color: var(--mute); }
.xbg-chips { list-style: none; margin: 17px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6.5px; }
.xbg-chips li { display: flex; align-items: center; gap: 4px; }
.xbg-chips button { min-height: 40px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 999px; background: var(--room-bg); font: 400 12px/1 var(--mono); color: var(--mute); cursor: pointer; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), color 150ms, border-color 150ms, transform 90ms; }
.xbg-chips button.enso { border-style: dashed; border-color: light-dark(rgba(0, 0, 0, .3), var(--white-30)); }
@media (hover: hover) { .xbg-chips button:hover { color: var(--ink2); border-color: light-dark(rgba(0, 0, 0, .3), var(--white-30)); } }
.xbg-chips button:active { transform: scale(.97); }
.xbg-chips button[aria-pressed='true'] { background: var(--ink2); color: var(--room-bg); border-color: var(--ink2); }
.xbg-chip-src { font-size: 13px; padding: 4px 6.5px; }
/* ---------- the close: sources and the other posts in one frame, then the dark room ---------- */
.xbg-end { position: relative; isolation: isolate; padding: clamp(56px, 9svh, 104px) 0; }
.xbg-end::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(42% 46% at 15% 100%, color-mix(in srgb, var(--ink2) 6%, transparent), transparent 70%); }
.xbg-end-g { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(27px, 3.4vw, 52px); align-items: start; }
.xbg-end.src .xbg-end-g { grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr); }
.xbg-src { display: grid; gap: 17px; margin: 0; padding-top: 17px; border-top: 1px solid var(--ink2); }
.xbg-src > p { margin: 0; color: var(--mute); }
.xbg-src ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10.5px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.xbg-next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); column-gap: 27px; row-gap: 44px; align-items: end; }
.xbg-next .xbg-card-art { aspect-ratio: auto !important; height: clamp(220px, calc(var(--fr) - 300px), 400px); box-shadow: 0 40px 80px -60px rgba(0, 0, 0, .45); }
.xbg-next li:not(.big) .xbg-card-art { height: clamp(180px, calc(var(--fr) - 380px), 300px); }
.xbg-end.src .xbg-next .xbg-card-art { height: clamp(200px, calc(var(--fr) - 380px), 320px); }
.xbg-end.src .xbg-next li:not(.big) .xbg-card-art { height: clamp(160px, calc(var(--fr) - 440px), 240px); }
html:not(.light) .xbg-next .xbg-card-art { box-shadow: 0 0 0 1px var(--border), 0 40px 80px -50px rgba(0, 0, 0, .9); }
.xbg-card { display: flex; flex-direction: column; gap: 10.5px; color: var(--ink2); text-decoration: none; transition: transform 90ms cubic-bezier(0, 0, .2, 1); }
.xbg-card:active { transform: scale(.98); transition-duration: 0s; }
@media (hover: hover) { .xbg-card:hover .xbg-card-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
.xbg-card-art { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 6.5px; border-radius: 20px; overflow: hidden; background: #000; color: rgba(255, 255, 255, .45); }
.xbg-next li.big .xbg-card-art { aspect-ratio: 16 / 10; }
.xbg-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 45%; transition: transform 500ms cubic-bezier(.4, 0, .2, 1); }
.xbg-card-art .xbg-sigil { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 500ms cubic-bezier(.4, 0, .2, 1); }
@media (hover: hover) { .xbg-card:hover .xbg-card-art img, .xbg-card:hover .xbg-card-art .xbg-sigil { transform: scale(1.04); } }
/* hover tells something: the post's tag and read time rise into the picture's foot */
.xbg-card-peek { position: absolute; left: 17px; bottom: 17px; z-index: 1; display: flex; gap: 10.5px; padding: 6.5px 10.5px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fafafa; font-size: 12px; font-weight: 606; letter-spacing: .14em; text-transform: uppercase; transform: translateY(calc(100% + 17px)); transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .xbg-card:hover .xbg-card-peek, .xbg-card:focus-visible .xbg-card-peek { transform: none; } }
/* ---------- the end band: a dark room that opens like a curtain; the post's own ask and the newsletter beside it ---------- */
.xbg-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 13svh, 132px) 0; background: #000; color: #f5f5f7; }
html:not(.light) .xbg-band { background: radial-gradient(80% 70% at 50% 100%, var(--x-raised), #000 70%); border-top: 1px solid var(--border); }
.xbg-band::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .22) 1px, transparent 1.5px) 0 0 / 12px 12px; -webkit-mask-image: radial-gradient(60% 50% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 50% at 50% 0%, #000, transparent 75%); }
.xbg-band::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; transform-origin: 50% 0; background: conic-gradient(from 180deg at 50% -10%, transparent 160deg, rgba(255, 255, 255, .09) 175deg, rgba(255, 255, 255, .14) 180deg, rgba(255, 255, 255, .09) 185deg, transparent 200deg); }
.xbg-band-g { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 27px clamp(32px, 5vw, 80px); align-items: center; }
.xbg-band-k { margin: 0 0 17px; font-size: 12px; font-weight: 606; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.xbg-band-h { position: relative; margin: 0; max-width: 15ch; font-size: clamp(2.4rem, 4.2vw, 4.1rem); font-weight: 497; line-height: 1; letter-spacing: -.045em; color: #f5f5f7; text-wrap: balance; }
.xbg-band-act { display: flex; flex-wrap: wrap; align-items: center; gap: 17px 32px; margin-top: clamp(27px, 4svh, 44px); }
.xbg-band .x-btn.solid { height: 52px; padding: 0 28px; background: #f5f5f7; border-color: #f5f5f7; color: #000; font-size: 16px; }
@media (hover: hover) { .xbg-band .x-btn.solid:hover { background: #fff; border-color: #fff; } }
.xbg-band-more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 27px; }
.xbg-band-l { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #f5f5f7; font-size: 16px; text-decoration: none; }
.xbg-band-l span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .3); transition: text-decoration-color 150ms; }
.xbg-band-l svg { transition: transform 250ms cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .xbg-band-l:hover span { text-decoration-color: currentColor; } .xbg-band-l:hover svg { transform: translateX(4px); } }
/* the newsletter: a lifted glass card in the room, its own halftone corner */
.xbg-news { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 2.6vw, 36px); border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.xbg-news::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1.5px) 0 0 / 10px 10px; -webkit-mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 70%); opacity: .6; transition: opacity .5s; }
@media (hover: hover) { .xbg-news:hover::before { opacity: 1; } }
.xbg-news-h { margin: 0; font-size: clamp(22px, 1.9vw, 28px); font-weight: 497; line-height: 1.1; letter-spacing: -.03em; color: #f5f5f7; }
.xbg-news-p { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.xbg-news-l { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 9px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.xbg-news-l li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; }
.xbg-news-l svg { margin-top: 2px; color: rgba(255, 255, 255, .6); }
.xbg-band .xbg-news-go { height: 46px; padding: 0 24px; background: transparent; border: 1px solid rgba(255, 255, 255, .34); color: #f5f5f7; }
@media (hover: hover) { .xbg-band .xbg-news-go:hover { border-color: #f5f5f7; background: rgba(255, 255, 255, .06); } }
.xbg-band :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {
.xbg-band { animation: xbg-curtain linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
@keyframes xbg-curtain { from { clip-path: inset(0 5% round 56px); } to { clip-path: inset(0 0 round 0); } }
.xbg-band::after { animation: xbg-beam linear both; animation-timeline: view(); }
@keyframes xbg-beam { from { transform: rotate(-24deg); opacity: 0; } 40% { opacity: 1; } to { transform: rotate(24deg); opacity: .4; } }
.xbg-band-g { animation: xbg-rise-in linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
@keyframes xbg-rise-in { from { transform: translateY(48px); opacity: .2; } }
}
}
/* the Frontier's sources: one caption line under the chart, out of the chip row */
.xbg-srcs { margin: 17px 0 0; font-size: 13px; line-height: 1.6; color: var(--mute); }
.xbg-srcs > span + span::before { content: ' · '; }
.xbg-card-t { font-size: 21px; font-weight: 497; line-height: 1.25; letter-spacing: -.01em; max-width: 26ch; text-wrap: balance; }
.xbg-card-k { display: flex; flex-wrap: wrap; gap: 6.5px 17px; color: var(--mute); }
.xbg-card-r { color: var(--ink2); }
/* ---------- the signature: drag the timeline (the rail's spine on desktop, the bar's line on phones) ---------- */
.xbg-spine { cursor: grab; touch-action: none; }
.xbg-spine::before { content: ''; position: absolute; top: 0; bottom: 0; left: -11px; width: 24px; }
.xbg-thread[data-drag] .xbg-spine { cursor: grabbing; }
.xbg-spine .xbg-thumb { position: absolute; left: 1px; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--room-bg); box-shadow: inset 0 0 0 2px var(--ink2), 0 2px 8px rgba(0, 0, 0, .12); outline: none; transition: transform 200ms cubic-bezier(.16, 1, .3, 1), box-shadow 200ms; }
@media (hover: hover) { .xbg-spine:hover .xbg-thumb { transform: scale(1.15); } }
.xbg-thread[data-drag] .xbg-thumb, .xbg-thumb:focus-visible { transform: scale(1.3); box-shadow: inset 0 0 0 6px var(--ink2), 0 2px 10px rgba(0, 0, 0, .18); }
.xbg-tip { position: absolute; left: 30px; top: 50%; transform: translate(-6px, -50%); display: block; width: max-content; max-width: 220px; padding: 6.5px 10.5px; border-radius: 6px; background: var(--ink2); color: var(--room-bg); font-size: 12px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: opacity 150ms, transform 200ms cubic-bezier(.16, 1, .3, 1); z-index: 3; }
.xbg-thread[data-drag] .xbg-tip, .xbg-thumb:focus-visible .xbg-tip { opacity: 1; transform: translate(0, -50%); }
.alt .xbg-tip { left: auto; right: 30px; }
.xbg-scrub { display: none; }
/* ---------- tablet and phone ---------- */
@media (max-width: 1199px) {
.xbg-room { grid-template-columns: minmax(0, 1fr); }
.xbg-rail { display: none; }
.xbg-text { max-width: 768px; }
.xbg-bar { display: block; position: sticky; top: 60px; z-index: 10; margin: 0 calc(-1 * var(--gut)) 44px; background: var(--room-bg); border-bottom: 1px solid var(--hair); }
.xbg-bar-row { display: flex; align-items: center; gap: 10.5px; padding-right: var(--gut); }
.xbg-bar-row .xbg-bar-b { flex: 1; min-width: 0; padding-right: 0; }
.xbg-bar-ask { display: none; flex: none; }
.xbg-bar-b { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 14px; align-items: center; gap: 10.5px; width: 100%; min-height: 56px; padding: 0 var(--gut); border: 0; background: none; text-align: left; color: var(--ink2); font: 400 14px/1.2 var(--sans); cursor: pointer; }
.xbg-bar-b:active { transform: scale(.99); }
.xbg-bar-n { font-size: 12px; color: var(--mute); letter-spacing: .14em; }
.xbg-bar-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xbg-bar-m { font-size: 12px; color: var(--mute); white-space: nowrap; }
.xbg-bar-b svg { transition: transform 300ms cubic-bezier(.4, 0, .2, 1); }
.xbg-bar-b svg.up { transform: rotate(180deg); }
/* the bar's line is the phone's timeline: a 24px touch strip on the bar's foot, a thumb that grows while dragged */
.xbg-scrub { display: block; position: absolute; left: 0; right: 0; bottom: -12px; height: 24px; z-index: 2; touch-action: none; cursor: grab; }
.xbg-bar-line { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--ink2); transform-origin: left; }
.xbg-scrub .xbg-thumb { position: absolute; top: 12px; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink2); outline: none; transition: transform 200ms cubic-bezier(.16, 1, .3, 1); }
.xbg-scrub[data-drag] .xbg-thumb, .xbg-scrub .xbg-thumb:focus-visible { transform: scale(1.5); }
.xbg-sheet { padding: 4px var(--gut) 17px; }
}
@media (max-width: 899px) {
.xbg-hero { padding: 68px 0 27px; }
.xbg-hero-g { grid-template-columns: minmax(0, 1fr); row-gap: 27px; min-height: 0; }
.xbg-hero.alt .xbg-cover-t { order: 0; }
.xbg-art { aspect-ratio: auto; height: 45svh; }
.xbg-h1 { font-size: 40px; line-height: 1.06; }
.xbg-lede { margin-top: 17px; font-size: 17px; }
.xbg-ask { margin-top: 17px; }
.xbg-facts, .xbg-facts:not(.figs) { grid-template-columns: minmax(0, 1fr); row-gap: 27px; }
.xbg-facts.figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xbg-fig, .xbg-facts .x-stat-v { font-size: 44px; }
.xbg-parts { grid-template-columns: minmax(0, 1fr); }
.xbg-parts li, .xbg-parts li.lead { grid-column: 1; grid-row: auto; }
.xbg-parts li.lead { margin-bottom: 17px; }
.xbg-gist .xbg-gist-s .x-stat-v { font-size: 44px; }
.xbg-gist-bar { grid-template-columns: 128px minmax(0, 1fr); column-gap: 17px; }
.xbg-gist-bar .x-stat-v { font-size: 32px; }
.xbg-gist-t { font-size: 14px; }
.xbg-part-film { aspect-ratio: 16 / 10; }
.xbg-life { grid-template-columns: minmax(0, 1fr); }
.xbg-life figcaption { grid-column: 1; grid-row: 3; }
.xbg-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 6.5px; scrollbar-width: none; }
.xbg-chips li { scroll-snap-align: start; }
.xbg-chips button { min-height: 44px; white-space: nowrap; }
.xbg-gpqa .xbg-read { min-height: 8.4em; }
.xbg-pin { display: none; }
.xbg-tk.y { width: auto; left: -4px; }
.xbg-next { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; row-gap: 27px; }
.xbg-end.src .xbg-end-g { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
.xbg-end.src .xbg-src { order: 2; }
.xbg-next .xbg-card-art, .xbg-end.src .xbg-next .xbg-card-art, .xbg-next li:not(.big) .xbg-card-art, .xbg-end.src .xbg-next li:not(.big) .xbg-card-art { height: auto; aspect-ratio: 4 / 5 !important; }
.xbg-card-t { font-size: 17px; }
.xbg-band-g { grid-template-columns: minmax(0, 1fr); }
.xbg-band { padding: 64px 0; clip-path: none !important; animation: none !important; }
.xbg-plate > .xbg-w { width: calc(100% - 2 * var(--gut)); }
}
/* phones: the post's ask rides in the chapter bar, inline, instead of a bar floating over the text */
@media (max-width: 700px) {
.xbg-bar-ask { display: inline-flex; }
.xbg-bar-m { display: none; }
.xbg-sheet .xbg-sheet-m { display: flex; justify-content: space-between; margin: 10.5px 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
}
.xbg-sheet-m { display: none; }
@media (max-width: 599px) {
.xbg-facts.figs { column-gap: 17px; }
.xbg-facts.figs .xbg-fig, .xbg-facts.figs .x-stat-v { font-size: 32px; }
.xbg-facts .xbg-note { font-size: 13px; }
}