/* Personal-site additions to the unmodified AcademicPages Sass theme. */
:root { --global-link-color: #26758a; --global-link-color-hover: #185164; --global-link-color-visited: #26758a; }
html { scroll-padding-top: 100px; }
body { padding-bottom: 0; }
.page__footer { position: relative; bottom: auto; color: #5f666d; }
.page__footer .fas, .page__footer .fab, .page__footer .far { color: #5f666d; }
.skip-link { position: fixed; left: 12px; top: -100px; padding: 10px 16px; z-index: 100; background: #fff; color: #17485a; border: 2px solid #26758a; }
.skip-link:focus { top: 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 2px solid #26758a; outline-offset: 4px; }
.greedy-nav .visible-links { display: flex; flex-wrap: wrap; align-items: center; }
.greedy-nav .visible-links li { display: block; }
.greedy-nav .visible-links a { min-height: 44px; display: flex; align-items: center; }
.masthead__menu-item.selected a { pointer-events: auto; cursor: pointer; }
.sidebar { padding-top: 0; }
.author__avatar img { aspect-ratio: 1; object-fit: cover; object-position: 72% 32%; }
.author__urls-wrapper > button { display: none; }
.author__urls { display: block; position: relative; right: auto; border: 0; box-shadow: none; padding: 0; margin-top: 16px; z-index: auto; }
.author__urls::before, .author__urls::after { display: none; }
.author__urls li { white-space: normal; }
.author__urls a { min-height: 29px; }
.sidebar p, .sidebar li { font-size: 14px; }
.page__title { line-height: 1.25; }
.page__content { line-height: 1.65; }
.page__content li { margin-bottom: .5em; }
.academic-links { font-size: 16px; }
.research-entry { margin-bottom: 2.2em; }
.research-status { font-size: 15px !important; }
.research-media { display: block; margin: 1.5em 0 2em; }
.research-media img, .research-media video { display: block; width: 100%; height: auto; border: 1px solid #e3e6e8; border-radius: 3px; }
.research-media figcaption { font-family: inherit; color: #596168; font-size: 14px; line-height: 1.6; margin-top: 10px; }
/* Native scrolling ends at the white sheet; extra input pulls against resistance. */
.homepage-sheet { position: relative; z-index: 1; display: flow-root; background: var(--global-bg-color, #fff); box-shadow: 0 18px 40px rgba(0, 0, 0, .24); }
.homepage-sheet .page__footer { margin-bottom: 0; }
.gallery-pull { clear: both; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 48px; padding: 28px 24px; border-top: 1px solid #e0e4e7; background: #fff; }
.gallery-pull-cue { display: flex; align-items: center; gap: 18px; }
.gallery-pull-meter { display: block; width: 60px; height: 60px; flex-shrink: 0; color: #26758a; }
.gallery-pull-track { opacity: .18; }
.gallery-pull-ring { stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--gallery-pull-progress, 0)); transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .1s linear; }
.gallery-pull-title { margin: 0 0 3px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.gallery-pull-instruction { margin: 0; font-size: 14px; line-height: 1.5; color: #626b72; }
.gallery-pull-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.gallery-pull-enabled { overscroll-behavior-y: none; }
.gallery-pull-enabled .homepage-sheet { transform: translateY(calc(-1 * var(--gallery-pull-offset, 0px))); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.gallery-pull-active .homepage-sheet { transition: transform .08s ease-out; will-change: transform; }
.gallery-pull-unlocked .homepage-sheet { transform: translateY(-100vh); transform: translateY(-100dvh); transition: transform .38s cubic-bezier(.5, 0, .7, 1); }
.gallery-discover { position: fixed; inset: 0; z-index: 0; height: 100%; visibility: hidden; pointer-events: none; background: #080d19; color: #fff; }
.gallery-pull-visible .gallery-discover { visibility: visible; }
.discover-scene { position: relative; height: 100%; overflow: hidden; background: #080d19; }
.discover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.discover-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 17, .08) 15%, rgba(3, 7, 17, .26) 45%, rgba(3, 7, 17, .75) 100%); pointer-events: none; }
.discover-copy { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: clamp(135px, 19svh, 190px); text-align: center; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.discover-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.discover-copy h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 58px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; color: inherit; }
.discover-instruction { margin: 0 0 22px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; }
.discover-credit { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 26px; margin: 0; text-align: center; font-size: 12px; line-height: 1.7; color: #e4e6ed; }
.discover-credit span { display: block; }
@media (max-height: 540px) {
  .discover-copy { bottom: 82px; }
  .discover-eyebrow { margin-bottom: 7px; }
  .discover-copy h2 { font-size: 30px; margin-bottom: 8px; }
  .discover-instruction { margin-bottom: 8px; }
  .discover-credit { bottom: 12px; font-size: 11px; }
}
body.modal-open { overflow: hidden; }
.research-dialog { width: min(1400px, 94vw); max-height: 92dvh; padding: 20px; overflow: auto; border: 1px solid #ccd3d8; background: white; color: #363d43; border-radius: 8px; }
.research-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.research-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page__content .research-dialog-header h2 { font-size: 18px; margin: 0; border: 0; padding: 0; }
.research-dialog button { padding: 9px 14px; min-height: 44px; background: #f3f4f5; color: #363d43; border: 1px solid #ccd3d8; border-radius: 4px; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.research-dialog img { width: 100%; height: auto; }
.research-dialog > p { text-align: right; margin: 14px 0 0; font-size: 14px; }
#main.gallery-main { max-width: none; padding: 0; margin: 0; animation: none; }
body:has(.apple-gallery) { padding-bottom: 0; }
body:has(.apple-gallery) .page__footer { position: relative; margin-top: 0; }
@media (min-width: 925px) {
  .sidebar { position: sticky; top: 94px; height: auto; max-height: calc(100vh - 110px); overflow-y: auto; }
}
@media (max-width: 924px) {
  .author__avatar { width: 100px; }
  .author__avatar img { max-width: 100px; }
  .author__urls-wrapper { display: block; }
  .author__urls { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
  .author__urls .author__desktop { display: none; }
  .sidebar { margin-bottom: 1.5em; }
}
@media (max-width: 650px) {
  .gallery-pull { gap: 8px; padding: 22px 16px 14px; }
  .gallery-pull-cue { gap: 12px; }
  .gallery-pull-title { font-size: 18px; }
  .gallery-pull-instruction { font-size: 13px; }
  .gallery-pull-link { flex-basis: 100%; justify-content: center; }
  html { scroll-padding-top: 20px; }
  body { padding-top: 0; padding-bottom: 0; }
  .masthead { position: relative; }
  .masthead__inner-wrap { padding-block: 8px; }
  .greedy-nav .visible-links { gap: 0 18px; }
  .greedy-nav .visible-links a { margin: 0; padding: 9px 0; font-size: 15px; }
  .masthead__menu-item--lg { flex-basis: 100%; }
  .greedy-nav .masthead__menu-item--lg a { font-size: 19px; }
  .page__content { font-size: 17px; }
  .page__title { font-size: 27px; }
  .author__content { padding-right: 0; }
  .research-dialog { padding: 12px; }
  .page__content .research-dialog-header h2 { font-size: 16px; }
  .research-status { font-size: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .gallery-discover, .gallery-pull, .research-dialog { display: none; }
  .homepage-sheet { transform: none !important; box-shadow: none; }
  .sidebar { position: static; }
}
