html { scroll-padding-top: 0; }
html body { padding-bottom: var(--cookie-space, 0px); }
html body > main {
  box-sizing: border-box; width: min(100%, 960px); max-width: 960px;
  margin: 0 auto; padding: 2.5rem 1.5rem; background: transparent;
  border-radius: 0; box-shadow: none;
}
html body > main:has(.article-body) { max-width: 800px; }
html body > main:has(#contact-form) { max-width: 720px; }
html main h1 { line-height: 1.25; }
html main h2 { line-height: 1.35; }
html main p, html main li { line-height: 1.65; }
html main > .profile-intro { max-width: none; padding-top: 0; }
html .article-body { font-size: 1.0625rem; line-height: 1.7; }
html .article-body h2 { margin-top: 2rem; }
html .article-body h2[id] { scroll-margin-top: 6rem; }
html .article-meta, html .article-byline { font-size: .875rem; }
html main:has(#contact-form) > h2 { font-size: 1.25rem; margin: 2rem 0 1rem; }
html #contact-form { margin-top: 1rem; }
html body > header.site-header {
  box-sizing: border-box; display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(140px, 1fr);
  gap: 1.5rem; padding: .5rem max(1.5rem, calc((100% - 1200px) / 2)) !important;
  align-items: center; position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg); box-shadow: 0 1px 0 var(--border);
}
html .site-brand { gap: .6rem; justify-self: start; font-size: .9375rem; text-decoration: none; font-weight: 600; }
html .site-brand .brand-mark { display: block; width: 28px; height: 28px; flex-shrink: 0; border-radius: 2px; background: url('/favicon.ico') center / contain no-repeat; }
html .site-brand > span:not(.brand-mark) { max-width: 10rem; line-height: 1.2; text-align: left; }
html #site-navigation { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1rem !important; }
html #site-navigation a { font-size: .9375rem; border-bottom: 2px solid transparent; box-sizing: border-box; text-decoration: none; }
html #site-navigation a:hover { text-decoration: underline; }
html #site-navigation a[aria-current] { border-bottom-color: currentColor; }
html .site-header .theme-control { justify-self: end; }
html .site-header .nav-toggle { display: none; }
html .footer-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; margin-bottom: 1rem; }
html .footer-navigation a { display: inline-flex; align-items: center; min-height: 2.75rem; }
html footer { padding: 1.5rem 1rem; margin-top: 1rem !important; font-size: .875rem; }
html .scroll-container { flex-wrap: wrap; align-items: center; gap: .5rem; padding: 0; overflow: visible; }
html .scroll-container a { display: inline-flex; align-items: center; min-height: 2.75rem; border-radius: 4px; font-size: .875rem; }
html .pagination-gap { flex-shrink: 0; white-space: nowrap; }
html .article-breadcrumbs { font-size: .875rem; margin-bottom: 1.5rem; }
html .article-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .65rem; padding: 0; margin: 0; }
html .article-breadcrumbs li:not(:first-child)::before { content: '/'; color: var(--meta); margin-right: .65rem; }
html .article-breadcrumbs a { font-weight: 500; }
html .article-toc { margin: 1.5rem 0; border-block: 1px solid var(--border); padding: .5rem 0; }
html .article-toc summary { cursor: pointer; font-weight: 600; padding: .65rem 0; }
html .article-toc ol { padding-left: 1.5rem; margin: .25rem 0 1rem; }
html .article-toc a { display: inline-block; padding: .35rem 0; font-weight: 500; }
html .article-index .article-list-meta { display: flex; flex-wrap: wrap; gap: .2rem .75rem; color: var(--meta); font-size: .8125rem; margin-top: .4rem; }
html .article-index .article-list-meta time { font-size: inherit; }
html .article-index .article-list-summary { margin: .5rem 0 0; font-size: .9375rem; }
html .category-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; }
html .category-index li { border-bottom: 1px solid var(--border); padding: .75rem 0; }
html .category-index a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.75rem; }
html .category-index .category-count { color: var(--meta); font-size: .8125rem; font-weight: 400; }
html #cookie-banner { box-sizing: border-box; position: static !important; width: 100%; padding: .75rem 1.25rem !important; box-shadow: none !important; text-align: left; font-size: .8125rem !important; line-height: 1.5; }
html #cookie-banner.cookies-ready { position: fixed !important; }
html #cookie-banner:not(.cookies-ready) button { display: none; }
/* The compact profile layout is exclusive to the homepage. */
html body.home-site { background: var(--main-bg); --header-bg: var(--main-bg); --header-color: var(--text); }
html body.home-site > header.site-header { padding-inline: max(1.5rem, calc((100% - 912px) / 2)) !important; grid-template-columns: minmax(44px, 1fr) auto auto; }
html .home-site .site-brand .brand-mark { width: 32px; height: 32px; }
html .home-site #site-navigation a { font-weight: 500; }
html .home-site #site-navigation a[aria-current] { color: var(--link) !important; }
html body > main.home-page { padding-top: 3rem; padding-bottom: 1.5rem; }
html .home-page > section { padding-block: 2rem; }
html .home-page > .profile-intro { padding-top: 0; padding-bottom: 2rem; }
html .home-page h1 { font-size: 2rem; margin-bottom: .5rem; font-weight: 650; letter-spacing: 0; }
html .home-page .profile-role { font-size: 1.125rem; margin-bottom: .75rem; }
html .home-page .profile-description { color: var(--meta); margin: 0; font-size: 1.0625rem; }
html .home-page .profile-links { gap: 1.5rem; margin-top: 1rem; }
html .home-page .profile-links a { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
html .home-page h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
html .home-page .selected-readings h2 a { color: var(--text); }
html .home-page .selected-readings > ul { gap: 1.25rem; }
html .home-page .reading-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 4px; padding: 1.25rem; }
html .home-page .reading-category { color: var(--meta); font-size: .75rem; font-weight: 600; text-transform: uppercase; margin-bottom: .65rem; }
html .home-page .reading-card h3 { font-size: 1.0625rem; line-height: 1.45; font-weight: 600; margin-bottom: .6rem; }
html .home-page .reading-description { color: var(--meta); font-size: .9375rem; line-height: 1.55; margin-bottom: .75rem; }
html .home-page .reading-link { align-self: flex-start; display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; margin-top: auto; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
html .home-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
html .home-section-heading h2 { margin: 0; }
html .home-section-heading > a, html .home-archive-link a { font-weight: 500; font-size: .875rem; }
html .home-section-heading > a { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; }
html .home-page .article-index { border-top: 1px solid var(--border); }
html .home-page .article-index > li { padding: 1rem 0; }
html .home-page .article-index > li > a { display: block; color: var(--text); font-weight: 500; line-height: 1.5; }
html .home-page .article-list-meta { margin-top: .35rem; }
html .home-page .home-archive-link { margin: .75rem 0 0; }
html .home-archive-link a { display: inline-flex; align-items: center; min-height: 2.75rem; }
html .home-footer { border-top: 1px solid var(--border); }
html .home-footer-inner { max-width: 912px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
html .home-footer .brand-mark { width: 28px; height: 28px; flex-shrink: 0; background: url('/favicon.ico') center / contain no-repeat; }
html .home-footer .footer-navigation { margin: 0; gap: .25rem 1.25rem; justify-content: flex-end; }
html .home-footer a { font-weight: 400; }
@media (max-width: 1050px) and (min-width: 761px) {
  html body > header.site-header { gap: 1rem; grid-template-columns: minmax(100px, 1fr) auto auto; }
  html .site-header .theme-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 760px) {
  html body.home-site > header.site-header { padding-inline: 1rem !important; grid-template-columns: minmax(0, 1fr) auto auto; }
  html body > main.home-page { padding-top: 1.75rem; }
  html .home-page h1 { font-size: 1.75rem; }
  html .home-page > section { padding-block: 1.5rem; }
  html .home-page .selected-readings > ul { grid-template-columns: 1fr; gap: 1rem; }
  html .home-page .reading-card { padding: 1rem 1.25rem; }
  html .home-footer .footer-navigation { gap: .25rem .85rem; }
  html body > main { padding: 1.5rem 1rem; }
  html .article-body h2[id] { scroll-margin-top: 1rem; }
  html body > header.site-header { position: relative; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; padding: .5rem 1rem !important; }
  html .site-brand { grid-column: 1; font-size: .875rem; gap: .4rem; }
  html .site-brand > span:not(.brand-mark) { max-width: 5rem; }
  html .site-brand .brand-mark { width: 24px; height: 24px; }
  html .site-header .theme-control { grid-column: 3; grid-row: 1; }
  html .site-header .theme-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html .site-header .theme-control select { width: 5.9rem; }
  html #site-navigation { grid-column: 1 / -1; grid-row: 2; width: 100%; gap: .25rem .8rem !important; }
  html .navigation-ready #site-navigation { display: none; }
  html .navigation-ready[data-menu-open] #site-navigation { display: flex; }
  html .site-header.navigation-ready .nav-toggle { display: block; grid-column: 2; grid-row: 1; padding: .5rem; min-width: 3rem; height: 2.75rem; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: var(--header-color); font: inherit; font-size: .875rem; cursor: pointer; }
  html .category-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  html #cookie-banner { padding: .75rem 1rem !important; }
  html #cookie-banner button { padding: .5rem .75rem; }
}
@media (max-width: 420px) { html .category-index { grid-template-columns: 1fr; } }
@media print {
  html body { padding-bottom: 0; }
  html body > header.site-header, html #cookie-banner, html .article-toc, html footer { display: none !important; }
  html body > main { max-width: none; padding: 0; }
}
