/* humza.ai, set like a physics paper: Computer Modern (HN Modern, a renamed CM-Unicode subset, SIL OFL),
   justified and hyphenated text, indented paragraphs, numbered display math, APS-style references. */
@font-face { font-family: "HN Modern Serif"; src: url("/fonts/HNModernSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HN Modern Serif"; src: url("/fonts/HNModernSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "HN Modern Serif"; src: url("/fonts/HNModernSerif-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HN Modern Serif"; src: url("/fonts/HNModernSerif-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "HN Modern Mono"; src: url("/fonts/HNModernMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root { --ink: #111; --mute: #555; --link: #1a2f80; --rule: #d8d8d8; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "HN Modern Serif", "Latin Modern Roman", "CMU Serif", serif;
  font-size: 19px; line-height: 1.42; color: var(--ink); background: #fff;
  font-kerning: normal; font-variant-ligatures: common-ligatures; text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 1px solid var(--link); outline-offset: 2px; }
.tt, code, pre { font-family: "HN Modern Mono", "Latin Modern Mono", monospace; }
.sc { font-variant-caps: small-caps; letter-spacing: 0.02em; }
b, strong { font-weight: 700; }
.skip { position: absolute; left: 8px; top: -50px; background: #fff; padding: 4px 8px; }
.skip:focus { top: 8px; }

.page { max-width: 660px; margin: 0 auto; padding: 76px 24px 0; }
main:focus { outline: none; }

/* paragraphs as LaTeX sets them */
.text p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.text p + p { text-indent: 1.5em; }
.text p.cont { text-indent: 0; }

/* title block (\maketitle) */
.title { text-align: center; }
.title h1 { text-wrap: balance; font-size: 34px; font-weight: 400; line-height: 1.15; letter-spacing: 0; }
.title .affil { margin-top: 12px; font-style: italic; line-height: 1.4; }
.title .email { margin-top: 12px; font-size: 17px; }
.title .links { margin-top: 2px; font-size: 17px; text-wrap: balance; }
.title .links a { white-space: nowrap; }
.title .links a + a::before { content: "·\00a0\00a0"; color: var(--mute); display: inline-block; margin-left: 0.2em; }

/* author photo, centred above the name */
.title .photo { display: block; width: 112px; height: 140px; margin: 0 auto 22px; object-fit: cover; object-position: 50% 16%; filter: grayscale(1); }
.bio { margin-top: 40px; }

/* display math */
.eq { margin: 12px 0; overflow-x: auto; overflow-y: hidden; }
.eq .katex-display { margin: 0; }
.katex { font-size: 1em; }

/* sections (\section*) */
section { margin-top: 36px; }
h2 { font-size: 25px; font-weight: 700; margin-bottom: 10px; }

/* references */
.refs { list-style: none; }
.refs > li { display: grid; grid-template-columns: 2.3em minmax(0, 1fr); margin-top: 7px; font-size: 17.5px; line-height: 1.36; }
.refs .r > a { color: inherit; }
.refs .tt { font-family: inherit; }
.refs .n { color: var(--ink); }
.refs .r { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.refs .finding { margin-top: 3px; font-size: 16px; color: #333; text-align: left; }
.refs .more { margin-top: 3px; }
.refs .more a + a::before { content: "\00a0·\00a0"; color: var(--mute); }
.refs li:target .n { font-weight: 700; }
.note { margin-top: 12px; font-size: 17.5px; }

/* plain lists */
.plain { list-style: none; font-size: 17.5px; line-height: 1.36; }
.plain > li { margin-top: 7px; }
.dl > li { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); }

.draft { font-style: italic; color: var(--mute); }

footer.site { max-width: 660px; margin: 64px auto 0; padding: 0 24px 48px; text-align: center; font-size: 15px; color: var(--mute); }

/* blog and single pages */
.crumbs { font-size: 16px; text-align: center; }
.crumbs a.home { color: var(--ink); }
.crumbs .sep { color: var(--mute); margin: 0 6px; }
.single .title { margin-top: 40px; }
.single .title h1 { font-size: 30px; }
.post-meta { margin-top: 10px; text-align: center; font-style: italic; }
.paper-card { margin-top: 18px; text-align: center; font-size: 17px; }
.paper-card .links a + a::before { content: "\00a0\00a0·\00a0\00a0"; color: var(--mute); }
.prose { margin-top: 30px; }
.prose h2 { margin-top: 30px; }
.prose ul, .prose ol { margin: 10px 0 10px 1.6em; }
.prose li { text-align: justify; }
.prose blockquote { margin: 12px 1.6em; font-size: 17.5px; }
.prose img { max-width: 100%; height: auto; display: block; margin: 16px auto; }
.prose pre { margin: 14px 0; padding: 0 0 0 1.5em; font-size: 15.5px; line-height: 1.5; overflow-x: auto; }
.prose code { font-size: 0.92em; }
.prose pre code { font-size: inherit; }
.post-foot { margin-top: 40px; text-align: center; font-size: 16px; }
.post-foot a + a::before { content: "\00a0\00a0·\00a0\00a0"; color: var(--mute); }

@media (max-width: 640px) {
  body { font-size: 17.5px; }
  .page { padding-top: 44px; }
  .title h1 { font-size: 29px; }
  .title .affil { font-size: 16px; }
  .title .links { font-size: 15.5px; line-height: 1.7; }
  .text p { text-align: left; }
  .text p + p { text-indent: 1.2em; }
  .title .photo { width: 92px; height: 115px; margin-bottom: 18px; }
  .text p, .refs .r { hyphens: manual; -webkit-hyphens: manual; }
  .refs > li, .plain { font-size: 16.5px; }
  .refs .r { text-align: left; }
}
@media print { .skip { display: none; } a { color: var(--ink); } }

/* full papers as posts */
.paper-card .affils { margin-top: 4px; font-size: 15.5px; font-style: italic; line-height: 1.35; }
.abstract { margin: 6px 2.2em 26px; font-size: 17px; }
.abstract h2 { text-align: center; font-size: 17px; margin-bottom: 6px; }
.abstract p { text-indent: 0 !important; }
.prose h2 { font-size: 21px; margin-top: 30px; margin-bottom: 8px; }
.prose h3 { font-size: 18px; margin-top: 20px; margin-bottom: 4px; font-style: italic; font-weight: 400; }
.prose h2 + p, .prose h3 + p, .prose figure + p, .prose .table + p { text-indent: 0; }
.prose figure { margin: 20px 0 6px; }
.prose figure img { margin: 0 auto; }
.prose p.caption { text-indent: 0; font-size: 15.5px; line-height: 1.38; margin: 0 0 18px; }
.prose .table { overflow-x: auto; margin: 10px 0 18px; }
.prose table { border-collapse: collapse; margin: 0 auto; font-size: 15.5px; line-height: 1.35; border-top: 1.2px solid var(--ink); border-bottom: 1.2px solid var(--ink); }
.prose th { font-weight: 400; border-bottom: 0.6px solid var(--ink); padding: 5px 10px; text-align: left; }
.prose td { padding: 3px 10px; vertical-align: top; }
.biblio p { text-indent: -1.6em !important; padding-left: 1.6em; font-size: 15.5px; line-height: 1.35; margin-top: 5px; text-align: left; }
@media (max-width: 640px) { .abstract { margin: 6px 0 22px; } }
.prose a, .biblio a { overflow-wrap: anywhere; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose td:last-child, .prose th:last-child { white-space: nowrap; }
