/* Cushion blog. Layout and motion modelled on opinly.ai/blog (see opinly-blog-teardown.md),
   coloured with Cushion's light theme: neon green as a fill with black text, green-ink for green text. */
:root {
  --green: #55ff00;
  --green-hover: #6bff23;
  --green-ink: #2b8a00;
  --green-ink-hover: #1f6600;
  --green-soft: #effbe6;
  --green-line: rgba(43, 138, 0, .22);
  --amber: #ffb020;

  --heading: #0f120e;
  --body: #1b1e1a;
  --muted: #6a6f67;
  --faint: #9aa096;
  --line: #e6e9e3;
  --line-strong: #d6dad1;
  --surface-1: #fafbf9;
  --surface-2: #f4f6f2;
  --page: #ffffff;
  --night: #0b0d0a;

  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-card: 24px;
  --r-box: 16px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow-lg: 0 10px 15px -3px rgba(16, 24, 16, .08), 0 4px 6px -4px rgba(16, 24, 16, .08);
  --shadow-float: 0 1px 2px rgba(16, 24, 16, .06), 0 16px 40px -18px rgba(16, 24, 16, .28);
  --max: 1240px;
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--page); color: var(--body);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 768px; margin-inline: auto; padding-inline: var(--gutter); }
/* small sentence-case meta text (dates, counts, column headings); class name kept for the vendored tool pages */
.mono { font-size: 13px; line-height: 18px; font-weight: 500; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; }
.nav__util { height: 36px; background: var(--night); color: #fff; overflow: hidden;
  transition: height .25s var(--ease), opacity .25s var(--ease); }
.nav__util-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); font-size: 13px; font-weight: 600; }
.nav__util-note { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .78); }
.nav__util-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.nav__util-links { display: flex; align-items: center; gap: 22px; }
.nav__util-links a, .nav__util-links button { transition: opacity .15s; }
.nav__util-links a:hover, .nav__util-links button:hover { opacity: .75; }
.swap { display: grid; place-items: center end; }
.swap > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .15s; }
.swap > span + span, .swap:hover > span:first-child, .swap:focus-visible > span:first-child { opacity: 0; }
.swap:hover > span + span, .swap:focus-visible > span + span { opacity: 1; }

.nav__shell { padding-inline: 12px; transition: padding-top .25s var(--ease); }
.nav__bar { position: relative; max-width: calc(var(--max) + 16px); margin-inline: auto; display: flex; align-items: center; gap: 8px;
  padding: 10px 10px 10px 18px; border: 1px solid transparent; border-radius: 999px; background: transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.nav--scrolled .nav__util { height: 0; opacity: 0; }
.nav--scrolled .nav__shell { padding-top: 12px; }
.nav--scrolled .nav__bar { background: rgba(255, 255, 255, .94); border-color: rgba(16, 24, 16, .08); box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-weight: 800; font-size: 18px;
  letter-spacing: -.03em; color: var(--heading); min-height: 40px; }
.logo__mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #000; font-size: 17px; line-height: 1;
  background: linear-gradient(160deg, #8dff54, var(--green) 45%, #3fc400);
  box-shadow: 0 0 0 1px var(--green-line), inset 0 1px 2px rgba(255, 255, 255, .55); }
.logo__mark span { margin-top: 1px; margin-left: -1px; }
.nav__links { display: none; align-items: center; gap: 2px; margin-left: 12px; }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__link { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #262a25; white-space: nowrap;
  transition: color .15s, background .15s; }
.nav__link:hover { background: rgba(16, 24, 16, .045); color: var(--heading); }
.nav__link[aria-current="page"] { color: var(--green-ink); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--heading); background: #f1f3ef; white-space: nowrap;
  transition: background .3s, color .3s, transform .18s, box-shadow .18s; }
