:root {
  --accent: #2d5f8b;
  --accent-soft: #eaf1f7;
  --text: #1d2733;
  --muted: #627182;
  --border: #d9e1e8;
  --bg: #f7fafc;
  --base-text-size: 1.25rem;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: var(--base-text-size);
}

.lead {
  font-size: var(--base-text-size);
}

.navbar-brand,
.nav-link,
.small,
footer,
.btn,
.rich-text,
.contact-box,
.timeline-date,
.timeline-item,
.content-list,
.tag-list li,
.card-text-custom,
.hero-role-line,
.hero-meta-text {
  font-size: var(--base-text-size) !important;
}

.navbar-brand,
.section-title,
h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

.hero-section {
  background:
    radial-gradient(circle at top right, rgba(45, 95, 139, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.py-lg-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-role-line {
  font-weight: 600;
}

.hero-role-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 95, 139, 0.25);
}

.hero-role-link:hover {
  border-bottom-color: rgba(45, 95, 139, 0.7);
}

.profile-card,
.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}

.profile-card {
  padding: 1rem;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #eef3f7;
  display: block;
}

.section-block {
  padding: 2rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(234, 241, 247, 0.55), rgba(234, 241, 247, 0.2));
}

.section-title {
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-meta-text {
  line-height: 1.7;
}

.hero-meta-text a {
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 95, 139, 0.25);
}

.hero-meta-text a:hover {
  border-bottom-color: rgba(45, 95, 139, 0.7);
}

.meta-line {
  display: block;
  margin-bottom: 0.2rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-list li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.research-card,
.teaching-card {
  height: 100%;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.1rem;
}

.card-kicker {
  color: var(--accent);
  font-size: var(--base-text-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.card-title-custom {
  font-size: var(--base-text-size);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text-custom {
  color: var(--muted);
  margin-bottom: 0;
}

.content-list {
  margin: 0;
  padding-left: 1.2rem;
}

.content-list li {
  margin-bottom: 0.35rem;
}

.content-list li:last-child {
  margin-bottom: 0;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-date {
  color: var(--accent);
  font-weight: 600;
}

.contact-box {
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
}

.contact-box p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
}

a:hover {
  color: #214a6c;
}

@media (max-width: 767.98px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .section-block {
    padding: 1.25rem 0;
  }
}
