/* Personal site refresh. Kept separate from the upstream theme for maintenance. */
:root {
  --ink: #172b42;
  --muted: #52657a;
  --blue: #205bc4;
  --line: #dce4ee;
  --wash: #f3f7fc;
}
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  padding-bottom: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:hover { color: #143e89; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
.masthead { border-bottom: 1px solid var(--line); animation: none; background: #fff; }
.site-header {
  max-width: 1160px;
  margin: auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.site-name { color: var(--ink); font-size: 19px; font-weight: 700; text-decoration: none; }
.site-links { display: flex; gap: 30px; flex-wrap: wrap; }
.site-links a { color: var(--muted); padding: 6px 0; }
.site-links a:hover { color: var(--blue); }
.home { max-width: 1160px; padding: 0 40px 64px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.home h1, .home h2, .home h3 { font-family: inherit; color: var(--ink); }
.home p { margin: 0 0 20px; }
.home a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; align-items: center; padding: 80px 0 76px; }
.home .intro-role { color: var(--blue); font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.home h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.12; letter-spacing: -2px; font-weight: 650; margin: 0 0 28px; }
.degree { font-size: .45em; letter-spacing: -.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.home .intro-statement { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.25; letter-spacing: -1px; font-weight: 500; margin-bottom: 26px; }
.home .intro-description { max-width: 560px; color: var(--muted); font-size: 18px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 16px 25px; align-items: center; padding-top: 8px; font-size: 15px; font-weight: 600; }
.primary-link { background: var(--blue); color: #fff; padding: 11px 20px; border-radius: 6px; text-decoration: none; }
.primary-link:hover { background: #143e89; color: #fff; }
.portrait { display: block; margin: 0; padding: 16px 16px 0; background: var(--wash); border-radius: 16px; }
.portrait img { display: block; width: 100%; height: 340px; object-fit: cover; object-position: center; margin: 0; border-radius: 8px; }
.portrait figcaption { font-family: inherit; margin: 0; padding: 16px 0; font-size: 13px; color: var(--muted); }
.home-section { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 50px; padding: 52px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.home h2 { margin: 0 0 14px; font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: -.6px; }
.section-heading p, .section-heading a { font-size: 15px; line-height: 1.6; color: var(--muted); }
.section-heading a { color: var(--blue); }
.home .section-lead { font-size: 23px; line-height: 1.5; letter-spacing: -.3px; }
.research-content > p:not(.section-lead) { color: var(--muted); }
.research-topics { margin: 30px 0 0; padding-left: 24px; border-left: 3px solid var(--blue); }
.research-topics > div + div { margin-top: 22px; }
.research-topics dt { font-weight: 600; font-size: 17px; }
.research-topics dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.publication + .publication { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 25px; }
.home .publication-venue { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.home .publication h3 { font-size: 21px; line-height: 1.45; font-weight: 550; margin: 0 0 8px; }
.publication h3 a { color: var(--ink); text-decoration: none; }
.publication h3 a:hover { color: var(--blue); text-decoration: underline; }
.publication-detail { font-size: 14px; }
.updates-list article { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 24px; }
.updates-list article + article { margin-top: 30px; }
.updates-list time { font-size: 14px; color: var(--muted); padding-top: 3px; }
.home .updates-list h3 { font-size: 18px; line-height: 1.5; margin: 0 0 6px; font-weight: 600; }
.home .updates-list p { margin: 0; font-size: 15px; color: var(--muted); }
.contact-section { padding-bottom: 16px; }
.home .contact-content h3 { font-size: 30px; font-weight: 500; margin: 0 0 12px; letter-spacing: -.5px; }
.contact-content p { color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 16px; font-weight: 600; }
/* Keep existing article and archive URLs visually consistent with the homepage. */
#main { padding-top: 40px; padding-bottom: 60px; }
.page__title { color: var(--ink); font-family: inherit; font-size: 32px; }
.page__content { line-height: 1.8; }
.author__name, .author__bio { font-family: inherit; }
.sidebar { opacity: 1; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 10px 18px; background: #fff; z-index: 100; }
.skip-link:focus { top: 10px; }
@media (max-width: 900px) {
  .intro { gap: 36px; grid-template-columns: minmax(0, 1fr) 240px; padding: 60px 0; }
  .portrait img { height: 290px; }
  .home-section { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .site-header { padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-links { gap: 20px; font-size: 14px; }
  .home { padding: 0 24px 40px; font-size: 16px; }
  .intro { grid-template-columns: 1fr; gap: 32px; padding: 42px 0; }
  .home h1 { letter-spacing: -1px; margin-bottom: 22px; }
  .home .intro-description { font-size: 17px; }
  .portrait { max-width: 340px; }
  .portrait img { height: 300px; }
  .home-section { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .section-heading p { margin-bottom: 0; }
  .updates-list article { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
