:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  --page: #ffffff;
  --ink: #171717;
  --muted: #626262;
  --line: #d9d9d7;
  --line-strong: #a8a8a5;
  --accent: #8e1b34;
  --accent-2: #176b5b;
  --soft: #f4f5f3;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.site-header { position: sticky; z-index: 10; top: 0; background: rgba(255,255,255,.96); }
.header-inner, main, .footer-inner { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.header-inner { display: flex; min-height: 66px; align-items: stretch; justify-content: space-between; gap: 28px; }
.header-controls { display: flex; align-items: stretch; }
.wordmark { display: flex; align-items: center; font-weight: 800; text-decoration: none; }
.tabs { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; min-height: 52px; padding: 0 15px; white-space: nowrap; text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--accent); }
.theme-toggle { display: grid; width: 44px; height: 44px; align-self: center; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; place-items: center; }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.theme-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-sun-icon { display: none; }
html[data-theme="dark"] .theme-moon-icon { display: none; }
html[data-theme="dark"] .theme-sun-icon { display: block; }
.mobile-navigation { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 64px; padding: 58px 0 54px; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 54px); font-weight: 500; line-height: 1.08; letter-spacing: 0; }
.appointments { display: grid; gap: 14px; margin-top: 30px; }
.appointment { display: grid; grid-template-columns: 12px 1fr; gap: 12px; line-height: 1.45; }
.appointment::before { width: 7px; height: 7px; margin-top: 7px; background: var(--accent); content: ""; }
.appointment strong { display: block; font-size: 15px; }
.appointment a { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.actions a { padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 13px; font-weight: 700; text-decoration: none; }
.actions a:hover { border-color: var(--accent); color: var(--accent); }
.portrait-wrap { align-self: end; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 34%; }

.section { border-top: 1px solid var(--line); padding: 42px 0; }
.section-label { margin: 0 0 30px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 82px 1fr; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.news-list time { color: var(--accent); font-size: 12px; font-weight: 800; }
.news-links { display: inline-flex; flex-wrap: wrap; gap: 5px 12px; margin-left: 10px; }
.news-links a { color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.recruiting { display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start; }
.recruiting h2 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.recruiting p { margin: 0; color: #3d3d3d; font-size: 16px; line-height: 1.65; }
.biography { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 60px; }
.biography .section-label { margin-top: 5px; }
.prose { max-width: 720px; }
.prose p { margin: 0 0 17px; color: #333; font-family: var(--serif); font-size: 16px; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.recent-news .news-list { max-width: 780px; }
.more-link { display: inline-block; margin-top: 20px; padding-bottom: 3px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.news-archive .publication-year { padding-top: 12px; }
.news-archive .news-list li:first-child { border-top: 0; padding-top: 0; }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding: 30px 0 90px; color: var(--muted); font-size: 12px; }

.page-main { min-height: calc(100vh - 180px); }
.content-header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 46px 0 26px; }
.content-header h1 { font-size: 34px; line-height: 1.2; }
.content-header a { color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.filter-tabs { display: flex; gap: 4px; margin-bottom: 26px; overflow-x: auto; }
.filter-tabs button { padding: 8px 2px; margin-right: 18px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; }
.filter-tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); background: transparent; color: var(--ink); }
.paper[hidden], .publication-year[hidden] { display: none; }
.publication-year { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 26px 0 42px; border-top: 1px solid var(--line); }
.publication-year h2 { margin: 0; color: var(--accent); font-family: var(--serif); font-size: 28px; font-weight: 500; }
.paper { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 0 0 25px; }
.paper + .paper { padding-top: 25px; border-top: 1px solid var(--line); }
.paper-month { color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.45; }
.paper-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; margin-top: 11px; }
.paper-venue { color: var(--accent); font-size: 14px; font-weight: 800; }
.paper h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.paper .paper-authors { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.paper .paper-links { margin-top: 0; }
.paper-links a { margin-right: 12px; color: var(--accent); font-size: 11px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.people-group { position: relative; padding: 34px 0 48px; }
.people-group::before { position: absolute; top: 0; right: -18px; left: -18px; height: 1px; background: var(--line-strong); content: ""; }
.people-group > h2 { margin: 0 0 30px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.people-subsection { position: relative; padding-top: 24px; }
.people-subsection::before { position: absolute; top: 0; right: -12px; left: -12px; height: 1px; background: var(--line-strong); content: ""; }
.people-subsection + .people-subsection { margin-top: 48px; }
.people-subsection > h3 { margin: 0 0 14px; color: var(--muted); font-size: 15px; font-weight: 700; }
.member-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
.member { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 0; }
.member::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--line); content: ""; }
.member-photo { width: 96px; height: 96px; border-radius: 2px; object-fit: cover; }
.member h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.member h3 a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.member p { margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.member .member-meta { color: var(--ink); font-weight: 700; }
.member-link { color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; }
.course { display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.course:last-child { border-bottom: 1px solid var(--line); }
.course-term { color: var(--ink); font-family: var(--serif); font-size: 15px; line-height: 1.4; }
.course-term span { display: block; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
.course-code { display: block; margin-bottom: 5px; color: var(--accent); font-family: "Courier New", monospace; font-size: 12px; font-weight: 800; }
.course h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.course p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.course a { padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 11px; font-weight: 800; text-decoration: none; }
/* Editorial */
.editorial {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-strong: #a1a1a6;
  --soft: #f5f5f7;
  --accent: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
.editorial .site-header { border-bottom: 1px solid rgba(0, 0, 0, .1); background: rgba(255, 255, 255, .9); box-shadow: 0 2px 5px rgba(0, 0, 0, .1), 0 10px 26px rgba(0, 0, 0, .13); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
.editorial .wordmark { font-size: 18px; font-weight: 650; }
.editorial .tabs a { padding-right: 19px; padding-left: 19px; border-bottom: 2px solid transparent; font-size: 16px; font-weight: 500; }
.editorial .tabs a[aria-current="page"] { border-bottom-color: var(--accent); }
.editorial h1,
.editorial .recruiting h2,
.editorial .publication-year h2,
.editorial .people-group > h2,
.editorial .course h2,
.editorial .course-term,
.editorial .paper-month,
.editorial .prose p { font-family: inherit; }
.editorial h1 { font-weight: 650; }
.editorial .hero { gap: 72px; padding: 72px 0 64px; }
.editorial .portrait { filter: saturate(.9) contrast(1.02); }
.editorial .appointments { gap: 18px; }
.editorial .appointment strong { font-size: 17px; font-weight: 600; }
.editorial .appointment a { font-size: 15px; line-height: 1.55; }
.editorial .actions { gap: 22px; }
.editorial .section-label { color: var(--ink); font-size: 14px; font-weight: 650; text-transform: none; }
.editorial .biography { background: var(--soft); box-shadow: 0 0 0 100vmax var(--soft); clip-path: inset(0 -100vmax); }
.editorial .prose p { color: #3a3a3c; font-size: 16px; line-height: 1.72; }
.editorial .content-header { background: var(--soft); box-shadow: 0 0 0 100vmax var(--soft); clip-path: inset(0 -100vmax); }
.editorial .content-header h1 { font-size: 32px; }
.editorial .content-header a,
.editorial .actions a { font-size: 15px; font-weight: 500; }
.editorial .news-list time { font-size: 13px; }
.editorial .news-archive .news-list time { color: var(--muted); }
.editorial .paper-month,
.editorial .paper .paper-authors { font-size: 14px; }
.editorial .paper-venue { font-size: 15px; }
.editorial .paper-links a,
.editorial .member-link,
.editorial .course a { font-size: 12px; }
.editorial .member p,
.editorial .course p { font-size: 14px; }
.editorial .course-code { font-size: 13px; }
.editorial .footer-inner { font-size: 13px; }
.editorial footer { background: var(--soft); }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] .editorial {
  --page: #1c1c1e;
  --ink: #e5e5ea;
  --muted: #aeaeb2;
  --line: #48484a;
  --line-strong: #6b6b70;
  --soft: #242426;
  --accent: #e5e5ea;
}
html[data-theme="dark"] .editorial .site-header { border-bottom-color: rgba(255, 255, 255, .1); background: rgba(36, 36, 38, .92); box-shadow: 0 2px 5px rgba(0, 0, 0, .26), 0 10px 28px rgba(0, 0, 0, .32); }
html[data-theme="dark"] .editorial .prose p,
html[data-theme="dark"] .editorial .recruiting p { color: #c9c9cf; }
html[data-theme="dark"] .editorial .portrait { filter: saturate(.82) brightness(.9) contrast(1.04); }

@media (max-width: 850px) {
  .header-inner { width: 100%; min-height: 58px; align-items: center; gap: 0; }
  .wordmark { min-height: 58px; padding: 0 20px; }
  .desktop-navigation { display: none; }
  .header-controls { margin-left: auto; }
  .mobile-navigation { display: block; }
  .mobile-navigation summary { display: grid; width: 58px; height: 58px; cursor: pointer; list-style: none; place-items: center; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
  .menu-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-close-icon { display: none; }
  .mobile-navigation[open] .menu-open-icon { display: none; }
  .mobile-navigation[open] .menu-close-icon { display: block; }
  .mobile-tabs { position: absolute; top: 58px; right: 0; left: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .98); box-shadow: 0 12px 24px rgba(0, 0, 0, .1); }
  .mobile-tabs a { display: flex; min-height: 52px; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; text-decoration: none; }
  .mobile-tabs a[aria-current="page"] { background: var(--soft); font-weight: 650; }
  main, .footer-inner { width: min(100% - 32px, 680px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding: 48px 0; }
  h1 { font-size: clamp(38px, 11vw, 48px); }
  .portrait-wrap { width: min(100%, 430px); justify-self: center; }
  .recruiting { grid-template-columns: 1fr; }
  .content-header { padding: 36px 0 22px; }
  .content-header h1 { font-size: 30px; }
  .publication-year { grid-template-columns: 1fr; gap: 18px; }
  .member-list { grid-template-columns: 1fr; }
  .course { grid-template-columns: 74px 1fr; gap: 16px; }
  .course a { grid-column: 2; justify-self: start; }
  .recruiting { gap: 48px; }
  .biography { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { flex-direction: column; }

  .editorial .hero { gap: 32px; padding: 42px 0 48px; }
  .editorial .portrait-wrap { width: min(68vw, 240px); }
  html[data-theme="dark"] .editorial .mobile-tabs { background: rgba(28, 28, 30, .98); box-shadow: 0 12px 28px rgba(0, 0, 0, .55); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
