:root {
  --ink: #3c3c3c;
  --heading: #25454c;
  --accent: #0f6f78;
  --accent-dark: #0b5960;
  --muted: #666f72;
  --pale: #f2f4f4;
  --line: #e2e6e7;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  background: #a31f34;
  min-height: 92px;
}

.nav {
  width: min(1480px, calc(100% - 44px));
  min-height: 92px;
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding-top: 22px;
}

.brand {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.brand span {
  display: block;
  width: 28px;
  height: 28px;
  margin-top: 5px;
  border: 2px solid #fff;
  transform: rotate(45deg);
}

.site-header .nav > a,
.site-header .nav-links a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  padding-top: 2px;
  color: #fff;
  font-size: 18px;
}

.nav-links a {
  display: inline-flex;
  position: relative;
  min-height: 34px;
  height: 34px;
  align-items: center;
  padding: 0 0 8px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a[aria-current="page"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff;
  font-weight: 700;
}

.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.container {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
  gap: 86px;
  padding: 22px 0 58px;
}

.hero-text {
  padding-top: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.22;
  font-weight: 700;
}

h1 {
  font-size: 30px;
  color: var(--accent-dark);
}

h2 {
  font-size: 29px;
  color: var(--accent-dark);
}

h3 {
  font-size: 24px;
}

.lead {
  max-width: 820px;
  margin: 25px 0 0;
  color: var(--ink);
}

.join-note {
  margin-top: 26px;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
}

.feature {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 54px 0 66px;
}

.feature img {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
}

.feature-copy {
  padding: 2px 0 0;
}

.feature-copy p {
  margin: 24px 0 0;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 4px 0 48px;
}

.carousel-dots span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-dark);
  opacity: 0.95;
}

.carousel-dots span:nth-child(5) {
  opacity: 0.65;
}

.band {
  background: var(--pale);
  padding: 52px 0 66px;
}

.section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-head p {
  max-width: none;
  margin: 24px 0 0;
}

.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.image-row img {
  width: 100%;
  aspect-ratio: 1.34 / 1;
  object-fit: cover;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.profile,
.paper,
.grant,
.timeline {
  border-top: 3px solid var(--line);
  background: transparent;
}

.card img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  margin-bottom: 18px;
}

.card-body,
.profile,
.paper,
.grant,
.timeline {
  padding: 18px 0 0;
}

.card p,
.profile p,
.paper p,
.grant p,
.timeline p {
  margin: 12px 0 0;
  color: var(--muted);
}

.paper,
.grant,
.timeline,
.profile {
  padding-bottom: 24px;
}

.venue,
.grant .meta,
.paper .venue {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-list,
.link-list,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  color: var(--accent-dark);
  font-weight: 700;
}

.button::after {
  content: " →";
}

.button.secondary {
  color: var(--accent-dark);
}

.page-title {
  padding: 42px 0 34px;
  background: var(--pale);
}

