/* The blog (2026-11-06, round 5 of the redesign; the record is client-knowledge/syncset/site-redesign-log.md and
   the reasons are BLOG-PURPOSE.md beside it). The blog's job: be found, pull a trainer in, give every page one clear
   next step, and track it. The front page asks one question and deals the answer: topics are a hand of cards; pull
   one and its posts deal out below. Every card is also a real link (its topic page or its post), so nothing depends
   on script. A post opens with the short answer and its one action ("Try this in SyncSet", red: SyncSet acting),
   which stays in reach in a slim bar, and ends by dealing the next cards. Dark cards only.
   One sheet for the index, the topic pages, every post and the template: a post carries no styles of its own. */
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- the reading column ---------- */
.rd { padding: calc(92px + 3vh / var(--z)) var(--gutter) 0; }
.rd .back { display: inline-block; margin-bottom: 26px; font-size: 15px; color: var(--ink-dim); text-decoration: none; }
.rd-col { max-width: var(--measure); margin: 0 auto; }
.rd-col p, .rd-col li { font-size: var(--body); line-height: 1.62; }
.rd-col p { margin: 0 0 1.05em; text-wrap: pretty; }
.rd-col .lede { font-size: clamp(22px, calc(1.7vw / var(--z)), 28px); line-height: 1.42; }
.rd-col a { color: var(--ink); text-decoration-color: var(--edge-hi); text-underline-offset: 0.15em; }
.rd-col h2 { margin: 2.4em 0 0.55em; font: 900 clamp(34px, calc(2.9vw / var(--z)), 54px)/0.95 var(--display); text-wrap: balance; }
.rd-col > ul { list-style: none; margin: 0 0 1.2em; padding: 0; }
.rd-col > ul > li { position: relative; padding-left: 26px; margin-bottom: 0.6em; }
.rd-col > ul > li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 12px; height: 1px; background: var(--ink-dim); }
.rd-col .sources li { font-size: 15px; line-height: 1.55; color: var(--ink-dim); overflow-wrap: anywhere; }
.rd-col .sources a { color: var(--ink-dim); }
.rd-col .src-note { font-size: 15px; color: var(--ink-dim); }
.rd-head { max-width: var(--measure); margin: 0 auto calc(5vh / var(--z)); }
.rd-head .kicker { font-size: 15px; font-weight: 600; color: var(--ink-read); margin-bottom: 14px; }
.rd-head h1 { font: 900 clamp(44px, calc(4.4vw / var(--z)), 84px)/0.92 var(--display); text-wrap: balance; }
.rd-head .byline { margin-top: 18px; font-size: 15px; color: var(--ink-dim); }
.rd-try { margin: calc(12vh / var(--z)) calc(-1 * var(--gutter)) 0; padding: calc(8vh / var(--z)) var(--gutter) calc(10vh / var(--z)); border-top: 1px solid var(--line); }
.rd-try h2 { font: 900 clamp(40px, calc(4vw / var(--z)), 76px)/0.9 var(--display); text-transform: uppercase; max-width: 12em; }
.rd-try p { margin: 14px 0 22px; font-size: 17px; color: var(--ink-read); }

:root { --deal: cubic-bezier(.2,.8,.2,1); }  /* how a card arrives */

/* ---------- front page ---------- */
.dk { padding: calc(84px + 2vh / var(--z)) var(--gutter) 0; }
.dk-mast { font: 900 clamp(18px, calc(1.3vw / var(--z)), 24px)/1 var(--display); text-transform: uppercase; color: var(--ink-read); }
.dk-title { font: 900 clamp(56px, calc(7vw / var(--z)), 136px)/0.86 var(--display); text-transform: uppercase; }
.dk-sub { margin-top: 14px; font-size: var(--small); line-height: 1.35; color: var(--ink-read); max-width: 40ch; }
/* the question names what the cards are for; the room above the hand fits a lifted card (34 px up, 4% larger) */
.dk-q { margin-top: calc(5vh / var(--z)); text-align: center; font: 900 clamp(26px, calc(2.2vw / var(--z)), 40px)/1 var(--display); }

