/* Minimal academic research homepage · 2026 */
:root{
  --bg:#ffffff; --surface:#ffffff; --ink:#26313b; --muted:#65727d;
  --link:#185f99; --line:#e5e9ed; --soft:#f4f7f9;
  --photo:#eaf0f3; --accent:#2a728d; --focus:#5aa7d6;
  color-scheme:light;
}
html[data-theme="dark"]{
  --bg:#111922; --surface:#17232e; --ink:#e8eef4; --muted:#b0bfcb;
  --link:#8fc8f5; --line:#34424f; --soft:#1b2a36;
  --photo:#273d4a; --accent:#91c6db; --focus:#aedcff;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:0;background:var(--bg);color:var(--ink);
  font:15px/1.67 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
img{display:block;max-width:100%}
h1,h2,h3,p,figure{margin-top:0}
.shell{width:min(100% - 48px,920px);margin:0 auto}
.skip-link{position:absolute;top:-60px;left:15px;background:var(--surface);color:var(--ink);padding:10px;z-index:20}
.skip-link:focus{top:10px}
.site-header{border-bottom:1px solid var(--line);background:var(--bg)}
.header-inner{min-height:69px;display:flex;justify-content:space-between;align-items:center;gap:22px}
.brand{font-weight:700;color:var(--ink);font-size:17px;white-space:nowrap}
.brand:hover{text-decoration:none}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0}
.navigation{display:flex;align-items:center;gap:17px;min-width:0}
.navigation a{font-size:12px;color:var(--muted);font-weight:500;white-space:nowrap}
.navigation a.active,.navigation a[aria-current="page"],.navigation a:hover{color:var(--link)}
.theme-toggle{font:600 12px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;display:inline-flex;align-items:center;justify-content:center;
  gap:7px;padding:6px 10px;background:var(--surface);color:var(--ink);
  border:1px solid var(--line);border-radius:6px;cursor:pointer;white-space:nowrap;flex:0 0 auto}
.theme-toggle:hover{background:var(--soft)}
.theme-icon{font-size:16px;line-height:1}
.hero{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:44px;padding:52px 0 36px;align-items:start}
.hero-copy{min-width:0}
.hero h1{font:600 43px/1.17 Georgia,"Times New Roman",serif;letter-spacing:-.03em;margin:0 0 8px}
.academic-role{font-size:14px;color:var(--muted);margin-bottom:23px}
.hero-copy>p:not(.academic-role){margin-bottom:13px}
.hero-copy strong{font-weight:650}
.portrait{width:205px;margin:2px 0 0}
.portrait img{width:205px;height:252px;object-fit:cover;border-radius:3px;background:var(--photo)}
.portrait figcaption{color:var(--muted);font-size:12px;margin-top:7px;text-align:left}
.profile-links{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:19px;font-size:13px;font-weight:600}
.profile-links a{white-space:nowrap}
.content-section{padding:20px 0 26px}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:15px}
.section-heading h2,.section-title{font:600 26px/1.24 Georgia,"Times New Roman",serif;letter-spacing:-.014em;margin:0}
.section-link{font-size:13px;white-space:nowrap}
.section-note{color:var(--muted);font-size:13px;margin:6px 0 16px}
.timeline{list-style:none;margin:0;padding:0}
.timeline-item{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;margin:0;padding:9px 0}
.timeline time,.timeline-item time{font-size:13px;color:var(--muted);font-weight:600}
.timeline-item p{font-size:14px;margin:0;min-width:0}
.older-news{margin:9px 0 0 114px}
.older-news summary{font-size:13px;color:var(--link);cursor:pointer;display:list-item}
.older-news .timeline{margin-top:13px}
.older-news .timeline-item{grid-template-columns:100px minmax(0,1fr)}
.featured-publications{border-top:1px solid var(--line);margin-top:14px;padding-top:30px}
.featured-publication{display:grid;grid-template-columns:68px minmax(0,1fr);gap:20px;border-bottom:1px solid var(--line);padding:17px 0}
.publication-date{color:var(--muted);font-size:12px;padding-top:3px}
.featured-publication h3{font-size:16px;line-height:1.5;font-weight:650;margin:4px 0 3px}
.pub-venue{font-size:12px;color:var(--muted);font-weight:650;margin:0}
.pub-authors{color:var(--muted);font-size:12px;line-height:1.55;margin:0 0 3px}
.pub-summary{font-size:13px;color:var(--muted);margin:3px 0 5px}
.paper-link{font-size:12px;font-weight:600}
.research-summary{border-top:1px solid var(--line);margin-top:22px;padding:29px 0 56px}
.research-summary p{font-size:14px;max-width:730px;color:var(--muted);margin-top:12px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.site-footer{border-top:1px solid var(--line);padding:23px 0 30px;color:var(--muted);font-size:12px}
.footer-inner div{display:flex;flex-wrap:wrap;gap:13px}
.footer-inner a{color:var(--muted)}
/* Dedicated research, projects, and experience pages */
.page-intro{max-width:780px;padding:49px 0 26px}
.page-intro h1{font:600 43px/1.18 Georgia,"Times New Roman",serif;letter-spacing:-.03em;margin:4px 0 12px}
.page-intro>p:last-child{font-size:15px;color:var(--muted)}
.section-kicker,.tag{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:700}
.accent-dot{color:var(--link)}
.inline-note{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);padding:12px 0;font-size:11px;color:var(--muted)}
.paper-list{padding:6px 0 48px}
.paper{display:grid;grid-template-columns:65px minmax(0,1fr);gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}
.paper-year{color:var(--muted);font-size:13px;padding-top:3px}
.paper h2{font-size:18px;line-height:1.38;font-weight:650;margin:5px 0 7px}
.authors{font-size:13px;color:var(--muted);margin:0 0 4px;line-height:1.55}
.venue{font-size:13px;color:var(--ink);font-weight:600;margin:0 0 7px}
.muted{color:var(--muted);font-size:13px;margin-bottom:8px}
.paper-actions{display:flex;gap:17px;font-size:13px;font-weight:600}
.small-note{font-size:12px;color:var(--muted);margin-bottom:65px}
.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:36px}
.project-card{display:grid;grid-template-columns:25px minmax(0,1fr);gap:14px;padding:22px;
  border:1px solid var(--line);background:var(--surface);border-radius:4px}
