/* Homepage (layout: homelay). Loaded only on the homepage, after main.css. */

.home {
  --home-ink: #1d2421;
  --home-muted: #4a524e;
  --home-faint: #5b6460;
  --home-line: #e4e8e6;
  --home-accent: #3f6b56;
  --home-accent-dark: #2c4d3e;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 0 24px;
  color: var(--home-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.home h1,
.home h2 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif !important;
  font-weight: 600;
  color: var(--home-ink);
  margin: 0;
}
.home p { margin: 0; }
.home a { color: var(--home-accent); text-decoration: none; }
.home a:hover,
.home a:focus { color: var(--home-accent-dark); text-decoration: underline; }

/* Hero */
.home-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
  padding: 48px 0 56px;
}
.home-hero-text {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-accent);
}
.home h1 { font-size: 52px; line-height: 1.1; }
.home-lead { font-size: 18px; line-height: 1.65; color: #2a312e; }
.home-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.home .home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cfd6d2;
  border-radius: 8px;
  color: var(--home-ink);
  font-size: 15px;
  font-weight: 500;
}
/* main.css colours some icons (e.g. a red envelope); keep them in the button's colour */
.home .home-btn i { color: inherit !important; }
.home .home-btn:hover,
.home .home-btn:focus { border-color: var(--home-accent); color: var(--home-ink); text-decoration: none; }
.home .home-btn--icon { width: 44px; padding: 0; justify-content: center; font-size: 20px; }
.home .home-btn--primary { background: var(--home-accent); border-color: var(--home-accent); color: #fff; }
.home .home-btn--primary:hover,
.home .home-btn--primary:focus { background: var(--home-accent-dark); color: #fff; }

/* Sections */
.home-section {
  border-top: 1px solid var(--home-line);
  padding: 48px 0;
}
.home h2 { font-size: 32px; line-height: 1.2; }
.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.home-section-head a,
.home .home-more { font-size: 15px; font-weight: 500; }

/* Research cards */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px 20px;
}
.home .home-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--home-ink);
}
.home .home-card:hover,
.home .home-card:focus { color: var(--home-ink); text-decoration: none; }
.home-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--home-line);
  border-radius: 10px;
}
.home-card-title { font-size: 18px; font-weight: 600; }
.home .home-card:hover .home-card-title { color: var(--home-accent); }
.home-card-text { font-size: 15px; color: var(--home-muted); }

/* Publications and news */
.home-split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
}
/* About 60/40 on desktop; stacks below ~880px */
.home-pubs {
  flex: 3 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-newsbox {
  flex: 2 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-pubs ol,
.home-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.home-pubs ol { gap: 22px; }
.home-pubs li { display: flex; flex-direction: column; gap: 3px; }
.home-pub-title { font-size: 17px; font-weight: 600; }
.home-pub-venue { font-size: 15px; color: var(--home-muted); }
.home-pub-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.home-pub-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 500; }

.home-news-list { gap: 14px; }
.home-news-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  font-size: 15px;
}
.home-news-list time { color: var(--home-faint); font-variant-numeric: tabular-nums; }
.home-news-source { color: var(--home-faint); }

@media (max-width: 600px) {
  .home { padding-top: 40px; }
  .home h1 { font-size: 40px; }
  .home-lead { font-size: 17px; }
}
