/* Homepage-only styles for git-city, scoped to .gc-home. */

/* Hide the (required-for-title) H1 on the landing page; the hero supplies it. */
.gc-h1-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gc-home {
  max-width: 52rem;
  margin: 0 auto;
}

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

.gc-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.gc-hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.gc-hero h1 .accent {
  background: linear-gradient(
    90deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gc-hero .tagline {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--md-default-fg-color);
}

.gc-hero .sub {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  color: var(--md-default-fg-color--light);
}

.gc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.gc-cta .md-button {
  margin: 0;
}

/* --- Section rhythm ------------------------------------------------------- */

.gc-home h2 {
  text-align: center;
  font-weight: 700;
  margin-top: 2.5rem;
}

.gc-home hr {
  border: none;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  margin: 2.5rem 0;
}

/* Slightly tighter, card-like code blocks on the homepage. */
.gc-home .highlight pre,
.gc-home pre {
  border-radius: 0.5rem;
}

/* --- Grid cards ----------------------------------------------------------- */

.gc-home .grid.cards > ul > li {
  border-radius: 0.6rem;
  transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}

.gc-home .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

@media screen and (max-width: 44rem) {
  .gc-hero h1 {
    font-size: 2.6rem;
  }
  .gc-hero .tagline {
    font-size: 1.2rem;
  }
}
