/* Sparcility kit site: the guide page, an article built from real cases (2026-11-20).
   It reads like a feature article: a headline, a named author and date, a reading column, numbered cases, and a
   picture for every case. It uses site.css for the ground, type, buttons, header, footer and closing panel, and
   visuals.css for the studio ground, the glass cards and the app icons. Every case on the page links to its source. */

/* ---- how far down the page you are */
.read-bar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 3px; background: var(--cta); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---- headline, author, opening picture */
.art-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(44px, 6vw, 84px) clamp(30px, 4vw, 52px); }
.art-head h1 { max-width: 15.5em; font-size: clamp(38px, 5.2vw, 72px); }
.art-head .lede { margin: 26px auto 0; max-width: 33em; }
.byline { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; text-align: left; font-size: 15px; line-height: 1.45; color: var(--mute); }
.byline img { flex: none; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -14px rgba(24, 32, 56, .6); }
.byline p { margin: 0; }
.byline strong { display: block; font-weight: 600; color: var(--ink); }
.art-head > .stage { width: 100%; margin-top: clamp(34px, 4.4vw, 56px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); padding: clamp(16px, 2.6vw, 34px); }
.stat { display: flex; flex-direction: column; min-width: 0; min-height: clamp(190px, 17vw, 236px); padding: clamp(16px, 1.8vw, 24px); color: var(--ink); text-align: left; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 30px 54px -28px rgba(24, 32, 56, .5), 0 2px 6px rgba(24, 32, 56, .06), inset 0 1.5px 0 #fff; }
.stat b { font: 500 clamp(32px, 3.7vw, 52px)/1 var(--sans); letter-spacing: -.045em; white-space: nowrap; }
.stat span { margin-top: 12px; font: 500 15.5px/1.35 var(--sans); }
.stat small { margin-top: auto; padding-top: 14px; font: 500 12.5px/1.35 var(--sans); color: var(--mute); }
.disclosure { max-width: 46em; margin: 18px auto 0; font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.disclosure a { color: var(--ink); text-underline-offset: 3px; }

/* ---- the reading column: text sits in a 720px column, pictures run wider */
.art-body, .case { display: grid; grid-template-columns: minmax(0, 1fr) min(100%, 720px) minmax(0, 1fr); }
.art-body > *, .case > * { grid-column: 2; min-width: 0; }
.art-body > .case, .art-body > .wide, .case > .wide { grid-column: 1 / -1; }
.art-body > .wide, .case > .wide { width: min(100%, 1040px); justify-self: center; }
.art-body > p, .case > p { margin: 0 0 1.05em; font-size: clamp(18px, 1.36vw, 19.5px); line-height: 1.64; color: #1b2233; }
.art-body > p:last-child, .case > p:last-child { margin-bottom: 0; }
.art-body p a, .file a, .sources a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: text-decoration-color .18s ease; }
.art-body p a:hover, .file a:hover, .sources a:hover { text-decoration-color: currentColor; }
.opening::first-letter { float: left; margin: .08em .1em 0 0; font: 400 3.5em/.82 var(--serif); color: var(--accent-ink); }
.art-body .big { margin: clamp(26px, 3.4vw, 40px) 0; font: 400 clamp(26px, 2.9vw, 38px)/1.24 var(--serif); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.art-body .big em { color: var(--cta); }

.art-body > h2 { margin: clamp(48px, 6.4vw, 92px) 0 22px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; }
.art-body > .stage { margin-block: clamp(22px, 3vw, 36px); }

/* ---- one case: a number, a heading, the story, a picture, the record, the habit */
.case { padding-top: clamp(48px, 6.4vw, 92px); }
.case-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px clamp(16px, 2vw, 26px); margin-bottom: 22px; }
.case-n { font: italic 400 clamp(50px, 5.6vw, 80px)/.86 var(--serif); color: var(--accent-ink); }
.case h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; }
.case > .stage { margin-block: clamp(22px, 3vw, 36px); }

/* the public record of what happened, with its source */
.file { margin: clamp(22px, 2.8vw, 32px) 0 0; padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.file:hover { transform: translateY(-2px); box-shadow: 0 32px 64px -44px rgba(11, 20, 36, .45); }
.file-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0; font: 500 13.5px/1.3 var(--sans); color: var(--mute); }
.file-top span { display: inline-flex; align-items: center; gap: 8px; }
.file-top span::before { content: ""; flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--ink) var(--tick) center / 11px no-repeat; }
.file h3 { margin: 16px 0 10px; font-size: clamp(22px, 2.1vw, 28px); letter-spacing: -.03em; line-height: 1.18; }
.file p { margin: 0 0 .8em; font-size: 17.5px; line-height: 1.58; color: #232d42; }
.file .src { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--mute); }

