/* A small, typography-led personal site. */
:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #292e29;
  --muted: #636960;
  --green: #365f49;
  --rule: #dedfd6;
  --wash: #f1f0e8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
::selection { background: #dce7d8; color: #202d23; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 1px; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin-top: 0; }
h1 { font-family: var(--serif); font-size: clamp(38px, 6.5vw, 50px); font-weight: 400; line-height: 1.15; letter-spacing: -1.65px; margin-bottom: 18px; }
h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.3; letter-spacing: -.45px; }
h3 { font-size: 17px; line-height: 1.5; font-weight: 600; }
ul, ol { padding-left: 23px; }
li { padding-left: 3px; margin: 5px 0; }
strong { font-weight: 600; }
.site-shell { width: min(100% - 64px, 720px); margin-inline: auto; }
.site-header { padding-top: 48px; margin-bottom: 60px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.site-nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 7px 0; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; }
.site-main { min-height: 48vh; }
.skip-link { position: absolute; left: 12px; top: 10px; padding: 8px 14px; background: var(--ink); color: var(--paper); transform: translateY(-180%); z-index: 5; }
.skip-link:focus { transform: translateY(0); }
.intro-heading { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 24px; margin-bottom: 30px; }
.intro-heading h1 { margin: 10px 0 12px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.65px; margin-bottom: 10px; }
.location { color: var(--muted); font-size: 14px; margin: 0; }
.portrait { display: block; width: 132px; height: 166px; object-fit: cover; object-position: center 34%; border-radius: 3px; }
.intro-copy { max-width: 650px; }
.intro-copy p { margin-bottom: 18px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 9px 23px; margin-top: 26px; font-size: 14px; }
.link-divider { color: #aaa99e; }
.home-section { margin-top: 50px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.section-heading h2 { font: 500 11px/1.5 var(--sans); letter-spacing: 1.7px; text-transform: uppercase; color: var(--muted); margin: 0; }
.section-more { font-size: 12px; text-decoration: none; }
.section-more:hover { text-decoration: underline; }
.research-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; padding: 19px 0; border-top: 1px solid var(--rule); }
.research-row h3 { margin: 0 0 7px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.4; letter-spacing: -.15px; }
.research-row h3 a { color: var(--ink); text-decoration: none; }
.research-row h3 a:hover { color: var(--green); text-decoration: underline; }
.research-row p { margin: 0; color: var(--muted); font-size: 12px; }
.entry-year { font-size: 12px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.writing-preview { margin-top: 36px; }
.writing-preview > p { color: var(--muted); padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; margin-top: 58px; padding: 22px 0 32px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin-bottom: 20px; }
.page-intro { max-width: 560px; color: var(--muted); }
.text-link { display: inline-block; font-size: 14px; }
.contents-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 30px 0 40px; padding: 18px 0; border-block: 1px solid var(--rule); font-size: 13px; }
.contents-list ul { display: contents; list-style: none; }
.contents-list li { padding: 0; margin: 0; }
.cv-section { margin-top: 46px; }
.cv-section > h2 { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 24px; }
.cv-entry { margin-bottom: 28px; }
.cv-entry:last-child { margin-bottom: 0; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 4px; }
.entry-heading h3 { margin: 0; }
.entry-date { margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.entry-role { margin: 0 0 9px; color: var(--muted); font-size: 14px; }
.cv-entry p, .cv-entry li { font-size: 14px; line-height: 1.75; }
.cv-entry p { margin-bottom: 8px; }
.cv-entry .entry-date { font-size: 12px; margin: 0; }
.cv-entry ul { margin-block: 8px 0; }
.cv-entry h3 a { color: var(--ink); text-decoration: none; }
.cv-entry h3 a:hover { color: var(--green); text-decoration: underline; }
.cv-section > p, .cv-section > ul, .cv-section > dl { font-size: 14px; }
.publication-list { padding: 0; list-style: none; }
.publication-list > li { margin-bottom: 25px; padding: 0; }
.publication-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.skill-list dt { font-weight: 600; margin-top: 16px; }
.skill-list dd { margin: 4px 0 0; color: var(--muted); }
.skills-list dt { font-weight: 600; margin-top: 18px; }
.skills-list dd { margin: 4px 0 0; color: var(--muted); }
.publication h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.4; margin: 5px 0 9px; }
.publication { padding-bottom: 19px; border-bottom: 1px solid var(--rule); }
.publication:last-child { padding-bottom: 0; border-bottom: 0; }
.link-note { margin-left: 8px; color: var(--muted); font-size: 11px; text-decoration: none; }
.cv-entry .entry-links { font-size: 12px; }
.cv-closing { margin-top: 25px; }
.writing-index { margin-top: 38px; border-top: 1px solid var(--rule); }
.writing-empty, .empty-state { padding: 28px 0; color: var(--muted); font-size: 15px; }
.writing-list, .post-list { list-style: none; padding: 0; margin: 0; }
.writing-list li, .post-list li { padding: 20px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.post-title { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.4; }
.post-meta, .post-date, .post-kind { font-size: 12px; color: var(--muted); }
.writing-entry-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 7px 20px; margin-bottom: 8px; }
.writing-entry p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.writing-title { color: var(--ink); text-decoration: none; }
.writing-title:hover { color: var(--green); text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 13px; }
.post-header { margin-bottom: 36px; }
.post-content { overflow-wrap: anywhere; }
.post-content h2 { margin-top: 36px; }
.post-content h3 { margin-top: 28px; }
.post-content blockquote { border-left: 2px solid var(--rule); margin: 24px 0; padding: 0 0 0 20px; color: var(--muted); }
.post-content pre { overflow-x: auto; padding: 16px; background: var(--wash); font-size: 13px; line-height: 1.6; }
.post-content code { font-family: Consolas, monospace; font-size: .87em; }
.post-content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.post-content th, .post-content td { text-align: left; padding: 10px; border-bottom: 1px solid var(--rule); }
.post-content hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-block: 26px 14px; font-size: 14px; }
.paper-update, .paper-fallback { color: var(--muted); font-size: 13px; }
.paper-pdf { display: block; width: 100%; height: min(78vh, 900px); min-height: 420px; margin-block: 20px 14px; border: 1px solid var(--rule); border-radius: 3px; background: #fff; }
@media (max-width: 560px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header { padding-top: 25px; margin-bottom: 42px; }
  .site-nav { gap: 12px 28px; }
  .intro-heading { grid-template-columns: minmax(0, 1fr) 92px; gap: 15px; margin-bottom: 26px; }
  .portrait { width: 92px; height: 120px; }
  .intro-heading h1 { font-size: 38px; letter-spacing: -1.25px; }
  .intro-heading .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .intro-copy p { font-size: 15px; }
  .profile-links { gap: 8px 23px; }
  .profile-links a { padding-block: 5px; }
  .home-section { margin-top: 38px; }
  .research-row { gap: 12px; }
  .research-row h3 { font-size: 20px; }
  .section-more { font-size: 11px; }
  .site-footer { margin-top: 42px; }
  .cv-entry { margin-bottom: 28px; }
  .entry-heading { display: block; }
  .entry-heading .entry-date { margin-top: 4px; }
}
@media (max-width: 370px) {
  .intro-heading { grid-template-columns: minmax(0, 1fr) 76px; gap: 12px; }
  .portrait { width: 76px; height: 103px; }
  .intro-heading h1 { font-size: 34px; }
  .section-heading { align-items: flex-start; }
  .research-row { grid-template-columns: 1fr; gap: 3px; }
  .entry-year { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --green: #000; }
  .site-shell { width: 100%; max-width: none; }
  .site-header, .site-footer, .contents-list, .skip-link { display: none; }
  .paper-pdf, .paper-fallback { display: none; }
  body { font-size: 11pt; }
  a { text-decoration: none; }
  .cv-section { margin-top: 24px; }
  .cv-section h2 { break-after: avoid; }
  .cv-entry { break-inside: avoid; }
}
