:root { --site-blue: #233a61; --site-accent: #69253d; --site-ink: #1b1d29; --site-line: #dedde1; --site-nav-height: 78px; }
/* One restrained header for the original site and its research projects. */
.global-header { position: sticky; top: 0; z-index: 50; width: 100%; background: #fff; border-bottom: 1px solid var(--site-line); }
.global-header,.global-header * { box-sizing: border-box; }
.global-nav { display: flex; align-items: center; gap: 34px; width: min(1240px,calc(100% - 80px)); height: var(--site-nav-height); margin: auto; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; line-height: 1.5; }
.global-nav a { color: var(--site-ink); text-decoration: none; }
.global-nav a:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 5px; }
.global-brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; font-size: 21px; font-weight: 700; white-space: nowrap; }
.global-logo { display: inline-block; width: 64px; height: 45px; flex: 0 0 64px; object-fit: contain; }
.global-links { display: flex; align-items: center; gap: 30px; }
.global-links a { font-size: 16px; font-weight: 500; padding-block: 26px; position: relative; }
.global-links a:hover,.global-links a[aria-current] { color: var(--site-accent); }
.global-links a::after { position: absolute; content: ''; height: 2px; bottom: 0; inset-inline: 0; background: var(--site-accent); transform: scaleX(0); transform-origin: left; transition: transform 150ms ease; }
.global-links a:hover::after,.global-links a:focus-visible::after,.global-links a[aria-current]::after { transform: scaleX(1); }
.global-resume { display: inline-flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; white-space: nowrap; }
.global-resume:hover { color: var(--site-accent); }
.project-navigation { position: sticky; top: var(--site-nav-height); z-index: 19; border-bottom: 1px solid #dedde1; background: #faf9fb; }
.project-navigation-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1240px,calc(100% - 80px)); min-height: 49px; margin: auto; }
.project-breadcrumb { display: flex; gap: 12px; font-size: 15px; color: #36303f; align-items: center; white-space: nowrap; }
.project-breadcrumb a { text-decoration: none; }
.project-breadcrumb strong { font-weight: 650; color: var(--site-accent); }
.project-navigation .nav-links { display: flex; gap: 23px; }
.project-navigation .nav-links a { display: block; font-size: 14px; padding: 14px 0; color: #292b3b; }
.project-navigation .nav-links a:hover,.project-navigation .nav-links a[aria-current] { color: var(--site-accent); }
.project-navigation .nav-links a:first-child,.project-navigation .nav-links a:last-child { display: block; }
.project-navigation .nav-links a[aria-current]::after { background: var(--site-accent); }
@media (max-width: 1100px) {
  .global-nav,.project-navigation-inner { width: calc(100% - 56px); }
}
@media (max-width: 700px) {
  .global-nav,.project-navigation-inner { width: calc(100% - 36px); gap: 19px; }
  .global-brand { font-size: 19px; gap: 8px; }
  .global-links { gap: 18px; }
  .global-links a,.global-resume { font-size: 15px; }
  .global-logo { width: 49px; height: 34px; flex-basis: 49px; }
  .project-navigation .nav-links { gap: 16px; }
  .project-navigation .nav-links a { font-size: 14px; }
  .project-navigation .nav-links a:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  :root { --site-nav-height: 108px; }
  .global-nav { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; grid-template-rows: 60px 48px; }
  .global-brand { font-size: 20px; }
  .global-links { grid-column: 1/-1; grid-row: 2; justify-content: space-between; width: 100%; gap: 25px; }
  .global-links a { padding: 11px 0; font-size: 16px; }
  .global-resume { grid-column: 2; grid-row: 1; font-size: 15px; }
  .project-breadcrumb { font-size: 14px; gap: 8px; }
  .project-navigation-inner { gap: 14px; }
  .project-navigation .nav-links { gap: 17px; margin: 0; }
  .project-navigation .nav-links a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .global-links a::after { transition: none; }
}