.file + p { margin-top: 1.25em; }

/* before and after: what most people do, and the habit that replaces it */
.habit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 14px 0 0; }
.habit > div { padding: 20px 22px 22px; border-radius: var(--r-md); }
.habit .was { background: rgba(11, 20, 36, .05); }
.habit .now { background: #eaeeff; box-shadow: inset 0 0 0 1px rgba(43, 75, 255, .2); }
.habit b { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font: 600 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.habit .now b { color: var(--accent-ink); }
.habit .now b::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--cta) var(--tick) center / 10px no-repeat; }
.habit p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.habit .was p { color: #3a4356; }
.habit-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 2px 0; font: 500 15px/1.4 var(--sans); color: var(--mute); }
.habit-foot i { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12.5px/1 var(--sans); font-style: normal; white-space: nowrap; }

/* ---- pictures: two glass cards joined by a wire, or one card on its own */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: stretch; padding: clamp(18px, 3vw, 40px); }
.pair > .glass, .solo > .glass { display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 18px; }
.solo { display: grid; justify-items: center; padding: clamp(18px, 3vw, 40px); }
.solo > .glass { width: min(100%, 620px); }
.ui-top .tag.off { color: #5b6272; background: rgba(11, 20, 36, .08); }
.bubble mark, .mail mark { padding: 1px 4px; border-radius: 5px; background: rgba(255, 138, 92, .32); color: inherit; }
.bubble + .bubble { margin-top: 8px; }
.says { margin: 12px 0 0; font: 500 13px/1.45 var(--sans); color: var(--mute); }
.mail { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--lift); font: 400 13.5px/1.5 var(--sans); color: var(--ink); }
.mail-top { display: grid; gap: 3px; padding: 11px 13px; border-bottom: 1px solid rgba(11, 20, 36, .08); font-size: 12.5px; line-height: 1.35; color: var(--mute); }
.mail-top b { font-weight: 600; color: var(--ink); }
.mail-body { margin: 0; padding: 12px 13px 14px; }
.rule { margin: 0 0 12px; padding: 14px 15px; border-radius: 14px; background: #fff; box-shadow: var(--lift); font: 500 14.5px/1.45 var(--sans); color: var(--ink); }
.frow.gone span { text-decoration: line-through; color: var(--mute); }
.frow b { flex: none; margin-left: auto; padding: 4px 8px; border-radius: 999px; background: rgba(11, 20, 36, .07); font: 600 10px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.frow b.on { background: rgba(23, 145, 79, .14); color: #0e6b39; }
.pair .files-mock, .pair .setrows, .solo .setrows { width: 100%; max-width: none; }
.pair .setrows, .solo .setrows { box-shadow: var(--lift); }
.srow b.bad { background: rgba(255, 138, 92, .26); color: #9a3a10; }
.lines { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0; padding: 4px 2px 2px; font: 500 13.5px/1.3 var(--sans); color: var(--ink); }
.lines li { display: grid; gap: 9px; }
.lines li::after { content: ""; height: 1px; background: repeating-linear-gradient(90deg, rgba(11, 20, 36, .34) 0 4px, transparent 4px 9px); }
.plan-b { counter-reset: b; list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; font: 500 13.5px/1.35 var(--sans); color: var(--ink); }
.plan-b li { counter-increment: b; display: flex; align-items: baseline; gap: 10px; padding: 9px 11px; border-radius: 11px; background: rgba(255, 255, 255, .74); box-shadow: inset 0 0 0 1px rgba(11, 20, 36, .06); }
.plan-b li::before { content: counter(b); flex: none; font: italic 400 17px/1 var(--serif); color: var(--accent-ink); }

/* ---- three conversations, as cards in the opening picture */
.talks .talk { justify-content: flex-start; gap: 12px; min-height: clamp(170px, 15vw, 214px); padding: clamp(16px, 1.8vw, 24px); color: var(--ink); text-align: left; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.talks .talk:hover { transform: translateY(-2px); box-shadow: 0 30px 54px -28px rgba(24, 32, 56, .5), 0 2px 6px rgba(24, 32, 56, .06), inset 0 1.5px 0 #fff; }
.talk-n { font: italic 400 30px/1 var(--serif); color: var(--accent-ink); }
.talk-q { font: 400 clamp(19px, 1.75vw, 25px)/1.28 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.talk-who { margin-top: auto; padding-top: 6px; font: 500 13px/1.35 var(--sans); color: var(--mute); }

/* ---- a spreadsheet with a row that was not saved, a priced quote, and a numbered list inside a record card */
.solo .sheet.rows { max-width: none; font-size: 13.5px; }
.sheet.rows .sheet-head { font-size: 10.5px; }
.sheet.rows .sheet-head, .sheet.rows .sheet-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 104px; }
.sheet.rows .sheet-head > *, .sheet.rows .sheet-row > * { padding: 10px 12px; }
.sheet-row.gone > * { background: rgba(255, 138, 92, .18); color: #8f360f; font-weight: 600; }
.solo .receipt { width: 100%; font-size: 15px; }
.solo .receipt .rc strong { font-size: 24px; }
.solo .receipt .rc.mute { font-size: 13.5px; }
.file .plan-b { margin: 16px 0 2px; font-weight: 400; font-size: 16.5px; line-height: 1.5; }
.file .plan-b li { padding: 13px 15px; background: rgba(43, 75, 255, .06); box-shadow: none; }
.file .plan-b li::before { font-size: 22px; }
.file .plan-b strong { font-weight: 600; }
.case > .practice-card { margin: clamp(20px, 2.6vw, 30px) 0 0; }
.practice-card li { font-size: 17px; line-height: 1.5; }
.founder footer span { display: block; }
.founder + p { margin-top: 1.25em; }
.sheet.rows .sheet-row > * { white-space: normal; line-height: 1.25; }

/* ---- the founder's own account */
.founder { margin: clamp(26px, 3.4vw, 40px) 0 0; padding: clamp(26px, 3.2vw, 40px); border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); }
.founder > p { margin: 0 0 .6em; font: 400 clamp(22px, 2.2vw, 29px)/1.36 var(--serif); color: var(--on-dark); }
.founder footer { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 15px; line-height: 1.4; color: var(--on-dark-mute); }
.founder footer img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.founder footer strong { display: block; font-weight: 600; color: var(--on-dark); }

/* ---- a buy row between cases */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(44px, 5.6vw, 76px); padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cta-row p { margin: 0; max-width: 21em; font: 400 clamp(21px, 2vw, 26px)/1.32 var(--serif); color: var(--ink); }
.cta-row .actions { flex: none; }
/* The offer under the opening (25 November 2026): visitors from an ad see the price and a button before the article
   starts, instead of six or more screens down. */
.cta-row.cta-top { margin: clamp(26px, 3vw, 36px) auto 0; max-width: 820px; text-align: left; }
.cta-row .sale-note { margin-top: 8px; font: 500 15px/1.45 var(--sans); color: var(--mute); }

/* ---- the six modules, and the list of sources */
.art-modules { padding-top: clamp(56px, 7vw, 100px); }
.art .offer-end { margin-top: clamp(48px, 6vw, 84px); }
.sources { --wrap: 760px; margin-top: clamp(40px, 5vw, 64px); }
.sources details { border-top: 1px solid var(--line-strong); }
.sources ol { margin: 0 0 22px; padding-left: 1.4em; font-size: 15.5px; line-height: 1.55; color: var(--mute); }
.sources li { margin-bottom: 9px; padding-left: 4px; }
.sources li b { font-weight: 600; color: var(--ink); }
.sources details > p { font-size: 15.5px; }

/* ---- arrivals for the numbered cases use the same rise as the rest of the site */
@media (prefers-reduced-motion: no-preference) {
  .art-head > * { animation: rise .7s var(--ease) both; }
  .art-head > :nth-child(2) { animation-delay: .06s; }
  .art-head > :nth-child(3) { animation-delay: .12s; }
  .art-head > .stage { animation-name: rise-picture; animation-duration: .9s; animation-delay: .24s; }
  .art-head > .disclosure { animation-delay: .34s; }
}

/* ---- narrower screens */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 168px; }
  .pair { grid-template-columns: minmax(0, 520px); justify-content: center; }
}
@media (max-width: 760px) {
  .art-head h1 { font-size: clamp(36px, 10.4vw, 52px); }
  .stat b { font-size: clamp(30px, 9.4vw, 44px); }
  .stat span { font-size: 15px; }
  .art-body > p, .case > p { font-size: 19px; }
  .case-head { grid-template-columns: minmax(0, 1fr); }
  .habit { grid-template-columns: minmax(0, 1fr); }
  .habit p, .file p { font-size: 17.5px; }
  .lines { grid-template-columns: minmax(0, 1fr); }
  .cta-row { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-row p { max-width: none; }
  .cta-row .actions { justify-content: center; }
  .sources ol { font-size: 16.5px; }
}
