/* ===========================================
   Main Stylesheet - Clean Professional
   =========================================== */

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

/* Base */
html {
  font-size: 16px;
}

body {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Monospace font for UI elements */
.mono {
  font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
}

/* Typography Scale */
h1 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

small, .small {
  font-size: 0.8125rem;
}

/* Layout */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 3rem 0 2rem;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  text-transform: lowercase;
}

nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero */
.hero {
  padding-bottom: 3rem;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
}


.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.bio {
  color: var(--text-secondary);
}

/* Sections */
section {
  padding: 1rem 0;
}

/* Experience */
.experience-item {
  margin-bottom: 2rem;
}

.experience-header {
  margin-bottom: 0.25rem;
}

.experience-company {
  font-weight: 600;
  font-size: 1.15rem;
}

.experience-date {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
}

.experience-role {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.experience-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0.25rem 0 0.75rem;
}

.experience-meta {
  margin-top: 0.5rem;
}

.experience-meta a {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
}

.experience-meta a:hover {
  color: var(--link-color);
}

.advisor-link {
  color: var(--text-muted);
  font-weight: 400;
}

/* Publications */
.publication-item {
  margin-bottom: 1.5rem;
}

.publication-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.publication-title a {
  color: var(--text-primary);
}

.publication-title a:hover {
  color: var(--link-color);
}

.publication-venue {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-style: normal;
  font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  margin-bottom: 0.25rem;
}

.publication-authors {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Education */
.education-item {
  margin-bottom: 1.25rem;
}

.education-school {
  font-weight: 600;
}

.education-degree {
  color: var(--text-secondary);
}

.education-date {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
}

/* Footer */
footer {
  padding: 3rem 0 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
}

.footer-links a:hover {
  color: var(--link-color);
}

/* Email obfuscation - tooltip style */
.email-link {
  cursor: pointer;
  position: relative;
}

.email-link .email-reveal {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  margin-bottom: 6px;
}

.email-link .email-reveal::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
}

.email-link:hover .email-reveal,
.email-link:focus .email-reveal {
  opacity: 1;
  visibility: visible;
}

/* Projects */
.project-item {
  margin-bottom: 1.5rem;
}

.project-title {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.project-title a {
  color: var(--text-primary);
}

.project-title a:hover {
  color: var(--link-color);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  header {
    padding: 2rem 0 1.5rem;
  }

  .hero-header {
    flex-direction: column;
    gap: 0.75rem;
  }
}
