:root {
  /* DARK MODE DEFAULT */
  --bg: #121212;
  --text: #f2f2f2;
  --accent: #b79ced;
  --muted: #aaa;
}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #666;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  border-bottom: 1px solid #eaeaea;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0;
}

.logo:visited {
    color: var(--text);
}

.logo:hover {
    color: var(--accent);
    text-decoration: none;
}

.logo:focus {
    text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
}

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

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.about-container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.bio-column {
    padding-left: 3rem;
    border-left: 1px solid rgba(255,255,255,.12);
}

.bio-section {
    margin-bottom: 2.5rem;
}

.bio-section h2 {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.bio-section p {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}

.bio-section p + p {
  margin-top: 1.25rem;
}

.advisor-list {
    color: var(--text);
}

.advisor-name {
    color: var(--accent);
    font-weight: 600;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

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

.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text);
  font-size: 1.2rem;
}

.content-page {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.email-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
  .bio-column {
  border-left: none;
  padding-left: 0;
}
}

.theme-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #555;
  border-radius: 24px;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider::before {
  transform: translateX(20px);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* Brand-consistent link styling */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

a:hover,
a:focus {
  color: var(--accent);
  opacity: 0.85;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.publications-page {
  max-width: 980px;
}

.page-intro {
  max-width: 70ch;
  color: var(--muted);
  margin-bottom: 2rem;
}

.pub-year-group {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.pub-year {
    color: var(--muted);
    font-weight: 600;
    font-size: 1rem;
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pub-item {
    border-bottom: 1px solid rgba(183,156,237,.18);
    padding-bottom: 2rem;
}

.pub-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pub-citation {
    line-height: 1.8;
    font-size: 1.02rem;
}

.pub-citation em {
    font-style: italic;
}

.section-subtitle {
    margin-top: -0.75rem;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-style: italic;
}

.publications-page .pub-citation .author-me {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

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

:root {
  --bg: #121212;
  --text: #f2f2f2;
  --accent: #b79ced;
  --muted: #aaa;
}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #666;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.logo:hover {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
}

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

.theme-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #555;
  border-radius: 24px;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider::before {
  transform: translateX(20px);
}

.home-page {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.home-card {
  text-align: center;
  max-width: 420px;
}

.profile-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 2rem;
}

.home-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.tagline {
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.tagline2 {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text);
  font-size: 1.2rem;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.about-page {
  max-width: 820px;
}

.bio-section {
  margin-bottom: 2.5rem;
}

.bio-section h2 {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.bio-section p {
  margin: 0;
  line-height: 1.75;
  font-size: 1rem;
}

.bio-section p + p {
  margin-top: 1.25rem;
}

.advisor-list {
  color: var(--text);
}

.advisor-name {
  color: var(--accent);
  font-weight: 600;
}

a {
  color: inherit;
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-page {
    min-height: auto;
    padding-top: 3rem;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .nav-links {
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
}
