/* ============================================================
   Academic Website — Clean Light Theme
   Pale, minimal color palette for a math PhD student
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main:        #ffffff;
  --bg-section:     #ffffff;
  --bg-alt:         #f5f4f2;

  --nav-bg:         #d7ded7;

  --border:         #253817;

  --text-primary:   #2c2c2c;
  --text-secondary: #171717;
  --text-muted:     #888880;

  --accent:         #000000;
  --accent-light:   #ffffff;

  --link:           #4a6f96;
  --link-hover:     #2d4f72;

  --tag-bg:         #e8edf5;
  --tag-text:       #4a6080;
}


html {
  scroll-behavior: auto;
}

body {
  font-family: 'Inter', 'Times New Roman', serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
}

a{
  color: #245a81;
    text-decoration: none;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 3px;
}

a:hover {
    color: #163b58;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* ── Navigation ─────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-name {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links li a {
  display: block;
  padding: 0.35rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border-radius: 4px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

/* ── Main layout ─────────────────────────────────────────── */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ── Sections ────────────────────────────────────────────── */

.section {
  display: none;
  padding: 3rem 0 2rem;
}

.section.active {
  display: block;
}

/* ── Home / Landing ──────────────────────────────────────── */

.home-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.home-photo {
  flex-shrink: 0;
  width: 200px;
  height: 300px;
  overflow: hidden;
  border-radius: 0;
}

.home-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0
}

.home-bio h1 {
  font-size: 1.9rem;
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.home-bio .position {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.home-bio .institution {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.home-bio p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  margin-bottom: 0.8rem;
}

.contact-list {
  list-style: none;
  margin-top: 1.2rem;
}

.contact-list li {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.contact-list a {
  color: var(--link);
  text-decoration: none;
}

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

/* ── Section headings ────────────────────────────────────── */

.section-title {
  font-size: 1.45rem;
  font-weight: normal;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
}

/* ── Research ────────────────────────────────────────────── */

.research-interests {
  margin-bottom: 2.2rem;
}

.research-interests p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  margin-bottom: 0.7rem;
}

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

.tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  letter-spacing: 0.01em;
}

.paper-list {
  list-style: none;
}

.paper-item {
  border-left: 3px solid var(--border);
  padding: 0.6rem 0 0.6rem 1.1rem;
  margin-bottom: 1.4rem;
}

.paper-item:hover {
  border-left-color: var(--accent);
}

.paper-title {
  font-size: 1rem;
  color: var(--text-primary);
  font-style: italic;
}

.paper-title a {
  color: var(--link);
  text-decoration: none;
}

.paper-title a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.paper-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.84rem;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.paper-abstract {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  line-height: 1.6;
}

/* ── Teaching ────────────────────────────────────────────── */

.teaching-role{
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.teaching-year {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 1.8rem 0 0.6rem;
}

.teaching-year:first-of-type {
  margin-top: 0;
}

<!--
.course-list {
  list-style: none;
}
-->

.course-list {
    list-style-type: disc;
    padding-left: 40px;
    margin-top: 10px;
    line-height: 1.8;
}

.course-list li {
    margin-bottom: 5px;
}

.course-description {
  font-size: 0.9em;
  font-weight: 400;
  color: #222222;
  line-height: 1.5;
  margin-top: 1px;
  margin-bottom: 15px;

}

.course-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--bg-alt);
  gap: 1rem;
}

.course-name {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-primary);
}

.course-role {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Talks ───────────────────────────────────────────────── */

.talk-list {
  list-style: none;
}

.talk-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--bg-alt);
  align-items: start;
}

.talk-date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.84rem;
  color: var(--text-primary);
  padding-top: 0.1rem;
  white-space: nowrap;
}

.talk-title {
  font-size: 0.97rem;
  color: var(--text-primary);
}

.talk-venue {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.84rem;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.talk-venue span {
  color: var(--text-primary);
}

/* ── Service ──────────────────────────────────────────────── */

.service-list {
   list-style-type: disc;
    padding-left: 40px;
    margin-top: 10px;
    line-height: 1.8;
}

.service-list li {
    margin-bottom: 5px;
}

.service-item {
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.5rem 0 0.5rem 0.6rem;
  margin-bottom: 0.2rem;
  /*border-left: 3px solid var(--border); */
}

.service-image {
  flex: 0 0 150px;
  width: 150px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
}

.service-content {
  min-width: 0;
}

.service-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.service-name {
  display: flex;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
}

.service-year {
    margin-left: auto;
    white-space: nowrap;
}

.service-description {
   font-size: 0.9em;
  font-weight: 400;
  color: #222222;
  line-height: 1.5;
  margin-top: 1px;
  margin-bottom: 2px;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  display:none
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: var(--nav-bg);
  margin-top: 3rem;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav-inner { flex-direction: column; height: auto; padding: 0.6rem 0; gap: 0.3rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }

  .home-layout { flex-direction: column; align-items: center; text-align: center; }
  .home-bio .position, .home-bio .institution { text-align: center; }
  .contact-list { text-align: center; }

  .talk-item { grid-template-columns: 1fr; }
  .talk-date { color: var(--accent); }

  .service-item { flex-direction: column; }
  .service-image { flex-basis: auto; width: min(100%, 240px); }
}