.nav__cta:hover { background: #e6e9e3; transform: translateY(-1px); }
.nav--scrolled .nav__cta { background: var(--green); color: #000; box-shadow: 0 0 0 1px rgba(43, 138, 0, .3), 0 6px 18px rgba(85, 255, 0, .25); }
.nav--scrolled .nav__cta:hover { background: var(--green-hover); }
.nav__burger { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--heading); }
.nav__burger:hover { background: rgba(16, 24, 16, .05); }
@media (min-width: 900px) { .nav__burger { display: none; } }
.nav__drawer { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-float); flex-direction: column; gap: 2px; }
.nav--open .nav__drawer { display: flex; animation: drawer .16s ease-out both; }
.nav__drawer a { min-height: 44px; display: flex; align-items: center; padding: 6px 14px; border-radius: 12px; font-size: 17px; font-weight: 600; color: var(--heading); }
.nav__drawer a:hover { background: rgba(16, 24, 16, .04); }
@keyframes drawer { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .nav__drawer { display: none !important; } }

@media (max-width: 639px) {
  .nav__util-note { display: none; }
  .nav__util-in { justify-content: flex-end; }
  .nav__bar { padding-left: 12px; }
  .nav__cta { min-height: 38px; padding: 0 14px; font-size: 13px; }
}

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: var(--green);
  transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 8px rgba(85, 255, 0, .6); pointer-events: none; }

main { padding-top: 112px; }

/* ---------- shared header blocks ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 13px; line-height: 18px;
  background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-line); color: var(--green-ink); font-weight: 600; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px rgba(85, 255, 0, .25); }
.page-head { max-width: 800px; margin-inline: auto; padding: 56px var(--gutter) 48px; text-align: center; }
@media (min-width: 640px) { .page-head { padding-block: 72px 56px; } }
.display { margin: 24px 0 0; font-weight: 800; font-size: 34px; line-height: 1.18; letter-spacing: -.035em; color: var(--heading); text-wrap: balance; }
@media (min-width: 640px) { .display { font-size: 46px; } }
@media (min-width: 1024px) { .display { font-size: 58px; line-height: 1.15; } }
.display em { font-style: normal; color: var(--green-ink); }
.page-head--plain .display { margin-top: 0; }
.lede { margin: 20px auto 0; max-width: 640px; font-size: 17px; line-height: 28px; color: var(--muted); text-wrap: pretty; }

.section-label { margin: 0 0 24px; font-size: 15px; line-height: 22px; color: var(--muted); font-weight: 600; }
.section + .section { margin-top: 64px; }
.more-row { margin-top: 28px; display: flex; justify-content: flex-end; }
.arrow-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--green-ink); transition: color .15s; }
.arrow-link:hover { color: var(--green-ink-hover); }
.arrow-link .arr, .card .arr { display: inline-block; transition: transform .15s var(--ease); }
.arrow-link:hover .arr { transform: translateX(3px); }

/* category tabs and topic chips */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 48px; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; color: var(--body); white-space: nowrap;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease); }
.pill-link:hover { border-color: var(--green-ink); color: var(--green-ink); }
.pill-link[aria-current="page"] { background: var(--green); border-color: var(--green); color: #000; font-weight: 600; }
.pill-link small { font-size: 12px; font-weight: 500; color: var(--faint); transition: color .15s; }
.pill-link:hover small { color: var(--green-ink); }
.pill-link[aria-current="page"] small { color: rgba(0, 0, 0, .55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- post card ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card__link { display: flex; flex: 1; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--night); }
.card__media > img, .card__media > .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s var(--ease); }
.card:hover .card__media > img, .card:hover .card__media > .cover { transform: scale(1.05); }
.label { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; background: var(--green); color: #000;
  font-family: var(--font); font-size: 12px; line-height: 16px; font-weight: 600; }
.card__media .label { position: absolute; right: 12px; top: 12px; z-index: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px 24px 12px; }
.card__date { color: var(--muted); }
.card__title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: var(--heading);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s var(--ease); }
.card:hover .card__title { color: var(--green-ink); }
.card__excerpt { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--green-ink); }
.card:hover .card__more .arr { transform: translateX(3px); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 24px; }
.tag-chip { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 12px; line-height: 16px; color: var(--muted);
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease); }
.tag-chip:hover { border-color: var(--green-ink); color: var(--green-ink); background: var(--green-soft); }

