:root {
  --bg: #fafafa;
  --text: #2D3748;
  --muted: #555555;
  --accent: #c04040;
  --surface: #ffffff;
  --line: #e6e6e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Crimson Text", Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

.container {
  width: min(92%, 880px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.top-nav a {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.hero {
  padding-top: 1.15rem;
  padding-bottom: 3rem;
}

.hero-headshot {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  display: block;
  margin-bottom: 1.1rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Inter", "Segoe UI", sans-serif;
  margin: 0;
  line-height: 1.25;
}

h1 {
  margin-top: 0.4rem;
  font-size: clamp(2rem, 5.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500
}

.icon-row {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.icon-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-row a:hover,
.icon-row a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cv-button {
  margin-top: 1.45rem;
  display: inline-block;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 0.58rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cv-button:hover,
.cv-button:focus-visible {
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
}

.section-block {
  padding-top: 2.5rem;
  padding-bottom: 0;
  margin-bottom: 3rem;
  scroll-margin-top: 95px;
}

.section-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eaeaea;
}

#projects.section-block {
  background: #f8f9fa;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 8px;
}

.section-block p,
.section-block li {
  font-size: 1.06rem;
}

.research-interests {
  margin-top: 1.2rem;
  border-left: 3px solid var(--accent);
  padding: 0.65rem 1rem;
  background: #f5f5f5;
}

.research-interests h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
}

.meta-detail {
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.timeline-item {
  position: relative;
  margin: 1.3rem 0 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid #dddddd;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.item-head h3 {
  font-size: 1.07rem;
  font-weight: 700;
}

.publication-item {
  margin-top: 1.1rem;
  padding: 0.25rem 0 0.75rem;
  border-bottom: 1px dashed #d9d9d9;
}

.publication-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.tag-row {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background-color: #E2E8F0; /* A soft, neutral grey-blue */
  padding: 0.2rem 0.6rem;
  border-radius: 4px; /* Slightly squared edges look more technical */
  border: 1px solid #CBD5E1;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus-visible {
  border-bottom: 1px solid var(--accent);
}

ul {
  margin: 0.55rem 0 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.45rem;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 1rem 1rem 0.95rem;
}

.project-card h3 {
  margin-top: 0.35rem;
  font-size: 1.06rem;
}

.project-link {
  margin: 0.35rem 0 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.pill-row {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skills-list p {
  margin: 0.55rem 0;
}

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

.honors-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed #dddddd;
}

.honors-list li:last-child {
  border-bottom: none;
}

.honors-list .meta {
  margin-right: 0.4rem;
}

.site-footer {
  padding: 2.4rem 0 2rem;
}

.footer-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .top-nav {
    gap: 0.75rem;
  }

  .top-nav a {
    font-size: 0.82rem;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 0;
  }

  .hero {
    padding-top: 3.9rem;
  }

  .hero-headshot {
    width: 120px;
    height: 120px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .item-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

.pub-btn {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--surface);
  background-color: var(--muted);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pub-btn:hover, .pub-btn:focus-visible {
  background-color: var(--accent);
  color: var(--surface);
  text-decoration: none;
}

#news.section-block {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

#news ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

#news li {
  margin-bottom: 0.5rem;
}

#news .meta {
  display: inline-block;
  width: 115px;
  margin-right: 0.5rem;
}

.skills-category h3 {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