/* the hand: three topic cards, fanned; pointing at one lifts it, pulling it deals its posts */
.hand { position: relative; display: flex; justify-content: center; gap: 0; margin: calc(48px + 4vh / var(--z)) auto 0; height: clamp(360px, calc(46vh / var(--z)), 520px); max-width: 1100px; }
.topic { position: relative; flex: 0 0 auto; width: clamp(230px, calc(19vw / var(--z)), 340px); aspect-ratio: 5 / 7; margin: 0 -8px; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--edge); text-decoration: none; color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.55); transform-origin: 50% 120%; isolation: isolate; }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; z-index: -1; }
.topic::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3,3,4,.95) 8%, rgba(3,3,4,.15) 60%); }
.topic .n { position: absolute; top: 16px; left: 18px; font: 600 14px/1 var(--text); color: var(--ink-read); }
.topic .txt { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.topic .name { display: block; font: 900 clamp(44px, calc(3.6vw / var(--z)), 66px)/0.85 var(--display); text-transform: uppercase; }
.topic .promise { display: block; font-size: 16px; line-height: 1.3; color: var(--ink-read); }
.topic:nth-child(1) { transform: rotate(-7deg) translateY(18px); z-index: 1; }
.topic:nth-child(2) { transform: translateY(0); z-index: 2; }
.topic:nth-child(3) { transform: rotate(7deg) translateY(18px); z-index: 1; }
.topic:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .topic { transition: transform 450ms var(--deal), box-shadow 450ms var(--deal); }
  .hand:hover .topic:not(:hover) { filter: brightness(.7); }
  .topic:hover, .topic:focus-visible { transform: translateY(-34px) rotate(0deg) scale(1.04); z-index: 3; box-shadow: 0 50px 90px rgba(0,0,0,.7); }
  .topic.is-pulled { transform: translateY(-46px) rotate(0deg) scale(1.06); z-index: 3; }
}
.topic.is-pulled { border-color: var(--ink); }
.hand-hint { text-align: center; margin-top: 14px; font-size: 15px; color: var(--ink-dim); }