/* ---------- generated cover (posts without an image), matches Cushion's header graphics ---------- */
.cover { container-type: inline-size; position: relative; overflow: hidden; color: #fff; font-family: var(--font-brand);
  background: radial-gradient(60% 55% at 62% -8%, rgba(85, 255, 0, .32), rgba(85, 255, 0, 0) 70%), #050605; }
.cover__in { position: absolute; inset: 0; padding: 14cqw 6.5cqw 6cqw; display: flex; flex-direction: column; }
.cover__pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 1cqw; padding: .9cqw 1.9cqw; border-radius: 99px;
  font-size: 1.7cqw; font-weight: 600; color: var(--green);
  background: rgba(85, 255, 0, .07); box-shadow: inset 0 0 0 1px rgba(85, 255, 0, .32); }
.cover__pill i { width: .75cqw; height: .75cqw; border-radius: 50%; background: var(--green); box-shadow: 0 0 1.2cqw var(--green); }
.cover__title { margin-top: 2.2cqw; font-size: 5.6cqw; line-height: 1.12; font-weight: 800; letter-spacing: -.035em; max-width: 86%; }
.cover__title b { color: var(--green); font-weight: 800; }
.cover__bars { margin-top: auto; display: flex; align-items: flex-end; gap: 1.3cqw; height: 13cqw; width: 54%; }
.cover__bars span { flex: 1; border-radius: .9cqw; background: linear-gradient(180deg, #7dff3c, #3fc400);
  box-shadow: 0 0 2.2cqw rgba(85, 255, 0, .35); }
.cover__bars span.low { background: linear-gradient(180deg, #ffc24d, #f39c00); box-shadow: 0 0 2.2cqw rgba(255, 176, 32, .4); }
.cover__mark { position: absolute; right: 5cqw; bottom: 5.4cqw; font-size: 2.3cqw; font-weight: 800; letter-spacing: -.03em; }
.cover__mark b { color: var(--green); }

/* ---------- post page ---------- */
.post { padding: 48px 0 24px; }
@media (min-width: 640px) { .post { padding-top: 64px; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: var(--green-ink); }
.crumbs [aria-current] { color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.post-meta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); }
.post-meta .label { font-size: 13px; line-height: 18px; }
.post-title { margin: 16px 0 0; font-size: 32px; line-height: 1.18; font-weight: 800; letter-spacing: -.035em; color: var(--heading); text-wrap: balance; }
@media (min-width: 640px) { .post-title { font-size: 42px; line-height: 1.15; } }
.post-dek { margin: 16px 0 0; font-size: 17px; line-height: 29px; color: var(--muted); text-wrap: pretty; }
.byline { margin-top: 28px; padding: 16px 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; }
.byline__author { display: flex; align-items: center; gap: 12px; }
.byline__name { display: block; font-size: 14px; font-weight: 700; color: var(--body); transition: color .15s; }
.byline__role { display: block; font-size: 13px; color: var(--muted); }
.byline__author:hover .byline__name { color: var(--green-ink); }
.avatar { position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; font-weight: 700; color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 96px; height: 96px; font-size: 32px; }
.avatar--md { width: 80px; height: 80px; font-size: 26px; }
.share { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--muted);
  display: inline-grid; place-items: center; transition: color .15s, border-color .15s, background .15s, transform .15s; }
.icon-btn:hover { color: var(--green-ink); border-color: var(--green-ink); background: var(--green-soft); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 4px 8px; border-radius: 6px;
  background: var(--night); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s; }
.icon-btn.is-copied .tip { opacity: 1; transform: translate(-50%, 0); }

.post-hero { margin-top: 32px; position: relative; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: var(--r-card); background: var(--night); }
.post-hero > img, .post-hero > .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.toc { margin-top: 32px; padding: 24px; border-radius: var(--r-box); border: 1px solid var(--line); background: var(--surface-1); }
.toc__label { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc > ul > li + li { margin-top: 10px; }
.toc__row { display: flex; align-items: flex-start; gap: 4px; }
.toc__toggle, .toc__spacer { flex: 0 0 22px; height: 20px; display: grid; place-items: center; border-radius: 4px; color: var(--muted); }
.toc__toggle:hover { color: var(--green-ink); }
.toc__toggle svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.toc__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.toc a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--body); transition: color .15s; }
.toc a:hover { color: var(--green-ink); }
.toc__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease-out; }
.toc__sub[data-open] { grid-template-rows: 1fr; }
.toc__sub > div { overflow: hidden; }
.toc__sub ul { margin: 8px 0 0 10px; padding-left: 16px; border-left: 1px solid var(--line-strong); }
.toc__sub li + li { margin-top: 8px; }
.toc__sub a { font-size: 13.5px; color: var(--muted); }

