/* Lightweight styles for homepage sections while keeping the default academicpages look */

.page__hero--overlay.page__hero--landing {
  margin-bottom: 3rem;
  background-position: center center;
}

.page__hero--overlay.page__hero--landing .wrapper {
  min-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.page__hero--overlay.page__hero--landing .page__title,
.page__hero--overlay.page__hero--landing .page__lead {
  margin: 0;
  width: min(92vw, 44rem);
  padding: 0.9rem 1.4rem;
  color: #1f120d;
  text-shadow: none;
  background: rgba(250, 242, 233, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(49, 24, 14, 0.16);
}

.page__hero--overlay.page__hero--landing .page__title {
  font-size: clamp(2.6rem, 6.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0.04em;
}

.page__hero--overlay.page__hero--landing .page__lead {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.55;
}

.main--landing {
  margin-top: 0;
}

@media (min-width: 1024px) {
  .main--landing .sidebar--landing {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-top: 0;
  }
}

.project-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eaeaea;
}

.project-row:last-child {
  border-bottom: none;
}

.project-row .project-img {
  flex: 0 0 320px;
  max-width: 320px;
}

.project-row .project-img img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-row .project-text {
  flex: 1;
  min-width: 0;
}

.project-row .project-text h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.1em;
}

.project-row .project-text .project-meta {
  color: #666;
  font-size: 0.85em;
  margin-bottom: 8px;
}

.project-row .project-text p {
  margin-bottom: 6px;
  font-size: 0.95em;
  line-height: 1.6;
}

.project-row .project-text .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-row .project-text .project-tags span {
  background: #f0f4f8;
  color: #444;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78em;
}

.project-row .project-text a.project-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85em;
  color: #2962ff;
  text-decoration: none;
}

.project-row .project-text a.project-link:hover {
  text-decoration: underline;
}

.news-list {
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.news-list li {
  padding: 6px 0;
  font-size: 0.95em;
  border-bottom: 1px solid #f0f0f0;
}

.news-list li strong {
  color: #333;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .page__hero--overlay.page__hero--landing {
    margin-bottom: 2rem;
  }

  .page__hero--overlay.page__hero--landing .wrapper {
    min-height: calc(100vh - 4rem);
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .page__hero--overlay.page__hero--landing .page__title,
  .page__hero--overlay.page__hero--landing .page__lead {
    width: min(92vw, 30rem);
    padding: 0.85rem 1rem;
  }

  .page__hero--overlay.page__hero--landing .page__lead {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    line-height: 1.5;
  }

  .project-row {
    flex-direction: column;
  }

  .project-row .project-img {
    flex: none;
    max-width: 100%;
  }
}
