/* -------------------------------------------------
   Homepage-specific styles
   Layer on top of site-theme.css
   File: docs/stylesheets/homepage.css
   ------------------------------------------------- */

/* ---------- Hero ---------- */

.home-hero {
  padding: 2rem 1.6rem 1.6rem;
  margin: 0 0 2rem;
  border-radius: 18px;
  border: 1px solid rgba(127, 127, 127, 0.18);
  background:
    linear-gradient(
      170deg,
      rgba(var(--md-primary-fg-color--rgb, 63, 81, 181), 0.06) 0%,
      rgba(255, 255, 255, 0.02) 60%,
      rgba(127, 127, 127, 0.03) 100%
    );
  box-shadow: var(--md-shadow-z1);
}

.home-hero h1 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-subtitle,
.home-hero > p:first-of-type {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

/* ---------- Hero action buttons ---------- */

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.home-hero-actions a,
a.hero-btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid rgba(127, 127, 127, 0.22);
  background-color: rgba(127, 127, 127, 0.05);
  color: var(--md-typeset-a-color);
  transition:
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.home-hero-actions a:hover,
a.hero-btn:hover {
  box-shadow: var(--md-shadow-z1);
  background-color: rgba(127, 127, 127, 0.09);
  text-decoration: none;
}

/* ---------- Section spacing ---------- */

.home-section {
  margin-top: 2.5rem;
}

.home-section > h2 {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(127, 127, 127, 0.15);
  margin-bottom: 1rem;
}

/* ---------- Recent updates: two-column layout ---------- */

.recent-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.recent-columns h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Recent item cards ---------- */

.recent-list {
  display: grid;
  gap: 0.75rem;
}

.recent-item {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(127, 127, 127, 0.15);
  background-color: rgba(127, 127, 127, 0.03);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.recent-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--md-shadow-z1);
  border-color: rgba(127, 127, 127, 0.28);
}

.recent-item h4 {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}

.recent-item h4 a {
  text-decoration: none;
  color: inherit;
}

.recent-item h4 a:hover {
  color: var(--md-typeset-a-color);
}

.recent-item .recent-meta {
  display: block;
  font-size: 0.72rem;
  opacity: 0.7;
  line-height: 1.3;
}

.recent-item p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.92;
}

.recent-item p:last-child {
  margin-bottom: 0;
}

/* ---------- Quick links footer ---------- */

.quick-links {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(127, 127, 127, 0.15);
  font-size: 0.82rem;
}

.quick-links strong {
  font-weight: 700;
}

.quick-links a {
  text-decoration: none;
}

.quick-links a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 760px) {

  .home-hero {
    padding: 1.4rem 1.1rem 1.2rem;
  }

  .home-hero h1 {
    font-size: 1.55rem;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-actions a,
  a.hero-btn {
    text-align: center;
  }

  .recent-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
