/* The Proof, ProofPR's blog.
   Idea: a press proof. Quiet paper and ink, long-read serif text, and one memorable device:
   the editor's notes in green in the right margin of each article. */

:root {
  --paper: #FFFFFF;
  --sheet: #F6F5F8;
  --ink: #14161F;
  --ink-2: #3A3E4C;
  --muted: #5A5F6E;
  --rule: #E3E1E8;
  --proof: #0E7A54;
  --proof-wash: #E3F4EC;
  --on-proof: #FFFFFF;
  --band: #14161F;
  --band-text: #EDEDF2;
  --band-muted: #A9AEBC;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --serif: Literata, Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111219; --sheet: #191A23; --ink: #F1F1F5; --ink-2: #D3D4DD; --muted: #A3A7B5; --rule: #2B2D3A;
    --proof: #4CC79A; --proof-wash: #12382A; --on-proof: #0B1F17; --band: #0A0B10; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111219; --sheet: #191A23; --ink: #F1F1F5; --ink-2: #D3D4DD; --muted: #A3A7B5; --rule: #2B2D3A;
  --proof: #4CC79A; --proof-wash: #12382A; --on-proof: #0B1F17; --band: #0A0B10; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--proof); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 12px; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--proof); background: var(--proof); color: var(--on-proof); font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); filter: none; }

.topic-link { font: 600 .88rem var(--sans); color: var(--proof); text-decoration: none; }
.topic-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dateline { font: 400 .86rem var(--sans); color: var(--muted); }
.section-title { font: 700 1.05rem var(--sans); letter-spacing: 0; padding-top: 12px; border-top: 2px solid var(--ink); margin-bottom: 8px; }

/* ---------- Top bar (same links as getproofpr.com) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.topbar-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 1.2rem var(--sans); letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.site-nav { display: flex; gap: 22px; margin-right: auto; }
.site-nav a { font: 500 .95rem var(--sans); color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--proof); }
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme-toggle .icon-sun { display: none; } :root:not([data-theme]) .theme-toggle .icon-moon { display: block; } }
.nav-toggle { display: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font-weight: 600; cursor: pointer; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--proof); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

@media (max-width: 980px) {
  .topbar-row { gap: 12px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .topbar-tools { margin-left: auto; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 520px) { .topbar-tools .btn { display: none; } }

/* ---------- Blog bar (inside pages) ---------- */
.blogbar { border-bottom: 1px solid var(--rule); }
.blogbar-row { display: flex; align-items: center; gap: 28px; min-height: 56px; }
.blogbar-name { font: 800 1.3rem var(--sans); letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.topics { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin-right: auto; }
.topics::-webkit-scrollbar { display: none; }
.topics a { font: 500 .93rem var(--sans); color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.topics a:hover, .topics a[aria-current] { color: var(--ink); border-bottom-color: var(--proof); }
@media (max-width: 760px) { .blogbar-row { flex-wrap: wrap; gap: 4px 14px; padding-block: 10px; } .blogbar .topics { order: 3; width: 100%; } .blogbar .search { margin-left: auto; } .blogbar .search input { width: 120px; } }

/* ---------- Search ---------- */
.search { display: flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); padding-left: 14px; min-width: 0; }
.search:focus-within { border-color: var(--ink); }
.search input { border: 0; background: transparent; color: var(--ink); font: 400 .93rem var(--sans); min-height: 38px; width: 190px; min-width: 0; outline: none; }
.search button { display: grid; place-items: center; width: 40px; height: 38px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.search ::placeholder { color: var(--muted); }

/* ---------- Home: masthead ---------- */
.masthead { padding-top: clamp(28px, 5vw, 56px); }
.masthead-name { font: 800 clamp(3.6rem, 14vw, 10.5rem)/.84 var(--sans); letter-spacing: -0.06em; margin-left: -0.04em; }
.masthead-rule { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(18px, 3vw, 30px); padding-top: 16px; border-top: 2px solid var(--ink); }
.masthead-rule p { font: 400 1.15rem/1.5 var(--serif); color: var(--ink-2); max-width: 52ch; }
.masthead-topics { margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }

/* ---------- Home: lead story ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 52px); align-items: center; padding-block: clamp(32px, 5vw, 56px); }
.lead-img, .card-img { display: block; text-decoration: none; color: inherit; }
.lead-img .cover { aspect-ratio: 3 / 2; }
.lead-text { display: grid; gap: 14px; align-content: center; }
.lead-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.lead-title a, .card-title a, .row h3 a { text-decoration: none; }
.lead-title a:hover, .card-title a:hover, .row h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead-dek { font: 400 1.2rem/1.6 var(--serif); color: var(--ink-2); }
@media (max-width: 860px) { .lead { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home: recent rows ---------- */
.recent { padding-bottom: clamp(36px, 5vw, 64px); }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 190px; gap: 8px 28px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.row-date { font: 500 .85rem var(--sans); color: var(--muted); display: grid; line-height: 1.1; }
.row-date span { font: 800 1.9rem var(--sans); color: var(--ink); letter-spacing: -0.03em; }
.row h3 { font-size: 1.3rem; font-weight: 700; }
.row p { font: 400 1rem/1.55 var(--serif); color: var(--ink-2); margin-top: 6px; max-width: 70ch; }
.row-topic { justify-self: end; text-align: right; }
@media (max-width: 760px) { .row { grid-template-columns: 52px minmax(0, 1fr); } .row-topic { grid-column: 2; justify-self: start; text-align: left; } .row-date span { font-size: 1.5rem; } }

/* ---------- Home: topic index ---------- */
.index { background: var(--sheet); padding-block: clamp(40px, 6vw, 72px); }
.index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: 40px; }
.index-item { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.index-item b { font: 800 1.4rem var(--sans); letter-spacing: -0.02em; }
.index-item span { font: 400 .98rem/1.55 var(--serif); color: var(--ink-2); }
.index-item em { font: 500 .85rem var(--sans); font-style: normal; color: var(--muted); }
.index-item:hover b { color: var(--proof); }

/* ---------- Cards ---------- */
.more { padding-block: clamp(40px, 6vw, 72px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; margin-top: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 10px; align-content: start; }
.card-img { margin-bottom: 6px; }
.card-img .cover { aspect-ratio: 16 / 10; }
.card-title { font-size: 1.28rem; font-weight: 700; line-height: 1.2; }
.card-dek { font: 400 .98rem/1.55 var(--serif); color: var(--ink-2); }

/* Cover image, or the typeset stand-in with printer's crop marks. */
.cover { width: 100%; object-fit: cover; border-radius: 4px; background: var(--sheet); }
.cover-type { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); overflow: hidden; }
.cover-type span { font: 700 clamp(1.05rem, 1.8vw, 1.35rem)/1.2 var(--sans); letter-spacing: -0.01em; max-width: 16ch; }
.cover-type .mark { align-self: flex-end; color: var(--ink-2); }
.cover-type::before, .cover-type::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--proof); border-style: solid; }
.cover-type::before { top: 9px; right: 9px; border-width: 1.5px 1.5px 0 0; }
.cover-type::after { bottom: 9px; left: 9px; border-width: 0 0 1.5px 1.5px; }

/* ---------- Newsletter and services ---------- */
.news { background: var(--proof-wash); padding-block: clamp(36px, 5vw, 60px); }
.news-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 56px; align-items: center; }
.news h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.news p { font: 400 1.08rem/1.6 var(--serif); color: var(--ink-2); margin-top: 10px; max-width: 54ch; }
.news-action { display: grid; justify-items: start; gap: 4px; }
.news-action iframe { width: 100%; max-width: 480px; border: 0; }
.news-action .news-small { font: 400 .85rem var(--sans); color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .news-row { grid-template-columns: minmax(0, 1fr); } }
.services { border-top: 1px solid var(--rule); }
.services-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; padding-block: 32px; }
.services p { font: 500 1.05rem/1.5 var(--sans); color: var(--ink-2); max-width: 64ch; }