/* prose */
.prose { margin-top: 40px; font-size: 16px; line-height: 29px; color: var(--body); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 22px; }
.prose h2 { margin: 52px 0 18px; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; color: var(--heading); }
.prose h3 { margin: 36px 0 12px; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--heading); }
.prose h4 { margin: 28px 0 10px; font-size: 17px; font-weight: 700; color: var(--heading); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0; }
.prose strong { font-weight: 700; color: var(--heading); }
.prose a { font-weight: 500; color: var(--heading); text-decoration: underline; text-decoration-color: var(--green-ink);
  text-decoration-thickness: 1.5px; text-underline-offset: 3.5px; transition: color .15s, text-decoration-color .15s; }
.prose a:hover { color: var(--green-ink); text-decoration-color: var(--green); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin: 0 0 10px; padding-left: 4px; }
.prose li::marker { color: var(--green-ink); font-weight: 700; }
.prose ul > li::marker { color: #3fc400; }
.prose hr { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: 2px 5px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); font-family: var(--font-mono); font-size: .82em; }
.prose pre { margin: 0 0 22px; padding: 18px 20px; border-radius: 14px; background: var(--night); color: #e8ece6; overflow-x: auto; font-size: 14px; line-height: 22px; }
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.prose img { margin: 8px 0 28px; width: 100%; height: auto; border-radius: var(--r-box); border: 1px solid var(--line); }
.prose .callout { margin: 28px 0; padding: 18px 22px; border-radius: 14px; background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green-ink), inset 0 0 0 1px var(--green-line); }
.prose .callout p:last-child { margin-bottom: 0; }
.table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 22px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--heading); font-weight: 700; white-space: nowrap; }
.prose th + th, .prose td + td { border-left: 1px solid var(--line); }
.prose tr:not(:last-child) td, .prose thead th, .prose tr:first-child th { border-bottom: 1px solid var(--line); }
.prose tbody tr { transition: background .15s; }
.prose tbody tr:hover { background: var(--surface-1); }
.prose td:first-child { font-weight: 600; color: var(--heading); }

.post-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-foot__row .mono { color: var(--muted); margin-right: 4px; }
.author-card { margin-top: 28px; display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--r-box);
  border: 1px solid var(--line); background: var(--surface-1); transition: border-color .15s, box-shadow .2s; }
.author-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.author-card .avatar { width: 56px; height: 56px; font-size: 20px; }
.author-card__kicker { color: var(--muted); }
.author-card__name { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: var(--heading); transition: color .15s; }
.author-card:hover .author-card__name { color: var(--green-ink); }
.author-card__bio { margin: 6px 0 0; font-size: 14px; line-height: 22px; color: var(--muted); }

.related { margin-top: 72px; }