/* the posts: dealt as cards; a topic filter only rearranges what is already in the page */
.dealt { padding: calc(8vh / var(--z)) 0 calc(6vh / var(--z)); }
.dealt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin-bottom: 22px; }
.dealt-head h2 { font: 900 clamp(32px, calc(2.8vw / var(--z)), 52px)/0.9 var(--display); }
.dealt-head button { all: unset; cursor: pointer; font-size: 15px; color: var(--ink-read); text-decoration: underline; text-underline-offset: .2em; }
.dealt-head button[hidden] { display: none; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.6vw / var(--z)); }
.cards li.is-out { display: none; }
.card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); isolation: isolate; }
.card .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font: 600 13px/1 var(--text); padding: 6px 9px; border-radius: 6px; border: 1px solid var(--edge-hi); color: var(--ink); }
.chip.topic-chip { border-color: var(--edge); color: var(--ink-read); }
.card .t { font: 900 clamp(24px, calc(1.9vw / var(--z)), 34px)/0.95 var(--display); text-wrap: balance; }
.card .go-read { margin-top: auto; font-weight: 600; font-size: 15px; }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 400ms var(--deal), border-color 300ms ease; }
  .card .pic img { transition: transform 700ms var(--deal); }
  .card:hover, .card:focus-visible { transform: translateY(-6px); border-color: var(--edge-hi); }
  .card:hover .pic img, .card:focus-visible .pic img { transform: scale(1.05); }
  .js .cards li.is-dealing { animation: deal 520ms var(--deal) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes deal { from { opacity: 0; transform: translateY(-40px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }
}
.cards li:has(> .feature) { grid-column: 1 / -1; }
.card.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.card.feature .pic { aspect-ratio: auto; min-height: 380px; }
.card.feature .body { padding: 34px 34px 32px; justify-content: center; }
.card.feature .t { font-size: clamp(36px, calc(3.2vw / var(--z)), 60px); }
.card.feature .answer { font-size: 17px; line-height: 1.5; color: var(--ink-read); max-width: 40ch; }

/* getting new posts by email: the heading on the left, the line and the box on the right */
.mail { margin: calc(4vh / var(--z)) calc(-1 * var(--gutter)) 0; padding: calc(7vh / var(--z)) var(--gutter) calc(10vh / var(--z)); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px calc(4vw / var(--z)); align-items: start; }
.mail h2 { font: 900 clamp(30px, calc(2.6vw / var(--z)), 48px)/0.9 var(--display); }
.mail p { font-size: var(--small); line-height: 1.4; color: var(--ink-read); }
.mail form { margin-top: 20px; max-width: 620px; }
.subscribe-row { display: flex; gap: 12px; flex-wrap: wrap; }
.subscribe-row input[type="email"] { flex: 1; min-width: 220px; }
/* the honeypot: out of sight and out of the tab order; bots that fill it are dropped by the server */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- a post ---------- */
.pt-hero { position: relative; min-height: calc(86vh / var(--z)); display: grid; align-items: end; padding: calc(96px + 2vh / var(--z)) var(--gutter) calc(5vh / var(--z)); overflow: hidden; isolation: isolate; }
.pt-hero .plate { position: absolute; top: 0; bottom: 0; right: 0; aspect-ratio: 4 / 5; z-index: -2; }
.pt-hero .plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-hero .plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground) 0%, rgba(3,3,4,.35) 45%, rgba(3,3,4,0) 70%), linear-gradient(0deg, var(--ground) 0%, rgba(3,3,4,0) 30%); }
.pt-hero .inner { max-width: 760px; }
.crumb { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink-read); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.pt-hero h1 { margin-top: 14px; font: 900 clamp(48px, calc(5vw / var(--z)), 96px)/0.9 var(--display); text-wrap: balance; }
.short { margin-top: 26px; padding: 20px 22px; background: rgba(12,12,15,.86); border: 1px solid var(--edge); border-radius: 12px; max-width: 620px; }
.short h2 { font: 600 14px/1 var(--text); color: var(--ink-read); margin: 0 0 12px; }
.short ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.short li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; font: 900 clamp(22px, calc(1.6vw / var(--z)), 30px)/1 var(--display); }
.short li::before { content: counter(s); color: var(--ink-dim); }
.short li a { text-decoration: none; }
.short li a:hover { text-decoration: underline; }
.acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* the bar that keeps the one action in reach, with how far you are; sticky, no scroll listener */
.follow { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 12px var(--gutter); background: rgba(3,3,4,.94); border-top: 1px solid var(--line-2); }
.follow .where { font: 900 18px/1 var(--display); color: var(--ink-read); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.follow .go { padding: 12px 18px; font-size: 15px; white-space: nowrap; }
.follow .bar-p { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .follow .bar-p { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.pt-body .rd-col h2 { scroll-margin-top: 90px; }
.cues { list-style: none; margin: 1.2em 0 1.4em; padding: 0; display: grid; gap: 10px; }
.cues li { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: center; padding: 16px 18px; border-radius: 10px; background: var(--card); border: 1px solid var(--edge); font-size: var(--body); line-height: 1.35; }
.cues li b { font: 900 clamp(24px, calc(1.8vw / var(--z)), 32px)/0.95 var(--display); text-transform: uppercase; }
.cues li i { font-style: normal; color: var(--ink-read); }
.copy-row { display: flex; justify-content: flex-end; margin: -6px 0 1.4em; }
.copy-row button { display: none; }
.js .copy-row button { display: inline-block; }

.moment { position: relative; width: calc(100vw / var(--z)); margin: calc(6vh / var(--z)) 0 calc(6vh / var(--z)) calc(50% - 50vw / var(--z)); min-height: calc(80vh / var(--z)); overflow: hidden; display: grid; align-items: center; isolation: isolate; }
.moment img.pl { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; z-index: -2; }
.moment::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ground) 32%, rgba(3,3,4,0) 64%); }
.moment .say { padding: 0 var(--gutter); max-width: calc(50vw / var(--z) + 6em); }
.moment .say h3 { font: 900 clamp(40px, calc(4vw / var(--z)), 76px)/0.9 var(--display); text-wrap: balance; max-width: 9em; }
.moment .say p { margin: 16px 0 22px; color: var(--ink-read); max-width: 34ch; font-size: 18px; }
.scene2 { position: relative; width: calc(100vw / var(--z)); margin: calc(6vh / var(--z)) 0 calc(6vh / var(--z)) calc(50% - 50vw / var(--z)); height: calc(70vh / var(--z)); overflow: hidden; }
.scene2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sources-fold summary { cursor: pointer; font: 900 clamp(28px, calc(2.2vw / var(--z)), 40px)/1 var(--display); margin-top: 2em; }
.sources-fold summary::-webkit-details-marker { color: var(--ink-dim); }