.project-index{font-size:13px;color:var(--muted)}
.project-card h2{font-size:17px;line-height:1.4;margin:7px 0}
.project-card p{font-size:13px;color:var(--muted);margin-bottom:8px}
.project-card .project-stack{font-size:11px;font-weight:650;color:var(--muted)}
.project-link{font-size:12px;font-weight:600}
.bottom-cta{border-top:1px solid var(--line);padding:25px 0;margin:25px 0 48px;
  display:flex;justify-content:space-between;align-items:center;gap:16px}
.bottom-cta p{font-size:13px;color:var(--muted);margin:0}
.button{display:inline-flex;gap:16px;padding:7px 12px;font-size:12px;font-weight:600;
  border-radius:4px;border:1px solid var(--line);color:var(--link)}
.button:hover{background:var(--soft);text-decoration:none}
.content-section.tight{padding-top:0}
.career{border-top:1px solid var(--line)}
.career-row{display:grid;grid-template-columns:170px minmax(0,1fr);gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}
.career-date{font-size:12px;color:var(--muted);font-weight:600}
.career-row h3{font-size:16px;margin:0 0 6px}
.career-row h3 span{font-size:13px;font-weight:400;color:var(--muted)}
.career-row p{font-size:13px;color:var(--muted);margin:0}
.education-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.education-grid article{border:1px solid var(--line);padding:22px;background:var(--surface)}
.education-grid h3{font-size:16px;margin:6px 0}
.education-grid p{font-size:13px;margin-bottom:5px}
.photo-banner{display:flex;justify-content:space-between;gap:20px;background:var(--soft);padding:32px;margin-bottom:18px}
.photo-banner h2{font:600 28px/1.3 Georgia,serif;margin:6px 0}
.photo-banner p{font-size:13px;color:var(--muted);margin:0}
.photo-banner-number{font-size:12px;color:var(--muted)}
.photo-gallery{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-bottom:35px}
.photo-slot{display:flex;flex-direction:column;justify-content:space-between;aspect-ratio:4/3;
  background:var(--soft);color:var(--muted);border:1px dashed var(--line);padding:25px}
