/* Shared design for all pages. Keep Ghost's editor cards and membership widgets functional. */
html[data-color-scheme="light"] { background: #fff; color-scheme: light; }
body.zb-theme {
    --color-contrast: #151515;
    --color-background: #fff;
    --color-background-100: #fafafa;
    --color-background-200: #f5f5f5;
    --color-background-300: #ececec;
    --color-foreground: #252525;
    --color-secondary: #626262;
    --color-mute: #666;
    --color-border: #dedede;
    --ghost-accent-color: #151515;
    --color-accent-foreground: #fff;
    --font-family-headings: "Zagabond Serif", Georgia, serif;
    --font-family-body: "Zagabond Sans", Arial, sans-serif;
    --font-family-button: "Zagabond Sans", Arial, sans-serif;
    --container-small--width: 680px;
    --container--width: 680px;
    --container-wide--width: 860px;
    --header--min-height: 64px;
    --radius-1: 2px;
    --radius-2: 3px;
    --radius-3: 4px;
    background: #fff;
    color: #252525;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-body);
    font-variation-settings: normal;
    overflow-wrap: break-word;
}
.zb-site .zb-content { display: block; padding: 0 0 40px; gap: 0; margin: 0; min-width: 0; }
.zb-desktop-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #999; }
.zb-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.zb-footer > a { display: inline-flex; min-height: 44px; align-items: center; color: #626262; }
.zb-inner h1, .zb-inner h2, .zb-inner h3, .zb-inner h4 { color: #151515; font-family: var(--font-family-headings); font-weight: 400; font-variation-settings: normal; font-optical-sizing: auto; }
.zb-inner h1 { font-size: clamp(48px, 5.8vw, 72px); line-height: 1.07; letter-spacing: -.035em; }
.zb-inner h2 { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; }
.zb-inner h3 { font-size: 27px; line-height: 1.25; letter-spacing: -.012em; }
.zb-page-header { padding: 40px 0 30px; margin-bottom: 28px; border-bottom: 1px solid var(--zb-rule); }
.zb-page-header-with-portrait { display: grid; grid-template-columns: minmax(0,1fr) 150px; align-items: center; gap: 40px; }
.zb-site .zb-eyebrow { margin: 0 0 12px; font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .1em; color: #666; }
.zb-site .zb-page-lede { max-width: 680px; margin-top: 16px; font-size: 16px; line-height: 1.65; color: #555; }
.zb-about-portrait { margin: 0; width: 150px; overflow: hidden; aspect-ratio: 2290/2509; }
.zb-about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transform-origin: 50% 62%; }
.zb-author-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 20px; font-size: 14px; }
.zb-author-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; }
.zb-theme .post-content { margin: 0; font-family: var(--font-family-body); font-size: 17px; line-height: 1.8; color: #292929; }
.zb-theme .post-content > * { width: auto; max-width: 680px; margin: 0 auto 20px; }
.zb-theme .post-content > :last-child { margin-bottom: 0; }
.zb-theme .post-content > :where(h1,h2,h3,h4,h5,h6) { margin-top: 36px; margin-bottom: 12px; scroll-margin-top: 24px; }
.zb-theme .post-content > :first-child { margin-top: 0; }
.zb-theme .post-content > :where(h2+h3,h3+h4) { margin-top: 22px; }
.zb-theme .post-content a { text-decoration: underline; text-decoration-color: #aaa; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.zb-theme .post-content :where(ul,ol) { padding-left: 24px; }
.zb-theme .post-content li { padding-left: 4px; margin: 5px 0; }
.zb-theme .post-content :where(strong,b) { font-weight: 600; font-variation-settings: normal; }
.zb-theme .post-content blockquote { margin-top: 28px; margin-bottom: 28px; padding: 4px 0 4px 22px; border-left: 1px solid #aaa; font-family: var(--font-family-headings); font-size: 27px; font-weight: 400; line-height: 1.35; }
.zb-theme .post-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.zb-theme .post-content td, .zb-theme .post-content th { padding: 12px 8px; border-bottom: 1px solid var(--zb-rule); vertical-align: top; text-align: left; }
.zb-theme .post-content td:first-child { width: 28%; color: #666; padding-left: 0; }
.zb-theme .post-content td:last-child { padding-right: 0; }
.zb-theme .post-content figure { margin-top: 28px; margin-bottom: 28px; }
.zb-theme .post-content img { max-width: 100%; height: auto; border-radius: 2px; }
.zb-theme .post-content figcaption { margin: 8px auto 0; font-family: var(--font-family-body); font-size: 12px; line-height: 1.5; color: #626262; text-align: left; }
.zb-theme .post-content .kg-width-wide { max-width: 860px; }
.zb-theme .post-content .kg-width-full { max-width: 100%; margin-left: 0; margin-right: 0; }
.zb-theme .post-content iframe, .zb-theme .post-content video { max-width: 100%; }
.zb-theme .post-content pre { overflow-x: auto; font-size: 14px; line-height: 1.6; padding: 20px; }
.zb-theme .post-content code { overflow-wrap: anywhere; }
.zb-theme .post-content .kg-bookmark-title { font-family: var(--font-family-body); font-size: 16px; font-weight: 500; }
.zb-theme .post-content .kg-bookmark-description { font-size: 14px; }
.zb-theme .post-content .kg-bookmark-container { border: 1px solid var(--zb-rule); box-shadow: none; border-radius: 3px; }
.zb-theme .post-content hr { border: 0; border-top: 1px solid var(--zb-rule); margin-top: 32px; margin-bottom: 32px; }
.zb-press-list { margin: 0; padding: 0; }
.zb-press-item { margin: 0; border-bottom: 1px solid var(--zb-rule); }
.zb-press-link { display: flex; align-items: center; gap: 26px; padding: 24px 0; }
.zb-press-image { flex: 0 0 140px; width: 140px; aspect-ratio: 4/3; background: #f5f5f5; overflow: hidden; }
.zb-press-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zb-press-text { flex: 1 1 auto; min-width: 0; }
.zb-press-text h2 { max-width: 740px; font-size: 30px; line-height: 1.18; }
.zb-press-action { display: inline-block; margin-top: 10px; font-size: 12px; color: #666; }
.zb-press-link > .zb-arrow { margin-left: auto; }
.zb-media-context { padding: 32px 0 0; }
.zb-media-context .post-content > * { max-width: none; }
.zb-media-context .post-content { font-size: 15px; }
.zb-media-context .post-content h2 { font-size: 27px; }
.zb-writing-list, .zb-writing-list > li { list-style: none; margin: 0; padding: 0; }
.zb-writing-list > li { border-bottom: 1px solid var(--zb-rule); }
.zb-writing-entry { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 24px; padding: 24px 0; }
.zb-writing-entry > time { font-size: 11px; line-height: 1.6; color: #666; padding-top: 5px; }
.zb-writing-entry h2 { font-size: 30px; line-height: 1.18; }
.zb-writing-entry h2 a { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.zb-writing-entry p { max-width: 700px; margin-top: 9px; font-size: 14px; line-height: 1.65; color: #626262; }
.zb-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 24px 0 0; font-size: 13px; }
.zb-pagination a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; }
.zb-pagination span { color: #666; }
.zb-site .zb-section-heading { font-family: var(--font-family-body); font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: #666; }
.zb-empty { padding: 20px 0; color: #666; }
.zb-theme .post { padding: 0; }
.zb-theme .post-header { max-width: 860px; margin: 0 auto 30px; padding-top: 30px; }
.zb-back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 18px; font-size: 12px; color: #626262; }
.zb-theme .post-header-container { display: block; width: 100%; text-align: left; }
.zb-theme .post-title { margin: 0; font-family: var(--font-family-headings); font-weight: 400; font-size: clamp(42px,5vw,64px); line-height: 1.1; letter-spacing: -.025em; }
.zb-theme .post-excerpt { max-width: 720px; margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: #626262; }
.zb-theme .post-tag { display: inline-block; margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #666; }
.zb-theme .post-header-info { width: 100%; max-width: 100%; margin-top: 24px; padding-top: 16px; font-size: 12px; border-color: var(--zb-rule); }
.zb-theme .post-header-author-images { display: none; }
.zb-theme .post-header-author { font-size: 13px; color: #252525; }
.zb-theme .post-header-meta { font-size: 11px; line-height: 1.5; }
.zb-theme .post-footer { margin-top: 26px; }
.zb-theme .post-footer .post-tags { font-size: 12px; }
.zb-read-next { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--zb-rule); }
.zb-read-next .zb-writing-entry { padding: 20px 0; }
.zb-read-next .zb-writing-entry h2 { font-size: 26px; }
.zb-theme .toc { position: relative; top: auto; right: auto; transform: none; clip-path: none; display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; visibility: visible; opacity: 1; width: 680px; max-width: 100%; max-height: none; margin: 0 auto 24px; padding: 8px 12px; background: #fafafa; border: 1px solid var(--zb-rule); border-radius: 2px; font-size: 13px; }
.zb-theme .toc:hover, .zb-theme .toc:has(a:focus-visible) { clip-path: none; }
.zb-theme .toc-title { display: block; font-weight: 400; font-variation-settings: normal; }
.zb-theme .toc-button { display: inline-flex; flex: 0 0 auto; min-width: 32px; }
.zb-theme .toc > ul { flex: 0 0 100%; padding: 10px 0 4px; }
.zb-theme .toc a, .zb-theme .toc:hover a { padding: 5px 0; }
.zb-theme .toc a::after { display: none; }
.zb-theme .toc-button[aria-expanded="false"] ~ ul { display: none; }
.zb-theme .toc-hidden { display: none; }
.zb-theme .section { margin-top: 36px; }
.zb-theme .section-title { font-family: var(--font-family-headings); font-size: 30px; }
.zb-account { max-width: 680px; margin: 0 auto; padding-top: 40px; }
.zb-account h1 { margin-bottom: 18px; }
.zb-account p + p { margin-top: 16px; }
@media (max-width: 700px) {
    .zb-site .zb-content { padding-bottom: 28px; }
    .zb-page-header { padding: 26px 0 24px; margin-bottom: 24px; }
    .zb-inner h1 { font-size: 48px; }
    .zb-inner h2 { font-size: 29px; }
    .zb-inner h3 { font-size: 24px; }
    .zb-page-header-with-portrait { grid-template-columns: minmax(0,1fr) 76px; gap: 18px; align-items: start; }
    .zb-page-header-with-portrait h1 { font-size: clamp(35px,9.6vw,48px); }
    .zb-about-portrait { width: 76px; }
    .zb-site .zb-page-lede { margin-top: 12px; font-size: 15px; }
    .zb-page-header-with-portrait .zb-page-lede { font-size: 13px; line-height: 1.55; }
    .zb-theme .post-content { font-size: 16px; line-height: 1.75; }
    .zb-theme .post-content > * { margin-bottom: 18px; }
    .zb-theme .post-content > :where(h1,h2,h3,h4) { margin-top: 30px; margin-bottom: 10px; }
    .zb-theme .post-content > :first-child { margin-top: 0; }
    .zb-theme .post-content td, .zb-theme .post-content th { padding: 10px 6px; font-size: 13px; }
    .zb-theme .post-content table { table-layout: fixed; overflow-wrap: anywhere; }
    .zb-theme .post-content td:first-child { width: 30%; }
    .zb-theme .post-content blockquote { font-size: 24px; padding-left: 16px; }
    .zb-press-link { gap: 16px; padding: 20px 0; }
    .zb-press-image { flex-basis: 72px; width: 72px; aspect-ratio: 1; }
    .zb-press-text h2 { font-size: 23px; }
    .zb-press-action { margin-top: 8px; font-size: 10px; }
    .zb-media-context { padding-top: 28px; }
    .zb-writing-entry { display: block; padding: 20px 0; }
    .zb-writing-entry > time { display: block; padding: 0; margin-bottom: 7px; font-size: 10px; }
    .zb-writing-entry h2, .zb-read-next .zb-writing-entry h2 { font-size: 26px; }
    .zb-writing-entry h2 a { gap: 16px; }
    .zb-writing-entry p { font-size: 13px; margin-top: 8px; }
    .zb-theme .post-header { padding-top: 16px; margin-bottom: 24px; }
    .zb-back-link { margin-bottom: 12px; }
    .zb-theme .post-title { font-size: 39px; line-height: 1.1; }
    .zb-theme .post-excerpt { font-size: 16px; }
    .zb-theme .post-header-info { margin-top: 20px; }
    .zb-read-next { margin-top: 36px; padding-top: 20px; }
    .zb-account { padding-top: 28px; }
}
@media (max-width: 360px) {
    .zb-page-header-with-portrait { grid-template-columns: 1fr; }
    .zb-about-portrait { display: none; }
    .zb-press-image { flex-basis: 58px; width: 58px; }
    .zb-press-link { gap: 12px; }
}