.next { padding: calc(8vh / var(--z)) var(--gutter) calc(6vh / var(--z)); border-top: 1px solid var(--line); margin-top: calc(10vh / var(--z)); }
.next h2 { font: 900 clamp(32px, calc(2.8vw / var(--z)), 52px)/0.9 var(--display); margin-bottom: 22px; }
.next .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next .try-again { margin-top: calc(6vh / var(--z)); display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.next .try-again p { font: 900 clamp(26px, calc(2vw / var(--z)), 38px)/1 var(--display); }

@media (max-width: 899px) {
  .mail { grid-template-columns: 1fr; }
  .hand { height: auto; padding: 10px 0 30px; overflow: visible; }
  .hand { max-width: 100%; }
  .topic { width: 32vw; margin: 0 -1vw; }
  .topic .name { font-size: 6.2vw; }
  .topic .promise { font-size: 11px; }
  .topic .txt { left: 10px; right: 10px; bottom: 12px; gap: 4px; }
  .topic .n { left: 10px; top: 10px; font-size: 12px; }
  .topic .promise { font-size: 13px; }
  .cards, .next .cards { grid-template-columns: 1fr; }
  .cards li:has(> .feature) { grid-column: auto; }
  .card.feature { grid-template-columns: 1fr; }
  .card.feature .pic { min-height: 0; aspect-ratio: 16 / 11; }
  .card.feature .body { padding: 20px; }
  .pt-hero { min-height: 0; padding-top: calc(84px + 46vh); }
  .pt-hero .plate { left: 0; right: 0; bottom: auto; height: 62vh; aspect-ratio: auto; }
  .pt-hero .plate::after { background: linear-gradient(0deg, var(--ground) 2%, rgba(3,3,4,0) 50%); }
  .cues li { grid-template-columns: 1fr; gap: 4px; }
  .moment { min-height: 0; padding-top: 110vw; }
  .moment img.pl { height: 125vw; width: 100%; bottom: auto; }
  .moment::after { background: linear-gradient(0deg, var(--ground) 30%, rgba(3,3,4,0) 55%); }
  .moment .say { max-width: none; }
  .scene2 { height: 100vw; }
  .follow .where { display: none; }
  .follow { justify-content: center; }
  .follow .go { width: 100%; text-align: center; }
}
.rd-col > ul.cues > li { padding-left: 18px; margin: 0; } .rd-col > ul.cues > li::before { display: none; }

/* the bar waits while the opening's own button is on screen (script adds .has-hero-act); without script it always shows */
@media (prefers-reduced-motion: no-preference) { .follow { transition: transform 300ms ease, opacity 300ms ease; } }
.follow.is-waiting { transform: translateY(100%); opacity: 0; pointer-events: none; }

/* ---------- pieces older posts use ---------- */
/* a scheduled post read at its private address before its day (scripts/preview-scheduled.js) */
.preview-note { margin: 0 var(--gutter) 0; padding: 12px 16px; border: 1px dashed var(--edge-hi); border-radius: 10px; font-size: 14px; color: var(--ink-dim); position: relative; z-index: 2; top: 90px; }
/* real app screens, two side by side */
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.4em 0 1.6em; }
.screens figure { margin: 0; min-width: 0; }
.screens img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-2); background: #000; }
.screens figcaption { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-read); }
/* a program as text to copy */
.program { margin: 1.2em 0 1.6em; border: 1px solid var(--edge); border-radius: 12px; background: var(--card); overflow: hidden; }
.program-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 600; color: var(--ink-read); }
.program-bar button { font: 600 15px/1 var(--text); color: var(--ink); background: none; border: 1px solid var(--edge-hi); border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.program pre { margin: 0; padding: 20px 18px; font: 400 15px/1.65 var(--mono); color: var(--ink); white-space: pre-wrap; }
.rd-col blockquote { margin: 0 0 1.1em; padding-left: 22px; border-left: 1px solid var(--edge-hi); font-size: var(--body); line-height: 1.6; }
@media (max-width: 899px) { .screens { gap: 10px; } .screens img { border-radius: 12px; } }
.pt-hero .kicker { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink-read); }
.next .try-again .sub { display: block; margin-top: 8px; font-size: 16px; color: var(--ink-read); }
.rd-col .byline { font-size: 15px; color: var(--ink-dim); margin-bottom: 1.4em; }
.scene2.credit { height: auto; }
.scene2.credit img { height: auto; max-height: calc(80vh / var(--z)); }
.scene2.credit figcaption { padding: 10px var(--gutter) 0; font-size: 13px; color: var(--ink-dim); }
.scene2.credit figcaption a { color: var(--ink-dim); }
.pt-hero h1 em, .card .t em { font-style: normal; } /* one tone, one style: a headline part set apart is a tell */
.dk { overflow-x: clip; } /* the fanned cards tilt past a narrow phone edge; clip sideways only, so a lifted card still shows whole */