.photo-slot strong{font:600 26px Georgia,serif;color:var(--ink)}
.photo-slot span,.photo-slot small{font-size:12px}
.blog-list{border-top:1px solid var(--line);margin-bottom:40px}
.blog-feature{padding:26px 0;border-bottom:1px solid var(--line)}
.blog-date,.article-meta{color:var(--muted);font-size:11px;letter-spacing:.08em}
.blog-feature h2{font:600 29px/1.3 Georgia,serif;margin:8px 0}
.blog-feature h2 a{color:var(--ink)}
.blog-feature>p{color:var(--muted);font-size:14px}
.read-link{font-size:13px;font-weight:600}
.prose-article{max-width:730px;margin:0 auto;padding:50px 0 75px}
.back-link{display:inline-block;font-size:13px;margin-bottom:27px}
.prose-article h1{font:600 clamp(35px,5vw,47px)/1.18 Georgia,serif;letter-spacing:-.025em;margin:14px 0}
.prose-article h1 em{font-style:normal;color:var(--link)}
.article-dek{font-size:18px;color:var(--muted);line-height:1.5}
.prose-article>p:not(.article-dek){margin-bottom:19px}
.prose-article h2{font:600 27px/1.27 Georgia,serif;margin:35px 0 11px}
.draft-note,.editorial-note{border-left:3px solid var(--link);background:var(--soft);
  color:var(--muted);font-size:13px;padding:12px 15px;margin:20px 0}
.article-papers{display:grid;gap:11px;margin:23px 0}
.article-papers section{padding:18px;background:var(--surface);border:1px solid var(--line)}
.article-papers small{font-size:11px;color:var(--muted)}
.article-papers h3{font:600 20px/1.3 Georgia,serif;margin:5px 0}
.article-papers p{font-size:13px;color:var(--muted);margin:0}
.article-photo-placeholder{height:250px;background:var(--soft);border:1px dashed var(--line);
  display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;text-align:center;color:var(--muted)}
