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

/* Layout + typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: #0b0c10;
  color: #f5f5f5;
  line-height: 1.6;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.title {
  font-size: 1.9rem;
  font-weight: 600;
}

.subtitle {
  font-size: 0.95rem;
  color: #a0a0a0;
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.nav a {
  color: #c7c7c7;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff44;
}

/* Main content */
.main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-line {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.hero-muted {
  font-size: 0.95rem;
  color: #aaaaaa;
  max-width: 620px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* Buttons / links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #ffffff22;
  background: #ffffff08;
  color: #f5f5f5;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn.secondary {
  background: transparent;
}

.btn:hover {
  border-color: #ffffff55;
  background: #ffffff10;
}

.text-link {
  font-size: 0.9rem;
  color: #dcdcdc;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  border-top: 1px solid #22252d;
  padding-top: 24px;
}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a4a4a4;
  margin-bottom: 14px;
}

.section p {
  font-size: 0.95rem;
  color: #d5d5d5;
  max-width: 720px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.card {
  border-radius: 12px;
  border: 1px solid #1d2028;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left, #181b23, #10131a);
  transition: all 0.2s ease;
  cursor: default;
}

.card:hover {
  border-color: #2a2d35;
  background: radial-gradient(circle at top left, #1d2028, #14171f);
  transform: translateY(-1px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.card-link:hover {
  border-color: #2a2d35;
  background: radial-gradient(circle at top left, #1d2028, #14171f);
  transform: translateY(-1px);
}

.card-title {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 0.8rem;
  color: #9b9b9b;
  margin-bottom: 6px;
}

.card-body {
  font-size: 0.9rem;
  color: #d8d8d8;
}

/* Research Papers */
.papers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.paper-note {
  border-radius: 12px;
  border: 1px solid #1d2028;
  padding: 20px 20px 18px;
  background: radial-gradient(circle at top left, #181b23, #10131a);
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.paper-note:hover {
  border-color: #2a2d35;
  background: radial-gradient(circle at top left, #1d2028, #14171f);
  transform: translateY(-2px);
}

.paper-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f5f5f5;
}

.paper-meta {
  font-size: 0.85rem;
  color: #9b9b9b;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.paper-authors {
  font-style: italic;
}

.paper-venue {
  font-weight: 500;
  color: #b0b0b0;
}

.paper-excerpt {
  font-size: 0.95rem;
  color: #d8d8d8;
  line-height: 1.6;
  margin-bottom: 12px;
}

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: #1a1d24;
  border: 1px solid #252830;
  color: #b8b8b8;
  font-weight: 500;
}

.papers-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  font-style: italic;
}

/* Blog */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.blog-post {
  border-radius: 12px;
  border: 1px solid #1d2028;
  padding: 20px 20px 18px;
  background: radial-gradient(circle at top left, #181b23, #10131a);
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.blog-post:hover {
  border-color: #2a2d35;
  background: radial-gradient(circle at top left, #1d2028, #14171f);
  transform: translateY(-2px);
}

.blog-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f5f5f5;
}

.blog-post-meta {
  font-size: 0.85rem;
  color: #9b9b9b;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.blog-post-excerpt {
  font-size: 0.95rem;
  color: #d8d8d8;
  line-height: 1.6;
}

.blog-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  font-style: italic;
}

/* Contact */
.contact-line {
  margin-top: 10px;
  font-size: 0.95rem;
}

.contact-line a {
  color: #e0e0ff;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid #22252d;
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #8a8a8a;
  text-align: left;
}

/* Responsive */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    padding: 20px 16px 32px;
  }

  .hero-line {
    font-size: 1.1rem;
  }

  .card,
  .blog-post,
  .paper-note {
    padding: 16px 16px 14px;
  }

  .blog-post-title,
  .paper-title {
    font-size: 1rem;
  }

  .paper-meta {
    font-size: 0.8rem;
  }
}
