/* A minimal personal site; all assets and fonts are local. */
:root {
  color-scheme: light;
  --background: #fff;
  --text: #191919;
  --muted: #686868;
  --rule: #dedede;
  --sans: "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: #fff; background: #252525; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.link-icon { display: block; width: 1em; height: 1em; flex: 0 0 auto; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1040px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: -6rem; left: 1rem; padding: .75rem 1rem; color: #fff; background: #191919; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 1.7rem; }
.wordmark { font-size: 1.6rem; font-weight: 700; letter-spacing: -.07em; line-height: 1; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.site-header nav a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; font-size: .875rem; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.hero { padding-block: 3.4rem 5.7rem; }
.hero-heading { text-align: center; margin-bottom: 2.7rem; }
h1 { font-size: clamp(3.3rem, 8.4vw, 6.8rem); font-weight: 500; line-height: 1.1; letter-spacing: -.065em; overflow-wrap: anywhere; text-wrap: balance; }
.nickname { margin-top: .65rem; color: var(--muted); font: italic 1.35rem/1.4 Georgia, serif; }
.hero-profile { display: grid; grid-template-columns: 280px minmax(0, 350px); gap: 3rem; align-items: center; justify-content: center; }
.portrait { min-width: 0; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; border-radius: 8px; }
.eyebrow { font-size: .875rem; font-weight: 500; line-height: 1.7; color: var(--muted); }
.bio { margin-top: .7rem; font-size: 1.1875rem; line-height: 1.6; letter-spacing: -.015em; }
.publications > .wrap { border-top: 1px solid var(--text); padding-block: 2.2rem 3.2rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
h2 { font-size: 2rem; font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
h2, h3, .bio, .talk-list p { overflow-wrap: anywhere; }
.section-aside { color: var(--muted); font-size: .875rem; }
.papers { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; }
.paper { display: flex; flex-direction: column; align-items: flex-start; }
.paper-status { font-size: .875rem; color: var(--muted); margin-bottom: .65rem; }
.paper h3 { max-width: 29rem; font: normal 1.65rem/1.35 Georgia, serif; letter-spacing: -.025em; }
.paper h3 a { text-decoration: none; }
.paper h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.math-inline { white-space: nowrap; }
.authors { color: var(--muted); font-size: .875rem; margin-top: .8rem; }
.paper-link { display: inline-flex; gap: 1rem; align-items: center; margin-top: 1rem; padding-block: .3rem; font-size: .875rem; text-decoration: none; border-bottom: 1px solid #999; }
.paper-link:hover { border-color: var(--text); }
.talks, .teaching { border-top: 1px solid var(--text); padding-block: 2.2rem 3.5rem; }
.talks .section-heading { margin-bottom: 1.5rem; }
.talk-list { list-style: none; margin: 0; padding: 0; }
.talk-list li { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: baseline; gap: 2rem; border-top: 1px solid var(--rule); padding-block: 1.3rem; }
.talk-list li:first-child { border-top: 0; }
.talk-list time { color: var(--muted); display: flex; align-items: baseline; gap: .35rem; font-size: .875rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
.talk-list time span { font-size: inherit; }
.talk-list h3 { font-size: 1.0625rem; font-weight: 400; line-height: 1.5; letter-spacing: -.01em; }
.talk-list p { margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.teaching-entry { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem 2rem; }
.teaching-entry h3 { font-size: 1.0625rem; font-weight: 400; line-height: 1.5; letter-spacing: -.01em; }
.teaching-role { margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.teaching-term { font-size: .875rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--rule); padding-block: 1.4rem 2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; font-size: .875rem; color: var(--muted); }
.footer-bottom a { text-decoration: none; overflow-wrap: anywhere; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 56px); }
  .hero { padding-block: 2.5rem 4rem; }
  .hero-profile { grid-template-columns: minmax(0, 220px) minmax(0, 340px); gap: 2rem; }
  .papers { gap: 2rem; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { gap: 1rem; padding-block: 1rem; }
  .site-header nav { gap: .2rem 1.2rem; justify-content: flex-end; }
  .hero { padding-block: 2rem 3rem; }
  .hero-heading { margin-bottom: 1.8rem; }
  h1 { font-size: clamp(3rem, 11vw, 4.5rem); }
  .nickname { font-size: 1.2rem; }
  .hero-profile { grid-template-columns: minmax(0, 360px); gap: 1.5rem; }
  .portrait { width: min(100%, 280px); margin-inline: auto; }
  .hero-copy { text-align: center; }
  .bio { font-size: 1.0625rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; margin-bottom: 1.7rem; }
  .publications > .wrap, .talks, .teaching { padding-block: 1.8rem 2.5rem; }
  .papers { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .paper + .paper { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
  .paper h3 { max-width: none; font-size: 1.5rem; }
  .talk-list li { grid-template-columns: 49px minmax(0, 1fr); gap: 1rem; padding-block: 1rem; }
  .talk-list time { flex-direction: column; gap: 0; }
  .talk-list h3 { font-size: 1rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 420px) {
  .site-header { align-items: flex-start; }
  .wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .site-header nav { display: grid; flex: 1 1 12rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr)); gap: 0 1.4rem; }
  .talk-list li { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .talk-list time { flex-direction: row; gap: .35rem; }
}
@media print {
  body { font-size: 10pt; }
  .wrap { width: 100%; }
  .site-header, .skip-link, .site-footer { display: none; }
  .hero { padding: 0 0 1.5rem; }
  .hero-heading { margin-bottom: 1rem; }
  h1 { font-size: 32pt; }
  .hero-profile { grid-template-columns: 160px 1fr; gap: 2rem; }
  .publications > .wrap, .talks, .teaching { padding: 1.5rem 0; }
  .section-heading { margin-bottom: 1rem; break-after: avoid; }
  h2 { font-size: 20pt; }
  .paper h3 { font-size: 14pt; }
  .paper, .talk-list li, .teaching-entry { break-inside: avoid; }
  .talk-list li { padding-block: .65rem; }
}
