/* ============================================
   Minimal Portfolio — Researcher-inspired
   ============================================ */

:root {
  --font-mono: 'Source Code Pro', monospace;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text: #334155;
  --text-light: #64748b;
  --accent: #2563eb;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --max-width: 680px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-centered {
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

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

.nav-centered a:hover {
  text-decoration: underline;
}

.nav-divider {
  color: var(--text-light);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

a:hover {
  text-decoration: underline;
}

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

.hero h1 {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Article Title (for project pages) */
.article-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

@media (max-width: 520px) {
  .article-title {
    font-size: 1.25rem;
  }
}

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

h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0.85rem;
}

ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 600;
}

/* Jobs */
.job {
  margin-bottom: 1.5rem;
}

.job:last-child {
  margin-bottom: 0;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.job-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
}

.job p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

.job a {
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.4);
  text-underline-offset: 3px;
}

.job a:hover {
  text-decoration-color: rgba(37, 99, 235, 1);
}

.job-header a {
  color: var(--accent);
  text-decoration: none;
}

.job-header a:hover {
  text-decoration: underline;
}

/* Project cards */
.project-card {
  display: flex;
  gap: 1.5rem;
  min-height: 140px;
  margin-bottom: 1.5rem;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-content {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-content p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.project-content a {
  font-size: 0.9rem;
  margin-top: auto;
}

.project-image {
  flex: 1;
  min-width: 0;
  max-width: 33%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .project-card {
    flex-direction: column;
    min-height: auto;
    gap: 1rem;
  }

  .project-image {
    order: -1;
    max-width: 100%;
    height: 120px;
  }

  .project-image img {
    height: 120px;
    object-fit: cover;
  }

  .project-content h3 {
    font-size: 0.9rem;
  }
}

/* Contact list */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-left: 0;
}

.contact-list li {
  margin: 0;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-icon {
  flex-shrink: 0;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.contact-list a:hover .contact-icon {
  color: var(--accent);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 70px;
}

.contact-value {
  color: var(--accent);
  font-size: 0.9rem;
  word-break: break-word;
}

.contact-list a:hover .contact-value {
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.5);
  text-underline-offset: 3px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

footer .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
}
/* Media */
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Main content wrapper */
main {
  min-height: calc(100vh - 200px);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  :root {
    --max-width: 100%;
  }

  .container {
    padding: 1.5rem 1.25rem;
  }

  header nav {
    padding: 1.25rem;
  }

  footer .footer-content {
    padding: 1.25rem;
  }

  h2 {
    font-size: 0.95rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 1.25rem 1rem;
  }

  header nav {
    padding: 1rem;
  }

  .nav-centered {
    font-size: 0.85rem;
  }

  footer .footer-content {
    padding: 1rem;
  }

  h2 {
    font-size: 0.9rem;
  }

  h3 {
    font-size: 0.9rem;
  }

  .job-header {
    flex-direction: column;
    gap: 0.15rem;
  }

  .job-date {
    font-size: 0.75rem;
  }

  .job p {
    font-size: 0.9rem;
  }

  section {
    margin-bottom: 2rem;
  }

  .contact-label {
    min-width: 60px;
    font-size: 0.8rem;
  }

  .contact-value {
    font-size: 0.85rem;
  }
}

/* Responsive - Very small screens */
@media (max-width: 360px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 1rem 0.75rem;
  }

  .nav-centered {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
}