/* ---------- CTA + footer ---------- */
.cta { padding: 80px var(--gutter); text-align: center; }
.cta h2 { margin: 0 auto 20px; max-width: 720px; font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--heading); text-wrap: balance; }
.cta p { margin: 0 auto 32px; max-width: 640px; font-size: 18px; line-height: 28px; color: var(--muted); }
.btn-row { display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: center; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 16px; font-weight: 700; transition: background .2s, color .2s, box-shadow .2s, transform .18s; }
.btn:hover { transform: translateY(-1px); }
.btn--green { background: var(--green); color: #000; box-shadow: 0 0 0 1px rgba(43, 138, 0, .35), 0 8px 24px rgba(85, 255, 0, .28); }
.btn--green:hover { background: var(--green-hover); box-shadow: 0 0 0 1px var(--green-ink), 0 12px 32px rgba(85, 255, 0, .4); }
.btn--ghost { color: var(--heading); box-shadow: inset 0 0 0 2px var(--heading); }
.btn--ghost:hover { background: var(--heading); color: #fff; }
.btn .arr { transition: transform .15s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.footer { display: flex; flex-direction: column; align-items: center; gap: 64px; padding: 0 8px 40px; }
@media (min-width: 768px) { .footer { padding-inline: 24px; } }
.footer__panel { width: 100%; max-width: 1648px; border-radius: var(--r-card); overflow: hidden; position: relative; color: #fff; text-align: center;
  background: radial-gradient(50% 70% at 50% -10%, rgba(85, 255, 0, .34), rgba(85, 255, 0, 0) 70%), #050605; }
.footer__panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent); mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent); }
.footer__panel-in { position: relative; padding: 80px 24px; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 768px) { .footer__panel-in { padding-block: 112px; } }
.footer__panel h2 { margin: 0; max-width: 820px; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
@media (min-width: 768px) { .footer__panel h2 { font-size: 52px; } }
.footer__panel h2 b { color: var(--green); font-weight: 700; }
.footer__panel p { margin: 20px 0 0; max-width: 560px; font-size: 17px; line-height: 1.6; font-weight: 500; color: rgba(255, 255, 255, .78); }
@media (min-width: 768px) { .footer__panel p { font-size: 19px; } }
.footer__panel .btn { margin-top: 36px; }
.footer__meta { width: 100%; max-width: var(--max); display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start;
  padding-inline: var(--gutter); }
.footer__brand p { margin: 12px 0 0; max-width: 300px; font-size: 14px; line-height: 22px; color: var(--muted); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__col h3 { margin: 0 0 12px; color: var(--faint); font-weight: 600; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a, .footer__col button { font-size: 14px; font-weight: 600; color: var(--body); transition: color .15s; text-align: left; }
.footer__col a:hover, .footer__col button:hover { color: var(--green-ink); }
.footer__legal { width: 100%; max-width: var(--max); padding: 24px var(--gutter) 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--faint); }

/* ---------- list pages ---------- */
.list-page { padding-bottom: 80px; }
.month + .month { margin-top: 64px; }
.month__head { margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.month__head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.015em; color: var(--heading); }
.month__head span { color: var(--muted); }
.empty { padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); text-align: center; color: var(--muted); }
.empty p { margin: 0 0 18px; }

.topic-card, .author-tile { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.topic-card:hover, .author-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.topic-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.topic-card h2, .author-tile h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--heading); transition: color .15s; }
.topic-card:hover h2, .author-tile:hover h2 { color: var(--green-ink); }
.topic-card__count { flex: 0 0 auto; padding-top: 3px; color: var(--muted); }
.topic-card p, .author-tile p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card .arrow-link { margin-top: 18px; }
.author-tile { align-items: center; text-align: center; padding: 32px; }
.author-tile h2 { margin-top: 16px; }
.author-tile__role { margin-top: 4px; font-size: 13px; color: var(--green-ink); font-weight: 600; }
.author-tile__count { margin-top: 14px; color: var(--muted); }
.list-head { padding: 56px 0 0; }
.list-head h1 { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--heading); }
.list-head p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.author-hero { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.author-hero h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--heading); }
.author-hero__role { margin-top: 4px; font-weight: 600; color: var(--green-ink); }
.author-hero p { margin: 10px 0 0; max-width: 680px; color: var(--muted); line-height: 1.6; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--night); color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-float); transition: opacity .2s, transform .2s var(--ease); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover, .topic-card:hover, .author-tile:hover, .btn:hover, .nav__cta:hover { transform: none; }
  .card:hover .card__media > img, .card:hover .card__media > .cover { transform: none; }
}
