/* The Unrotten blog (Pau, 2026-10-20), redrawn in the site's look on 21 October (Pau: "redesign
   the blog following the same aesthetic the main page has ... as beautiful and polished as the
   main page"). Everything here is site/src/styles.css's: the warm paper and its greens, Prata for
   titles, subtitles and quotes, the system sans for reading, the slides' tags (a word on a green
   pill, turned a little), white cards, Apple's badge clipped to its own corners, the floating
   download in Liquid Glass and the dark footer. White text never sits on the accent. */
/* Prata (Cyreal, SIL Open Font License: fonts/Prata-OFL.txt), its Latin subset. It has no
   italic, and the browser never fakes one. Until it loads, Georgia stands in at its size. */
@font-face { font-family: "Prata"; src: url(/blog/assets/fonts/prata-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Prata Fallback"; src: local("Georgia"); size-adjust: 107.96%; ascent-override: 91.97%; descent-override: 33.53%; line-gap-override: 0%; }
:root {
  --paper: #f5f3ee;
  --paper-deep: #ece8df;
  --card: #fff;
  --ink: #192d28;
  --ink-soft: rgba(25, 45, 40, 0.74);
  --body: #2b3b35;
  --muted: #6f7a75;
  --hair: rgba(25, 45, 40, 0.1);
  --green: #254f43;
  --sage: #aac6a3;
  --mist: #e6ebe2;
  --deep: #0b231c;
  --night: #081a15;
  --cream: #fffef7;
  --orange: #fd6351; /* the logo's dot: ink on it, never white */
  --accent-ink: #b73f32;
  --logo-ink: #0c221a;
  --serif: "Prata", "Prata Fallback", ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1200px, 100% - 48px);
  --read: 680px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.25, 0.45, 1);
  --shadow: 0 1px 2px rgba(12, 34, 26, 0.04), 0 16px 38px -20px rgba(12, 34, 26, 0.26);
  --shadow-up: 0 1px 2px rgba(12, 34, 26, 0.05), 0 28px 54px -26px rgba(12, 34, 26, 0.36);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.kicker { margin: 0; font: 600 12.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); }
.lead { margin: 18px 0 0; font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
/* The slides' tag: a word on a green pill, turned a little (site, .sl-title em). */
.b-hero h1 em, .b-h2 em, .lib-head h1 em, .nf h1 em, .mb-title em, .b-research h2 em {
  font-style: normal; display: inline-block; padding: 0.02em 0.2em 0.12em; margin: 0 0.03em; border-radius: 0.26em; background: var(--green); color: var(--cream);
  transform: rotate(-2.4deg); box-shadow: 0 0.14em 0.42em -0.16em rgba(25, 45, 40, 0.55); }
/* Its small form, for "7 days free" and "New" (site, .sl-end-offer em and .fc-free). */
.b-end-offer em, .mb-free em, .floating-words b, .card-kicker b {
  font-style: normal; display: inline-block; padding: 4px 9px 5px; border-radius: 8px; background: var(--green); color: var(--cream);
  font: 700 13.5px/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap; text-transform: none; transform: rotate(-2.4deg); box-shadow: 0 5px 12px -6px rgba(25, 45, 40, 0.6); }

/* ---------- The header: the official logo, the blog's two sections and Apple's badge. It stands
   on the paper, and turns to frosted paper with a hairline once the page scrolls (blog.js), as
   the site's light navigation does. An article's reading progress runs along its foot. */
.top { position: sticky; z-index: 50; top: 0; transition: background 0.35s, box-shadow 0.35s; }
.top.scrolled { background: rgba(245, 243, 238, 0.86); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 rgba(25, 45, 40, 0.08); }
.top-in { width: var(--wrap); height: 72px; margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--logo-ink); text-decoration: none; -webkit-user-select: none; user-select: none; }
.brand-icon { flex: none; width: 32px; height: 32px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(25, 45, 40, 0.1), 0 2px 8px rgba(0, 0, 0, 0.12); }
.brand-word { display: block; height: 17px; width: auto; aspect-ratio: 1905 / 287; overflow: visible; }
.brand:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; border-radius: 10px; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: 14.5px; }
.top-nav a { padding: 8px 13px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; transition: color 0.2s, background 0.2s; }
.top-nav a:hover { color: var(--ink); background: rgba(25, 45, 40, 0.06); }
.top-nav a.here { color: var(--ink); font-weight: 600; }
.top-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Apple's "Download on the App Store" badge, unaltered: white on the paper (its fine black
   outline drawn by Apple), black on white cards and the glass. Clipped by a radius in proportion
   to the badge, so its corners keep their outline at every size (Pau, 2026-10-21). */
.appstore-btn { position: relative; flex: none; display: inline-block; height: 40px; border-radius: 6.69% / 20%; overflow: hidden; line-height: 0; isolation: isolate; -webkit-tap-highlight-color: transparent; transition: transform 0.25s var(--spring), box-shadow 0.3s; }
.appstore-btn img { display: block; height: 100%; width: auto; }
.appstore-btn:hover { transform: translateY(-1px); }
.appstore-btn:active { transform: scale(0.97); }
.appstore-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.appstore-btn.wave { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55); }
.appstore-btn.big { height: 62px; box-shadow: 0 18px 36px -18px rgba(25, 45, 40, 0.55); }
/* The wave (Pau, 2026-10-20): a band of light across the badge now and then, with a faint
   shadow before it so it reads on white (site, .store-shine). */
