/* Base styles */
:root {
  --bg-light: #f3f4f6;
  --text-light: #1f2937;
  --bg-dark: #111827;
  --text-dark: #f9fafb;
  --border-light: #9ca3af;
  --border-dark: #4b5563;
  --link-light: #3b82f6;
  --link-dark: #60a5fa;
  --btn-bg-light: #e5e7eb;
  --btn-bg-dark: #1f2937;
  --btn-hover-light: #d1d5db;
  --btn-hover-dark: #374151;
}

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

body {
  font-family: 'Geist Mono', monospace;
  line-height: 1.6;
  padding: 2rem;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
  background-color: var(--bg-light);
  color: var(--text-light);
  font-size: 0.9rem;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* Layout */
.container {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  padding-top: 1rem;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-bg-light);
  color: var(--text-light);
  transition: background-color 0.3s;
}

body.dark-mode .theme-toggle {
  background-color: var(--btn-bg-dark);
  color: var(--text-dark);
}

.theme-toggle:hover {
  background-color: var(--btn-hover-light);
}

body.dark-mode .theme-toggle:hover {
  background-color: var(--btn-hover-dark);
}

.hidden {
  display: none;
}

/* Typography */
h1,
h2,
h3,
p,
li {
  font-family: 'Geist Mono', monospace;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

body.dark-mode h2 {
  border-bottom: 1px solid var(--border-dark);
}

h3 {
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Sections */
section {
  margin-bottom: 2rem;
}

header {
  margin-bottom: 2rem;
}

.contact-info {
  font-size: 0.875rem;
}

.contact-info p {
  margin-bottom: 0.25rem;
}

.experience-item,
.education-item {
  margin-bottom: 1.5rem;
}

.date {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.details {
  list-style-position: inside;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.papers {
  list-style-position: inside;
}

/* Links */
a {
  color: var(--link-light);
  text-decoration: none;
}

body.dark-mode a {
  color: var(--link-dark);
}

a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: 2rem;
  text-align: right;
}

#last-updated {
  font-size: 0.75rem;
  color: var(--border-light);
}

body.dark-mode #last-updated {
  color: var(--border-dark);
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .container {
    padding-top: 2rem;
  }
}