/* ---------- Archive pages ---------- */
.page-head { padding-block: clamp(36px, 6vw, 72px) 8px; display: grid; gap: 14px; justify-items: start; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: .98; }
.page-sub { font: 400 1.15rem/1.6 var(--serif); color: var(--ink-2); max-width: 60ch; }
.list { padding-block: 20px clamp(48px, 7vw, 88px); }
.list .cards { padding-top: 24px; border-top: 2px solid var(--ink); }
.empty { padding-block: 32px 64px; font: 400 1.1rem/1.6 var(--serif); display: grid; gap: 10px; }
.empty a { color: var(--proof); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 52px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); font: 600 .95rem var(--sans); color: var(--ink-2); text-decoration: none; }
.pager a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(32px, 5vw, 64px) 28px; display: grid; gap: 18px; }
.crumbs { display: flex; gap: 8px; font: 500 .92rem var(--sans); color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:last-child { color: var(--proof); }
.crumbs a:hover { text-decoration: underline; }
.article-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; max-width: 19ch; }
.article-dek { font: 400 clamp(1.15rem, 2vw, 1.4rem)/1.5 var(--serif); color: var(--ink-2); max-width: 48ch; }
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--rule); margin-top: 6px; }
.byline-face, .author-face { border-radius: 50%; flex: none; }
.byline p { font: 400 .92rem/1.45 var(--sans); color: var(--muted); }
.byline b { color: var(--ink); font-weight: 600; }
.share { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font: 500 .86rem var(--sans); color: var(--ink-2); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share .icon { width: 16px; height: 16px; }
@media (max-width: 640px) { .share { margin-left: 0; width: 100%; } }
.article-hero { margin: 0 auto 12px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.article-hero figcaption { font: 400 .85rem var(--sans); color: var(--muted); margin-top: 8px; }

/* The proof sheet: contents | text | margin for notes. */
.sheet { display: grid; grid-template-columns: 190px minmax(0, 680px) 230px; column-gap: 56px; justify-content: center; padding-block: 28px clamp(48px, 7vw, 88px); }
.sheet > .toc { grid-column: 1; grid-row: 1 / span 2; }
.sheet > .entry, .sheet > .article-end { grid-column: 2; }
.sheet-plain { grid-template-columns: minmax(0, 680px); }
.sheet-plain > .entry { grid-column: 1; }
.toc { position: sticky; top: 96px; align-self: start; padding-top: 6px; }
.toc h2 { font: 700 .92rem var(--sans); letter-spacing: 0; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font: 400 .88rem/1.35 var(--sans); color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); border-left-color: var(--proof); font-weight: 600; }
@media (max-width: 1220px) {
  .sheet { grid-template-columns: minmax(0, 680px); }
  .sheet > .toc, .sheet > .entry, .sheet > .article-end { grid-column: 1; grid-row: auto; }
  .toc { position: static; margin-bottom: 28px; padding: 16px 18px; background: var(--sheet); border-radius: 6px; }
  .toc ol { border: 0; }
  .toc a { padding-left: 0; border: 0; }
}

/* Long-read text */
.entry { font: 400 1.15rem/1.75 var(--serif); color: var(--ink); min-width: 0; }
.entry > * { margin-block: 0 1.15em; }
.entry h2 { font: 800 1.75rem/1.2 var(--sans); letter-spacing: -0.025em; margin: 1.9em 0 .55em; scroll-margin-top: 90px; }
.entry h3 { font: 700 1.3rem/1.25 var(--sans); letter-spacing: -0.015em; margin: 1.5em 0 .45em; scroll-margin-top: 90px; }
.entry h4 { font: 700 1.05rem var(--sans); margin: 1.3em 0 .4em; }
.entry > h2:first-child, .entry > h3:first-child { margin-top: 0; }
.entry a { color: var(--proof); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { text-decoration-thickness: 2px; }
.entry strong { font-weight: 600; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .45em; }
.entry li::marker { color: var(--muted); }
.entry img { border-radius: 4px; }
.entry figure { margin-inline: 0; }
.entry figcaption, .entry .wp-element-caption { font: 400 .85rem/1.45 var(--sans); color: var(--muted); margin-top: 8px; }
.entry hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.entry code { font: .88em ui-monospace, 'SFMono-Regular', Menlo, monospace; background: var(--sheet); padding: 1px 6px; border-radius: 4px; }
.entry pre { font: .9rem/1.6 ui-monospace, 'SFMono-Regular', Menlo, monospace; background: var(--sheet); padding: 16px 18px; border-radius: 6px; overflow-x: auto; }
.entry blockquote, .entry .wp-block-quote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--ink); font-style: italic; }
.entry blockquote cite, .entry .wp-block-quote cite { display: block; font: 500 .88rem var(--sans); font-style: normal; color: var(--muted); margin-top: 8px; }
.entry .wp-block-table { overflow-x: auto; }
.entry table { width: 100%; border-collapse: collapse; font: 400 .95rem/1.5 var(--sans); }
.entry th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 10px 12px 10px 0; }
.entry td { border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; vertical-align: top; }
.entry .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--proof); color: var(--on-proof); font: 700 1rem var(--sans); text-decoration: none; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 46%; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 46%; }
.entry .aligncenter { margin-inline: auto; text-align: center; }
.entry .wp-block-embed iframe { width: 100%; }
.entry::after { content: ""; display: block; clear: both; }