.appstore-btn.wave::after, .appstore-btn.big::after, .floating-badge::after {
  content: ""; position: absolute; z-index: 1; top: -20%; bottom: -20%; left: -60%; width: 46%; pointer-events: none; transform: translateX(0) skewX(-18deg);
  background: linear-gradient(90deg, rgba(160, 172, 168, 0) 0%, rgba(140, 152, 148, 0.16) 26%, rgba(255, 255, 255, 0.95) 50%, rgba(140, 152, 148, 0.14) 74%, rgba(160, 172, 168, 0) 100%);
  mix-blend-mode: hard-light; animation: wave 5.2s 1.6s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
@keyframes wave { 0% { transform: translateX(0) skewX(-18deg); } 32%, 100% { transform: translateX(460%) skewX(-18deg); } }

/* ---------- The front page: the site's meadow at golden hour, the brain resting in it, rising
   out of the paper under the title (site, .day). */
.b-hero { position: relative; isolation: isolate; height: clamp(620px, 86vh, 860px); overflow: hidden; }
.b-hero-art { position: absolute; z-index: -2; left: 0; right: 0; top: 20%; bottom: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%); mask-image: linear-gradient(180deg, transparent 0%, #000 38%); }
.b-hero-art picture, .b-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-hero-art img { object-fit: cover; object-position: 50% 100%; animation: meadow-in 1.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes meadow-in { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
.b-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(180deg, rgba(245, 243, 238, 0), var(--paper)); pointer-events: none; }
/* The paper melting into the sky behind the words, as the site's hero does (.day-sky). */
.b-hero::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 66%; pointer-events: none;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 24%, rgba(245, 243, 238, 0.9) 46%, rgba(245, 243, 238, 0.5) 68%, rgba(245, 243, 238, 0) 100%); }
.b-hero-copy { width: var(--wrap); margin: clamp(28px, 6vh, 76px) auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.b-hero h1 { margin-top: 22px; max-width: 11em; font-size: clamp(46px, min(6.4vw, 10.5vh), 100px); line-height: 1.04; letter-spacing: -0.028em; text-wrap: balance; }
.b-hero .lead { max-width: 33em; margin-top: 22px; }
.b-hero-copy > * { animation: rise 1s var(--ease) both; }
.b-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.b-hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.b-hero h1 em { animation: tag-in 0.8s 0.55s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tag-in { from { transform: rotate(0deg) scale(0.92); } to { transform: rotate(-2.4deg); } }

/* The newest article, large, rising over the meadow's edge. */
.b-latest { position: relative; z-index: 1; width: var(--wrap); margin: -56px auto 0; }
.feature a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--card); border-radius: 32px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow-up); transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.feature a:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(12, 34, 26, 0.05), 0 40px 70px -32px rgba(12, 34, 26, 0.42); }
.feature-img { position: relative; overflow: hidden; background: var(--paper-deep); }
.feature-img img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature a:hover .feature-img img, .card a:hover .card-img img { transform: scale(1.035); }
.feature-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3.8vw, 58px); }
.card-kicker { margin: 0; display: flex; align-items: center; gap: 12px; font: 600 11.5px/1 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); }
.card-kicker b { font-size: 12px; padding: 4px 8px 5px; }
.feature-title { margin-top: 20px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.024em; text-wrap: balance; }
.feature-sub { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.feature-by { margin: 26px 0 0; display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.feature-by img { flex: none; width: 38px; height: 38px; max-width: none; object-fit: cover; border-radius: 50%; }
.feature-by b { display: block; font-weight: 600; color: var(--ink); }
.feature-go, .b-go { display: inline-flex; align-items: center; gap: 9px; font: 600 15px/1 var(--sans); }
.feature-go { margin: 28px 0 0; color: var(--green); }
.feature-go svg, .b-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.feature a:hover .feature-go svg, .b-go:hover svg { transform: translateX(4px); }

/* Sections of cards: "More to read", "Keep reading", an author's articles. */
.b-more, .more { width: var(--wrap); margin: clamp(80px, 9vw, 128px) auto 0; }
.b-h2 { margin-bottom: clamp(28px, 3vw, 44px); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.026em; }
/* Three to a row; a row left short is never a gap: one card left over takes the whole row, and
   two share it (build.mjs, cardGrid). A card as wide as a row lays its picture beside its words. */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.grid > .card { grid-column: span 2; }
.grid > .card.d-half { grid-column: span 3; }
.grid > .card.d-wide { grid-column: 1 / -1; }
.card { container-type: inline-size; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 26px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.card-img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-deep); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.card-title { margin-top: 14px; font-size: 24px; line-height: 1.18; letter-spacing: -0.016em; text-wrap: balance; }
.card-sub { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-date { margin: auto 0 0; padding-top: 18px; font-size: 13px; color: var(--muted); }
@container (min-width: 720px) {
  .card a { flex-direction: row; }
  .card-img { flex: 0 0 54%; min-height: 320px; aspect-ratio: auto; }
  .card-body { justify-content: center; padding: clamp(28px, 4.5cqi, 52px); }
  .card-title { margin-top: 18px; font-size: clamp(28px, 3.6cqi, 40px); line-height: 1.12; letter-spacing: -0.022em; }
  .card-sub { margin-top: 14px; font-size: 16.5px; -webkit-line-clamp: 4; }
  .card-date { margin-top: 0; padding-top: 22px; }
}

/* Every earlier article, as a list under the cards. */
.b-earlier { margin-top: clamp(48px, 5vw, 72px); }
.b-h3 { margin-bottom: 18px; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; }
.earlier { list-style: none; margin: 0; padding: 6px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.earlier li { border-bottom: 1px solid var(--hair); }
.earlier li:nth-last-child(1), .earlier li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.earlier a { display: grid; gap: 6px; padding: 18px 0; color: inherit; text-decoration: none; }
.earlier-kind { font: 600 11px/1.2 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); }
.earlier b { font: 400 20px/1.28 var(--serif); letter-spacing: -0.012em; color: var(--ink); transition: color 0.2s; }
.earlier a:hover b { color: var(--green); }
.earlier time { font-size: 13px; color: var(--muted); }

/* The research library's band on the front page, in the site's deep green. */
.b-research { margin-top: clamp(88px, 10vw, 144px); color: var(--cream); background: radial-gradient(120% 90% at 85% 0%, #1d4637 0%, rgba(29, 70, 55, 0) 60%), radial-gradient(90% 80% at 0% 100%, #123329 0%, rgba(18, 51, 41, 0) 70%), var(--deep); }
.b-research-in { width: var(--wrap); margin-inline: auto; padding: clamp(72px, 8vw, 120px) 0; }
.b-research .kicker { color: var(--sage); }
.b-research h2 { margin-top: 20px; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.06; letter-spacing: -0.026em; }
.b-research h2 em { background: var(--sage); color: var(--deep); }
.b-research .lead { max-width: 36em; color: rgba(255, 254, 247, 0.72); }
.studies { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.study a { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; border-radius: 22px; color: var(--cream); text-decoration: none; background: rgba(255, 254, 247, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 254, 247, 0.1); transition: background 0.3s, transform 0.45s var(--ease); }
.study a:hover { background: rgba(255, 254, 247, 0.09); transform: translateY(-3px); }
.study-kind { font: 600 11px/1.2 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--sage); }
.study b { font: 400 21px/1.24 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
.study-meta { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: rgba(255, 254, 247, 0.55); }
.b-go { margin-top: 36px; padding: 15px 22px; border-radius: 999px; background: var(--cream); color: var(--deep); text-decoration: none; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6); }

/* The front page ends on the download, as the site's last slide does. */
.b-end { width: var(--wrap); margin: clamp(84px, 9vw, 136px) auto clamp(84px, 9vw, 128px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.b-end-brain { width: 112px; margin-bottom: -4px; filter: drop-shadow(0 16px 20px rgba(12, 34, 26, 0.16)); }
.b-end-line { margin: 0; max-width: 15em; font: 400 clamp(30px, 3.4vw, 48px)/1.14 var(--serif); letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
.b-end-line b { font-weight: 400; color: var(--green); }
.b-end-offer { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; font: 600 17px/1.3 var(--sans); color: var(--ink-soft); }
.b-end-offer em { font-size: 15px; padding: 5px 11px 6px; border-radius: 9px; }

/* ---------- An article: its title, subtitle and byline centred over the featured picture, the
   text in a reading column, and its contents beside it on a wide screen. */
.article { padding-bottom: clamp(64px, 7vw, 104px); }
.a-head { width: min(900px, 100% - 40px); margin: clamp(32px, 4.6vw, 72px) auto 0; text-align: center; }
.crumbs { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs i { font-style: normal; opacity: 0.45; }
.a-head h1 { margin: 22px auto 0; max-width: 15em; font-size: clamp(38px, 5vw, 68px); line-height: 1.06; letter-spacing: -0.026em; text-wrap: balance; }
.subtitle { margin: 22px auto 0; max-width: 32em; font: 400 clamp(19px, 1.8vw, 23px)/1.42 var(--serif); letter-spacing: -0.005em; color: var(--ink-soft); text-wrap: balance; }
.byline { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 13px; text-align: left; }
.byline p { margin: 0; }
.byline-photo { flex: none; }
.byline-photo img { width: 48px; height: 48px; max-width: none; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px var(--card), 0 6px 14px -6px rgba(12, 34, 26, 0.4); }
.byline-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.byline-name a { color: inherit; text-decoration: none; }
.byline-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.byline-name span { margin-left: 8px; font-weight: 400; color: var(--muted); }
.byline-meta { margin-top: 3px !important; font-size: 14px; color: var(--muted); }
.a-hero { width: min(1080px, 100% - 48px); margin: clamp(36px, 4vw, 56px) auto 0; }
.a-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 32px; background: var(--paper-deep); box-shadow: var(--shadow-up); }
.a-study { width: min(800px, 100% - 40px); margin: clamp(36px, 4vw, 52px) auto 0; }
.a-body { width: min(var(--read), 100% - 40px); margin: clamp(44px, 5vw, 72px) auto 0; }

/* Its contents: a card to open on a phone, a quiet list that follows the reader on a wide screen
   (blog.js opens it there and marks the section on screen). */
.toc { margin: 0 0 40px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; font: 600 15px/1.2 var(--sans); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.6 6 7.6l3-3' fill='none' stroke='%23254f43' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform 0.3s var(--ease); }
.toc[open] summary::after { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 22px 20px 42px; }
.toc li { margin: 7px 0; font-size: 15px; line-height: 1.4; }
.toc li::marker { color: var(--green); font-weight: 600; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--green); }

/* The text: the site's sans at a reading size, Prata for its sections. */
.prose { font-size: 19px; line-height: 1.72; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { margin: 2.1em 0 0.6em; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.16; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin: 1.8em 0 0.5em; font: 600 21px/1.32 var(--sans); letter-spacing: -0.012em; color: var(--ink); }
.prose h2 + h3 { margin-top: 0.9em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.prose li { margin: 0.45em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--green); }
.prose ol > li::marker { font-weight: 600; }
.prose strong { font-weight: 650; color: var(--ink); }
.prose a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(37, 79, 67, 0.32); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.app-link { font-weight: 600; text-decoration-color: rgba(37, 79, 67, 0.6); }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--hair); }
.prose code { padding: 0.1em 0.35em; border-radius: 6px; background: var(--paper-deep); font-size: 0.88em; }

/* Pictures, captioned, a little wider than the text on a large screen; App Store screenshots
   stand as a phone's screen would. */
.fig { margin: 2.2em 0; }
.fig img { width: 100%; border-radius: 22px; background: var(--paper-deep); box-shadow: var(--shadow); }
.fig figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }
.fig-shot { width: min(280px, 78%); margin-inline: auto; }
.fig-shot img { border-radius: 34px; box-shadow: 0 0 0 1px rgba(25, 45, 40, 0.08), 0 26px 50px -22px rgba(12, 34, 26, 0.4); }

/* Highlighted quotes: Prata, a green rule hanging in the margin. */
.prose blockquote.pull { position: relative; margin: 2.1em 0; padding: 2px 0 2px 30px; font: 400 clamp(24px, 2.3vw, 30px)/1.34 var(--serif); letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.prose blockquote.pull::before { content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: 4px; border-radius: 4px; background: var(--green); }
.prose blockquote.pull p { margin: 0; }
.prose blockquote.pull p + p { margin-top: 0.6em; }

/* Tables: a white card that scrolls sideways on a phone. */
.table-wrap { margin: 2em 0; overflow-x: auto; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th { padding: 15px 16px 13px; text-align: left; vertical-align: bottom; font: 600 11.5px/1.25 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); background: #fbfaf7; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.prose td { padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--hair); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--ink); }

/* Citations jump to their reference, and back. */
.cites { font-size: 0.62em; line-height: 0; vertical-align: super; color: var(--muted); }
.prose .cites a.cite { padding: 0 1px; font-weight: 700; color: var(--green); text-decoration: none; }
.prose .cites a.cite:hover { text-decoration: underline; }

/* The questions the article answers, the references and its author. */
.faq, .references, .about-author { width: min(var(--read), 100% - 40px); margin-inline: auto; }
.faq { margin-top: clamp(56px, 6vw, 88px); }
.faq h2 { margin-bottom: 22px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.16; }
.faq-item { border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; font: 600 17px/1.38 var(--sans); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.8v8.4M1.8 6h8.4' stroke='%23254f43' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat; transition: transform 0.35s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: -4px 0 0; padding: 0 22px 22px; font-size: 16.5px; line-height: 1.62; color: var(--body); }
.references { margin-top: clamp(56px, 6vw, 88px); padding-top: 30px; border-top: 1px solid var(--hair); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.references h2 { margin-bottom: 14px; font-size: 26px; color: var(--ink); }
.references ol { margin: 0; padding-left: 1.6em; }
.references li { margin: 6px 0; padding: 3px 6px; border-radius: 8px; overflow-wrap: anywhere; transition: background 0.6s; }
.references li::marker { color: var(--green); font-weight: 600; }
.references li:target { background: #fff1d8; }
.references a { color: var(--green); }
.references p { margin: 0; }
.ref-back { margin-left: 4px; text-decoration: none; }
.about-author { margin-top: 40px; display: flex; align-items: flex-start; gap: 20px; padding: 26px 28px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.about-author > a { flex: none; }
.about-author img { width: 72px; height: 72px; max-width: none; border-radius: 50%; object-fit: cover; }
.about-author p { margin: 0; }
.about-kicker { margin-top: 3px !important; font: 600 11.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.about-name { margin-top: 9px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.about-name a { font: 400 23px/1.2 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.about-name a:hover { color: var(--green); }
.about-name span { font-size: 14.5px; color: var(--muted); }
.about-author p:last-child { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- The one card in the text (Pau, 2026-10-20; 2026-10-21: "show the top part of an
   iPhone with the dynamic island and the mascot actually rotting as the rot content is
   scrolled"). On the left, a scene drawn in a 400 × 520 frame and scaled to the card (--k,
   blog.js): an iPhone from the top, as the site draws it, its feed scrolling post by post, the
   brain rotting in its Dynamic Island and in the large Island it projects; the shield; the
   phone going dark while time away charges the brain back. On the right, the words. */
.mb-cta { position: relative; container-type: inline-size; margin: 2.6em 0; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); border-radius: 32px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-up); font-size: 16px; line-height: 1.55; color: var(--ink); }
/* Beside the words the stage takes the card's height, at least 1.3 times its own width (it is
   46% of the card); stacked on a phone, it keeps the scene's proportion. */
.mb-demo { position: relative; isolation: isolate; min-height: 59.8cqi; overflow: hidden; --k: 0.89; --ring: #c1d6af; --halo: #a6cf92; --rot: 0;
  background: radial-gradient(85% 55% at 50% 16%, #fbfcf8 0%, rgba(251, 252, 248, 0) 72%), linear-gradient(180deg, #edf1e8 0%, #dfe7da 100%); }
/* From the top: when the words beside it are taller, the stage shows more of the phone. */
.mb-scene { position: absolute; left: 0; top: 0; width: 400px; height: calc(100% / var(--k)); transform: scale(var(--k)); transform-origin: 0 0; }
.mb-halo { position: absolute; z-index: 2; inset: 0; width: 400px; height: 520px; overflow: visible; pointer-events: none; }
/* The iPhone, at 0.72 of its points in the scene, its top 172 down: the stage cuts it. */
.mb-phone { position: absolute; z-index: 1; left: 43.76px; top: 172px; width: 434px; height: 906px; padding: 5px; border-radius: 74px; transform: scale(0.72); transform-origin: 0 0;
  background: linear-gradient(135deg, #c2c4c5 0%, #5c6062 16%, #d3d5d6 33%, #45494b 50%, #b3b6b7 72%, #5f6365 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 0 3px 1px rgba(0, 0, 0, 0.45), 0 50px 90px -40px rgba(0, 0, 0, 0.6); }
.mb-hw { position: absolute; width: 5px; border-radius: 2px; background: linear-gradient(90deg, #6f7375, #cfd1d2 50%, #6f7375); }
.mb-hw-action { left: -4px; top: 178px; height: 34px; }
.mb-hw-up { left: -4px; top: 238px; height: 62px; }
.mb-hw-down { left: -4px; top: 312px; height: 62px; }
.mb-hw-power { right: -4px; top: 268px; height: 98px; }
.mb-bezel { height: 100%; padding: 11px; border-radius: 69px; background: #030303; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.05); }
.mb-screen { position: relative; width: 402px; height: 874px; border-radius: 58px; overflow: hidden; isolation: isolate; background: #000; color: #fff; font-family: var(--sans); }
.mb-status { position: absolute; z-index: 40; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 50px; font: 600 17px/1 var(--sans); letter-spacing: -0.01em; text-shadow: 0 0 6px rgba(0, 0, 0, 0.25); }
.mb-status-right { display: flex; align-items: center; gap: 6px; }
.mb-wifi { width: 16px; height: 12px; fill: currentColor; }
.mb-battery { position: relative; width: 26px; height: 12.5px; padding: 1.3px; border: 1.3px solid currentColor; border-radius: 4px; opacity: 0.95; }
.mb-battery::after { content: ""; position: absolute; right: -3.5px; top: 3.6px; width: 1.8px; height: 4.2px; border-radius: 0 1px 1px 0; background: currentColor; opacity: 0.6; }
.mb-battery i { display: block; width: 64%; height: 100%; border-radius: 1.6px; background: currentColor; }
/* The feed: one post a screen, the next sliding up as the reader scrolls; the brain's rot
   drains its colour (the site's .feed and .rot-fx, --rot from blog.js). */
.mb-feed { position: absolute; inset: 0; overflow: hidden; filter: saturate(calc(1 - var(--rot) * 0.75)) brightness(calc(1 - var(--rot) * 0.22)); transition: opacity 0.6s ease; }
.mb-post { position: absolute; left: 0; top: 0; width: 402px; height: 874px; background: #111; transform: translate3d(0, calc((var(--i) - var(--pos, 0)) * 874px), 0); }
.mb-demo.scrolling .mb-post { transition: transform 0.42s cubic-bezier(0.3, 0.9, 0.3, 1); }
.mb-post img { width: 100%; height: 100%; object-fit: cover; }
.mb-post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0) 24%); }
.mb-tabs { position: absolute; z-index: 10; top: 62px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; font: 600 16px/1 var(--sans); color: rgba(255, 255, 255, 0.62); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: opacity 0.6s ease; }
.mb-tabs b { position: relative; color: #fff; }
.mb-tabs b::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 26px; height: 2.5px; margin-left: -13px; border-radius: 2px; background: #fff; }
.mb-rot { position: absolute; z-index: 12; inset: 0; pointer-events: none; transition: opacity 0.6s ease; }
.mb-rot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(110, 96, 38, 0.5), rgba(64, 50, 20, 0.7)); mix-blend-mode: multiply; opacity: calc(var(--rot) * 0.95); }
.mb-rot::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(0, 0, 0, 0.85) 100%); opacity: var(--rot); }
/* The shield, as iOS draws Unrotten's (ShieldConfigurationExtension; the site's .shield-sheet). */
.mb-shield { position: absolute; z-index: 35; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 104px 30px 0; background: #f8f7f2; color: #1a3329; text-align: center; transform: translate3d(0, 102%, 0); box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.35); transition: transform 0.6s cubic-bezier(0.3, 1.1, 0.4, 1), opacity 0.6s ease; }
.mb-demo.locked .mb-shield { transform: none; }
.mb-shield-art { position: relative; width: 150px; height: 164px; overflow: hidden; border-radius: 75px; background: linear-gradient(155deg, #d6e6cc, #edf0e0); }
.mb-shield-art img { width: 148px; height: 148px; margin: 14px 0 0 1px; }
.mb-shield-title { margin: 30px 0 14px; font: 700 26px/1.2 var(--sans); letter-spacing: -0.01em; }
.mb-shield-sub { margin: 0 0 16px; font: 400 16px/1.45 var(--sans); color: #57675d; }
.mb-shield-quote { margin: 0; font: 400 16px/1.45 var(--sans); color: #1a3329; }
/* Put down, the screen goes dark; the Island stays and charges. */
.mb-demo.away .mb-feed, .mb-demo.away .mb-tabs, .mb-demo.away .mb-rot, .mb-demo.away .mb-shield { opacity: 0; }
/* The phone's Island, compact, as the app draws the Live Activity (the site's calibration:
   202 × 37, the ring 19.3 from its left end, the brain 23.4 from its right). */
.mb-isl { position: absolute; z-index: 50; top: 14px; left: 100px; width: 202px; height: 37px; border-radius: 18.5px; background: #000; }
.mb-isl .mb-ring { position: absolute; left: 2.8px; top: 2px; width: 33px; height: 33px; }
.mb-isl .mb-ring b { font-size: 9.2px; font-weight: 400; }
.mb-isl img { position: absolute; left: 165px; top: 5px; width: 27px; height: 27px; object-fit: contain; }
/* The large Island it projects: the ring, MindBattery™ and the stage's name, and the brain big
   enough to watch it rot. A rim of light, and a slow float. */
.mb-island { position: absolute; z-index: 3; left: 50px; top: 40px; width: 300px; height: 64px; display: flex; align-items: center; gap: 11px; padding: 0 12px 0 8px; border-radius: 999px; color: #f8f6ef;
  background: linear-gradient(180deg, #262626 0%, #050505 34%, #000 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.2), inset 0 -3px 8px rgba(255, 255, 255, 0.05), 0 22px 34px -16px rgba(0, 0, 0, 0.5);
  animation: island-float 6s ease-in-out infinite; }
.mb-island::after { content: ""; position: absolute; z-index: -1; inset: -2px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 0 18px 5px rgba(255, 250, 238, 0.85), 0 0 46px 14px rgba(255, 246, 226, 0.45); }
@keyframes island-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.mb-ring { position: relative; flex: none; width: 50px; height: 50px; }
.mb-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-ring line { stroke: rgba(248, 246, 239, 0.18); transition: stroke 0.3s; }
.mb-island .mb-ring line { stroke-width: 1.9; }
.mb-ring line.on { stroke: var(--ring); }
.mb-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 17px/1 var(--sans); font-variant-numeric: tabular-nums; color: #f8f6ef; }
.mb-words { flex: 1; min-width: 0; display: grid; gap: 5px; }
.mb-words small { font: 600 12px/1 var(--sans); letter-spacing: 0.02em; color: rgba(248, 246, 239, 0.56); }
.mb-words b { overflow: hidden; font: 600 17px/1.15 var(--sans); color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.mb-island img { flex: none; width: 58px; height: 54px; object-fit: contain; }
.mb-island img.pop { animation: pop 0.42s var(--spring); }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
/* What is happening, in a pill at the foot of the stage. */
.mb-cta .mb-note { position: absolute; z-index: 5; left: 50%; bottom: 18px; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 13px; border-radius: 999px; white-space: nowrap; transform: translateX(-50%);
  font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 0.5px rgba(25, 45, 40, 0.1), 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.mb-cta .mb-note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mb-demo.scrolling .mb-note, .mb-demo.locked .mb-note { color: var(--accent-ink); }
.mb-demo.scrolling .mb-note::before { animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* The words: Pau's headline with the official logo, Unrotten in a sentence, its four selling
   points, and the download, large, with the 7 days free. */
.mb-copy { padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 38px); display: flex; flex-direction: column; justify-content: center; }
.mb-cta .mb-kicker { margin: 0; font: 600 14.5px/1.45 var(--sans); letter-spacing: -0.005em; color: var(--green); text-wrap: pretty; }
.mb-cta .mb-title { margin: 12px 0 0; font: 400 clamp(29px, 2.6vw, 36px)/1.14 var(--serif); letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
.mb-with { white-space: nowrap; }
.mb-logo { display: inline-flex; align-items: center; gap: 0.2em; margin-left: 0.08em; vertical-align: -0.12em; }
.mb-logo img { width: 0.98em; height: 0.98em; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(25, 45, 40, 0.1), 0 3px 8px -3px rgba(12, 34, 26, 0.35); }
.mb-word { display: block; height: 0.74em; width: auto; aspect-ratio: 1905 / 287; overflow: visible; color: var(--logo-ink); }
.mb-cta .mb-text { margin: 14px 0 0; font-size: 16px; line-height: 1.58; color: var(--ink-soft); }
.mb-cta .mb-text b { color: var(--ink); font-weight: 650; }
.mb-cta .mb-points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 15.5px; line-height: 1.4; color: var(--ink-soft); }
.mb-cta .mb-points li { position: relative; margin: 0; padding-left: 30px; text-wrap: pretty; }
.mb-cta .mb-points b { font-weight: 650; color: var(--ink); }
.mb-cta .mb-points li::before { content: ""; position: absolute; left: 0; top: 0.5px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6l4.5-5' fill='none' stroke='%23fffef7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mb-cta .mb-action { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; padding: 16px; border-radius: 22px; background: #f2f5ef; box-shadow: inset 0 0 0 1px rgba(37, 79, 67, 0.08); }
.mb-cta .appstore-btn { height: 56px; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6); }
.mb-free { flex: 1 1 112px; min-width: 0; display: grid; justify-items: start; gap: 8px; }
.mb-free em { font-size: 16px; padding: 6px 12px 7px; border-radius: 10px; }
.mb-free > span { font: 600 14px/1.3 var(--sans); color: var(--ink-soft); }
.prose a.appstore-btn, .prose .mb-cta a { text-decoration: none; }

/* ---------- The floating download, as the site's (Pau, 2026-10-21: "liquid glass and look more
   apple native"): a capsule of clear glass with a white tint, the icon, the logo, the 7 days
   free and Apple's black badge; once closed, it stays closed for the visit (blog.js). */
.floating { position: fixed; z-index: 58; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 20px); display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 9px; border-radius: 999px; isolation: isolate; color: var(--ink);
  background: rgba(255, 255, 255, 0.4); -webkit-backdrop-filter: blur(22px) saturate(185%) brightness(1.06); backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(255, 255, 255, 0.4), inset 0 0 0 0.5px rgba(255, 255, 255, 0.55), 0 0 0 0.5px rgba(25, 45, 40, 0.1), 0 18px 42px -16px rgba(12, 34, 26, 0.38), 0 4px 12px -6px rgba(12, 34, 26, 0.2);
  transform: translate(-50%, 0); opacity: 1; transition: transform 0.75s var(--spring), opacity 0.35s ease, visibility 0s 0s; }
.floating::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.14) 46%, rgba(255, 255, 255, 0) 64%), radial-gradient(90% 120% at 22% -30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 62%); }
/* Over the research library's dark band, dark glass (blog.js). */
.floating { transition: transform 0.75s var(--spring), opacity 0.35s ease, visibility 0s 0s, background 0.4s, box-shadow 0.4s; }
.floating.on-dark { background: rgba(9, 28, 22, 0.46); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.32), inset 0 0 0 0.5px rgba(255, 255, 255, 0.22), 0 18px 42px -16px rgba(0, 0, 0, 0.55), 0 4px 12px -6px rgba(0, 0, 0, 0.3); }
.floating::before, .floating-logo, .floating-close { transition: opacity 0.4s, color 0.4s, background 0.4s; }
.floating.on-dark::before { opacity: 0.18; }
.floating.on-dark .floating-logo { color: var(--cream); }
.floating.on-dark .floating-close { background: rgba(255, 254, 247, 0.14); color: rgba(255, 254, 247, 0.85); }
.floating[hidden] { display: flex; transform: translate(-50%, 150%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.5s var(--ease), opacity 0.3s ease, visibility 0s 0.5s; }
.floating-link { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.floating-link:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 999px; }
.floating-icon { flex: none; width: 44px; height: 44px; border-radius: 22.5%; box-shadow: 0 0 0 0.5px rgba(25, 45, 40, 0.14), 0 4px 10px -4px rgba(12, 34, 26, 0.35); }
.floating-words { display: grid; justify-items: start; gap: 5px; padding-right: 2px; }
.floating-logo { display: block; height: 19px; width: auto; aspect-ratio: 1905 / 287; overflow: visible; color: var(--ink); }
.floating-words b { font-size: 12.5px; padding: 3px 8px 4px; border-radius: 7px; }
.floating-badge { position: relative; flex: none; display: block; height: 44px; border-radius: 6.69% / 20%; overflow: hidden; line-height: 0; isolation: isolate; transition: transform 0.25s var(--spring); }
.floating-badge img { display: block; height: 100%; width: auto; }
.floating-badge::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 26%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.08) 74%, rgba(255, 255, 255, 0) 100%); mix-blend-mode: screen; animation-delay: 2.4s; }
.floating-link:hover .floating-badge { transform: translateY(-1px); }
.floating-link:active .floating-badge { transform: scale(0.97); }
.floating-close { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(25, 45, 40, 0.07); color: var(--ink-soft); font: 400 19px/1 var(--sans); cursor: pointer; transition: background 0.2s; }
.floating-close:hover { background: rgba(25, 45, 40, 0.13); color: var(--ink); }

/* ---------- Off an iPhone, every download opens this (Pau, 2026-10-20), as the site's. */
.qr-dialog { width: min(380px, calc(100vw - 32px)); padding: 34px 30px 30px; border: 0; border-radius: 30px; background: #fffefc; color: var(--ink); text-align: center; box-shadow: 0 40px 90px -30px rgba(8, 26, 21, 0.6); overflow: visible; }
.qr-dialog::backdrop { background: rgba(8, 26, 21, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.qr-dialog[open] { animation: qr-in 0.45s var(--spring); }
@keyframes qr-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
.cta-qr { display: grid; justify-items: center; gap: 18px; }
.qr-code { position: relative; display: block; width: 236px; max-width: 100%; aspect-ratio: 1; padding: 14px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px rgba(25, 45, 40, 0.08); }
.qr-code svg { display: block; width: 100%; height: 100%; }
.qr-code svg path { fill: #0c221a; }
.qr-code img { position: absolute; left: 50%; top: 50%; width: 21%; height: auto; border-radius: 22%; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px #fff; }
.cta-qr p { margin: 0; max-width: 11em; font: 400 25px/1.18 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.qr-how { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.qr-dialog form { position: absolute; top: 12px; right: 12px; margin: 0; }
.qr-close { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(25, 45, 40, 0.07); color: var(--ink); font: 400 22px/1 var(--sans); cursor: pointer; }
.qr-close:hover { background: rgba(25, 45, 40, 0.12); }
.qr-close:focus:not(:focus-visible) { outline: none; }

/* ---------- The research library and a study's page. */
.library { width: var(--wrap); margin: 0 auto; padding-bottom: clamp(72px, 8vw, 120px); }
.lib-head { max-width: 780px; margin: clamp(40px, 6vw, 96px) auto clamp(44px, 5vw, 76px); text-align: center; }
.lib-head h1 { margin-top: 20px; font-size: clamp(44px, 5.6vw, 82px); line-height: 1.04; letter-spacing: -0.028em; text-wrap: balance; }
.lib-head .lead { margin-inline: auto; max-width: 36em; }
.lib-group + .lib-group { margin-top: clamp(52px, 6vw, 80px); }
.lib-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); font-size: clamp(26px, 2.4vw, 34px); }
.lib-group h2 span { font: 600 11.5px/1 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.library .studies { margin-top: 24px; }
.library .study a, .is-study .study a { color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.library .study a:hover { background: var(--card); box-shadow: var(--shadow-up); }
.library .study-kind { color: var(--green); }
.library .study-meta { color: var(--muted); }
/* The study itself, in place of a featured picture. */
.paper { position: relative; padding: 28px 30px 26px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow-up); text-align: left; }
.paper p { margin: 0; }
.paper-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 11.5px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.paper-kind span { padding: 5px 9px 6px; border-radius: 8px; background: var(--green); color: var(--cream); letter-spacing: 0.08em; transform: rotate(-2.4deg); }
.paper-title { margin-top: 16px !important; font: 400 clamp(21px, 2vw, 26px)/1.3 var(--serif); letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.paper-meta { margin-top: 10px !important; font-size: 15px; color: var(--ink-soft); }
.paper-links { margin-top: 18px !important; display: flex; flex-wrap: wrap; gap: 10px; }
.paper-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 15px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 13.5px; text-decoration: none; overflow-wrap: anywhere; transition: background 0.2s; }
.paper-link b { font-weight: 700; color: var(--green); }
.paper-link:hover { background: #dbe4d6; }

/* ---------- An author, and a page that isn't here. */
.author { width: var(--wrap); margin: 0 auto; padding-bottom: clamp(72px, 8vw, 120px); }
.author-head { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); max-width: 1000px; margin: clamp(36px, 5vw, 80px) auto 0; }
.author-head img { flex: none; width: clamp(128px, 16vw, 210px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--card), var(--shadow-up); }
.author-head h1 { margin-top: 16px; font-size: clamp(42px, 5vw, 70px); line-height: 1.04; letter-spacing: -0.028em; }
.author-head .lead { max-width: 38em; }
.author .b-more { width: 100%; }
.nf { width: min(640px, 100% - 40px); margin: clamp(48px, 7vw, 110px) auto clamp(84px, 10vw, 140px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf img { width: 150px; margin-bottom: 22px; filter: drop-shadow(0 16px 20px rgba(12, 34, 26, 0.16)); }
.nf h1 { margin-top: 18px; font-size: clamp(42px, 5.4vw, 68px); line-height: 1.06; letter-spacing: -0.026em; text-wrap: balance; }
.nf .lead a { color: var(--green); text-underline-offset: 3px; }

/* ---------- The footer, as the site's. */
.foot { margin-top: 0; background: var(--night); color: rgba(255, 254, 247, 0.62); font-size: 14.5px; }
.foot-in { width: var(--wrap); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: 56px 0 52px; }
.foot .brand { color: var(--cream); }
.foot .brand-icon { width: 34px; height: 34px; box-shadow: 0 0 0 1px rgba(255, 254, 247, 0.14), 0 2px 8px rgba(0, 0, 0, 0.2); }
.foot .brand-word { height: 18px; }
.foot-tag { flex: 1; margin: 0; font: 400 17px/1.3 var(--serif); color: rgba(255, 254, 247, 0.5); text-align: right; }
.foot nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { text-decoration: none; }
.foot nav a:hover { color: var(--cream); }
.foot-small { width: 100%; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 254, 247, 0.1); font-size: 13px; line-height: 1.5; }

/* ---------- Wider screens: pictures, quotes, tables and the card a little wider than the text;
   from 1280 points the contents follow the reader in the left margin. */
@media (min-width: 1000px) {
  .prose > .fig:not(.fig-shot), .prose > .mb-cta, .prose > .table-wrap { margin-inline: -56px; }
  .prose blockquote.pull { margin-left: -34px; padding-left: 30px; }
}
@media (min-width: 1280px) {
  .a-body { width: auto; display: grid; grid-template-columns: minmax(0, 1fr) var(--read) minmax(0, 1fr); column-gap: 88px; }
  .a-body > * { grid-column: 2; }
  .a-body > .toc { position: sticky; top: 104px; grid-column: 1; grid-row: 1 / span 4; align-self: start; justify-self: end; width: 100%; max-width: 220px; margin: 8px 0 0; border-radius: 0; background: none; box-shadow: none; }
  .a-body > .toc summary { pointer-events: none; padding: 0 0 14px; font: 600 11.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
  .a-body > .toc summary::after { display: none; }
  .a-body > .toc ol { padding: 0; list-style: none; border-left: 1px solid var(--hair); }
  .a-body > .toc li { margin: 0; font-size: 14px; line-height: 1.38; }
  .a-body > .toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
  .a-body > .toc a:hover { color: var(--ink); }
  .a-body > .toc a.on { color: var(--green); border-left-color: var(--green); font-weight: 600; }
}

/* ---------- Tablets and phones. */
@media (max-width: 980px) {
  .grid > .card, .grid > .card.d-half, .grid > .card.d-wide { grid-column: span 3; }
  .grid > .card.t-wide { grid-column: 1 / -1; }
  .earlier { grid-template-columns: 1fr; }
  .earlier li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--hair); }
  .feature a { grid-template-columns: 1fr; }
  .feature-img img { aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 760px) {
  .mb-cta { grid-template-columns: 1fr; border-radius: 28px; }
  .mb-demo { min-height: 0; aspect-ratio: 400 / 520; --k: 0.875; }
  .mb-cta .mb-points { font-size: 15px; }
  .mb-shield-quote { display: none; }
  .about-author { flex-direction: column; gap: 14px; }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); }
  body { font-size: 16px; }
  .top-in { height: 60px; gap: 12px; }
  .top-nav { display: none; }
  .top-in .appstore-btn { margin-left: auto; height: 36px; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-word { height: 16px; }
  html { scroll-padding-top: 80px; }
  .b-hero { height: clamp(600px, 92svh, 760px); }
  .b-hero-art { top: 30%; }
  .b-hero::before { height: 40%; }
  .b-hero-copy { margin-top: 24px; }
  .b-hero h1 { font-size: clamp(40px, 11.6vw, 56px); }
  .b-hero .lead { font-size: 17px; }
  .b-latest { margin-top: -40px; }
  .feature a, .card a { border-radius: 24px; }
  .feature-body { padding: 24px 22px 26px; }
  .feature-title { margin-top: 16px; font-size: 29px; }
  .feature-sub { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .grid > .card, .grid > .card.d-half, .grid > .card.d-wide, .grid > .card.t-wide { grid-column: auto; }
  .grid { gap: 12px; }
  .card a { flex-direction: row; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 22px; }
  .card-img { flex: 0 0 96px; width: 96px; height: 96px; aspect-ratio: 1; border-radius: 15px; }
  .card-body { padding: 0; min-width: 0; }
  .card-kicker { font-size: 10.5px; letter-spacing: 0.13em; }
  .card-title { margin-top: 8px; font-size: 19px; line-height: 1.2; }
  .card-sub { display: none; }
  .card-date { padding-top: 7px; font-size: 12.5px; }
  .earlier { padding: 4px 20px; }
  .foot-tag { text-align: left; }
  .a-head { text-align: left; }
  .crumbs, .byline { justify-content: flex-start; }
  .a-head h1 { margin-top: 18px; font-size: clamp(34px, 9.4vw, 44px); line-height: 1.08; }
  .subtitle { margin-top: 16px; font-size: 19px; }
  .byline { margin-top: 24px; }
  .a-hero { width: calc(100% - 32px); margin-top: 28px; }
  .a-hero img { border-radius: 22px; }
  .a-body, .faq, .references, .about-author { width: calc(100% - 40px); }
  .a-body { margin-top: 32px; }
  .prose { font-size: 18px; line-height: 1.7; }
  .prose h2 { font-size: 28px; }
  .prose h3 { font-size: 19.5px; }
  .fig img { border-radius: 18px; }
  .prose blockquote.pull { padding-left: 22px; font-size: 23px; }
  .table-wrap { border-radius: 18px; }
  .prose table { min-width: 620px; }
  .about-author { padding: 22px; }
  .b-research-in { padding: 64px 0 72px; }
  .studies { grid-template-columns: 1fr; }
  .b-end-line { font-size: 30px; }
  .appstore-btn.big { height: 56px; }
  .author-head { flex-direction: column; align-items: flex-start; }
  .lib-head, .nf { text-align: left; align-items: flex-start; }
  .lib-head .lead { margin-inline: 0; }
  .paper { padding: 22px 22px 20px; border-radius: 24px; }
  .foot-in { padding: 44px 0 40px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .floating { bottom: max(14px, env(safe-area-inset-bottom)); gap: 4px; padding: 7px 7px 7px 8px; }
  .floating-link { gap: 10px; }
  .floating-icon { width: 42px; height: 42px; }
  .floating-logo { height: 17px; }
  .floating-words b { font-size: 12px; }
  .floating-badge { height: 42px; }
  .floating-close { width: 28px; height: 28px; font-size: 18px; }
}
@media (max-width: 370px) {
  .floating-icon { display: none; }
  .floating-badge { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .appstore-btn.wave::after, .appstore-btn.big::after, .floating-badge::after { display: none; }
}
@media print {
  .top, .floating, .qr-dialog, .mb-cta, .foot, .more { display: none !important; }
  body { background: #fff; }
}
