/* The Whiting Lab: site styles */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --navy: #1a2b3d;
  --purple: #622678;
  --muted: #58626f;
  --border: #e5e7eb;
  --white: #ffffff;
  --font-heading: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1024px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand span {
  font-family: var(--font-heading); font-weight: 500; font-size: 24px;
  line-height: 1; letter-spacing: -0.025em; white-space: nowrap; color: var(--navy);
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 4px 12px; font-size: 13px; line-height: 19.5px; color: var(--muted);
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--purple); font-weight: 500; }
.menu-btn {
  display: none; background: none; border: 0; font: inherit; font-size: 13px;
  color: var(--muted); padding: 4px 0; cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--border); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 24px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-nav a.active { color: var(--purple); font-weight: 500; }

/* Hero */
.hero { position: relative; width: 100%; height: 70vh; min-height: 420px; overflow: hidden; background: #16253c; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-text { position: absolute; inset: 0; display: flex; align-items: center; }
.hero h1 {
  font-family: var(--font-heading); font-weight: 500; color: var(--white);
  font-size: 48px; line-height: 1.0; max-width: 40%;
}

/* Generic page */
main { flex: 1 0 auto; }
.page { max-width: 1024px; margin: 0 auto; padding: 80px 24px; width: 100%; }
.page-title { font-family: var(--font-heading); font-weight: 400; font-size: 36px; line-height: 40px; color: var(--navy); margin-bottom: 56px; }

/* Home */
.intro { max-width: 768px; margin-bottom: 64px; }
.intro p { font-size: 16px; line-height: 1.625; }
.intro .rule { display: block; width: 40px; height: 2px; background: var(--purple); margin-top: 24px; }
.theme {
  display: grid; grid-template-columns: 1fr 2fr; column-gap: 64px; row-gap: 12px;
  padding: 40px 0; border-top: 1px solid var(--border);
}
.theme:last-child { border-bottom: 1px solid var(--border); }
.theme h2 { font-family: var(--font-heading); font-weight: 500; font-size: 18px; line-height: 1.375; }
.theme p { font-size: 14px; line-height: 1.625; }

/* Publications */
.pubs li { font-size: 14px; line-height: 1.625; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.pubs li:last-child { border-bottom: 0; margin-bottom: 0; }
.ncbi { margin-top: 48px; font-size: 14px; line-height: 20px; color: var(--muted); }
.ncbi a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s; }
.ncbi a:hover { color: var(--navy); }

/* News */
.news li { padding: 24px 0; border-bottom: 1px solid var(--border); }
.news li:last-child { border-bottom: 0; }
.news time { display: block; font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 4px; }
.label { display: block; font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--purple); }
.news .label { margin-bottom: 8px; }
.news .headline { font-size: 16px; line-height: 1.375; font-weight: 500; color: var(--navy); text-underline-offset: 2px; }
.news a.headline:hover { text-decoration: underline; }

/* Team */
.team-section { margin-bottom: 64px; }
.team-section:last-child { margin-bottom: 0; }
.team-section h2 {
  font-family: var(--font-heading); font-weight: 400; font-size: 20px; line-height: 28px;
  padding-bottom: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--border);
}
.leaders { display: flex; flex-direction: column; gap: 48px; }
.leader { display: flex; gap: 32px; }
.leader .photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.leader .name { font-family: var(--font-heading); font-size: 20px; line-height: 28px; margin-bottom: 2px; }
.leader .label { margin-bottom: 12px; }
.leader .bio { font-size: 14px; line-height: 1.625; }
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.member { display: flex; gap: 20px; align-items: flex-start; }
.member .photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.initials {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-size: 16px; font-weight: 500;
}
.member .name { font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 2px; }
.member .label { margin-bottom: 6px; }
.member .detail { font-size: 12px; line-height: 1.625; color: var(--muted); }
.collabs { display: flex; flex-direction: column; gap: 20px; }
.collab .name { font-size: 14px; line-height: 20px; font-weight: 500; }
.collab .meta { font-size: 12px; line-height: 16px; color: var(--muted); }
.collab .sep { margin: 0 6px; opacity: 0.5; }

/* Contact */
.center-page { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: 544px; }
.center-page h1 { font-family: var(--font-heading); font-weight: 500; font-size: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 48px 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand span { font-family: var(--font-heading); font-weight: 500; font-size: 24px; line-height: 1; letter-spacing: -0.025em; white-space: nowrap; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 6px; }
.footer-nav a { font-size: 12px; line-height: 16px; color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 12px; line-height: 16px; color: rgba(255,255,255,0.5); }
.footer-note { font-size: 12px; line-height: 16px; color: rgba(255,255,255,0.35); max-width: 320px; text-align: right; }

/* Responsive */
@media (max-width: 1023px) {
  .hero h1 { font-size: 36px; line-height: 1.25; }
}
@media (max-width: 767px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .hero { height: 62vh; min-height: 440px; }
  .hero h1 { font-size: 30px; line-height: 1.25; max-width: 100%; text-shadow: 0 2px 14px rgba(22,37,60,0.8); }
  .hero img { object-position: 72% 30%; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,37,60,0.95) 0%, rgba(22,37,60,0.6) 30%, rgba(22,37,60,0) 55%); }
  .hero-text { z-index: 1; align-items: flex-end; padding-bottom: 36px; }
  .theme { grid-template-columns: 1fr; }
  .members { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
  .footer-note { text-align: left; }
  .brand span { font-size: 20px; }
  .brand img { height: 44px; }
}
@media (max-width: 639px) {
  .leader { flex-direction: column; }
  .leader .photo { width: 96px; height: 96px; }
}
