/* ===========================================
   Landing Page CSS
   Styles for the summary landing page (index.html):
   intro with headshot, availability callout, and the
   recent news / publications / projects / honors sections.

   NOTE: extends main.css and components.css, which provide
   the base design tokens referenced below.
   =========================================== */

/* ===========================================
   Intro
   =========================================== */
.landing-intro {
  display: flex;
  align-items: flex-start;
  gap: 2.5em;
  margin-bottom: 1em;
}

.landing-intro-text {
  flex: 1;
  min-width: 0;
}

.landing-intro-text p {
  margin-bottom: 1.25em;
}

.landing-headshot {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--border-radius, 12px);
  box-shadow: var(--card-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
}

.landing-callout {
  background: var(--color-primary-tint, #e4f2ff);
  border-left: 4px solid var(--color-primary, #357edd);
  border-radius: 8px;
  padding: 1em 1.25em;
  margin: 0 0 1.25em 0;
}

.landing-callout p {
  margin: 0;
}

.landing-more-link {
  margin-bottom: 0;
}

/* ===========================================
   Section Shell
   =========================================== */
.landing-section {
  margin-top: 2.25em;
}

.landing-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.4em;
  margin-bottom: 1.1em;
}

.landing-section-header h2 {
  font-size: 1.5em;
  margin: 0;
}

.landing-view-all {
  font-size: 0.85em;
  white-space: nowrap;
}

/* ===========================================
   Recent News
   =========================================== */
.landing-news-cards {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.landing-news-card {
  display: flex;
  align-items: center;
  gap: 1.25em;
  padding: 0.9em;
  border: 1px solid #e8e8e8;
  border-radius: var(--border-radius, 12px);
  background: #fff;
  text-decoration: none;
  transition: var(--transition, all 0.3s ease);
}

.landing-news-card:hover {
  box-shadow: var(--card-shadow-hover, 0 4px 20px rgba(0, 0, 0, 0.15));
  transform: translateY(-2px);
}

.landing-news-card img {
  width: 130px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.landing-news-info {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;
}

.landing-news-title {
  font-weight: bold;
  color: var(--color-heading, #252122);
  line-height: 1.35;
}

.landing-news-date {
  color: #666;
  font-size: 0.85em;
}

.landing-news-desc {
  color: #555;
  font-size: 0.85em;
  line-height: 1.45;
  margin-top: 0.15em;
}

.landing-news-readmore {
  color: var(--color-primary, #357edd);
  font-weight: 600;
  white-space: nowrap;
}

/* ===========================================
   Recent Publications
   =========================================== */
.landing-pub-card {
  display: flex;
  align-items: center;
  gap: 1.25em;
  padding: 0.9em;
  margin-bottom: 1em;
  border: 1px solid #e8e8e8;
  border-radius: var(--border-radius, 12px);
  background: #fff;
  text-decoration: none;
  transition: var(--transition, all 0.3s ease);
}

.landing-pub-card:hover {
  box-shadow: var(--card-shadow-hover, 0 4px 20px rgba(0, 0, 0, 0.15));
  transform: translateY(-2px);
}

.landing-pub-card img {
  width: 130px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.landing-pub-info {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;
}

.landing-pub-title {
  font-weight: bold;
  color: var(--color-heading, #252122);
  line-height: 1.35;
}

.landing-pub-authors {
  font-size: 0.85em;
  color: #666;
  line-height: 1.4;
}

.landing-pub-venue {
  font-size: 0.85em;
  color: #888;
}

/* ===========================================
   Featured Projects
   =========================================== */
.landing-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25em;
}

.landing-project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: var(--border-radius, 12px);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition, all 0.3s ease);
}

.landing-project-card:hover {
  box-shadow: var(--card-shadow-hover, 0 4px 20px rgba(0, 0, 0, 0.15));
  transform: translateY(-2px);
}

.landing-project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.landing-project-info {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding: 0.9em 1em 1.1em 1em;
}

.landing-project-title {
  font-weight: bold;
  color: var(--color-heading, #252122);
}

.landing-project-desc {
  font-size: 0.85em;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================================
   Recent Honors
   =========================================== */
.landing-honors {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-honors li {
  display: flex;
  align-items: baseline;
  gap: 1em;
  padding: 0.45em 0;
  border-bottom: 1px solid #f2f2f2;
}

.landing-honors li:last-child {
  border-bottom: none;
}

.landing-honor-year {
  flex-shrink: 0;
  width: 6em;
  color: #888;
  font-size: 0.9em;
}

.landing-honor-name {
  font-weight: bold;
  color: var(--color-heading, #252122);
}

.landing-honor-name a {
  color: inherit;
}

.landing-honor-note {
  color: #777;
  font-size: 0.9em;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 736px) {
  .landing-intro {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5em;
  }

  .landing-headshot {
    width: 170px;
  }

  .landing-pub-card,
  .landing-news-card {
    align-items: flex-start;
  }

  .landing-pub-card img,
  .landing-news-card img {
    width: 96px;
    height: 68px;
  }

  .landing-honor-year {
    width: 5em;
  }

  .landing-honors li {
    flex-wrap: wrap;
    row-gap: 0.1em;
  }
}
