/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: #2c2c2c;
  background-color: #faf9f7;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header .section-title {
  margin-bottom: 0;
}

/* ========================================
   Sidebar
   ======================================== */

.page-wrapper {
  display: flex;
  max-width: 1000px;
  width: 100%;
  position: relative;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 220px;
  min-width: 220px;
  height: 100vh;
  padding: 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-name:hover,
.sidebar-links a:hover,
.topnav a:hover {
  text-decoration: none;
}

.sidebar-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #777;
  transition: color 0.2s ease;
}

.sidebar-links a:hover {
  color: #b08d6e;
}

.sidebar-links svg {
  flex-shrink: 0;
}

.sidebar-email {
  font-size: 0.82rem;
  color: #777;
}

/* ========================================
   Top Navigation
   ======================================== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 2rem;
  padding: 1rem 3rem;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.topnav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: #b08d6e;
}

/* ========================================
   Main Content
   ======================================== */

.main {
  max-width: 720px;
  padding: 0 3rem 2.5rem;
  flex: 1;
}

.section {
  padding: 2rem 0;
}

.section:first-child {
  padding-top: 0;
}

.divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========================================
   About
   ======================================== */

.about-with-photo {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo {
  width: 150px;
  height: 150px;
  border-radius: 5%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-content p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Contact
   ======================================== */

.contact-section {
  padding-top: 0;
}

.contact-text {
  font-size: 0.95rem;
  color: #333;
}

/* ========================================
   Little Things
   ======================================== */

.little-things-list {
  list-style: none;
  font-size: 0.9rem;
  color: #333;
}

.little-things-list li {
  padding: 0.2rem 0;
}

/* ========================================
   Publications
   ======================================== */

.pub-category {
  font-size: 0.82rem;
  color: #b08d6e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.pub-category:first-of-type {
  margin-top: 0;
}

.pub-list {
  margin-bottom: 1.5rem;
}

.pub-list:last-of-type {
  margin-bottom: 0;
}

.pub-item {
  padding: 0.7rem 0;
}

.pub-authors {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 0.15rem;
}

.pub-authors strong {
  color: #2c2c2c;
  font-weight: 500;
}

.pub-title {
  display: block;
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 400;
  margin-bottom: 0.2rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.pub-title:hover {
  color: #b08d6e;
}

.pub-venue {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.2rem;
}

.pub-note {
  font-size: 0.75rem;
  color: #b08d6e;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.pub-note a {
  color: #555;
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.pub-note a:hover {
  color: #b08d6e;
}

.pub-footnote {
  font-size: 0.75rem;
  color: #aaa;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ========================================
   Teaching
   ======================================== */

.teaching-item {
  display: flex;
  gap: 1.5rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.teaching-term {
  flex-shrink: 0;
  width: 130px;
  color: #777;
  font-size: 0.82rem;
}

.teaching-course {
  color: #333;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 2.5rem 0;
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 0.05em;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-width: unset;
    height: auto;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .sidebar-links {
    flex-direction: row;
    gap: 1.25rem;
  }

  .topnav {
    position: static;
    left: 0;
    padding: 1rem 2rem;
    gap: 1.5rem;
  }

  .main {
    padding: 1.5rem 2rem;
  }

  .section {
    padding: 1.5rem 0;
  }
}
