/* The Mental Models Club — Ghost theme
   Palette and type from the irevuo design system: red #ed4324, orange #fca434, Fira Sans + Open Sans. */

/* @font-face rules live in default.hbs so their URLs carry the same cache hash as the preload links. */

:root {
  --red: #ed4324; --red-dark: #d63a1e; --orange: #fca434; --peach: #fde0b0; --sand: #fcc97a; --coral: #f0906a; --ink: #1a1a1a;
  --bg: #fff; --fg: #1a1a1a; --fg-2: #444; --fg-3: #6f6f6f; --line: #ececec; --panel: #1a1a1a; --tint: #fde0b0; --tint-line: transparent;
  --fira: var(--gh-font-heading, "Fira Sans"), Arial, sans-serif; --open: var(--gh-font-body, "Open Sans"), "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 56px); --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; --bg: #0f0f0f; --fg: #f2f2f2; --fg-2: #c6c6c6; --fg-3: #8f8f8f; --line: #2a2a2a; --panel: #1d1d1d; --tint: transparent; --tint-line: #2a2a2a; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg-2); font: 16px/1.65 var(--open); -webkit-font-smoothing: antialiased; transition: background 240ms var(--ease), color 240ms var(--ease); }
a { color: var(--fg); text-decoration: none; transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
button:disabled { cursor: default; }
strong { color: var(--fg); font-weight: 600; }
input::placeholder { color: #888; }
.search input::placeholder { color: var(--fg-3); }
input:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::-webkit-scrollbar { display: none; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 18px; border-radius: 6px; background: var(--red); color: #fff; font: 600 15px var(--fira); }
.skip:focus { top: 16px; outline: 2px solid var(--fg); outline-offset: 2px; color: #fff; }
.site-main:focus { outline: none; }

.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.site-main { flex: 1; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { margin-top: 96px; }
.section--lg { margin-top: 120px; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.nowrap { white-space: nowrap; }
.mt-12 { margin-top: 12px !important; } .mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px !important; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; } .mb-40 { margin-bottom: 40px; } .mb-44 { margin-bottom: 44px; }

/* brand marks */
.brand-bar { height: 8px; background: linear-gradient(to right, var(--red) 0 50%, var(--orange) 50% 100%); }
.bar { display: block; height: 6px; background: linear-gradient(to right, var(--red) 0 50%, var(--orange) 50% 100%); flex: none; }
.bar--44 { width: 44px; } .bar--80 { width: 80px; } .bar--120 { width: 120px; height: 8px; margin: 0 auto 40px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.num { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 18px var(--fira); flex: none; }
.num--sm { width: 36px; height: 36px; font-size: 15px; }
.arrow-disc { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }

/* type */
.display { margin: 0; font: 800 clamp(48px, 6.4vw, 104px)/0.92 var(--fira); letter-spacing: -0.035em; color: var(--fg); text-wrap: balance; }
.display--md { font-size: clamp(44px, 6vw, 96px); }
.display--about { font-size: clamp(44px, 6vw, 96px); max-width: 1100px; }
.display--sm { font-size: clamp(36px, 4.2vw, 64px); line-height: 0.95; letter-spacing: -0.03em; }
.display--white { color: #fff; max-width: 900px; margin-bottom: 20px; }
.display--ink { color: var(--ink); font-size: clamp(40px, 5.4vw, 84px); line-height: 0.94; margin: 16px 0 24px; }
.h2 { margin: 12px 0 0; font: 700 clamp(28px, 3vw, 44px)/1 var(--fira); letter-spacing: -0.025em; color: var(--fg); text-wrap: balance; }
.h2--xl { font-size: clamp(32px, 3.6vw, 52px); }
.eyebrow { font: 700 12px var(--fira); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.eyebrow--orange { color: var(--orange); }
.eyebrow--mb { display: block; margin-bottom: 24px; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font: 600 14px var(--fira); color: var(--red); }
.lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.lede--sm { font-size: 17px; max-width: 440px; }
.lede--fg { font-size: 21px; line-height: 1.5; color: var(--fg); margin-bottom: 24px; }
.lede--ink { font-size: 20px; line-height: 1.5; color: var(--ink); margin-bottom: 36px; }
.lede--white { color: #fff; font-size: 20px; margin-bottom: 26px; }
.muted { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.muted-sm { font-size: 13px; color: var(--fg-3); }
.punch { margin: 8px 0 32px; font: 700 26px/1.25 var(--fira); letter-spacing: -0.015em; color: var(--fg); text-wrap: balance; }
.punch--red { color: var(--red); } .punch--orange { color: var(--orange); }
.link-red { color: var(--red); border-bottom: 1px solid var(--red); }
.link-red:hover { color: var(--red-dark); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px var(--fira); padding: 14px 26px; border-radius: 6px; white-space: nowrap; border: 1px solid transparent; }
.btn--red { background: var(--red); color: #fff; } .btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--dark { background: var(--fg); color: var(--bg); } .btn--dark:hover { background: var(--red); color: #fff; }
.btn--outline { border-color: var(--fg); color: var(--fg); } .btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--white { background: #fff; color: var(--ink); } .btn--white:hover { background: var(--orange); color: var(--ink); }
.btn--ghost-dark { border-color: #555; color: #fff; } .btn--ghost-dark:hover { border-color: var(--orange); color: var(--orange); }
.btn--ink { border-color: var(--ink); color: var(--ink); } .btn--ink:hover { background: var(--ink); color: #fff; }
.btn--sm { font-size: 15px; padding: 11px 20px; } .btn--lg { padding: 15px 26px; } .btn--block { display: flex; width: 100%; }
.btn--icon svg { flex: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* pills + chips */
.pill { display: inline-block; font: 700 11px/1 var(--fira); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.pill--beginner { background: var(--peach); color: var(--ink); }
.pill--intermediate { background: var(--orange); color: var(--ink); }
.pill--advanced { background: var(--red); color: #fff; }
.pill--members { border: 1px solid var(--fg); color: var(--fg); }
a.pill:hover { opacity: 0.85; color: inherit; }
a.pill--advanced:hover { color: #fff; }
.pill--lg { font-size: 13px; padding: 9px 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips--rule { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.chip { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 14px var(--fira); white-space: nowrap; }
.chip:hover { border-color: var(--red); color: var(--fg); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.chip--beginner .chip__dot { background: var(--peach); } .chip--intermediate .chip__dot { background: var(--orange); } .chip--advanced .chip__dot { background: var(--red); }
.chip__count { font-size: 12px; opacity: 0.7; }
.chip--active.chip--all, .chip--active.chip--saved { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip--active.chip--saved { background: var(--red); border-color: var(--red); color: #fff; }
.chip--active.chip--beginner { background: var(--peach); border-color: var(--peach); color: var(--ink); }
.chip--active.chip--intermediate { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.chip--active.chip--advanced { background: var(--red); border-color: var(--red); color: #fff; }

/* header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--pad); position: sticky; top: 0; background: var(--bg); z-index: 5; border-bottom: 1px solid var(--line); }
.header__logo { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.header__logo img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.header__title { font: 700 20px var(--fira); letter-spacing: -0.01em; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav { display: flex; align-items: center; gap: 32px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav__link { font: 600 15px var(--fira); color: var(--fg); }
.nav-list__item--current .nav__link, .nav__link[aria-current="page"] { color: var(--red); }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg-2); flex: none; }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.theme-btn { display: flex; align-items: center; gap: 10px; font: 600 14px var(--fira); color: var(--fg-2); padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.theme-btn:hover { border-color: var(--red); color: var(--red); }
.theme-btn__disc { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); overflow: hidden; flex: none; }
.theme-btn__moon { position: absolute; inset: 0; border-radius: 50%; background: var(--bg); transform: scale(0); transition: transform 320ms var(--ease), background 240ms var(--ease); }
[data-theme="dark"] .theme-btn__moon { transform: translate(35%, -35%) scale(1); }
.header__subscribe { font-size: 15px; padding: 11px 20px; }
.menu-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.menu-btn span { display: block; width: 16px; height: 2px; background: var(--fg); transition: transform 240ms var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; padding: 8px 20px 16px; }
.menu[hidden] { display: none; }
.menu .nav-list { flex-direction: column; gap: 0; }
.menu .nav__link { display: block; font: 700 22px var(--fira); padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu > .nav__link:last-child { border-bottom: 0; }

/* progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 6; pointer-events: none; }
.progress__bar { height: 3px; width: 0; background: linear-gradient(to right, var(--red), var(--orange)); }

/* home */
.home { padding-bottom: 112px; }
.hero { padding-top: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px; align-items: end; }
.hero__aside { padding-bottom: 10px; }
.hero__aside .lede { margin-bottom: 32px; }
.frieze { margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 28px 0; }
.frieze__track { display: flex; width: max-content; animation: frieze 70s linear infinite; }
.frieze__item { display: block; width: clamp(180px, 22vw, 280px); height: clamp(110px, 13vw, 160px); flex: none; margin: 0 clamp(14px, 2vw, 28px); background-size: contain; background-position: center; background-repeat: no-repeat; }
@keyframes frieze { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); background: var(--peach); border-radius: 20px; overflow: hidden; color: var(--ink); }
.featured:hover { color: var(--ink); }
.featured__body { padding: var(--pad) 56px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.featured__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.featured__date { font-size: 14px; color: #444; white-space: nowrap; }
.featured__title { margin: 0; font: 700 clamp(32px, 3.6vw, 52px)/1 var(--fira); letter-spacing: -0.025em; text-wrap: balance; }
.featured__hook { margin: 20px 0 0; font-size: 19px; line-height: 1.5; max-width: 460px; text-wrap: pretty; }
.featured__cta { display: inline-flex; align-items: center; gap: 12px; font: 600 16px var(--fira); }
.featured__media { padding: clamp(20px, 3.5vw, 40px); display: flex; align-items: center; justify-content: center; }
.featured__media img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head--stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: 560px; margin-bottom: 32px; }
.section-head--stack .h2 { margin-bottom: 16px; }
.section-head--rule { padding-bottom: 20px; border-bottom: 2px solid var(--fg); margin-bottom: 0; }
.starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; align-items: start; }
.starter { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--fg); align-items: start; }
.starter:hover { border-color: var(--red); color: var(--fg); }
.starter__body { display: flex; flex-direction: column; gap: 8px; }
.starter__title { margin: 0; font: 700 20px/1.15 var(--fira); letter-spacing: -0.01em; }
.starter__hook { font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.starter__read { font-size: 13px; color: var(--fg-3); }

/* cards */
.grid { display: grid; gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.grid--recent { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); color: var(--fg); }
.card:hover { border-color: var(--red); color: var(--fg); transform: translateY(-2px); }
.card__media { aspect-ratio: 16/9; border-bottom: 1px solid var(--line); padding: 16px; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__tile { aspect-ratio: 16/9; background: var(--peach); display: flex; align-items: flex-end; padding-left: 20px; overflow: hidden; }
.card__tile--1 { background: var(--sand); } .card__tile--2 { background: var(--coral); }
.card__letter { font: 800 150px/0.75 var(--fira); letter-spacing: -0.05em; color: var(--red); transform: translateY(14%); }
.card__tile--2 .card__letter { color: #fff; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.card__title { margin: 0; font: 700 21px/1.15 var(--fira); letter-spacing: -0.01em; color: var(--fg); text-wrap: balance; }
.card__hook { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); flex: 1; }
.card__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--fg-3); padding-top: 6px; flex-wrap: wrap; }
.card__read b { color: var(--red); font: 600 13px var(--fira); }
.card--read .card__read { display: inline; }
.mini-card { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; }
.mini-card:hover { border-color: var(--red); color: var(--fg); }
.mini-card img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.mini-card__title { margin: 0; font: 700 18px/1.2 var(--fira); color: var(--fg); }
.mini-card__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--fg-3); }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.row:hover { color: var(--red); }
.row__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row__title { margin: 0; font: 700 20px/1.2 var(--fira); letter-spacing: -0.01em; }
.row__hook { font-size: 14px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: flex; gap: 10px; align-items: center; justify-content: flex-end; font-size: 13px; color: var(--fg-3); flex-wrap: wrap; }
.rail-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--fg); }
.rail-link:hover { border-color: var(--red); color: var(--red); }
.rail-link__stack { display: flex; flex-direction: column; gap: 4px; }
.rail-link__title { font: 700 17px/1.2 var(--fira); }
.rail-link__arrow { font: 600 15px var(--fira); color: var(--red); }
.loadmore { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 64px; }
.loadmore[hidden] { display: none; }

/* A–Z rails */
.az { display: flex; gap: 2px; }
.az--inline { flex-wrap: wrap; }
.az--rail { flex-direction: column; position: sticky; top: 104px; }
.az__letter { display: block; min-width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 6px; font: 600 13px/30px var(--fira); color: var(--fg); background: transparent; border: 0; padding: 0; }
.az--rail .az__letter { height: 26px; line-height: 26px; font-size: 12px; }
.az__letter:hover { color: var(--red); }
.az__letter--empty { color: var(--line); pointer-events: none; }
.az__letter--active { background: var(--red); color: #fff; }

/* book band */
.book-band { margin: 128px var(--pad) 0; background: var(--panel); border-radius: 24px; overflow: hidden; }
.book-band__inner { max-width: 1168px; margin: 0 auto; padding: 72px var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: center; }
.book-band__inner img { width: 100%; max-width: 340px; margin: 0 auto; }
.book-band__title { margin: 16px 0 20px; font: 700 clamp(32px, 3.8vw, 56px)/0.98 var(--fira); letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.book-band__text { margin: 0 0 32px; font-size: 18px; line-height: 1.55; color: #d0d0d0; max-width: 520px; text-wrap: pretty; }

/* library */
.library { padding-top: 72px; padding-bottom: 112px; }
.library__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.library__head .lede { margin-bottom: 10px; max-width: 360px; }
.library__head [data-library-time] { display: inline-block; min-width: 4.5em; }
.progress-card { display: flex; flex-direction: column; gap: 8px; min-width: 220px; margin-bottom: 10px; }
.progress-card__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-3); }
.progress-card__row b { font: 700 13px var(--fira); color: var(--fg); }
.meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter__fill { height: 6px; width: 0; background: linear-gradient(to right, var(--red), var(--orange)); transition: width 320ms var(--ease); }
.filters { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.filters__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filters__row--rule { justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.search:focus-within { border-color: var(--red); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 15px var(--open); color: var(--fg); }
.search__clear { border: 0; background: none; font: 600 12px var(--fira); color: var(--fg-3); padding: 0; }
.search__clear:hover { color: var(--red); }
.search kbd { font: 600 11px/1 var(--fira); color: var(--fg-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.results { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--fg-3); flex-wrap: wrap; }
.results b { font: 700 14px var(--fira); color: var(--fg); }
.results a { font: 600 14px var(--fira); color: var(--red); }
.segmented { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.segmented__btn { padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--fg-2); font: 600 13px/1 var(--fira); white-space: nowrap; }
.segmented__btn:hover { color: var(--red); }
.segmented__btn--active { background: var(--fg); color: var(--bg); }
.empty { padding: 64px 24px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 48px; }
.empty[hidden] { display: none; }
.empty__title { font: 700 24px var(--fira); color: var(--fg); }
.empty__text { font-size: 15px; color: var(--fg-2); max-width: 380px; text-wrap: pretty; }
.library__grid { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.library--flat .library__grid { grid-template-columns: minmax(0, 1fr); }
.library--flat .az--rail { display: none; }
.groups { display: flex; flex-direction: column; gap: 72px; }
.group__head { display: flex; align-items: baseline; gap: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--fg); margin-bottom: 24px; }
.group__letter { font: 800 72px/0.8 var(--fira); letter-spacing: -0.04em; color: var(--red); }
.group__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }

/* tag page */
.tagpage { padding-top: 40px; }
.tagpage__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: end; margin: 40px 0 48px; }
.tagpage__head .display { margin-top: 24px; }
.tagpage__aside { display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.back { display: inline-block; font: 600 14px var(--fira); color: var(--fg-3); padding: 12px 0; margin: -12px 0; }
.back:hover { color: var(--red); }

/* post */
.post { padding: 40px 0 112px; }
.post__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: center; margin-top: 40px; }
.post__head--page { display: block; margin-top: 24px; max-width: 760px; }
.post__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; font-size: 14px; color: var(--fg-3); flex-wrap: wrap; }
.post__title { margin: 0 0 24px; font: 800 clamp(40px, 5.2vw, 80px)/0.95 var(--fira); letter-spacing: -0.03em; color: var(--fg); text-wrap: balance; }
.post__hook { margin: 0; font-size: 21px; line-height: 1.45; color: var(--fg); text-wrap: pretty; }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--fg); }
.byline:hover { color: var(--red); }
.byline__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.byline__avatar--initials { background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 14px var(--fira); }
.byline__text { display: flex; flex-direction: column; gap: 2px; }
.byline__name { font: 600 15px/1.2 var(--fira); }
.post__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.save-btn { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--fira); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); white-space: nowrap; }
.save-btn:hover { border-color: var(--red); color: var(--red); }
.save-btn__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.save-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.save-btn[aria-pressed="true"] .save-btn__dot { background: #fff; }
.share-btn .save-btn__dot { background: var(--orange); }
.post__frame { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 20px; padding: 36px; }
.post__frame img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.post__tile { background: var(--peach); border-radius: 20px; aspect-ratio: 16/10; display: flex; align-items: flex-end; padding-left: 40px; overflow: hidden; }
.post__letter { font: 800 clamp(160px, 28vw, 320px)/0.75 var(--fira); letter-spacing: -0.05em; color: var(--red); transform: translateY(14%); }
.post__body { max-width: 760px; margin: 80px auto 0; padding: 0 var(--pad); }
.post__aside { max-width: 760px; margin: 64px auto 0; padding: 0 var(--pad); }
.post__aside--tight { margin-top: 40px; }

/* table of contents */
.toc { position: sticky; top: 85px; z-index: 4; background: var(--bg); padding: 14px 0; margin: -14px 0 24px; display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.toc[hidden] { display: none; }
.toc__label { font: 700 11px var(--fira); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-right: 4px; flex: none; }
.toc__link { font: 600 13px/1 var(--fira); padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); white-space: nowrap; }
.toc__link:hover { border-color: var(--red); color: var(--red); }

/* article content (Ghost editor output) */
.post-content > * { margin: 0 0 26px; }
.post-content p { font-size: 18px; line-height: 1.7; color: var(--fg-2); text-wrap: pretty; }
.post-content h2 { margin: 64px 0 20px; font: 700 32px/1.1 var(--fira); letter-spacing: -0.02em; color: var(--fg); display: flex; align-items: center; gap: 16px; }
.post-content h2::before { content: ""; width: 28px; height: 6px; background: linear-gradient(to right, var(--red) 0 50%, var(--orange) 50% 100%); flex: none; }
.post-content h3 { margin: 40px 0 16px; font: 700 24px/1.2 var(--fira); color: var(--fg); }
.post-content a { color: var(--red); border-bottom: 1px solid var(--red); }
.post-content a:hover { color: var(--red-dark); }
.post-content ul, .post-content ol { margin: 0 0 40px; padding: 0; list-style: none; font-size: 17px; line-height: 1.7; }
.post-content ol { counter-reset: step; }
.post-content ol > li { counter-increment: step; position: relative; padding-left: 64px; margin: 0 0 28px; min-height: 44px; }
.post-content ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font: 800 18px/44px var(--fira); text-align: center; }
.post-content ol > li > strong:first-child, .post-content ol > li > b:first-child { display: block; font: 700 20px/1.25 var(--fira); color: var(--fg); margin: 8px 0 6px; }
.post-content ol > li > p:first-child > strong:first-child { display: block; font: 700 20px/1.25 var(--fira); color: var(--fg); margin: 8px 0 6px; }
.post-content ul > li { position: relative; padding-left: 26px; margin: 0 0 20px; }
.post-content ul > li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.post-content li > p { margin: 0; }
.post-content blockquote { margin: 8px 0 32px; padding: 0; border: 0; font: 700 26px/1.25 var(--fira); letter-spacing: -0.015em; color: var(--fg); text-wrap: balance; }
.post-content blockquote p { font: inherit; color: inherit; margin: 0; }
.post-content .kg-image-card img, .post-content > img, .post-content > p > img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; margin: 0; }
.post-content > img, .post-content > p > img { margin: 8px 0 40px; }
.post-content figure { margin: 8px 0 40px; }
.post-content .kg-gallery-image img, .post-content .kg-bookmark-thumbnail img { aspect-ratio: auto; margin: 0; }
.post-content figcaption { font-size: 13px; color: var(--fg-3); text-align: center; margin-top: 8px; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.post-content .punch { margin: 8px 0 32px; font: 700 26px/1.25 var(--fira); letter-spacing: -0.015em; color: var(--fg); text-wrap: balance; }
.post-content .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; margin: 0 0 28px; }
.post-content .step__title { font: 700 20px/1.25 var(--fira); color: var(--fg); margin: 8px 0; }
.post-content .step p { margin: 0; font-size: 17px; }
.post-content .tip { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 18px; margin: 0 0 20px; align-items: start; }
.post-content .tip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 11px; }
.post-content .tip p { margin: 0; font-size: 17px; }
.post-content .exercise { margin: 40px 0; padding: 32px 36px; border-radius: 14px; background: var(--peach); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.post-content .exercise__label { font: 700 12px var(--fira); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-top: 5px; }
.post-content .exercise p { margin: 0; font-size: 16px; color: var(--ink); }
/* Pro-tip: outlined, with the orange half of the brand bar down the left; Exercise keeps the peach fill */
.post-content .exercise--tip { background: transparent; border: 1px solid var(--line); border-left: 6px solid var(--orange); padding-left: 30px; }
.post-content .exercise--tip .exercise__label { color: var(--fg); }
.post-content .exercise--tip p { color: var(--fg-2); }
.post-content .kg-card { margin: 0 0 26px; }
.post-content .kg-width-wide { position: relative; width: 100vw; max-width: 1080px; left: 50%; transform: translateX(-50%); }
.post-content .kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.post-content .kg-width-wide img, .post-content .kg-width-full img { width: 100%; aspect-ratio: auto; }

/* paywall */
.gh-post-upgrade-cta { margin-top: 24px; }
.paywall { position: relative; }
.paywall__fade { position: relative; margin-top: -160px; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg) 85%); pointer-events: none; }
.panel { padding: clamp(24px, 4vw, 48px); background: var(--panel); border-radius: 20px; display: flex; flex-direction: column; gap: 20px; }
.panel__title { font: 700 30px/1.1 var(--fira); letter-spacing: -0.015em; color: #fff; text-wrap: balance; }
.panel__text { margin: 0; font-size: 16px; line-height: 1.6; color: #d0d0d0; text-wrap: pretty; max-width: 520px; }
.panel__text--center { font-size: 19px; line-height: 1.5; max-width: 500px; margin: 0 auto 44px; }
.panel__foot { font-size: 13px; color: #8f8f8f; }
.panel__foot a { color: var(--orange); border-bottom: 1px solid var(--orange); }
.panel__foot a:hover { color: #fff; }
.panel__fine { margin: 24px 0 0; font-size: 13px; color: #8f8f8f; }
.panel--hero { margin: 24px var(--pad) 0; padding: 112px var(--pad); border-radius: 24px; align-items: center; text-align: center; gap: 0; }
.subscribe-panel__title { font: 700 30px/1.1 var(--fira); letter-spacing: -0.015em; color: #fff; text-wrap: balance; }
.subscribe-panel__done { margin: 0; font: 600 20px var(--fira); color: var(--orange); }
.input { padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: 15px var(--open); }
.input--dark { border-color: #444; background: var(--panel); color: #fff; }
.input--lg { padding: 15px 18px; font-size: 16px; }
.members-form { display: flex; gap: 10px; flex-wrap: wrap; }
.members-form .input { flex: 1; min-width: 220px; }
.members-form--center { justify-content: center; width: 100%; max-width: 560px; }
.members-form--center .input { min-width: 240px; }
.members-form__success, .members-form__error { display: none; margin: 0; font: 600 16px var(--fira); }
.members-form__success { color: var(--orange); } .members-form__error { color: var(--red); }
form.success + .members-form__success, form.error + .members-form__success + .members-form__error { display: block; }
form.success { display: none; }
form.loading button { opacity: 0.6; pointer-events: none; }

/* prev/next, related, comments */
.prevnext { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.prevnext[hidden] { display: none; }
.prevnext__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--fg); }
.prevnext__item:hover { border-color: var(--red); color: var(--fg); }
.prevnext__item--next { text-align: right; }
.prevnext__label { font-size: 12px; color: var(--fg-3); }
.prevnext__title { font: 700 17px/1.2 var(--fira); }
.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.related__all { display: inline-block; font: 600 14px var(--fira); color: var(--fg-2); padding: 12px 0; margin: -12px 0; }
.related__all:hover { color: var(--red); }
.book-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; color: var(--fg); }
.book-card:hover { border-color: var(--red); color: var(--fg); }
.book-card img { width: 120px; }
.book-card > div { display: flex; flex-direction: column; gap: 8px; }
.book-card__title { font: 700 22px/1.15 var(--fira); letter-spacing: -0.015em; color: var(--fg); }
.book-card__text { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.book-card__cta { font: 600 15px var(--fira); color: var(--red); margin-top: 4px; }
.comments { padding-top: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.comments__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.comments__title { font: 700 24px var(--fira); letter-spacing: -0.015em; color: var(--fg); }
.comments__note { font-size: 13px; color: var(--fg-3); }

/* about / author */
.about { padding: 72px 0 0; }
.page-end { padding-bottom: 112px; }
.about__grid { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px; align-items: start; }
.about__main { max-width: 720px; }
.about__main p { margin: 0 0 24px; font-size: 18px; line-height: 1.7; color: var(--fg-2); text-wrap: pretty; }
.about__main p.lede { margin-bottom: 24px; }
.about__main h2 { margin: 64px 0 20px; font: 700 32px/1.1 var(--fira); letter-spacing: -0.02em; color: var(--fg); display: flex; align-items: center; gap: 16px; }
.about__main h2::before { content: ""; width: 28px; height: 6px; background: linear-gradient(to right, var(--red) 0 50%, var(--orange) 50% 100%); flex: none; }
.compare { margin: 40px 0 48px; padding: 8px 32px 12px; border-radius: 20px; border: 1px solid var(--line); }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.compare__row--head { padding: 20px 0 14px; border-bottom: 2px solid var(--fg); }
.compare__row--last { border-bottom: 0; }
.compare__name { font: 800 22px var(--fira); color: var(--fg); }
.compare__name--red { color: var(--red); }
.compare__sub { font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.compare__stat { font: 700 clamp(20px, 2.2vw, 28px)/1.1 var(--fira); letter-spacing: -0.02em; color: var(--fg-3); }
.compare__stat--red { color: var(--red); }
.compare__stat span { font: 400 13px var(--open); color: var(--fg-3); }
.about__rail { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.anatomy { background: var(--peach); border-radius: 20px; padding: clamp(24px, 4vw, 40px); color: var(--ink); }
.anatomy__title { margin: 12px 0 8px; font: 800 26px/1.05 var(--fira); letter-spacing: -0.02em; text-wrap: balance; }
.anatomy__row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(26, 26, 26, 0.15); }
.anatomy__row--last { border-bottom: 0; }
.anatomy__h { font: 700 17px/1.2 var(--fira); }
.anatomy__p { font-size: 14px; line-height: 1.55; color: #444; margin-top: 4px; }

/* newsletter */
.newsletter { padding: 0 0 112px; }

/* book */
.book { padding-bottom: 112px; }
.book__hero { margin: 24px var(--pad) 0; background: #ede0c4; border-radius: 24px; overflow: hidden; }
.book__hero-inner { max-width: 1168px; margin: 0 auto; padding: 72px var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: center; }
.book__hero-inner img { width: 100%; border-radius: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid var(--ink); }
.stats__n { font: 800 40px/1 var(--fira); letter-spacing: -0.02em; color: var(--ink); }
.stats__l { font-size: 13px; color: #444; margin-top: 6px; }
.prose { max-width: 760px; margin: 96px auto 0; padding: 0 var(--pad); }
.prose p { margin: 0 0 26px; font-size: 18px; line-height: 1.7; color: var(--fg-2); }
.prose p:last-child { margin-bottom: 0; }
.prose .punch { margin: 0 0 26px; font-size: 28px; line-height: 1.2; }
.prose--dark { margin: 0 auto; padding: 80px var(--pad); }
.prose--dark p { color: #d0d0d0; }
.book__dark { margin: 96px var(--pad) 0; background: var(--panel); border-radius: 24px; }
.duel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin: 40px 0; }
.duel__card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; }
.duel__card--red { background: var(--red); border-color: var(--red); }
.duel__name { font: 700 14px var(--fira); letter-spacing: 0.04em; color: var(--fg-3); margin-bottom: 16px; }
.duel__card--red .duel__name { color: var(--peach); }
.duel__n { font: 800 40px/1 var(--fira); color: var(--fg); }
.duel__l { font-size: 14px; color: var(--fg-2); margin-top: 6px; }
.duel__card--red .duel__n, .duel__card--red .duel__l { color: #fff; }
.anatomy-strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px 32px; margin-top: 48px; padding-top: 40px; border-top: 2px solid var(--fg); }
.anatomy-strip__item { display: flex; flex-direction: column; gap: 8px; }
.anatomy-strip__item .num { margin-bottom: 12px; }
.anatomy-strip__h { font: 800 22px/1.1 var(--fira); letter-spacing: -0.015em; color: var(--fg); }
.anatomy-strip__sub { font: italic 600 14px var(--open); color: var(--red); }
.anatomy-strip__item p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--fg-2); }
.num--2 { background: #e8634a; } .num--3 { background: var(--orange); color: var(--ink); } .num--4 { background: #fcc97a; color: var(--ink); }
.book__for { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px; align-items: start; }
.for-row { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.for-row__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 8px; }
.for-row p { margin: 0; font: 500 22px/1.3 var(--fira); color: var(--fg); text-wrap: pretty; }
.book__for > div > p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--fg-2); }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.offer { padding: clamp(20px, 3.5vw, 40px); border-radius: 20px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.offer--tint { background: var(--peach); border-color: var(--peach); color: var(--ink); }
.offer__store { font-size: 13px; color: var(--fg-3); }
.offer--tint .offer__store { color: #444; }
.offer__title { font: 700 26px/1.15 var(--fira); letter-spacing: -0.015em; color: var(--fg); }
.offer--tint .offer__title { color: var(--ink); }
.offer__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--fg-2); flex: 1; }
.offer--tint .offer__list { color: var(--ink); }
.badge { align-self: flex-start; font: 700 12px var(--fira); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--red); padding: 6px 12px; border-radius: 999px; }
.badge--spacer { height: 29px; background: transparent; }

/* 404 */
.notfound { padding: 96px var(--pad) 128px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px; align-items: start; }
.notfound__code { display: block; font: 800 clamp(96px, 14vw, 200px)/0.8 var(--fira); letter-spacing: -0.05em; color: var(--red); }
.notfound .display { margin: 32px 0 16px; }
.notfound .lede { margin-bottom: 32px; }
.notfound__recent { display: flex; flex-direction: column; gap: 12px; }
.notfound__recent .eyebrow { margin-bottom: 8px; }

/* footer */
.footer { background: var(--panel); padding: var(--pad) 56px 40px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; font: 700 16px var(--fira); color: #fff; }
.footer__brand img { width: 28px; height: 28px; object-fit: contain; }
.footer__nav .nav-list { gap: 28px; flex-wrap: wrap; }
.footer__nav .nav__link { display: inline-block; font-size: 14px; color: #d0d0d0; padding: 12px 0; margin: -12px 0; }
.footer__nav .nav__link:hover { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 24px; border-top: 1px solid #333; font-size: 13px; color: #8f8f8f; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; font: 600 13px var(--fira); }
.footer__links a { display: inline-block; color: #8f8f8f; padding: 12px 0; margin: -12px 0; }
.footer__links a:hover { color: var(--orange); }

/* Ghost search + portal chrome */
.sodo-search-root { z-index: 20; }

/* responsive */
@media (max-width: 1120px) {
  .nav__links, .theme-btn__label { display: none; }
  .menu-btn { display: flex; }
  .nav { gap: 12px; }
  .theme-btn { padding: 8px; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .header { padding: 12px 16px; gap: 10px; }
  .header__logo { gap: 8px; min-height: 44px; }
  .header__logo img { width: 32px; height: 32px; }
  .header__title { font-size: 15px; }
  .header__subscribe { display: none; }
  .icon-btn, .menu-btn, .theme-btn { width: 44px; height: 44px; }
  .theme-btn { padding: 0; justify-content: center; }
  .menu { padding: 4px 16px 12px; }
  .menu .nav__link { font-size: 19px; padding: 12px 0; }
  .section { margin-top: 56px; }
  .section--lg { margin-top: 72px; }
  .display, .display--md, .display--about { font-size: clamp(36px, 11vw, 48px); }
  .display--sm { font-size: 32px; }
  .display--ink { font-size: clamp(34px, 10vw, 44px); }
  .h2, .h2--xl { font-size: 28px; }
  .lede { font-size: 17px; }
  .hero { padding-top: 40px; gap: 28px; }
  .frieze { margin-top: 40px; padding: 16px 0; }
  .featured__body { padding: 24px 20px 28px; gap: 28px; }
  .featured__title { font-size: 28px; }
  .featured__hook { font-size: 16px; }
  .featured__media { padding: 0 20px 20px; }
  .section-head { margin-bottom: 24px; }
  .toc { top: 64px; }
  .post { padding: 20px 0 64px; }
  .post__head { margin-top: 20px; gap: 28px; }
  .post__meta .sep { display: none; }
  .post__title { font-size: clamp(32px, 9.5vw, 44px); }
  .post__body { margin-top: 40px; }
  .post__aside { margin-top: 40px; }
  .post__frame { padding: 16px; }
  .post-content p, .post-content ul, .post-content ol { font-size: 17px; }
  .post-content h2 { font-size: 26px; margin-top: 44px; }
  .post-content ol > li { padding-left: 52px; }
  .post-content ol > li::before { width: 36px; height: 36px; font-size: 15px; line-height: 36px; }
  .post-content ol > li > strong:first-child, .post-content ol > li > b:first-child, .post-content ol > li > p:first-child > strong:first-child { font-size: 18px; margin-top: 6px; }
  .post-content .exercise { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 20px; }
  .post-content .exercise--tip { padding-left: 16px; }
  .post-content .kg-width-wide, .post-content .kg-width-full { width: 100%; left: 0; transform: none; }
  .paywall .panel, .panel { padding: 28px 22px; }
  .panel--hero { margin: 16px var(--pad) 0; padding: 56px 22px; border-radius: 18px; }
  .subscribe-panel__title { font-size: 24px; }
  .prevnext { grid-template-columns: minmax(0, 1fr); }
  .book-card { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .book-card img { width: 72px; }
  .library__grid { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .az--rail { top: 72px; }
  .az--rail .az__letter { min-width: 28px; height: 24px; line-height: 24px; font-size: 11px; }
  .groups { gap: 48px; }
  .filters { margin-bottom: 32px; }
  .filters__row--rule { flex-direction: column; align-items: flex-start; }
  .chip { height: 40px; padding: 0 12px; font-size: 13px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; }
  .row__meta { justify-content: flex-start; }
  .row__hook { white-space: normal; }
  .tagpage { padding-top: 20px; }
  .tagpage__head { margin: 24px 0 32px; gap: 20px; }
  .chips--rule { padding-bottom: 20px; margin-bottom: 28px; }
  .about { padding-top: 40px; }
  .page-end { padding-bottom: 64px; }
  .about__grid { margin-top: 40px; gap: 40px; }
  .about__main p { font-size: 17px; }
  .about__main h2 { font-size: 26px; margin-top: 44px; }
  .about__rail { position: static; }
  .compare { padding: 4px 18px 8px; }
  .compare__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .compare__row--head { display: none; }
  .compare__stat--red::before { content: "Dickens · "; font: 400 13px var(--open); color: var(--fg-3); }
  .compare__stat:not(.compare__stat--red)::before { content: "Melville · "; font: 400 13px var(--open); color: var(--fg-3); }
  .book__hero-inner { padding: 40px var(--pad); gap: 28px; }
  .stats { gap: 12px; padding-top: 20px; }
  .stats__n { font-size: 28px; }
  .prose { margin-top: 56px; }
  .prose p { font-size: 17px; }
  .duel { grid-template-columns: minmax(0, 1fr); }
  .book__dark { margin-top: 56px; }
  .prose--dark { padding: 48px var(--pad); }
  .notfound { padding: 48px var(--pad) 72px; gap: 40px; }
  .anatomy-strip__grid { gap: 28px; margin-top: 32px; padding-top: 28px; }
  .book__for { gap: 28px; }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .offer { padding: 24px 20px; }
  .footer { padding: 48px 20px 28px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__nav .nav-list { gap: 16px 24px; }
  .notfound { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 auto; }
}

/* reduced motion: the frieze stops, the toggle disc and hover transitions settle instantly */
@media (prefers-reduced-motion: reduce) {
  .frieze__track { animation-play-state: paused; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .frieze__track { animation-iteration-count: infinite !important; animation-duration: 70s !important; }
}
