/* Approved compact design: 22px name, 14px copy, Geist throughout. */
.zb-site {
    --zb-serif: "Zagabond Sans", Arial, sans-serif;
    --font-family-headings: "Zagabond Sans", Arial, sans-serif;
    width: calc(100% - 64px);
    max-width: 720px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.45;
}
.zb-header { min-height: 52px; border-bottom: 0; gap: 20px; }
.zb-wordmark { font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.zb-desktop-nav { gap: 24px; }
.zb-desktop-nav a { font-size: 12px; }
.zb-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-areas: "intro portrait";
    gap: 32px;
    align-items: start;
    padding: 14px 0 20px;
}
.zb-intro h1 {
    font-family: var(--zb-sans);
    font-size: var(--zb-quiet-name-size, 22px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.025em;
    white-space: normal;
}
.zb-site .zb-role {
    margin-top: 2px;
    font-family: var(--zb-sans);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #555;
}
.zb-portrait { width: 72px; }
.zb-profile-links { margin-top: 2px; gap: 0 24px; }
.zb-profile-links a, .zb-project-links a, .zb-all-writing {
    font-size: 12px;
    min-height: 28px;
    column-gap: 6px;
}
.zb-section {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 28px;
    padding: 14px 0;
}
.zb-site .zb-label, .zb-notes .zb-label {
    padding-top: 3px;
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    color: #666;
}
.zb-project-title { font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.zb-project-title a { display: inline-flex; justify-content: flex-start; gap: 8px; }
.zb-site .zb-project-description { font-size: 14px; line-height: 1.45; margin-top: 4px; max-width: 560px; }
.zb-project-links { margin-top: 0; gap: 0 24px; }
.zb-notes { padding-top: 10px; padding-bottom: 10px; }
.zb-notes .zb-label { padding-top: 5px; }
.zb-note-list li + li { border-top: 0; }
.zb-note-list a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    min-height: 30px;
    padding: 5px 0;
    gap: 18px;
}
.zb-all-writing { margin-top: 0; }
.zb-offline-copy { font-size: 14px; line-height: 1.45; letter-spacing: 0; color: #555; }
.zb-footer { padding: 6px 0; font-size: 11px; }
.zb-footer > a { min-height: 28px; }
@media (max-width: 700px) {
    .zb-site { width: auto; margin: 0 24px; font-size: 14px; }
    .zb-header { min-height: 48px; }
    .zb-hero { grid-template-columns: minmax(0, 1fr) 64px; gap: 20px; padding: 12px 0 18px; }
    .zb-intro h1 { font-size: calc(var(--zb-quiet-name-size, 22px) - 2px); }
    .zb-portrait { width: 64px; }
    .zb-profile-links { gap: 0 16px; }
    .zb-section { display: block; padding: 14px 0; }
    .zb-site .zb-label, .zb-notes .zb-label { padding: 0; margin-bottom: 6px; }
    .zb-notes { padding-bottom: 10px; }
    .zb-notes .zb-label { margin-bottom: 2px; }
    .zb-note-list a { padding: 5px 0; }
    .zb-mobile-menu { font-size: 12px; }
    .zb-mobile-menu nav { top: 47px; }
    .zb-profile-links a, .zb-project-links a, .zb-all-writing, .zb-note-list a, .zb-footer > a { min-height: 36px; }
}
@media (pointer: coarse) {
    .zb-profile-links a, .zb-project-links a, .zb-all-writing, .zb-note-list a, .zb-footer > a { min-height: 36px; }
}

/* Apply the same typography and density to the rest of the site. */
body.zb-theme {
    --font-family-headings: "Zagabond Sans", Arial, sans-serif;
    --container-small--width: 640px;
    --container--width: 640px;
    --container-wide--width: 720px;
    --header--min-height: 52px;
}
.zb-site .zb-content { padding-bottom: 24px; }
.zb-inner h1 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.zb-inner h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; font-weight: 500; }
.zb-inner h3 { font-size: 16px; line-height: 1.4; letter-spacing: 0; font-weight: 500; }
.zb-inner h4, .zb-inner h5, .zb-inner h6 { font-size: 14px; line-height: 1.4; letter-spacing: 0; font-weight: 500; }
.zb-page-header { padding: 20px 0 16px; margin-bottom: 18px; }
.zb-page-header-with-portrait { grid-template-columns: minmax(0, 1fr) 72px; gap: 28px; }
.zb-about-portrait { width: 72px; }
.zb-site .zb-eyebrow { font-size: 12px; line-height: 1.4; letter-spacing: 0; text-transform: none; margin-bottom: 6px; }
.zb-site .zb-page-lede, .zb-page-header-with-portrait .zb-page-lede { font-size: 14px; line-height: 1.45; margin-top: 8px; }
.zb-author-links { font-size: 12px; margin-bottom: 12px; gap: 0 20px; }
.zb-author-links a { min-height: 36px; }
.zb-theme .post-content { font-size: 14px; line-height: 1.55; }
.zb-theme .post-content > * { max-width: 640px; margin-bottom: 14px; }
.zb-theme .post-content > :where(h1,h2,h3,h4,h5,h6) { margin-top: 24px; margin-bottom: 8px; }
.zb-theme .post-content > :where(h2+h3,h3+h4) { margin-top: 16px; }
.zb-theme .post-content > :first-child { margin-top: 0; }
.zb-theme .post-content > :last-child { margin-bottom: 0; }
.zb-theme .post-content li { margin: 3px 0; }
.zb-theme .post-content blockquote { font-size: 16px; line-height: 1.5; margin-top: 18px; margin-bottom: 18px; padding-left: 16px; }
.zb-theme .post-content table, .zb-theme .post-content td, .zb-theme .post-content th { font-size: 13px; line-height: 1.45; }
.zb-theme .post-content td, .zb-theme .post-content th { padding-top: 8px; padding-bottom: 8px; }
.zb-theme .post-content figure { margin-top: 18px; margin-bottom: 18px; }
.zb-theme .post-content figcaption { font-size: 12px; line-height: 1.45; }
.zb-theme .post-content pre { font-size: 12px; line-height: 1.5; padding: 14px; }
.zb-theme .post-content .kg-bookmark-title { font-size: 14px; }
.zb-theme .post-content .kg-bookmark-description { font-size: 12px; }
.zb-theme .post-content hr { margin-top: 22px; margin-bottom: 22px; }
.zb-press-link { gap: 20px; padding: 16px 0; }
.zb-press-image { flex-basis: 88px; width: 88px; }
.zb-press-text h2 { font-size: 16px; line-height: 1.4; }
.zb-site .zb-press-meta { font-size: 12px; line-height: 1.4; margin-bottom: 4px; }
.zb-press-action { font-size: 12px; line-height: 1.4; margin-top: 6px; }
.zb-media-context { padding-top: 22px; }
.zb-media-context .post-content { font-size: 14px; }
.zb-media-context .post-content h2 { font-size: 18px; }
.zb-writing-entry { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 16px 0; }
.zb-writing-entry > time { font-size: 11px; line-height: 1.5; padding-top: 3px; }
.zb-writing-entry h2, .zb-read-next .zb-writing-entry h2 { font-size: 16px; line-height: 1.4; }
.zb-writing-entry p { font-size: 14px; line-height: 1.45; margin-top: 6px; }
.zb-pagination { font-size: 12px; padding-top: 16px; }
.zb-site .zb-section-heading { font-size: 12px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.zb-theme .post-header { max-width: 640px; padding-top: 16px; margin-bottom: 20px; }
.zb-back-link { font-size: 12px; min-height: 32px; margin-bottom: 10px; }
.zb-theme .post-title { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.zb-theme .post-excerpt { font-size: 14px; line-height: 1.5; margin-top: 10px; }
.zb-theme .post-tag { font-size: 11px; margin-bottom: 6px; }
.zb-theme .post-header-info { margin-top: 14px; padding-top: 10px; }
.zb-theme .post-header-author, .zb-theme .post-header-meta { font-size: 12px; line-height: 1.45; }
.zb-theme .post-footer { margin-top: 18px; }
.zb-theme .post-footer .post-tags { font-size: 11px; }
.zb-read-next { margin-top: 28px; padding-top: 16px; }
.zb-read-next .zb-writing-entry { padding: 14px 0; }
.zb-theme .toc { width: 640px; font-size: 12px; margin-bottom: 18px; }
.zb-theme .section { margin-top: 24px; }
.zb-theme .section-title { font-size: 18px; }
.zb-account { padding-top: 24px; }
@media (max-width: 700px) {
    body.zb-theme { --header--min-height: 48px; }
    .zb-inner h1 { font-size: 20px; }
    .zb-page-header { padding: 16px 0 14px; margin-bottom: 16px; }
    .zb-page-header-with-portrait { grid-template-columns: minmax(0, 1fr) 64px; gap: 20px; }
    .zb-page-header-with-portrait h1 { font-size: 20px; }
    .zb-about-portrait { width: 64px; }
    .zb-press-link { gap: 14px; padding: 14px 0; }
    .zb-press-image { flex-basis: 64px; width: 64px; }
    .zb-writing-entry { display: block; padding: 14px 0; }
    .zb-writing-entry > time { margin-bottom: 5px; padding-top: 0; }
    .zb-theme .post-title { font-size: 22px; }
    .zb-theme .post-header { padding-top: 12px; }
    .zb-back-link { min-height: 36px; }
}