.page-title p {
  max-width: 960px;
  margin: 18px 0 0;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.avatar {
  display: none;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  background: var(--line);
  object-fit: cover;
}

.columns {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 42px;
  align-items: start;
}

.side-box {
  border-top: 3px solid var(--accent);
  background: var(--pale);
  padding: 24px;
}

.side-box dl {
  margin: 0;
}

.side-box dt {
  margin-top: 18px;
  color: var(--heading);
  font-weight: 700;
}

.side-box dt:first-child {
  margin-top: 0;
}

.side-box dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.content-list {
  margin: 14px 0 0;
  padding-left: 21px;
  color: var(--muted);
}

.content-list li + li {
  margin-top: 8px;
}

body.research-page {
  --paper: #ffffff;
  background:
    linear-gradient(135deg, var(--accent) 0 34px, transparent 34px) top left / 112px 112px no-repeat,
    linear-gradient(315deg, var(--accent-hot) 0 28px, transparent 28px) top right / 96px 96px no-repeat,
    var(--paper);
}

body.publication-page {
  background: #f3f4f4;
}

.publication-main {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.publication-heading {
  margin: 0 12px 24px;
}

.publication-heading h1 {
  color: var(--accent-dark);
  font-size: 30px;
}

.publication-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-style: italic;
}

.publication-search-wrap {
  margin-bottom: 20px;
}

.publication-search {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  outline: none;
  padding: 0 26px;
}

.publication-search:focus {
  box-shadow: 0 0 0 2px rgba(15, 111, 120, 0.28);
}

.publication-search::placeholder {
  color: #7b8284;
}

.publication-note {
  margin: 18px 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
}

.publication-year-group {
  margin-top: 30px;
}

.publication-year-group:first-of-type {
  margin-top: 18px;
}

.publication-year {
  margin: 0 12px 19px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dde2e3;
  color: var(--accent-dark);
  font-size: 25px;
}

.publication-list {
  list-style: none;
  margin: 0;
  padding: 0 12px;
}

.publication-list-wrap {
  counter-reset: publication-index;
}

.publication-item {
  margin: 0 0 26px;
  counter-increment: publication-index;
}

.publication-item[hidden] {
  counter-increment: none;
}

.publication-item p {
  max-width: 1400px;
  margin: 0;
  color: #4b4f50;
  font-size: 17px;
  line-height: 1.42;
}

.publication-title {
  color: #3d4243;
  font-weight: 700;
}

.publication-title::before {
  content: counter(publication-index) ". ";
  color: #6b7173;
  font-weight: 700;
  margin-right: 8px;
}

.funding-page .publication-title::before {
  content: none;
  margin-right: 0;
}

.publication-item .publication-authors {
  margin-top: 2px;
}

.publication-item .publication-venue {
  margin-top: 2px;
  font-style: italic;
}

.publication-item mark {
  border-radius: 3px;
  background: #f3c7cf;
  color: inherit;
  padding: 0 2px;
}

.publication-empty {
  margin: 32px 12px 0;
  color: var(--muted);
  font-size: 18px;
}

.publication-empty[hidden] {
  display: none;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.footer-inner {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  text-align: left;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.footer-lab {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.visitor-tracker {
  display: inline-flex;
  line-height: 0;
  opacity: 0.38;
  transition: opacity 160ms ease, filter 160ms ease;
  filter: grayscale(0.25);
}

.visitor-tracker:hover,
.visitor-tracker:focus {
  opacity: 0.82;
  filter: grayscale(0);
  text-decoration: none;
}

.visitor-tracker img {
  display: block;
  width: 152px;
  height: auto;
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    flex-direction: column;
    padding-bottom: 22px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .feature,
  .columns,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .image-row,
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container,
  .nav,
  .publication-main,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .nav-links a {
    padding: 0 10px;
    font-size: 15px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 25px;
  }

  .hero {
    padding-top: 12px;
  }

  .image-row,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-actions {
    align-items: center;
    gap: 12px;
  }

  .publication-main {
    padding-top: 20px;
  }

  .publication-search {
    height: 52px;
    font-size: 17px;
    padding: 0 20px;
  }

  .publication-list {
    padding: 0 4px;
  }

  .publication-item p {
    font-size: 16px;
  }
}

@font-face {
  font-family: "CocoSpace";
  src: url("fonts/SpaceGrotesk_wght_.ttf") format("truetype");
  font-weight: 300 700;
}

@font-face {
  font-family: "CocoSerif";
  src: url("fonts/Petrona_wght_.ttf") format("truetype");
  font-weight: 300 800;
}

body {
  --ink: #171717;
  --heading: #111111;
  --accent: #a31f34;
  --accent-dark: #7f1828;
  --accent-hot: #cf4d62;
  --accent-blue: #8ed1fc;
  --accent-green: #7bdcb5;
  --accent-peach: #fbe7dd;
  --muted: #444;
  --pale: #f2f0ef;
  --line: #111;
  --paper: #fffaf0;
  background:
    linear-gradient(90deg, rgba(163, 31, 52, 0.18) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, var(--pale) 0 520px, #fff 520px 100%);
  color: var(--ink);
  font-family: "CocoSpace", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--heading);
}

.site-header {
  background: #111;
  border-bottom: 4px solid var(--accent);
}

.nav {
  min-height: 96px;
  align-items: stretch;
  padding-top: 0;
  height: 96px;
}

.brand {
  display: flex;
  min-width: 280px;
  height: 96px;
  align-items: center;
  padding: 24px 34px;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  text-decoration: none;
}

.brand span {
  display: none;
}

.nav-links {
  padding-top: 0;
  color: #fff;
  font-size: 17px;
}

.nav-links a {
  min-height: 96px;
  padding: 0 20px;
  border-left: 2px solid #333;
  color: #fff;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  background: var(--accent-hot);
  border-left-color: var(--accent-hot);
  border-right: 2px solid var(--accent-hot);
  color: #111;
}

.nav-links a:hover {
  background: var(--accent-blue);
  color: #111;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: "CocoSerif", Georgia, serif;
  font-weight: 800;
}

h1,
.publication-heading h1 {
  font-size: 38px;
  color: var(--heading);
}

h2 {
  font-size: 32px;
  color: var(--heading);
}

.eyebrow,
.venue,
.grant .meta,
.paper .venue {
  color: var(--accent);
}

.hero {
  gap: 0;
  margin-top: 34px;
  border: 3px solid var(--line);
  background: linear-gradient(90deg, var(--accent-hot) 0 58%, var(--accent-blue) 58% 100%);
  padding: 0;
}

.hero-text {
  padding: 48px;
}

.lead {
  font-size: 20px;
}

.hero-visual img {
  border-left: 3px solid var(--line);
}

.feature {
  gap: 0;
  margin: 48px auto 64px;
  border: 3px solid var(--line);
  background: #fff;
  padding: 0;
}

.feature img {
  border-right: 3px solid var(--line);
}

.feature-copy {
  padding: 34px 36px;
}

.carousel-dots span {
  border-radius: 0;
  background: var(--accent);
}

.band {
  background: linear-gradient(90deg, var(--accent) 0 22%, var(--accent-green) 22% 100%);
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.page-title {
  background: linear-gradient(90deg, var(--accent-blue) 0 62%, var(--accent-hot) 62% 100%);
  border-bottom: 3px solid var(--line);
}

.card,
.profile,
.paper,
.grant,
.timeline {
  border: 3px solid var(--line);
  background: #fff;
}

.card-body,
.profile,
.paper,
.grant,
.timeline {
  padding: 20px;
}

.grid > *:nth-child(3n + 1),
.people-grid > *:nth-child(4n + 1) {
  background: var(--accent-peach);
}

.grid > *:nth-child(3n + 2),
.people-grid > *:nth-child(4n + 2) {
  background: #fff;
}

.grid > *:nth-child(3n),
.people-grid > *:nth-child(4n + 3) {
  background: var(--accent-blue);
}

.people-grid > *:nth-child(4n) {
  background: var(--accent-green);
}

.side-box {
  border: 3px solid var(--line);
  background: var(--accent-hot);
}

body.publication-page {
  background:
    linear-gradient(90deg, var(--accent-blue) 0 13%, transparent 13% 100%),
    linear-gradient(180deg, var(--pale) 0 240px, #fff 240px 100%);
}

.publication-search {
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--accent-hot);
}

.publication-search:focus {
  box-shadow: 6px 6px 0 var(--accent);
}

.publication-year {
  display: inline-block;
  padding: 8px 14px;
  border: 3px solid var(--line);
  background: var(--accent-green);
  color: var(--heading);
}

.publication-item {
  margin-bottom: 18px;
  border: 3px solid var(--line);
  background: #fff;
  padding: 18px 20px;
}

.publication-item:nth-child(3n + 2) {
  background: var(--accent-peach);
}

.publication-item:nth-child(3n) {
  background: #eef8f3;
}

.publication-item p,
.publication-title {
  color: var(--ink);
}

.publication-title::before {
  color: var(--accent);
}

.publication-item mark {
  border-radius: 0;
  background: var(--accent-hot);
}

.site-footer {
  border-top: 4px solid var(--accent);
  background: #111;
  color: #fff;
}

.site-footer a {
  color: var(--accent-hot);
}

@media (max-width: 980px) {
  .nav {
    align-items: stretch;
    gap: 0;
    height: 72px;
  }

  .brand,
  .nav-links a {
    min-height: 72px;
    height: 72px;
  }

  .hero,
  .feature {
    background: var(--accent-hot);
  }

  .hero-visual img,
  .feature img {
    border-left: 0;
    border-right: 0;
    border-top: 3px solid var(--line);
  }
}

body {
  --ink: #242424;
  --heading: #1f1f1f;
  --accent: #a31f34;
  --accent-dark: #8f1b2e;
  --accent-hot: #cf4d62;
  --muted: #555;
  --pale: #f2f0ef;
  --line: #d8d4cf;
  --paper: #ffffff;
  background:
    linear-gradient(135deg, var(--accent) 0 34px, transparent 34px) top left / 112px 112px no-repeat,
    linear-gradient(315deg, var(--accent-hot) 0 28px, transparent 28px) top right / 96px 96px no-repeat,
    var(--paper);
  color: var(--ink);
  font-family: "CocoSpace", "Helvetica Neue", Arial, sans-serif;
}

body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

body a:hover {
  text-decoration: underline;
}

body .site-header {
  background: var(--accent);
  border-bottom: 4px solid var(--accent);
}

body .nav {
  min-height: 92px;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding-top: 0;
}

body .brand {
  display: flex;
  min-width: 120px;
  align-items: center;
  padding: 0 24px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 38px;
  text-decoration: none;
}

body .brand span {
  display: none;
}

body .nav-links {
  padding-top: 0;
  color: #fff;
  font-size: 17px;
}

body .nav-links a {
  min-height: 92px;
  padding: 0 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

body .nav-links a[aria-current="page"] {
  background: var(--accent-dark);
  border-left-color: rgba(255, 255, 255, 0.2);
  border-right: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

body .nav-links a:hover {
  background: var(--accent-hot);
  color: #fff;
}

body h1,
body h2,
body h3 {
  color: var(--heading);
  font-family: "CocoSerif", Georgia, serif;
  font-weight: 800;
}

body h1,
body .publication-heading h1 {
  color: var(--heading);
  font-size: 34px;
}

body h2 {
  color: var(--heading);
  font-size: 30px;
}

body .page-title {
  position: relative;
  background: var(--pale);
  border-bottom: 1px solid var(--line);
}

body .page-title::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -18px;
  width: 160px;
  height: 36px;
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--accent-hot) 50% 100%);
}

body .card,
body .profile,
body .paper,
body .grant,
body .timeline {
  border: 0;
  border-top: 3px solid var(--accent);
  background: transparent;
}

body .card-body,
body .profile,
body .paper,
body .grant,
body .timeline {
  padding: 18px 0 0;
}

body .side-box {
  border: 0;
  border-top: 4px solid var(--accent);
  background: var(--pale);
}

body.publication-page {
  background:
    linear-gradient(135deg, var(--accent) 0 34px, transparent 34px) top left / 112px 112px no-repeat,
    linear-gradient(315deg, var(--accent-hot) 0 28px, transparent 28px) top right / 96px 96px no-repeat,
    #f6f5f3;
}

body .publication-search {
  border: 2px solid var(--line);
  border-radius: 0;
  background: #fff;
}

body .publication-search:focus {
  box-shadow: 4px 4px 0 var(--accent-hot);
}

body .publication-year {
  display: block;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(90deg, rgba(163, 31, 52, 0.14), transparent 42%);
  color: var(--heading);
}

body .publication-item {
  margin: 0 0 26px;
  border: 0;
  background: transparent;
  padding: 0;
}

body .publication-item:nth-child(3n + 2),
body .publication-item:nth-child(3n) {
  background: transparent;
}

body .publication-item p {
  color: #4b4f50;
}

body .publication-title {
  color: #3d4243;
}

body .publication-title::before {
  color: var(--accent);
}

body .publication-item mark {
  border-radius: 3px;
  background: #f3c7cf;
}

body .site-footer {
  border-top: 4px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

body .site-footer a {
  color: #fff;
}

body .nav {
  justify-content: flex-start;
  gap: 0;
  height: 96px;
}

.lancaster-logo {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.lancaster-logo img {
  display: block;
  width: 172px;
  max-width: 100%;
  height: auto;
  background: transparent;
}

body.research-page {
  --paper: #fffaf0;
  background:
    linear-gradient(135deg, var(--accent) 0 34px, transparent 34px) top left / 112px 112px no-repeat,
    linear-gradient(315deg, var(--accent-hot) 0 28px, transparent 28px) top right / 96px 96px no-repeat,
    var(--paper);
}

.lancaster-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.lancaster-wordmark {
  max-width: 128px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.12;
}

.home-description {
  max-width: 1200px;
  padding-top: 62px;
}

.home-description p {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.72;
}

body.pi-page .pi-content,
body.people-page .people-content {
  background: var(--pale);
}

body.people-page {
  background: #f6f5f3;
}

body.people-page .page-title,
body.people-page .people-content {
  background: transparent;
  border-bottom: 0;
}

body.people-page .page-title {
  padding-top: 26px;
  padding-bottom: 24px;
}

body.people-page .people-content .section:first-of-type {
  padding-top: 18px;
}

body.people-page .people-content .section-head h2 {
  display: block;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(90deg, rgba(163, 31, 52, 0.14), transparent 42%);
  color: var(--heading);
  font-size: 25px;
}

body.people-page .people-content .section-head p {
  max-width: none;
  margin: 24px 12px 0 12px;
}

body.people-page .page-title .container,
body.people-page .people-content .container {
  width: min(1200px, calc(100% - 64px));
}

body.people-page .people-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

body.people-page .profile {
  flex: 0 0 210px;
}

body.people-page .profile-photo {
  aspect-ratio: 1 / 1;
}

body.people-page .profile h3,
body.people-page .profile p {
  text-align: center;
}

body.people-page .people-grid > *,
body.people-page .grid > *,
body.people-page .profile,
body.people-page .timeline {
  background: transparent;
}

body.people-page .profile h3 a {
  text-decoration: underline;
  color: var(--heading);
}

body.people-page .profile h3 a:hover {
  text-decoration: underline;
  color: var(--heading);
}

body.people-page .profile h3 .faculty-title {
  text-decoration: none;
}

@media (max-width: 980px) {
  body.people-page .people-grid {
    grid-template-columns: repeat(2, minmax(0, 210px));
  }
}

@media (max-width: 640px) {
  body.people-page .people-grid {
    grid-template-columns: minmax(0, 210px);
  }
}

body.pi-page .page-title::after,
body.people-page .page-title::after {
  display: none;
}

body.pi-page {
  background: #f2f0ef;
}

body.pi-page .site-header {
  border-bottom: 1px solid #d8dcdd;
}

.pi-profile {
  padding: 78px 0 92px;
}

.pi-profile-inner {
  width: min(1200px, calc(100% - 64px));
}

.pi-profile h1 {
  color: #0c1517;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pi-main-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  margin-top: 52px;
}

.pi-portrait {
  max-width: 300px;
  margin: 0 0 26px;
}

.pi-portrait img {
  width: 100%;
  height: auto;
  background: #dde3e4;
}

.pi-details {
  max-width: 760px;
  color: #0c1517;
  font-size: 16px;
  line-height: 1.35;
}

.pi-details p {
  margin: 0;
}

.pi-details p + p {
  margin-top: 4px;
}

.pi-details a,
.pi-bio a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pi-rule {
  display: none;
  width: min(860px, calc(100% - 80px));
  margin: 58px auto 52px;
  border: 0;
  border-top: 1px solid var(--accent);
}

.pi-bio {
  max-width: 760px;
  padding-top: 3px;
}

.pi-bio h2 {
  color: #0c1517;
  font-size: clamp(29px, 2.7vw, 40px);
  letter-spacing: -0.03em;
}

.pi-bio p {
  margin: 28px 0 0;
  color: #111b1d;
  font-size: 18px;
  line-height: 1.62;
}

@media (max-width: 640px) {
  body.people-page .page-title .container,
  body.people-page .people-content .container {
    width: min(100% - 28px, 1460px);
  }

  .lancaster-logo,
  .brand,
  .nav-links a {
    min-height: 64px;
    height: 64px;
  }

  .nav,
  body .nav {
    height: 64px;
  }

  .lancaster-logo {
    width: 100%;
    border-right: 0;
    border-bottom: 4px solid var(--accent);
  }

  .pi-profile {
    padding: 48px 0 64px;
  }

  .pi-profile-inner {
    width: min(100% - 34px, 1200px);
  }

  .pi-main-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 34px;
  }

  .pi-portrait {
    max-width: 260px;
    margin: 34px 0 28px;
  }

  .pi-rule {
    display: block;
    width: 100%;
    margin: 42px 0 38px;
  }

  .pi-bio {
    max-width: none;
    padding-top: 0;
  }

  .pi-bio p {
    font-size: 17px;
  }
}

body.research-page .research-direction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

body.research-page .research-direction-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

body.research-page .research-direction-list a:hover {
  border-color: var(--accent);
}

body.research-page .research-directions {
  display: grid;
  gap: 42px;
  background: var(--pale);
  width: 100%;
  margin: 0;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

body.research-page .page-title .container {
  width: min(1200px, calc(100% - 64px));
}

body.research-page .page-title {
  padding-top: 26px;
  padding-bottom: 22px;
  border-bottom: 0;
}

body.research-page .page-title p {
  margin-top: 10px;
}

body.research-page .research-direction {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) 1fr;
  gap: 34px;
  align-items: start;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 34px;
  border-top: 3px solid var(--line);
}

body.research-page .research-direction:first-child {
  padding-top: 0;
  border-top: 0;
}

body.research-page .research-direction:first-of-type {
  padding-top: 0;
  border-top: 0;
}

body.research-page .research-direction-media {
  display: grid;
  min-height: 210px;
  align-items: center;
  background: var(--pale);
}

body.research-page .research-direction-media img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
}

body.research-page .research-direction-copy h3 {
  margin-top: 18px;
  font-size: 20px;
}

body.research-page .research-work-list {
  margin: 16px 0 0;
  padding-left: 24px;
  color: var(--muted);
}

body.research-page .research-work-list li + li {
  margin-top: 10px;
}

body.research-page .page-title::after {
  display: none;
}

@media (max-width: 980px) {
  body.research-page .research-direction {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.research-page .research-direction-media {
    min-height: auto;
  }

  body.research-page .research-directions {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  body.research-page .page-title .container,
  body.research-page .research-direction {
    width: min(100% - 28px, 1460px);
  }
}

body[data-page="home"] main,
body[data-page="home"] .page-title,
body[data-page="home"] .home-description {
  background: var(--pale);
  border-bottom: 0;
}

body[data-page="home"] .page-title .container {
  text-align: left;
}

body[data-page="home"] .page-title {
  padding-bottom: 22px;
}

body[data-page="home"] .home-description {
  padding-top: 10px;
  padding-bottom: 34px;
}

body[data-page="home"] .home-hero-copy {
  max-width: 1120px;
  margin: 0 auto;
}

body[data-page="home"] .home-kicker {
  display: inline-block;
  margin-bottom: 14px;
  min-width: 360px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ee9fb1 0%, #ffc8d3 38%, rgba(255, 200, 211, 0) 100%);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

body[data-page="home"] .page-title::before,
body[data-page="home"] .page-title::after,
body[data-page="home"] .home-description::before,
body[data-page="home"] .home-description::after {
  content: none;
  display: none;
}

body[data-page="home"] .eyebrow,
body[data-page="home"] h1,
body[data-page="home"] h2,
body[data-page="home"] .lead {
  color: var(--ink);
}

body[data-page="home"] .eyebrow {
  color: var(--ink);
}

body[data-page="home"] .home-description p {
  background: transparent;
  max-width: 980px;
  margin-right: 0;
  margin-left: 0;
  color: var(--ink);
  text-align: left;
}

body .site-footer {
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (min-width: 761px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: start;
  }

  .brand {
    justify-self: start;
  }

  .nav-links {
    justify-self: center;
  }

  .nav > :last-child {
    justify-self: end;
  }
}

.site-header {
  min-height: 92px;
}

.nav {
  min-height: 92px;
  padding-top: 22px;
}

.site-header {
  height: 118px !important;
  min-height: 118px !important;
}

.nav {
  height: 118px !important;
  min-height: 118px !important;
  padding-top: 0 !important;
  align-items: center !important;
}

.nav-links {
  padding-top: 0 !important;
  align-items: center;
}

.site-header {
  --nav-side-width: clamp(280px, 20vw, 400px);
}

.site-header .nav > .brand,
body .site-header .nav > .brand {
  display: inline-flex;
  width: var(--nav-side-width);
  min-width: var(--nav-side-width);
  height: 118px;
  min-height: 118px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 28px;
  background: #000 !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: clamp(20px, 1.28vw, 24px);
  font-weight: 800;
  line-height: 1.08;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.site-header .nav > .brand:hover,
body .site-header .nav > .brand:hover {
  background: #000 !important;
  color: #fff !important;
  text-decoration: none;
}

.site-header .nav-links a,
body .site-header .nav-links a {
  min-height: 34px;
  height: 34px;
  padding: 0 0 8px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 981px) {
  .nav,
  body .nav {
    width: 100% !important;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: var(--nav-side-width) minmax(0, 1fr) var(--nav-side-width);
    gap: 18px;
    padding: 0 !important;
  }

  .nav-links {
    justify-self: center;
    width: auto;
    padding: 0;
    justify-content: center;
    gap: clamp(24px, 3vw, 42px);
  }

  .lancaster-logo {
    width: var(--nav-side-width);
    justify-self: end;
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .site-header {
    height: auto !important;
    min-height: 0 !important;
  }

  .nav,
  body .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    height: auto !important;
    min-height: 0 !important;
    align-items: center !important;
    padding: 14px 0 !important;
  }

  .site-header .nav > .brand,
  body .site-header .nav > .brand {
    width: min(300px, 100%);
    min-width: 0;
    height: auto;
    min-height: 82px;
    font-size: 20px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .nav-links a,
  body .nav-links a {
    min-height: 34px;
    height: 34px;
    font-size: 17px;
  }

  .lancaster-logo {
    grid-column: 2;
    grid-row: 1;
    min-height: 62px;
    height: 62px;
  }
}

@media (max-width: 640px) {
  .nav,
  body .nav {
    grid-template-columns: 1fr;
  }

  .site-header .nav > .brand,
  body .site-header .nav > .brand {
    width: 100%;
    font-size: 18px;
  }

  .lancaster-logo {
    grid-column: 1;
    grid-row: auto;
    width: max-content;
    max-width: 100%;
  }

  .nav-links a,
  body .nav-links a {
    font-size: 16px;
  }
}
