/* ==========================================================================
   SET blog. Builds on css/site.css: the same tokens, type, nav, footer and
   motion. Covers are drawn in SET's own language (charts, set chips, plates),
   never photos. The home page loads this file too, for its newest articles.
   Pages are generated by tools/build-blog.mjs from blog/posts.mjs.
   ========================================================================== */

/* ---- The overview: a header, topics, the featured post and the rest ---------- */
.blog-head { padding: clamp(150px, 16vw, 210px) 0 0; }
.blog-head .container { display: grid; justify-items: start; gap: clamp(20px, 2.4vw, 32px); }
.blog-head .lead { max-width: 40ch; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter { position: relative; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); color: var(--ink-2); font: 600 15px/1 var(--font); cursor: pointer; transition: background-color .3s ease, color .3s ease, transform .16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.blog-filter:active { transform: scale(.97); }
.blog-filter[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
@media (hover: hover) { .blog-filter:not([aria-pressed="true"]):hover { color: var(--ink); } }

.blog-list { padding: clamp(48px, 6vw, 80px) 0 0; }
.post-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); overflow: hidden; border-radius: var(--radius-moment); background: radial-gradient(70% 90% at 20% 110%, rgb(29 59 45 / .9) 0%, transparent 70%), var(--mineral); box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 40px 70px -40px rgb(12 20 16 / .6); color: var(--ivory); text-decoration: none; transition: transform .6s var(--spring), box-shadow .5s ease; }
:root[data-theme="dark"] .post-featured { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), inset 0 1px 0 rgb(255 255 255 / .08); }
.post-featured-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(28px, 4vw, 56px); }
.post-featured .post-cat { color: var(--mint); }
.post-featured-title { font: 700 clamp(30px, 3.2vw, 46px)/1.05 var(--font); letter-spacing: -.035em; text-wrap: balance; }
.post-featured .post-excerpt { color: var(--ivory-2); font-size: 18px; }
.post-featured .post-meta { color: var(--ivory-3); }
.post-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ivory); font: 600 16px/1 var(--font); }
.post-more .i { transition: transform .35s var(--ease-out); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--card); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; transition: transform .6s var(--spring), box-shadow .5s ease, opacity .35s ease; }
.post-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 26px; }
.post-cat { color: var(--accent-text); font: 600 13px/1.3 var(--font); letter-spacing: .005em; }
.post-title { font: 700 21px/1.2 var(--font); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.post-excerpt { color: var(--ink-2); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.post-meta { margin-top: auto; padding-top: 6px; color: var(--ink-3); font-size: 14px; }
@media (hover: hover) {
  .post-card:hover, .post-featured:hover { transform: translateY(-4px); }
  .post-card:hover { box-shadow: var(--shadow-card), 0 30px 50px -34px rgb(18 38 29 / .45); }
  .post-card:hover .cover > *, .post-featured:hover .cover > * { transform: scale(1.04); }
  .post-featured:hover .post-more .i { transform: translateX(4px); }
}
.post-card:focus-visible, .post-featured:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.post-card[hidden] { display: none; }

/* ---- Covers --------------------------------------------------------------------- */
.cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stage-bg); box-shadow: inset 0 -1px 0 var(--line); container-type: inline-size; }
.cover > * { transition: transform .8s var(--ease-pres); }
.cover .signal { width: 1em; height: 1em; fill: currentColor; }
/* The featured cover: reps by session with one dip, and the weight line that holds. */
.cover-rough { --c: 100cqi; aspect-ratio: auto; min-height: 100%; background: transparent; box-shadow: none; padding: 9% 7% 12%; }
.cover-rough.is-big { min-height: clamp(280px, 30vw, 440px); }
/* On a card the chart keeps its own dark field, so its light lines read. */
.cover-rough:not(.is-big) { aspect-ratio: 16 / 10; min-height: 0; padding: 8% 8% 11%; background: radial-gradient(80% 90% at 30% 115%, rgb(29 59 45 / .9) 0%, transparent 70%), var(--mineral); }
.rough-chart { width: 100%; height: auto; overflow: visible; }
.rough-chart .grid { stroke: rgb(243 238 226 / .14); stroke-width: 1; }
.rough-chart .weight { fill: none; stroke: rgb(243 238 226 / .32); stroke-width: 2; stroke-dasharray: 4 6; }
.rough-chart .reps { fill: none; stroke: var(--mint); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rough-chart circle { fill: var(--mineral); stroke: var(--mint); stroke-width: 2.4; }
.rough-chart .dip { fill: var(--mineral); stroke: var(--champagne); stroke-width: 2.6; }
.rough-tag { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgb(243 238 226 / .09); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .14); color: var(--ivory); font: 600 clamp(11px, 2.6cqi, 14px)/1 var(--font); white-space: nowrap; }
.dip-tag { left: 50%; top: 72%; translate: -50% 0; color: var(--champagne); }
.keep-tag { left: 9%; top: 20%; color: var(--mint); }
.js .post-featured:not(.is-in) .rough-chart .reps, .js .article-cover:not(.is-in) .rough-chart .reps { stroke-dasharray: 100; stroke-dashoffset: 100; }
.rough-chart .reps { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-pres) .3s; }
/* Building your baseline: empty set rows. */
.mini-card { display: grid; gap: 8px; width: min(78%, 300px); padding: 14px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgb(21 21 20 / .06), 0 24px 40px -26px rgb(18 38 29 / .45); color: var(--ink); }
.mini-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font: 600 clamp(11px, 3.4cqi, 13px)/1.2 var(--font); }
.mini-row { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 8px; align-items: center; }
.mini-row b { color: var(--ink-3); font: 600 13px/1 var(--font); text-align: center; }
.mini-row i { height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: repeating-linear-gradient(90deg, transparent 0 6px, color-mix(in srgb, var(--line) 60%, transparent) 6px 7px); }
/* Reps in reserve: the scale, two left. */
.cover-rir { align-content: center; gap: 12px; }
.rir-label { color: var(--ink-2); font: 600 clamp(12px, 3.8cqi, 15px)/1 var(--font); text-align: center; }
.rir-scale { display: flex; gap: 6px; }
.rir-scale b { display: grid; place-items: center; min-width: clamp(34px, 11cqi, 46px); height: clamp(34px, 11cqi, 46px); border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 650 clamp(14px, 4.4cqi, 18px)/1 var(--font); }
.rir-scale b.on { background: var(--accent); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); color: var(--accent-ink); transform: translateY(-4px); }
/* Earned: three tens, then the next weight. */
.cover-earned { align-content: center; gap: 14px; }
.earned-sets { display: flex; justify-content: center; gap: 6px; }
.earned-sets b { display: grid; place-items: center; min-width: clamp(34px, 11cqi, 44px); height: clamp(32px, 10cqi, 40px); border-radius: 11px; background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent-text); font: 650 clamp(14px, 4.4cqi, 17px)/1 var(--font); }
.earned-target { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink-3); font: 700 clamp(24px, 9cqi, 38px)/1 var(--font); letter-spacing: -.035em; }
.earned-target em { font-style: normal; color: var(--accent-text); }
.earned-target small { margin-left: -4px; color: var(--ink-2); font-size: .45em; letter-spacing: 0; }
.earned-target .i { align-self: center; font-size: .5em; }
/* The smallest step: plates on a bar. */
.cover-steps { align-content: center; gap: 12px; }
.steps-bar { position: relative; display: flex; align-items: center; gap: 3px; width: 70cqi; height: 30cqi; }
.steps-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4cqi; margin-top: -2cqi; border-radius: 2px; background: linear-gradient(180deg, #B8B4AC, #8E8A82 60%, #A9A59D); }
.steps-bar i { position: relative; border-radius: 4px; }
.steps-bar .sleeve { width: 12cqi; height: 7cqi; background: linear-gradient(180deg, #CFCBC2, #9C988F 60%, #B4B0A7); }
.steps-bar .p25 { width: 9cqi; height: 30cqi; background: linear-gradient(90deg, #2F6E50, #24573F 55%, #1B4532); }
.steps-bar .p5 { width: 6cqi; height: 19cqi; background: linear-gradient(90deg, #3A3A37, #262624 60%, #1A1A18); }
.steps-bar .p125 { width: 4.4cqi; height: 13cqi; background: linear-gradient(90deg, #C9A35A, #B08A43 60%, #93702F); box-shadow: 0 0 0 3px color-mix(in srgb, var(--record) 30%, transparent); }
.steps-bar .collar { width: 3.6cqi; height: 9cqi; background: linear-gradient(90deg, #8E8A82, #6F6B64); }
.steps-label { color: var(--record); font: 700 clamp(15px, 4.6cqi, 19px)/1 var(--font); }
/* Swaps: alternatives ranked by muscle match. */
.swap-stack { display: grid; gap: 7px; width: min(80%, 320px); }
.swap-chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font: 600 clamp(11px, 3.4cqi, 13px)/1 var(--font); }
.swap-chip b { padding: 4px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.swap-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; min-height: clamp(36px, 12cqi, 46px); border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgb(21 21 20 / .06); color: var(--ink); font: 600 clamp(12px, 3.9cqi, 15px)/1.2 var(--font); }
.swap-line .i { flex: none; color: var(--accent-text); }
.swap-line + .swap-line { opacity: .8; }
/* No changes needed. */
.cover-nochange .mini-card { gap: 4px; }
.cover-nochange strong { font: 700 clamp(15px, 4.8cqi, 19px)/1.2 var(--font); letter-spacing: -.015em; }
.cover-nochange small { color: var(--ink-2); font-size: clamp(12px, 3.6cqi, 14px); }

/* ---- The training articles' covers (2026-11) ---- */
/* Sets per muscle: Analyze's four zones, three muscles on them. */
.cover-zones, .cover-week, .cover-warmup { --zl: rgb(212 87 76 / .14); --zg: rgb(214 149 36 / .15); --zgr: rgb(47 158 92 / .17); --zh: rgb(138 138 143 / .15); --dot: #2F9E5C; --dot-g: #D69524; --dot-g-text: #8F600C; }
:root[data-theme="dark"] :is(.cover-zones, .cover-week, .cover-warmup) { --zl: rgb(240 122 110 / .12); --zg: rgb(240 180 76 / .12); --zgr: rgb(76 199 130 / .16); --zh: rgb(163 163 168 / .12); --dot: #4CC782; --dot-g: #F0B44C; --dot-g-text: #F2BE63; }
.zones-card { gap: 10px; width: min(82%, 320px); }
.zone-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 22px; align-items: center; gap: 10px; color: var(--ink); font: 500 clamp(11px, 3.4cqi, 13px)/1 var(--font); }
.zone-row b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.zone-row em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.zone-row em.grow { color: var(--dot-g-text); }
.zone-track { position: relative; height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--zl) 0 21.5%, transparent 21.5% 22.2%, var(--zg) 22.2% 47.8%, transparent 47.8% 48.5%, var(--zgr) 48.5% 79.2%, transparent 79.2% 79.9%, var(--zh) 79.9%); }
.zone-track i { position: absolute; left: calc(var(--x) * 100%); top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px var(--card); }
.zone-track i.grow { background: var(--dot-g); }
/* A line that climbs (progressive overload) or holds and then climbs (a plateau): the featured card's dark field. */
.cover-chart { aspect-ratio: 16 / 10; padding: 8% 8% 11%; background: radial-gradient(80% 90% at 30% 115%, rgb(29 59 45 / .9) 0%, transparent 70%), var(--mineral); }
:root[data-theme="dark"] .cover-chart { background: radial-gradient(80% 90% at 30% 115%, rgb(54 52 50 / .9) 0%, transparent 70%), var(--mineral); }
.climb-chart { width: 100%; height: auto; overflow: visible; }
.climb-chart .grid { stroke: rgb(243 238 226 / .14); stroke-width: 1; }
.climb-chart .line { fill: none; stroke: var(--mint); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.climb-chart .flat { fill: none; stroke: rgb(243 238 226 / .34); stroke-width: 2.4; stroke-linecap: round; }
.climb-chart circle { fill: var(--mineral); stroke: var(--mint); stroke-width: 2.4; }
.climb-chart circle.dim { stroke: rgb(243 238 226 / .4); }
.climb-chart circle.last { fill: var(--mint); }
.climb-tag { left: 9%; top: 18%; color: var(--mint); }
.stall-tag { left: 14%; top: 74%; color: var(--ivory-2); }
/* Double progression: the reps climb inside the range, then the weight goes up. */
.cover-double { align-content: center; justify-items: center; gap: 7px; }
.double-row { display: grid; grid-template-columns: 54px repeat(3, clamp(30px, 9.5cqi, 40px)); align-items: center; gap: 5px; }
.double-row small { color: var(--ink-3); font: 600 clamp(10px, 3.2cqi, 12px)/1 var(--font); }
.double-row b { display: grid; place-items: center; height: clamp(26px, 8cqi, 32px); border-radius: 9px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 650 clamp(12px, 3.9cqi, 15px)/1 var(--font); }
.double-row.is-top b { background: color-mix(in srgb, var(--accent) 16%, var(--card)); box-shadow: none; color: var(--accent-text); }
.cover-double .earned-target { margin-top: 6px; font-size: clamp(20px, 7cqi, 30px); }
/* How close to failure: the productive part of the scale. */
.cover-failure .rir-scale b.on { transform: none; }
.cover-failure .rir-scale b.edge { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-text); }
/* Rep ranges: three loads, one bar, all near failure. */
.cover-reprange { align-content: center; justify-items: center; gap: 12px; }
.range-chips { display: flex; gap: 8px; }
.range-chips b { display: grid; place-items: center; min-width: clamp(40px, 13cqi, 52px); height: clamp(32px, 10cqi, 40px); border-radius: 12px; background: var(--card); box-shadow: 0 1px 2px rgb(21 21 20 / .06), inset 0 0 0 1px var(--line); color: var(--ink); font: 700 clamp(14px, 4.6cqi, 18px)/1 var(--font); }
.range-bar { position: relative; width: min(70%, 280px); height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.range-bar i { position: absolute; inset: 0 0 0 8%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); }
.range-label { color: var(--ink-2); font: 600 clamp(12px, 3.6cqi, 14px)/1 var(--font); }
/* Frequency: one muscle's week. */
.week-card { width: min(84%, 330px); gap: 12px; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week-days b { display: grid; justify-items: center; gap: 4px; padding: 7px 0; border-radius: 10px; color: var(--ink-3); font: 600 clamp(9px, 2.9cqi, 11px)/1 var(--font); }
.week-days b em { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--dot); color: #FFFFFF; font: 700 11px/1 var(--font); font-style: normal; }
:root[data-theme="dark"] .week-days b em { color: #151514; }
.week-days b.on { background: color-mix(in srgb, var(--dot) 12%, transparent); color: var(--ink); }
.week-days b:not(.on)::after { content: ""; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
/* Rest between sets: the timer ring with +15 and Skip. */
.cover-rest { align-content: center; justify-items: center; gap: 12px; }
.rest-ring { position: relative; display: grid; place-items: center; align-content: center; width: clamp(96px, 30cqi, 128px); aspect-ratio: 1; }
.rest-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rest-ring circle { fill: none; stroke-width: 7; }
.rest-ring .t { stroke: var(--line); }
.rest-ring .f { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 12.5; }
.rest-ring b { color: var(--ink); font: 700 clamp(22px, 7.4cqi, 30px)/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rest-ring small { margin-top: 2px; color: var(--ink-3); font: 600 clamp(10px, 3cqi, 12px)/1 var(--font); }
.rest-btns { display: flex; gap: 6px; }
.rest-btns span { display: grid; place-items: center; min-width: 58px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 12px/1 var(--font); }
/* Warm-up sets, building to the working weight. */
.warm-card { width: min(78%, 300px); gap: 6px; }
.warm-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 26px; padding: 0 8px; border-radius: 9px; color: var(--ink-2); font: 600 clamp(11px, 3.4cqi, 13px)/1 var(--font); }
.warm-row b { color: var(--ink-3); font-weight: 600; }
.warm-row em { font-style: normal; }
.warm-row.is-work { margin-top: 4px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.warm-row.is-work b { color: var(--accent-text); }

/* ---- The training articles' covers, part 2 ---- */
/* Range of motion: a short slice and the whole range. */
.cover-rom { align-content: center; justify-items: center; gap: 10px; }
.rom-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 10px; width: min(74%, 300px); }
.rom-row small { color: var(--ink-3); font: 600 clamp(10px, 3.2cqi, 12px)/1 var(--font); }
.rom-row.is-full small { color: var(--accent-text); }
.rom-track { position: relative; height: 12px; border-radius: 99px; background: var(--line); }
.rom-track i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 100%); right: calc((1 - var(--b)) * 100%); border-radius: inherit; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.rom-row.is-full .rom-track i { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); }
.rom-label { margin-top: 4px; color: var(--ink-2); font: 600 clamp(12px, 3.6cqi, 14px)/1 var(--font); }
/* Tempo: beats for lowering and lifting. */
.cover-tempo { align-content: center; justify-items: center; gap: 10px; }
.tempo-row { display: grid; grid-template-columns: 56px auto 44px; align-items: center; gap: 12px; }
.tempo-row b { color: var(--ink-2); font: 600 clamp(11px, 3.4cqi, 13px)/1 var(--font); }
.tempo-row em { color: var(--ink); font: 700 clamp(13px, 4cqi, 16px)/1 var(--font); font-style: normal; text-align: right; }
.tempo-beats { display: flex; gap: 6px; }
.tempo-beats i { width: clamp(26px, 8cqi, 34px); height: clamp(26px, 8cqi, 34px); border-radius: 50%; background: var(--accent); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.tempo-beats i.dim { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
/* Machines vs free weights. */
.cover-versus { align-content: center; justify-items: center; gap: 14px; }
.versus-chips { display: flex; align-items: center; gap: 10px; }
.versus-chips b { display: grid; place-items: center; min-height: clamp(36px, 11cqi, 44px); padding: 0 16px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgb(21 21 20 / .06), inset 0 0 0 1px var(--line); color: var(--ink); font: 650 clamp(12px, 3.9cqi, 15px)/1 var(--font); white-space: nowrap; }
.versus-eq { color: var(--accent-text); font: 700 clamp(18px, 6cqi, 24px)/1 var(--font); }
.versus-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font: 600 clamp(12px, 3.6cqi, 14px)/1 var(--font); }
/* Compound vs isolation: what one set counts for. */
.compound-card { width: min(72%, 280px); gap: 6px; }
.compound-row { display: flex; align-items: center; justify-content: space-between; min-height: 28px; padding: 0 10px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); font: 600 clamp(11px, 3.4cqi, 13px)/1 var(--font); }
.compound-row em { color: var(--accent-text); font: 700 15px/1 var(--font); font-style: normal; }
.compound-row.is-half { background: color-mix(in srgb, var(--accent) 5%, transparent); color: var(--ink-2); }
/* Push / pull / legs. */
.cover-ppl { grid-auto-flow: column; align-content: center; align-items: stretch; justify-content: center; gap: 8px; }
.ppl-day { display: grid; align-content: start; gap: 3px; width: clamp(84px, 27cqi, 116px); min-height: clamp(76px, 24cqi, 100px); padding: 12px 10px; border-radius: 16px; background: var(--card); box-shadow: 0 1px 2px rgb(21 21 20 / .06), 0 18px 32px -24px rgb(18 38 29 / .4); }
.ppl-day b { margin-bottom: 4px; color: var(--accent-text); font: 700 clamp(14px, 4.4cqi, 17px)/1 var(--font); }
.ppl-day small { color: var(--ink-2); font: 500 clamp(9px, 2.9cqi, 11px)/1.3 var(--font); }
/* A workout log. */
.log-line { display: grid; grid-template-columns: 18px 1fr auto auto; align-items: center; gap: 10px; min-height: 26px; color: var(--ink); font: 600 clamp(11px, 3.4cqi, 13px)/1 var(--font); font-variant-numeric: tabular-nums; }
.log-line b { color: var(--ink-3); font-weight: 600; text-align: center; }
.log-line em { padding: 3px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font: 600 11px/1 var(--font); font-style: normal; }
.log-line + .log-line { border-top: 1px solid var(--line); }
/* Cardio and lifting in one week. */
.cover-cardio { align-content: center; justify-items: center; gap: 10px; }
.cardio-row { display: grid; grid-template-columns: 56px repeat(7, clamp(20px, 6.4cqi, 26px)); align-items: center; gap: 5px; }
.cardio-row small { color: var(--ink-2); font: 600 clamp(10px, 3.2cqi, 12px)/1 var(--font); }
.cardio-row i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cardio-row i.on { background: var(--accent); box-shadow: none; }
.cardio-row.is-cardio i.on { background: #C8922E; }
:root[data-theme="dark"] .cardio-row.is-cardio i.on { background: #E2B45C; }
.cardio-label { margin-top: 4px; color: var(--ink-2); font: 600 clamp(12px, 3.6cqi, 14px)/1 var(--font); }
/* Short on time. */
.cover-time { align-content: center; justify-items: center; gap: 12px; }
.time-big { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink-3); font: 700 clamp(28px, 10cqi, 44px)/1 var(--font); letter-spacing: -.035em; }
.time-big s { text-decoration-thickness: 2px; }
.time-big em { color: var(--accent-text); font-style: normal; }
.time-big small { margin-left: -6px; color: var(--ink-2); font-size: .42em; letter-spacing: 0; }
.time-big .i { align-self: center; font-size: .5em; }
.time-label { color: var(--ink-2); font: 600 clamp(12px, 3.6cqi, 14px)/1 var(--font); }
/* Coming back after a break: the tag sits in the gap. */
.break-tag { left: 50%; top: 66%; translate: -50% 0; }

/* ---- Article extras: links, questions, tables, sources ---- */
.prose a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
@media (hover: hover) { .prose a:not(.btn):hover { text-decoration-color: currentColor; } }
.prose h3 { margin: 1.5em 0 .35em; font: 650 21px/1.3 var(--font); letter-spacing: -.012em; }
.prose h3 + p { margin-top: 0; }
/* Numbered steps: the number in a small accent circle, as the bullets are accent dots. */
.prose ol:not(.sources) { display: grid; gap: .7em; margin-top: 1em; padding-left: 0; counter-reset: step; }
.prose ol:not(.sources) > li { position: relative; padding-left: 40px; counter-increment: step; }
.prose ol:not(.sources) > li::before { content: counter(step); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); box-shadow: none; color: var(--accent-text); font: 700 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.prose-table { margin: 1.6em 0; overflow-x: auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; }
.prose th { color: var(--ink-2); font: 650 13px/1.3 var(--font); letter-spacing: .02em; text-transform: uppercase; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.prose td { border-top: 1px solid var(--line); }
.prose td:first-child { font-weight: 650; white-space: nowrap; }
.sources { display: grid; gap: .7em; margin-top: 1em; padding-left: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; counter-reset: source; }
.prose .sources li { position: relative; padding-left: 30px; counter-increment: source; }
.prose .sources li::before { content: counter(source) "."; position: absolute; left: 0; top: 0; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.sources a { word-break: break-word; }
.prose-note { margin-top: 1.6em; color: var(--ink-3); font-size: 15px; line-height: 1.5; }

/* ---- The newest articles on the home page ------------------------------------------ */
.latest { padding: var(--section) 0 0; }
.latest-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(20px, 3vw, 48px); }
.latest-side { display: grid; justify-items: start; gap: 18px; padding-bottom: 8px; }
.latest-side .lead { max-width: 34ch; }
.latest-all { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font: 600 17px/1 var(--font); text-decoration: none; }
.latest-all .i { transition: transform .35s var(--ease-out); }
@media (hover: hover) { .latest-all:hover .i { transform: translateX(4px); } }
.latest-grid { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .latest-head { grid-template-columns: 1fr; } }

/* ---- The closing band and the toast -------------------------------------------- */
.blog-cta { padding: clamp(56px, 7vw, 96px) 0 0; }
.blog-cta-card { display: grid; justify-items: center; gap: 14px; padding: clamp(44px, 6vw, 80px) 24px; border-radius: var(--radius-moment); background: radial-gradient(60% 90% at 50% 120%, var(--forest) 0%, var(--forest-deep) 45%, transparent 78%), var(--mineral); color: var(--ivory); text-align: center; }
.blog-cta-card h2 { font: 700 clamp(34px, 4.6vw, 64px)/1 var(--font); letter-spacing: -.045em; }
.blog-cta-card p { color: var(--ivory-2); font-size: 17px; }
.blog-cta-card .btn { margin-top: 8px; }
.blog-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--canvas); font: 600 15px/1.3 var(--font); text-align: center; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .5); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .3s ease, transform .5s var(--spring-bounce); }
.blog-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.blog-toast:empty { display: none; }

/* ---- The article ------------------------------------------------------------------ */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }
.article-head { display: grid; justify-items: center; gap: 16px; max-width: 860px; margin: 0 auto; padding: clamp(150px, 15vw, 200px) var(--gutter) 0; text-align: center; }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink-2); font: 600 15px/1 var(--font); text-decoration: none; transition: color .25s ease; }
.article-back .i { transition: transform .35s var(--ease-out); }
@media (hover: hover) { .article-back:hover { color: var(--ink); } .article-back:hover .i { transform: translateX(-3px); } }
.article-title { font: 700 clamp(40px, 6.2vw, 80px)/1.02 var(--font); letter-spacing: -.048em; color: var(--ink); text-wrap: balance; }
.article-dek { max-width: 36ch; color: var(--ink-2); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; letter-spacing: -.012em; text-wrap: pretty; }
.article-meta { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; color: var(--ink-3); font-size: 15px; }
.article-meta .wordmark { width: 40px; height: 12px; color: var(--ink); }
.article-meta > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.article-cover { max-width: 1180px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter); }
.article-cover .cover { border-radius: var(--radius-moment); background: radial-gradient(70% 90% at 30% 110%, rgb(29 59 45 / .9) 0%, transparent 70%), var(--mineral); padding: 6% 9% 9%; }
.article-cover .cover-rough.is-big { min-height: clamp(260px, 34vw, 480px); }
/* The other covers are drawn for cards: wider and lighter here, their drawing scaled up. */
.article-cover .cover:not(.cover-rough):not(.cover-chart) { aspect-ratio: 21 / 9; padding: 0; background: var(--stage-bg); box-shadow: var(--stage-edge); }
.article-cover .cover-chart { aspect-ratio: 21 / 9; padding: 5% 20% 6%; }
.article-cover :is(.cover-baseline, .cover-rir, .cover-earned, .cover-swap, .cover-nochange, .cover-zones, .cover-double, .cover-reprange, .cover-week, .cover-rest, .cover-warmup, .cover-rom, .cover-tempo, .cover-versus, .cover-compound, .cover-ppl, .cover-cardio, .cover-time) > * { zoom: 1.6; }
/* The plates are drawn in container units: a narrower box draws them smaller. */
.article-cover .cover-steps { padding-inline: 24%; }
@media (max-width: 640px) {
  .article-cover .cover:not(.cover-rough) { aspect-ratio: 16 / 10; }
  .article-cover .cover-chart { padding: 8% 8% 11%; }
  .article-cover :is(.cover-baseline, .cover-rir, .cover-earned, .cover-swap, .cover-nochange, .cover-zones, .cover-double, .cover-reprange, .cover-week, .cover-rest, .cover-warmup, .cover-rom, .cover-tempo, .cover-versus, .cover-compound, .cover-ppl, .cover-cardio, .cover-time) > * { zoom: 1; }
  .article-cover .cover-steps { padding-inline: 0; }
}
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); max-width: 1240px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter); }
.article-toc { position: sticky; top: 120px; align-self: start; justify-self: end; width: min(100%, 230px); }
.article-toc-title { margin-bottom: 12px; color: var(--ink-3); font: 600 13px/1.3 var(--font); }
.article-toc ol { display: grid; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.article-toc a { position: relative; display: block; padding: 7px 0 7px 12px; color: var(--ink-2); font-size: 15px; line-height: 1.35; text-decoration: none; transition: color .3s ease; }
.article-toc a::before { content: ""; position: absolute; left: -13px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .45s var(--spring); }
.article-toc a[aria-current="true"] { color: var(--ink); }
.article-toc a[aria-current="true"]::before { transform: none; }
@media (hover: hover) { .article-toc a:hover { color: var(--ink); } }

.prose { grid-column: 2; min-width: 0; color: var(--ink); font-size: 19px; line-height: 1.68; letter-spacing: -.006em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1.05em; }
.prose-lead { font-size: 22px; line-height: 1.55; letter-spacing: -.012em; color: var(--ink); }
.prose h2 { margin: 1.9em 0 .55em; font: 700 clamp(26px, 2.4vw, 32px)/1.15 var(--font); letter-spacing: -.028em; scroll-margin-top: 110px; }
.prose ul { display: grid; gap: .55em; margin-top: 1em; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.7em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent); }
.prose blockquote p { color: var(--accent-text); font: 700 clamp(26px, 2.8vw, 36px)/1.15 var(--font); letter-spacing: -.03em; text-wrap: balance; }
.prose-figure { display: grid; justify-items: center; gap: 14px; margin: 1.8em 0; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--stage-bg); box-shadow: var(--stage-edge); }
.prose-figure .try-device { width: min(100%, 400px); }
.prose-figure figcaption { color: var(--stage-status-2); font-size: 15px; line-height: 1.4; text-align: center; }
.takeaways { margin-top: 2em; padding: 24px 26px; border-radius: 24px; background: var(--accent-soft); }
.takeaways-title { color: var(--accent-text); font: 700 15px/1.3 var(--font); }
.takeaways ul { margin-top: .6em; }
.takeaways li { font-size: 18px; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 2.4em; padding-top: 28px; border-top: 1px solid var(--line); }
.btn-quiet.is-done { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }

.related { padding: clamp(64px, 8vw, 112px) 0 0; }
.related-title { font: 700 clamp(28px, 3vw, 40px)/1.1 var(--font); letter-spacing: -.035em; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }

/* ---- Responsive -------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .article-toc { display: none; }
  .prose { grid-column: 1; }
}
@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; }
  .cover-rough.is-big { min-height: 240px; }
}
@media (max-width: 640px) {
  .post-grid, .related-grid { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
  .prose-lead { font-size: 20px; }
  .blog-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; width: calc(100% + var(--gutter) * 2); scrollbar-width: none; }
  .blog-filters::-webkit-scrollbar { display: none; }
  .blog-filter { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-featured, .cover > * { transition: none !important; transform: none !important; }
}

/* ---- Dark theme: graphite with white (owner choice 2026-10-16) ----------------------------------------
   Dark-only copies of the shared rules that carry green: the mint and forest light become white and graphite. The light
   theme is unchanged; the light brand green in small light cards stays. */
:root[data-theme="dark"] .post-featured { background: radial-gradient(70% 90% at 20% 110%, rgb(54 52 50 / .9) 0%, transparent 70%), var(--mineral); }
@media (hover: hover) { :root[data-theme="dark"] .post-card:hover { box-shadow: var(--shadow-card), 0 30px 50px -34px rgb(37 36 34 / .45); } }
:root[data-theme="dark"] .cover-rough:not(.is-big) { background: radial-gradient(80% 90% at 30% 115%, rgb(54 52 50 / .9) 0%, transparent 70%), var(--mineral); }
:root[data-theme="dark"] .mini-card { box-shadow: 0 1px 2px rgb(21 21 20 / .06), 0 24px 40px -26px rgb(37 36 34 / .45); }
:root[data-theme="dark"] .article-cover .cover { background: radial-gradient(70% 90% at 30% 110%, rgb(54 52 50 / .9) 0%, transparent 70%), var(--mineral); }
/* The featured card's cover is much larger than a card's: a drawn cover (not the chart) is drawn larger to match. */
.post-featured .cover:not(.cover-rough):not(.cover-chart) > * { zoom: 1.7; }
@media (max-width: 900px) { .post-featured .cover:not(.cover-rough):not(.cover-chart) > * { zoom: 1.2; } }
@media (max-width: 640px) { .post-featured .cover:not(.cover-rough):not(.cover-chart) > * { zoom: 1; } }