/* The editor's margin note: inline on small screens, out in the right margin on wide ones. */
.entry .is-style-margin-note { font: 600 1rem/1.45 var(--sans); color: var(--proof); padding: 2px 0 2px 14px; border-left: 3px solid var(--proof); margin-block: 1.4em; }
@media (min-width: 1221px) {
  .entry .is-style-margin-note { float: right; clear: right; width: 230px; margin: .35em calc(-230px - 56px) 1em 0; font-size: .95rem; font-weight: 500; padding: 0 0 0 14px; border-left-width: 2px; }
}

/* Writer's blocks */
.entry .is-style-proof { border: 0; padding: 0; font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--sans); font-style: normal; letter-spacing: -0.025em; margin-block: 1.4em; }
.entry .is-style-proof p { margin: 0; }
.entry .is-style-proof p:first-child::before { content: "“"; color: var(--proof); margin-left: -.5em; }
.entry .is-style-proof p:last-of-type::after { content: "”"; color: var(--proof); }
@media (max-width: 720px) { .entry .is-style-proof p:first-child::before { margin-left: 0; } }
.entry .is-style-takeaway { background: var(--proof-wash); border-radius: 6px; padding: 20px 24px; }
.entry .is-style-takeaway > * { margin-block: 0 .6em; }
.entry .is-style-takeaway > :last-child { margin-bottom: 0; }
.entry .is-style-takeaway h3 { font-size: 1rem; color: var(--proof); margin: 0 0 .4em; }
.entry .is-style-checklist { list-style: none; padding-left: 0; }
.entry .is-style-checklist li { position: relative; padding-left: 34px; }
.entry .is-style-checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--proof); background: var(--proof-wash); }
.entry .is-style-checklist li::after { content: ""; position: absolute; left: 6px; top: .56em; width: 8px; height: 4px; border: solid var(--proof); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.entry .ppr-stat { border-top: 2px solid var(--ink); padding-top: 14px; }
.entry .ppr-stat > * { margin-block: 0 .3em; }
.entry .ppr-stat .ppr-stat-n { font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--sans); letter-spacing: -0.04em; color: var(--proof); }
.entry .ppr-stat p:not(.ppr-stat-n) { font: 400 1rem/1.5 var(--sans); color: var(--ink-2); }
.entry .ppr-download { border: 1.5px solid var(--ink); border-radius: 6px; padding: 22px 24px; }
.entry .ppr-download > * { margin-block: 0 .7em; }
.entry .ppr-download > :last-child { margin-bottom: 0; }
.entry .ppr-download h3 { margin-top: 0; }

