:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #5b7cfa;
  --muted: #5f6b7a;
  --border: #d6dbe7;
  --accent: #2f5ae5;
  --text: #1b2230;
}

* {
  box-sizing: border-box;
}

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

a:hover {
  color: #1f4bd6;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg) url("background.png") no-repeat top center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
}

nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
}

.nav-inner a {
  color: var(--text);
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;
}

.nav-inner a.active {
  color: var(--accent);
}

.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(26, 39, 74, 0.08);
}

.hero {
  padding: 2rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0.5rem 0 0.75rem;
}

.hero p {
  max-width: 640px;
}

.headshot {
  width: 100%;
  max-width: 260px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 30px rgba(26, 39, 74, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn.outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

section {
  margin-top: 2.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 12px;
  min-height: 160px;
}

.card h3 {
  margin-top: 0;
}

.timeline,
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li,
.pub-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(27, 34, 48, 0.08);
}

.timeline li:last-child,
.pub-list li:last-child {
  border-bottom: none;
}

.timeline strong {
  display: block;
  color: var(--text);
}

.pub-number {
  font-weight: 600;
  margin-right: 0.35rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  margin: 2rem auto 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

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

.simple-list li {
  margin-bottom: 0.6rem;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.thesis-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.thesis-table th,
.thesis-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid rgba(27, 34, 48, 0.08);
  vertical-align: top;
}

.thesis-table th {
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.thesis-table th:nth-child(1),
.thesis-table td:nth-child(1) {
  width: 22%;
}

.thesis-table th:nth-child(2),
.thesis-table td:nth-child(2) {
  width: 12%;
}

.thesis-table th:nth-child(3),
.thesis-table td:nth-child(3) {
  width: 46%;
}

.thesis-table th:nth-child(4),
.thesis-table td:nth-child(4) {
  width: 20%;
}

.thesis-table td:nth-child(3) {
  overflow-wrap: anywhere;
}

.thesis-table tbody tr:last-child td {
  border-bottom: none;
}

.thesis-table .muted {
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
  }

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

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-inner a {
    margin-bottom: 0.5rem;
  }
}
