@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..700;1,300..700&family=Nunito:ital,wght@0,300..700;1,300..700&display=swap');

:root {
  --text: #1c1c1c;
  --muted: #5a5a5a;
  --border: #e4e4e4;
  --bg: #ffffff;
  --max-width: 980px;
  --link: #8910C6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  font-size: 17px;
}

h1, h2, h3, .site-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

strong, b {
  font-weight: 800;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(137, 16, 198, 0.4);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

a:hover { border-color: var(--link); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 28px 0 20px;
}

header.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  font-size: 2rem;
  color: var(--text);
  border-bottom: none;
}

.site-title:hover { opacity: 0.7; }

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.92rem;
}

nav.site-nav a {
  border-bottom: none;
  color: var(--muted);
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--text);
}

/* Main */
main { padding: 56px 0 90px; }

.hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  display: block;
}

.profile-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: start;
}

.profile-aside { min-width: 0; }

.signature {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.bio p { margin: 0 0 20px; }

.dash-divider {
  color: var(--border);
  letter-spacing: 0.1em;
  margin: 8px 0 24px;
}

.aside-note {
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 620px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .hero-image { width: 160px; }
}

/* Lab page */
.lab-intro { margin-bottom: 48px; }

.section-heading {
  font-size: 1.3rem;
  margin: 0 0 24px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 28px 20px;
  margin-bottom: 56px;
}

.person {
  text-align: left;
}

.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  display: block;
  background: #f2f2f2;
}

.person .name {
  font-weight: 600;
  font-size: 0.94rem;
  margin: 0 0 2px;
}

.person .role {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Apply page */
.notice {
  border-left: 3px solid var(--text);
  padding: 12px 18px;
  margin-bottom: 32px;
  font-style: italic;
  color: var(--muted);
}

.apply-list {
  padding-left: 20px;
  margin: 0 0 28px;
}

.apply-list li { margin-bottom: 8px; }

h2.sub {
  font-size: 1.15rem;
  margin: 40px 0 12px;
}

@media (max-width: 600px) {
  main { padding: 40px 0 70px; }
  h1.name { font-size: 1.6rem; }
}
