:root {
  --ink: #13201f;
  --muted: #536461;
  --line: #d7dfdc;
  --paper: #ffffff;
  --white: #ffffff;
  --sage: #ece8f7;
  --lavender: #d7d0e8;
  --purple: #34255e;
  --black: #1b1b1b;
  --teal: #0e6c64;
  --teal-dark: #084c47;
  --coral: #ca5c3f;
  --gold: #d5a73d;
  --blue: #2f5f8f;
  --shadow: 0 18px 45px rgba(17, 32, 31, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--teal-dark);
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-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-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 780;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-weight: 650;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.72rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
}

main {
  min-height: 70vh;
}

.section {
  padding: 76px 0;
}

.section.tight {
  padding-top: 42px;
}

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

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 6rem 0;
  color: var(--white);
  background:
    linear-gradient(rgba(4, 13, 38, 0.56), rgba(4, 13, 38, 0.8)),
    url("assets/images/rna-biology-hero.png") center / cover no-repeat;
}

.home-hero-content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  font-weight: 760;
}

.lab-lockup {
  display: inline-grid;
  gap: 0.4rem;
  justify-items: center;
  margin: 0 auto;
}

.lab-lockup h1 {
  max-width: none;
  color: #ffffff;
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 850;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.7), 0 5px 20px rgba(0, 0, 0, 0.75);
}

.lab-lockup p {
  margin: 0;
  color: #ffffff;
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.page-title {
  max-width: 14ch;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.lead {
  max-width: 68ch;
  color: #314340;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero .lead {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.hero .button {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.hero .button.secondary {
  background: transparent;
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--white);
}

.visual-card,
.card,
.person-card,
.cv-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.visual-card {
  overflow: hidden;
}

.visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.band {
  background: var(--lavender);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

.lab-members-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.alumni-list {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.alumni-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

.visual-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.35rem;
}

.visual-links-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 760px);
  margin: 2rem auto 0;
}

.visual-link {
  display: grid;
  gap: 1rem;
  color: var(--purple);
  text-decoration: none;
}

.visual-link span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--purple);
  border-radius: 6px;
  background: var(--white);
  color: var(--purple);
  font-weight: 750;
}

.visual-link img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.visual-link:hover span {
  background: var(--purple);
  color: var(--white);
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.person-card,
.cv-block {
  padding: 1.25rem;
}

.card.accent-teal {
  border-top: 5px solid var(--teal);
}

.card.accent-coral {
  border-top: 5px solid var(--coral);
}

.card.accent-blue {
  border-top: 5px solid var(--blue);
}

.card p,
.person-card p,
.cv-block p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 64px 0 38px;
}

.page-hero .lead {
  margin-bottom: 0;
}

body[data-page="cv"] .page-hero .lead {
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
}

body[data-page="contact"] .page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}

body[data-page="research"] .page-title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

body[data-page="research"] .section-head h2,
.research-overview h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.cv-headshot {
  width: clamp(8.5rem, 15vw, 11rem);
  aspect-ratio: 1;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.cv-headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.content-flow {
  display: grid;
  gap: 1.5rem;
}

.research-overview {
  gap: 0.9rem;
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 2rem;
  align-items: start;
}

.research-overview h2 {
  margin: 0.8rem 0 0;
}

.research-overview h2:first-child,
.research-overview p {
  margin-top: 0;
}

.research-overview p {
  margin-bottom: 0;
}

.news-feed {
  max-width: 860px;
}

.news-feed > h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.news-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-entry,
.news-empty {
  position: relative;
  padding: 1.25rem 0 1.25rem 1.6rem;
  border-bottom: 1px solid var(--line);
}

.news-entry::before,
.news-empty::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--teal-dark);
  border-radius: 50%;
  background: var(--white);
}

.news-entry {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.5rem;
}

.news-entry.has-photo {
  grid-template-columns: 10rem minmax(0, 1fr) minmax(200px, 260px);
  gap: 1.5rem;
}

.news-entry time {
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.news-entry h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.news-entry p,
.news-empty {
  color: var(--muted);
}

.news-entry p {
  margin: 0;
}

.news-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.wide-image {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.wide-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.pub-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.pub-list li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.pub-list strong {
  display: block;
  margin-bottom: 0.3rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  background: var(--sage);
  color: var(--teal-dark);
  font-weight: 850;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.person-card img.portrait-headshot {
  object-position: center 25%;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.cv-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
}

.cv-block h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.cv-block h3 {
  font-size: 1rem;
}

.cv-block .meta {
  color: var(--teal-dark);
  font-weight: 800;
}

.cv-block ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.cv-block li + li {
  margin-top: 0.4rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: stretch;
}

.contact-panel .card {
  box-shadow: none;
}

.contact-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 48%;
  margin-top: 1.25rem;
  border-radius: 8px;
}

.research-location {
  width: 100%;
  margin: 0;
  box-shadow: none;
}

.research-location img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.research-location figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-audience + .contact-audience {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-audience h3 {
  font-size: 1rem;
}

.contact-audience p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.contact-audience ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.contact-audience li + li {
  margin-top: 0.35rem;
}

.footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: var(--black);
  color: rgba(255, 255, 255, 0.78);
}

.footer a {
  color: var(--white);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    inset: 76px 16px auto 16px;
    display: none;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--black);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 0.75rem;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .visual-links,
  .people-grid,
  .contact-panel,
  .research-layout {
    grid-template-columns: 1fr;
  }

  .research-location {
    width: min(100%, 300px);
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 0.75rem;
  }

  .cv-block {
    grid-template-columns: 1fr;
  }

  .news-entry,
  .news-entry.has-photo {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .news-photo {
    width: min(100%, 320px);
    margin-top: 0.4rem;
  }
}

@media (max-width: 560px) {
  .container,
  .nav-shell {
    width: min(100% - 24px, 1120px);
  }

  .hero,
  .section {
    padding: 48px 0;
  }

  .hero {
    min-height: calc(100vh - 76px);
  }

  .lab-lockup h1 {
    white-space: normal;
    letter-spacing: 0.03em;
  }

  .footer .container {
    display: block;
  }
}
