/* One viewport per section; long reading areas scroll within their own frame. */
.home-page { --header-height: 88px; --section-nav-height: 52px; height: 100dvh; overflow: hidden; }
.home-page .site-header { position: fixed; inset: 0 0 auto; width: 100%; height: var(--header-height); z-index: 8; background: var(--paper); }
.home-page #section-deck { position: fixed; inset: var(--header-height) 0 var(--section-nav-height); overflow: hidden; }
.home-page .screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; margin: 0; padding: 24px 0; overflow: hidden; }
.home-page .screen.is-active { animation: section-enter .28s ease-out; }
.home-page .section-scroll { width: min(var(--column), calc(100% - 88px)); max-height: 100%; min-height: 0; margin: 0; padding: 4px 12px 12px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff55 transparent; scrollbar-gutter: stable; outline: none; }
.home-page .section-scroll:focus-visible { outline: 1px solid var(--line); outline-offset: 5px; }
.home-page .section-scroll > :last-child { margin-bottom: 0; }
.home-page .bio-copy p { font-size: 18px; }
.home-page .bio-content > .text-link { margin-top: 5px; }
.home-page .research-content .filters { position: sticky; top: -4px; z-index: 2; padding-top: 4px; background: #0b2849; }
.home-page .about { border: 0; align-items: start; }
.home-page footer { padding: 0; border: 0; }
.home-page .notes .section-heading { margin: 0 0 26px; }
.writing-count { font-size: 14px; }
.section-navigation { position: fixed; z-index: 8; bottom: 0; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 88px)); height: var(--section-nav-height); display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--paper); font-size: 13px; }
.section-navigation button { min-height: 40px; padding: 8px 0; }
.section-navigation button:disabled { opacity: .25; cursor: default; }
.section-navigation span { font-size: 12px; }
.site-header a[aria-current=location] { text-decoration: underline; text-underline-offset: 6px; }
@keyframes section-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .home-page { --header-height: 104px; --section-nav-height: 52px; }
  .home-page .site-header { min-height: 0; }
  .home-page .screen { padding: 17px 0; }
  .home-page .section-scroll { width: calc(100% - 60px); padding: 3px 6px 9px; }
  .home-page .bio-copy p { font-size: 17px; }
  .section-navigation { width: calc(100% - 48px); font-size: 12px; gap: 8px; }
  .section-navigation span { font-size: 11px; }
  .home-page .section-scroll h1 { font-size: 43px; }
  .home-page .notes .section-heading { margin-bottom: 20px; }
  .home-page .note-list > a { padding: 20px 0; }
  .home-page .note-list h3 { font-size: 24px; }
  .home-page .about { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .home-page .screen.is-active { animation: none; } }

/* The title introduces the venue choices before the publication list. */
.home-page .research-content > .section-heading { margin: 0 0 22px; }

/* About uses the same expand-one-at-a-time behavior as paper abstracts. */
.about-panel { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; }
.about-panel:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.about-panel > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.about-panel > summary::-webkit-details-marker { display: none; }
.about-panel > summary::after { content: '+'; font-size: 20px; flex: none; }
.about-panel[open] > summary::after { content: '−'; }
.about-content .about-panel > summary h2 { font-size: 17px; letter-spacing: 0; margin: 0; }
.about-content .about-panel[open] > summary h2 { font-size: 33px; letter-spacing: -1px; }
.about-panel[open] > summary { margin-bottom: 22px; }
.footer-bottom > .social-links { margin-left: auto; width: auto; justify-content: flex-end; }
.home-page .about-portrait { align-self: center; }
.home-page .about-portrait .portrait-frame { margin-inline: auto; }
.teaching-course { margin-top: 24px; }
.about-content .teaching-course p { font-size: 16px; line-height: 1.8; margin: 0 0 3px; }
.teaching-course strong { font-weight: 700; }
@media (max-width: 600px) {
  .home-page .about { flex-direction: column; }
  .home-page .about-content { order: -1; width: 100%; flex: none; }
  .home-page .about-portrait { width: 100%; flex: none; }
}
