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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

/* ===== Header ===== */
header {
  margin-bottom: 2.5rem;
}

.site-title {
  margin-bottom: 2rem;
}

.site-title a {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.site-title a:hover {
  color: #333;
}

.tagline {
  display: block;
  font-size: 0.95rem;
  color: #888;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.contact-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.contact-icons a {
  color: #999;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
}

.contact-icons a:hover {
  color: #111;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s;
}

nav a:hover {
  color: #111;
}

nav a.active {
  color: #111;
  border-bottom: 2px solid #111;
}

/* ===== Main Content ===== */
main {
  min-height: 50vh;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eee;
}

h2:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Bio Section ===== */
.bio {
  font-size: 1rem;
  line-height: 1.7;
}

.bio .lead {
  font-size: 1.05rem;
  color: #111;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.bio p {
  margin-bottom: 1rem;
}

.documents {
  margin-top: 2rem;
}

.documents h2 {
  font-size: 1.05rem;
}

.doc-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.doc-list li a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  transition: border-color 0.15s, color 0.15s;
}

.doc-list li a:hover {
  border-color: #999;
  color: #111;
  text-decoration: none;
}

/* ===== Publication / Entry Lists ===== */
.entry-list {
  list-style: none;
  counter-reset: entry;
}

.entry-list > li {
  counter-increment: entry;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.entry-list > li::before {
  content: counter(entry) ".";
  position: absolute;
  left: 0;
  color: #bbb;
  font-size: 0.9rem;
  font-weight: 500;
  top: 0.1em;
}

.entry-list .title {
  font-weight: 500;
  color: #111;
}

.entry-list .venue {
  font-style: italic;
  color: #555;
}

.entry-list .year {
  color: #999;
  font-size: 0.9rem;
}

.entry-list .badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.entry-list .authors {
  font-size: 0.9rem;
  color: #666;
}

.entry-list .doi {
  font-size: 0.85rem;
}

/* ===== Awards ===== */
.award-year {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
}

.award-title {
  font-weight: 500;
  color: #111;
}

.patent-number {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #888;
}

/* ===== Tools ===== */
.tool-entry {
  margin-bottom: 2rem;
}

.tool-entry h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.4rem;
}

.tool-entry h3 .year {
  font-size: 0.8rem;
  font-weight: 400;
  color: #999;
  margin-left: 0.5rem;
}

.tool-entry p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
}

.tool-entry h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  padding-left: 3rem;
}

.tool-entry h4 + p {
  padding-left: 3rem;
}

/* ===== Footer ===== */
footer {
  margin-top: 3rem;
}

footer hr {
  border: none;
  border-top: 1px solid #eee;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 1.25rem 1rem;
  }

  .site-title a {
    font-size: 1.4rem;
  }

  nav {
    gap: 0.2rem 1rem;
  }

  nav a {
    font-size: 0.875rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.05rem;
  }

  .entry-list > li {
    padding-left: 2rem;
  }

  .doc-list {
    flex-direction: column;
  }

  .doc-list li a {
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 0.75rem;
  }

  .site-title a {
    font-size: 1.25rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  nav {
    gap: 0.15rem 0.75rem;
  }

  .entry-list > li {
    padding-left: 1.75rem;
    font-size: 0.9rem;
  }
}
