:root {
  --bg: #f7f4ef;
  --panel: #fffdf9;
  --panel-alt: #f0ebe4;
  --ink: #1d1c1a;
  --muted: #66615d;
  --line: rgba(29, 28, 26, 0.12);
  --brand: #006eb6;
  --brand-dark: #005494;
  --gold: #caa35d;
  --shadow: 0 14px 30px rgba(33, 29, 25, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-color: var(--brand-dark);
  text-underline-offset: 2px;
}

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

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

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  height: 44px;
  width: auto;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.98rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a.active {
  color: var(--brand-dark);
}

.nav-links a:hover {
  color: var(--brand);
}

main {
  flex: 1;
  padding-bottom: 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 4.5rem 0 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  color: var(--brand);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  margin-top: 0;
  color: var(--brand-dark);
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}


.lede {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.primary {
  background: var(--brand-dark);
  color: white;
  border-color: var(--brand-dark);
}

.button.primary:hover {
  background: var(--brand);
  border-color: var(--brand);
}

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

.button.secondary:hover {
  color: var(--brand);
}

.button.accent {
  background: var(--brand-dark);
  color: white;
  border-color: var(--brand-dark);
}

.button.accent:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.button.small {
  min-height: 32px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-panel,
.info-card,
.layout-card,
.person-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 0;
  overflow: hidden;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 12px;
}

.lab-photo {
  display: block;
  width: 100%;
  height: auto;
}

.hero-heading-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.hero-heading-row h1 {
  margin-bottom: 0;
}

.hero-ship {
  height: 110px;
  width: auto;
  flex-shrink: 0;
  transform: translateY(-8px);
}

.hero-panel h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.section {
  padding-top: 2rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

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

.info-card {
  padding: 1.5rem;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-shell {
  padding-top: 3rem;
}

.page-header {
  margin-bottom: 2rem;
}

.publication-note {
  color: var(--muted);
  margin: -0.75rem 0 1.5rem;
}

.publication-note a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.publication-note a:hover {
  color: var(--brand);
}

.layout-card {
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
}

.layout-card p,
.layout-card li,
.person-card p,
.alumni-list {
  color: var(--muted);
}

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

.publication-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 0 0 0.75rem;
}

.publication-list li:last-child {
  padding-bottom: 0;
}

.publication-list li.group-first:not(:first-child) {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.publication-list li.group-rest > div {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.pub-year {
  color: var(--muted);
  font-weight: 700;
}

.pub-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.pub-title a {
  color: var(--brand-dark);
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--brand);
}

.pub-meta {
  margin: 0;
  color: var(--muted);
}

.lab-member {
  font-weight: 600;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.people-section {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.person-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.person-card h3 {
  margin-top: 0;
}

.person-card p:last-child {
  margin-bottom: 0;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: white;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.avatar-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.4rem;
}

.person-card h3 a {
  color: var(--brand-dark);
  text-decoration: none;
}

.person-card h3 a:hover {
  color: var(--brand);
}

.person-role {
  margin: 0 0 0.5rem;
  color: var(--brand-dark);
  font-weight: 600;
}

.alumni-list {
  padding-left: 1.2rem;
  line-height: 2;
}

.alumni-list a {
  color: var(--brand-dark);
}

.alumni-list a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-identity p {
  margin: 0;
  line-height: 1.2;
}

.footer-right {
  text-align: right;
}

@media (max-width: 780px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 0;
    gap: 0.5rem;
  }

  .hero,
  .three-up,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

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

  .footer-right {
    text-align: left;
  }
}