.article-photo-placeholder strong{font:600 24px Georgia,serif;color:var(--ink)}
.article-photo-placeholder span{font-size:12px}
@media(max-width:980px){
 .header-inner{align-items:flex-start;flex-direction:column;gap:8px;padding:14px 0 12px}
 .header-actions{width:100%;justify-content:space-between;gap:18px}
}
@media(max-width:670px){
 .shell{width:calc(100% - 36px)}
 .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:8px;padding:14px 0 10px}
 .brand{grid-column:1;grid-row:1;align-self:center}
 .header-actions{display:contents}
 .navigation{grid-column:1 / -1;grid-row:2;display:flex;flex-wrap:wrap;overflow:visible;gap:5px 15px;min-width:0;padding:0}
 .navigation a{flex:0 0 auto}
 .theme-toggle{grid-column:2;grid-row:1;justify-self:end;padding:6px 9px}
 .theme-label{display:none}
 .hero{grid-template-columns:1fr;gap:23px;padding:34px 0 26px}
 .portrait{grid-row:1;width:146px}
 .portrait img{width:146px;height:180px}
 .hero h1{font-size:36px}
 .hero-copy>p:not(.academic-role){font-size:14px}
 .section-heading h2,.section-title{font-size:23px}
 .section-heading{flex-wrap:wrap;gap:7px}
 .timeline-item{grid-template-columns:82px minmax(0,1fr);gap:12px}
 .timeline-item time,.timeline-item p{font-size:12px}
 .older-news{margin-left:0}
 .older-news .timeline-item{grid-template-columns:82px minmax(0,1fr)}
 .featured-publication{grid-template-columns:45px minmax(0,1fr);gap:12px}
 .featured-publication h3{font-size:15px}
 .page-intro{padding:36px 0 22px}
 .page-intro h1{font-size:36px}
 .paper{grid-template-columns:1fr;gap:5px}
 .project-grid,.education-grid,.photo-gallery{grid-template-columns:1fr}
 .career-row{grid-template-columns:1fr;gap:5px}
 .bottom-cta,.photo-banner{flex-direction:column;align-items:flex-start}
 .prose-article{padding:34px 0 60px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Theme controls: accessible two-option switch, in the top-right corner on every page. */
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 6px;
  min-height: 0;
  align-items: center;
  padding: 13px 0 12px;
}
.brand { grid-column: 1; grid-row: 1; align-self: center; }
.header-actions { display: contents; }
.navigation {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
  overflow: visible;
  padding: 0;
}
.theme-switch {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  gap: 2px;
  align-self: center;
  justify-self: end;
  padding: 2px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: nowrap;
}
.theme-choice {
  appearance: none;
  border: 0;
  border-radius: 5px;
  padding: 6px 9px;
  background: transparent;
  color: var(--muted);
  font: 600 12px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.theme-choice[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.theme-choice:hover:not([aria-pressed="true"]) { color: var(--ink); }
.theme-choice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 670px) {
  .header-inner { column-gap: 8px; row-gap: 8px; }
  .brand { font-size: 14px; }
  .theme-choice { font-size: 11px; padding: 6px 6px; }
  .navigation { gap: 5px 14px; }
}

/* EMNLP photo essay images */
.emnlp-figure { margin:26px 0 32px; }
.emnlp-figure a { display:block; width:100%; }
.emnlp-figure img { display:block; max-width:100%; width:100%; height:auto; border-radius:5px; border:1px solid var(--line); background:var(--soft); }
.emnlp-figure figcaption { color:var(--muted); font-size:12px; line-height:1.6; margin:8px 0 0; }
.emnlp-hero { margin-top:24px; }
.emnlp-hero img { max-height:560px; object-fit:contain; object-position:center; background:var(--soft); }
.emnlp-welcome { max-width:430px; margin:26px auto 32px; }
.emnlp-poster img { max-height:780px; object-fit:contain; background:var(--surface); }
.emnlp-photo-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:10px 0 32px; }
.emnlp-photo-grid .emnlp-figure { margin:0; }
.emnlp-photo-grid img { height:360px; object-fit:cover; object-position:center 25%; }
.blog-cover-thumb { margin:0 0 18px; width:100%; max-width:680px; }
.blog-cover-thumb img { width:100%; height:auto; max-height:300px; object-fit:cover; object-position:center; border:1px solid var(--line); border-radius:4px; }
@media (max-width:650px) {
 .emnlp-photo-grid { grid-template-columns:1fr; gap:22px; }
 .emnlp-photo-grid img { height:auto; max-height:none; object-fit:contain; }
 .emnlp-hero img { max-height:none; }
}

/* Budapest street photo in EMNLP field notes */
.emnlp-city { max-width:420px; margin:26px auto 32px; }
.emnlp-city img { width:100%; height:auto; object-fit:contain; }

/* Compact academic research resource links */
.publication-links,.project-resource-links,.article-resource-links{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin-top:9px;font-size:12px;line-height:1.65;font-weight:600}
.publication-links a,.project-resource-links a,.article-resource-links a{color:var(--link)}
.paper-actions{flex-wrap:wrap;row-gap:7px}
.article-resource-links{margin:12px 0 24px;font-size:13px}

/* Keep resource links in a consistent, readable order at all sizes. */
.paper-actions,.publication-links,.project-resource-links,.article-resource-links{display:flex;flex-wrap:wrap;gap:5px 16px;align-items:baseline}
.paper-actions a,.publication-links a,.project-resource-links a,.article-resource-links a{white-space:nowrap}

/* Publications grouped into peer-reviewed works, preprints, and thesis */
.publication-section{margin:32px 0 38px}
.publication-section-heading{font:600 24px/1.28 Georgia,"Times New Roman",serif;margin:0 0 13px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.publication-section .paper-list{border-top:0}
.publication-section:first-of-type{margin-top:24px}
#masters-thesis{scroll-margin-top:24px}
@media(max-width:670px){.publication-section-heading{font-size:22px}}

/* Text-style email copy control matching the profile links */
.profile-links .copy-email{border:0;background:transparent;padding:0;margin:0;color:var(--link);font:inherit;line-height:inherit;cursor:pointer;white-space:nowrap}
.profile-links .copy-email:hover{text-decoration:underline;text-underline-offset:3px}
