/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f8f8;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #1d4ed8; }

img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
p { margin: 0 0 1em; }

/* --- Layout --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.profile-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.headshot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}
.name-block h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.15em;
  letter-spacing: -0.02em;
}
.tagline {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin: 0 0 0.2em;
}
.location {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.contact-block {
  text-align: right;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}
.contact-list li { margin-bottom: 0.2em; }
.contact-list a { color: #374151; }
.contact-list a:hover { color: #2563eb; }
.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.social-links a {
  color: #6b7280;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}
.social-links a:hover { color: #2563eb; }

/* --- Main content --- */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section {
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}
.section-body { margin: 0; }

/* --- Overview --- */
.overview-section .section-body p {
  font-size: 1rem;
  color: #374151;
  max-width: 65ch;
}

/* --- Projects hub --- */
.projects-hub .hub-intro {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.project-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.project-card {
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.project-card a {
  display: block;
  padding: 1rem 1.25rem;
  color: inherit;
}
.project-card a:hover { color: inherit; }
.project-name {
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25em;
  color: #1a1a1a;
}
.project-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* --- Experience --- */
.job {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.job:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.job-header {
  margin-bottom: 0.6rem;
}
.job-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.2em;
}
.company {
  font-weight: 500;
  color: #374151;
}
.meta {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.15em;
}
.job ul {
  margin: 0;
  padding-left: 1.25em;
  font-size: 0.95rem;
  color: #374151;
}
.job li { margin-bottom: 0.4em; }

/* --- Skills --- */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #374151;
}
.skills-list li {
  margin: 0;
  padding: 0.35em 0.6em;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

/* --- Education --- */
.education-section .section-body p {
  margin-bottom: 0.5em;
  font-size: 0.95rem;
  color: #374151;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.site-footer a { color: #6b7280; }
.site-footer a:hover { color: #2563eb; }
.site-footer p { margin: 0; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-block { flex-wrap: wrap; }
  .contact-block { text-align: left; }
  .social-links { justify-content: flex-start; }
  .main-content { padding: 1.5rem 1rem 2rem; }
  .section { margin-bottom: 2rem; }
}

@media print {
  body { background: #fff; }
  .site-header { border-bottom-color: #ccc; }
  .project-card:hover { border-color: #e5e7eb; box-shadow: none; }
  .site-footer { border-top-color: #ccc; }
}