/* ---------- End of article ---------- */
.article-end { display: grid; gap: 28px; margin-top: 24px; }
.book { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 24px 26px; border-radius: 6px; background: var(--band); color: var(--band-text); }
.book-kicker { font: 600 .88rem var(--sans); color: #4CC79A; }
.book h2 { font-size: 1.4rem; font-weight: 800; color: #FFFFFF; margin: 4px 0 6px; }
.book p { font: 400 1rem/1.55 var(--sans); color: var(--band-muted); }
.book-buy { display: grid; gap: 10px; justify-items: end; }
.book-buy b { font: 700 1.1rem var(--sans); color: #FFFFFF; }
.book .btn { background: #4CC79A; border-color: #4CC79A; color: #0B1F17; }
@media (max-width: 600px) { .book { grid-template-columns: minmax(0, 1fr); } .book-buy { justify-items: start; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font: 500 .86rem var(--sans); padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.tags a:hover { border-color: var(--ink); }
.author { display: flex; gap: 16px; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--rule); }
.author p { font: 400 .98rem/1.55 var(--serif); color: var(--ink-2); }
.author .author-name { font: 700 1.05rem var(--sans); margin-bottom: 4px; }
.author-name a { text-decoration: none; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--band); color: var(--band-text); padding-block: 56px 26px; }
.footer a { color: var(--band-text); text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid nav { display: grid; gap: 9px; align-content: start; }
.footer h2 { font: 600 .9rem var(--sans); color: var(--band-muted); letter-spacing: 0; margin-bottom: 4px; }
.footer-name { font: 800 2.4rem/1 var(--sans); letter-spacing: -0.05em; color: #FFFFFF; }
.footer-about { display: grid; gap: 14px; align-content: start; }
.footer-about p { font: 400 1rem/1.55 var(--serif); color: var(--band-muted); max-width: 40ch; }
.footer-about .footer-by { display: flex; gap: 10px; align-items: flex-start; font: 400 .9rem/1.5 var(--sans); }
.footer-by > span { min-width: 0; }
.footer-by .mark { flex: none; color: #FFFFFF; --proof: #4CC79A; }
.footer-by a { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid #2B2D3A; font: 400 .88rem var(--sans); color: var(--band-muted); }
.footer-base span:last-child { display: flex; gap: 18px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
@media print { .topbar, .blogbar, .toc, .share, .news, .services, .footer, .more { display: none !important; } .sheet { display: block; } }
