/* Original Zola styles inspired by MinervaNeue's layout and typography. */
:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f8f9fa;
  --header: #eaecf0;
  --text: #202122;
  --muted: #54595d;
  --placeholder: #72777d;
  --border: #a2a9b1;
  --subtle-border: #c8ccd1;
  --link: #36c;
  --visited: #6b4ba1;
  --powered-background: #fff;
  --powered-text: #202122;
  --serif: 'Linux Libertine', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif;
  --content-width: 993.3px;
}
@media (prefers-color-scheme: dark) {
  :root[data-color-scheme="auto"] {
    color-scheme: light dark;
    --background: #101418;
    --surface: #202122;
    --header: #27292d;
    --text: #eaecf0;
    --muted: #a2a9b1;
    --border: #72777d;
    --subtle-border: #404244;
    --link: #88a3e8;
    --visited: #a799cd;
    --powered-background: #202122;
    --powered-text: #eaecf0;
  }
}
:root[data-color-scheme="dark"] {
  color-scheme: dark;
  --background: #101418;
  --surface: #202122;
  --header: #27292d;
  --text: #eaecf0;
  --muted: #a2a9b1;
  --border: #72777d;
  --subtle-border: #404244;
  --link: #88a3e8;
  --visited: #a799cd;
  --powered-background: #202122;
  --powered-text: #eaecf0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; scrollbar-gutter: stable; }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--header); color: var(--text); font: 1rem/1.65 var(--sans); overflow-wrap: anywhere; min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
a:visited { color: var(--visited); }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
main:focus { outline: none; }
[hidden]:not([hidden="until-found"]) { display: none !important; }
.skip-link { position: absolute; z-index: 10; top: -5rem; left: 1rem; padding: .5rem 1rem; background: var(--background); }
.skip-link:focus { top: .5rem; }
.site-header { background: var(--header); box-shadow: inset 0 -1px 3px #00000014; }
.header-inner { position: relative; display: flex; align-items: center; gap: 4px; min-height: 54px; }
.site-title { font: 1rem/1.4 var(--sans); min-width: 0; }
.site-title, .site-title:visited { color: var(--text); }
.site-title:hover { text-decoration: none; }
.icon { flex-shrink: 0; vertical-align: middle; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 10px; border: 0; background: transparent; color: var(--text); border-radius: 2px; }
.icon-button:visited { color: var(--text); }
.icon-button:hover, .search-trigger:hover { background: var(--subtle-border); text-decoration: none; }
.site-menu > summary, .site-search > summary { list-style: none; }
.site-menu > summary::-webkit-details-marker, .site-search > summary::-webkit-details-marker { display: none; }
.site-menu { width: 32px; flex: 0 0 32px; }
.site-menu > summary { width: 44px; height: 44px; padding: 12px; margin-left: -12px; color: var(--muted); }
.site-menu:not([open]) .menu-backdrop { display: none; }
.menu-backdrop { position: fixed; z-index: 20; inset: 0; background: #0006; }
.menu-panel { position: fixed; z-index: 21; inset: 0 auto 0 0; width: min(275px, 80vw); overflow-y: auto; overscroll-behavior: contain; background: var(--header); box-shadow: 0 0 12px #0006; padding-bottom: 24px; font-size: .875rem; line-height: 1.4; }
.menu-group { list-style: none; margin: 0 0 22px; padding: 0; }
.menu-group li { background: var(--background); }
.menu-group li + li { border-top: 1px solid var(--subtle-border); }
.menu-group a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; font-weight: 700; color: var(--muted); }
.menu-group a:visited { color: var(--muted); }
.menu-group a:hover { box-shadow: inset 4px 0 var(--link); text-decoration: none; }
.menu-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; }
.menu-close { color: var(--muted); padding: 8px 12px; font: inherit; background: none; border: 0; }
.menu-close:hover { text-decoration: underline; }
.site-search { margin-left: auto; }
.header-actions { display: flex; justify-content: flex-end; gap: 4px; margin-left: auto; }
.site-search:not([hidden]) + .header-actions { margin-left: 0; }
.header-feed { color: var(--muted); }
.header-feed:visited { color: var(--muted); }
.theme-toggle { color: var(--muted); }
.theme-toggle .icon { width: 20px; height: 20px; stroke-width: 2.5; }
.search-trigger { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px; color: var(--muted); }
.search-trigger .icon-search { width: 18px; height: 18px; }
.search-trigger span { display: none; }
.search-panel { position: absolute; z-index: 5; top: calc(100% + 1px); right: 0; width: min(480px, calc(100vw - 32px)); padding: 16px; max-height: 75vh; overflow-y: auto; background: var(--background); border: 1px solid var(--subtle-border); box-shadow: 0 4px 12px #0003; }
.search-panel label { display: block; font-weight: 600; margin-bottom: 8px; }
.search-field { display: flex; border: 1px solid var(--border); background: var(--background); }
.search-field input { width: 100%; min-width: 0; border: 0; padding: 8px; color: var(--text); background: transparent; }
.search-field input::placeholder { color: var(--placeholder); opacity: 1; }
.search-status { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--subtle-border); }
.search-results a { font-weight: 600; }
.search-results p { margin: 4px 0 0; font-size: .875rem; color: var(--muted); }
.container { width: calc(100% - 32px); max-width: var(--content-width); margin: 0 auto; }
.site-shell { background: var(--background); min-height: 50vh; }
main { padding: 20px 0 32px; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.3; }
h1 { font-size: 1.7em; margin: 0 0 12px; }
h2 { font-size: 1.5em; margin: 24px 0 12px; }
h3 { font-size: 1.2em; }
h3, h4, h5, h6 { line-height: 1.4; margin: 20px 0 8px; }
.article-header { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--subtle-border); }
.article-header h1:last-child { margin-bottom: 0; }
.metadata { color: var(--muted); font-size: .875rem; margin: 6px 0 0; }
.micro-date { color: var(--muted); }
.taxonomy-back { display: inline-block; margin-bottom: 12px; }
.prose { overflow-x: auto; overflow-wrap: anywhere; }
.prose p { margin: .5em 0 1em; }
.prose > :first-child { margin-top: 0; }
.prose h1 { padding-bottom: 8px; border-bottom: 1px solid var(--subtle-border); }
.prose h2 { border-bottom: 1px solid var(--subtle-border); padding: 12px 0 8px; }
.prose ul, .prose ol { margin: .5em 0 1em; }
.prose ul { padding-left: 1em; }
.prose ol { padding-left: 2.25em; }
.prose li { margin: 0 0 10px; }
.prose li > ul, .prose li > ol { margin-bottom: 0; }
.prose dt { font-weight: bold; }
.prose dd { margin: 0 0 1em 1.7em; }
hr { border: 0; border-top: 1px solid var(--subtle-border); margin: 24px 0; }
/* Markdown headings already provide the section dividers on the home page. */
.home-content > hr, .home-content > .collapsible-content > hr { display: none; }
blockquote { margin: 1em 0; padding: 8px 24px 8px 32px; border-left: 3px solid var(--subtle-border); font: 1.1em/1.65 var(--serif); }
blockquote > :first-child { margin-top: 0 !important; }
blockquote > :last-child { margin-bottom: 0 !important; }
code, kbd, samp, pre { font-family: ui-monospace, 'Liberation Mono', Consolas, monospace; font-size: 1em; }
code, kbd, samp { background: var(--background); border: 1px solid var(--border); padding: .1em .25em; }
pre { padding: 16px; background: var(--surface); border: 1px solid var(--subtle-border); overflow-x: auto; white-space: pre; line-height: 1.6; }
pre code { font-size: inherit; padding: 0; border: 0; background: transparent; color: inherit; }
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
figure { margin: 1em 0; }
figcaption { color: var(--muted); font-size: .875rem; }
table { width: max-content; min-width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9375em; }
td, th { border: 1px solid var(--subtle-border); padding: 8px 12px; text-align: left; }
th { background: var(--surface); }
sup, sub { font-size: .75em; line-height: 1; }
.footnote-definition { font-size: .875em; margin: 1em 0; }
.footnote-definition p { display: inline; }
.toc { background: var(--surface); border: 1px solid var(--subtle-border); margin: 0 0 24px; font-size: .875rem; }
.toc summary { padding: 12px 16px; font-weight: 700; }
.toc nav { padding: 0 16px 12px; }
.toc ul { list-style: none; padding-left: 16px; margin: 0; }
.toc nav > ul { padding-left: 0; }
.toc a { display: inline-block; padding: 4px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h1, .section-heading h2 { margin: 0; }
.recent-posts > .section-heading { border-bottom: 1px solid var(--subtle-border); padding: 12px 0 8px; margin-top: 24px; }
.post-entry { padding: 22px 0; border-bottom: 1px solid var(--subtle-border); }
.post-entry h2 { margin: 0 0 6px; }
.post-entry .prose { margin-top: 12px; }
.post-entry .prose > :last-child { margin-bottom: 0; }
.read-more { font-size: .875rem; margin-top: 12px; }
.micro-date { color: var(--muted); font-family: var(--sans); font-size: 1.125rem; line-height: 1.65; }
.micro-date a, .micro-date a:visited { color: var(--muted); }
.taxonomies { display: flex; flex-wrap: wrap; gap: 4px 8px; border: 1px solid var(--border); background: var(--surface); padding: 4px 6px; margin-top: 24px; font-size: 1rem; }
.taxonomy-group { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.taxonomy-label { color: var(--muted); font-weight: bold; }
.taxonomy-item { display: inline-flex; align-items: baseline; gap: 8px; }
.taxonomy-item + .taxonomy-item::before { content: "|" / ""; color: var(--muted); }
.pagination { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; align-items: stretch; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--subtle-border); font-size: .875rem; }
.item-list-has-footer + .pagination { border-top: 0; }
.pagination-link { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 2px; background: var(--surface); }
.pagination-link, .pagination-link:visited { color: var(--link); }
.pagination-link:hover { background: var(--subtle-border); text-decoration: none; }
.read-more { display: flex; width: fit-content; max-width: 100%; margin-left: auto; }
.pagination-previous { justify-content: flex-start; }
.pagination-next { justify-content: flex-end; text-align: right; }
.pagination-link span { overflow-wrap: anywhere; }
.pagination-status { display: flex; align-items: center; justify-content: center; padding: 8px; color: var(--muted); white-space: nowrap; }
.pagination .icon { flex: 0 0 20px; }
.term-list { list-style: none; padding: 0; }
.term-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--subtle-border); }
.term-list li:last-child, .item-list:not(.item-list-has-footer) .post-entry:last-child { border-bottom: 0; }
.term-list .metadata { margin: 0; white-space: nowrap; }
.site-footer { background: var(--header); border-top: 1px solid var(--subtle-border); padding-bottom: 32px; font-size: .875rem; }
.page-metadata { padding: 12px 0; border-bottom: 1px solid var(--subtle-border); color: var(--muted); font-size: 1rem; }
.metadata-inner { display: flex; align-items: center; gap: 12px; min-height: 26px; }
.page-metadata p { margin: 0; }
.page-metadata time { white-space: nowrap; }
.reading-time { white-space: nowrap; }
.footer-content { padding-top: 42px; }
.footer-brand { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--subtle-border); padding-bottom: 10px; }
.footer-brand > a:first-child { font: bold 1rem/1.4 var(--sans); color: var(--text); }
.powered-by { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 119px; min-height: 44px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 2px; background: var(--powered-background); color: var(--powered-text); line-height: 1.1; }
.powered-by:visited { color: var(--powered-text); }
.powered-by:hover { border-color: var(--link); text-decoration: none; }
.powered-by span { font-size: .625rem; }
.powered-by strong { font: bold 1.25rem/1.2 var(--sans); }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.back-to-top { font-size: .8125rem; }
.site-footer p, .site-footer small { color: var(--muted); }
.footer-content > p { margin: 16px 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 16px 0; padding: 0; }
.site-footer li { display: inline-flex; align-items: baseline; }
.site-footer li + li::before { content: "•"; color: var(--muted); margin: 0 10px; }
.section-toggle { display: none; }
@media (max-width: 719px) {
  .prose h2.collapsible-heading { display: flex; align-items: baseline; gap: 8px; }
  .section-toggle { display: inline-flex; align-self: stretch; align-items: center; justify-content: center; flex: 0 0 28px; margin: -8px 0; padding: 8px 0; border: 0; background: none; }
  .section-toggle::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .section-toggle[aria-expanded="false"]::before { transform: rotate(-45deg); }
  .pagination { grid-template-columns: auto auto; }
  .pagination-status { grid-column: 1 / -1; grid-row: 1; padding: 0 8px 4px; }
  .pagination-link, .pagination-spacer { grid-row: 2; }
}
@media (min-width: 720px) {
  .container { width: calc(100% - 6.7em); }
  .header-inner { display: grid; grid-template-columns: 32px minmax(160px, 180px) minmax(0, 350px) 1fr; }
  .site-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-search { position: relative; grid-column: 3; width: 100%; margin-left: 0; }
  .header-actions { grid-column: 4; justify-self: end; }
  .menu-panel { width: min(320px, 80vw); }
  .search-trigger { min-height: 32px; width: 100%; background: var(--background); border: 1px solid var(--border); padding: 3px 8px; color: var(--placeholder); font-size: 1rem; line-height: 1.4; }
  .search-trigger span { display: inline; }
  .search-panel { left: 0; right: auto; width: min(480px, calc(100vw - 6.7em - 224px)); }
  main { padding-top: 24px; }
  .toc { max-width: 36em; }
}
@media (min-width: 1104px) {
  .container { width: 90%; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-menu[open] .menu-panel { animation: drawer-in 180ms ease-out; }
  @keyframes drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
}
@media print {
  :root { --background: #fff; --header: #fff; --text: #000; --surface: #fff; --muted: #444; --link: #000; --visited: #000; --subtle-border: #aaa; --powered-background: #fff; --powered-text: #000; }
  body { display: block; }
  .site-header, .footer-content, .toc, .section-toggle, .skip-link, .read-more, .pagination { display: none !important; }
  .site-footer { padding: 0; }
  .site-shell { min-height: 0; }
  .container { width: 100%; max-width: none; }
  .collapsible-content { display: block !important; content-visibility: visible !important; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  h1, h2, h3 { break-after: avoid; }
  a { text-decoration: underline; }
}
