/* A small, text-first personal site. No external fonts or UI dependencies. */
:root {
  color-scheme: light;
  --ink: #11151b;
  --body: #3e4858;
  --muted: #65748b;
  --line: #d4dce7;
  --link: #0755d6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; background: #fff; color: var(--body); font-family: var(--sans); font-size: 20px; line-height: 1.6; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #003c9e; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; border-radius: 2px; }
.page { flex: 1; width: 100%; max-width: 948px; margin: 0 auto; padding: 96px 24px 96px; }
.profile { text-align: center; }
h1 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 72px; font-weight: 400; line-height: 1.12; letter-spacing: -1.8px; }
.socials { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 14px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.socials img { display: block; width: 27px; height: 27px; opacity: .72; transition: opacity 140ms ease; }
.socials a:hover img, .socials a:focus-visible img { opacity: 1; }
.introduction { margin: 42px 0 40px; font-size: 25px; line-height: 1.6; letter-spacing: -.35px; }
.section { border-top: 1px solid var(--line); scroll-margin-top: 14px; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary h2 { margin: 0; color: var(--ink); font: 400 34px/1.3 var(--serif); letter-spacing: -.45px; }
summary:hover h2 { color: var(--link); }
.chevron { flex: 0 0 auto; opacity: .65; transition: transform 160ms ease; }
details[open] > summary .chevron { transform: rotate(180deg); }
.section-content { padding: 0 0 32px; }
.section-content p { margin: 0 0 20px; }
.section-content > p:last-child { margin-bottom: 0; }
.research-list { margin-top: 32px; }
.section-label { color: var(--muted); font-size: 16px; }
.section-content .all-research { margin: 32px 0 0; }
.work-item { display: grid; grid-template-columns: minmax(0, 1fr) 34%; gap: 32px; align-items: center; }
.work-item + .work-item { margin-top: 32px; padding-top: 32px; border-top: 1px solid #e5e9ef; }
.work-item h3 { margin: 0 0 12px; color: var(--ink); font: 400 25px/1.35 var(--serif); }
.paper h3 a { color: inherit; text-decoration: none; }
.paper h3 a:hover { color: var(--link); text-decoration: underline; }
.work-copy { min-width: 0; }
.work-copy p { margin-bottom: 12px; }
.paper { font-size: 18px; }
.paper .paper-authors { margin-bottom: 4px; font-size: 14px; line-height: 1.6; }
.paper-authors strong { font-weight: 600; }
.paper .paper-meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.work-link { font-size: 17px; }
.work-visual { margin: 0; min-width: 0; }
.work-visual > a { display: block; }
.work-visual img { display: block; width: 100%; height: auto; }
.work-visual figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.work-visual figcaption a { color: inherit; }
.project-status { display: inline-block; margin-left: 10px; color: var(--muted); font: 14px/1.5 var(--sans); vertical-align: middle; }
.posts { list-style: none; margin: 24px 0; padding: 0; }
.post { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #e5e9ef; }
.post:first-child { padding-top: 0; }
.post time { color: var(--muted); font-size: 18px; white-space: nowrap; }
.all-writing { display: inline-block; margin-top: 2px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; width: calc(100% - 48px); max-width: 900px; margin: 0 auto; padding: 20px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: inherit; }
.site-footer a:hover { color: var(--link); }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 8px 14px; background: #fff; transform: translateY(-160%); z-index: 2; }
.skip-link:focus { transform: translateY(0); }
.error-page { text-align: center; }
.error-page p { margin-top: 28px; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { padding: 56px 24px 72px; }
  h1 { font-size: clamp(38px, 10vw, 54px); letter-spacing: -1px; }
  .socials { gap: 4px; margin-top: 20px; }
  .socials a { width: 40px; height: 44px; }
  .socials img { width: 23px; height: 23px; }
  .introduction { margin: 34px 0 30px; font-size: 20px; line-height: 1.6; letter-spacing: -.2px; }
  summary { padding: 19px 0; }
  summary h2 { font-size: 28px; }
  .chevron { width: 17px; height: 17px; }
  .work-item { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .work-item h3 { font-size: 23px; }
  .paper { font-size: 16px; }
  .work-visual { width: 100%; max-width: 440px; margin: 0 auto; }
  .post { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 13px 0; }
  .post time { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
