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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #222;
  background: #fff;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Navigation ── */
nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 2.5rem;
}

nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
}

nav a:hover { color: #000; text-decoration: underline; }

nav .site-name {
  font-weight: 700;
  color: #000;
  margin-right: 0.5rem;
}

/* ── Profile header ── */
.profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.profile img {
  width: 110px;
  height: 110px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.profile-info .subtitle {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.profile-links {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.profile-links a {
  color: #0070c0;
  text-decoration: none;
}

.profile-links a:hover { text-decoration: underline; }

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

section h2, .page-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 2px solid #222;
  padding-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.page-title {
  font-size: 1.3rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2rem;
}

/* ── Entry blocks ── */
.entry {
  margin-bottom: 1.5rem;
}

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

.entry h3 {
  font-size: 1rem;
  font-weight: 600;
}

.entry .date {
  font-size: 0.875rem;
  color: #666;
  white-space: nowrap;
}

.entry .org {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.3rem;
}

.entry ul {
  margin-left: 1.25rem;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #333;
}

.entry ul li { margin-bottom: 0.2rem; }

.entry p { font-size: 0.9rem; color: #333; margin-top: 0.2rem; }

.entry .note {
  font-size: 0.825rem;
  color: #666;
  margin-top: 0.25rem;
}

.entry .tags {
  font-size: 0.825rem;
  color: #777;
  margin-top: 0.35rem;
}

/* ── Publication entries ── */
.pub-authors {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0.1rem;
}

.pub-meta {
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.2rem;
}

.pub-venue {
  font-size: 0.825rem;
  color: #777;
  margin-top: 0.15rem;
}

/* ── Skills ── */
.skills-row {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.4rem;
}

/* ── Certs list ── */
.cert-list {
  list-style: none;
  font-size: 0.9rem;
  color: #333;
}

.cert-list li { margin-bottom: 0.4rem; }

/* ── Links ── */
a { color: #0070c0; }
a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  body { padding: 0 1rem 3rem; }
  nav { flex-wrap: wrap; gap: 0.5rem 1rem; row-gap: 0.6rem; }
  nav .site-name { width: 100%; margin-right: 0; margin-bottom: 0.2rem; }
  .profile { flex-direction: column; gap: 1rem; }
  .profile img { width: 80px; height: 80px; }
  .entry-header { flex-direction: column; }
  .entry .date { color: #555; }
}
