/* Landing page (index.md -> _layouts/home.html). */

.home {
  --home-ink: #0f172a;
  --home-muted: #64748b;
  --home-soft: #94a3b8;
  --home-line: #e2e8f0;
  --home-surface: #ffffff;
  --home-tint: #f8fafc;
  --home-accent: #2563eb;
  --home-accent-dark: #1d4ed8;
  --home-radius: 16px;
  --home-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 40px -24px rgba(15, 23, 42, 0.4);

  color: var(--home-ink);
}

.home :focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.home-hero {
  margin: 0 0 2rem;
}

.home-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-soft);
}

.home-hero h1 {
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
  font-size: 2.4rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-sub {
  max-width: 60ch;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--home-muted);
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-cards > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-sizing: border-box;
  height: 100%;
  padding: 1.2rem 1.3rem;
  color: inherit;
  text-decoration: none;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-card:hover {
  color: inherit;
  text-decoration: none;
  border-color: #cbd5e1;
  box-shadow: var(--home-shadow);
  transform: translateY(-2px);
}

.home-card-title {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.home-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--home-muted);
}

.home-card-stat {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--home-accent-dark);
  font-variant-numeric: tabular-nums;
}

.home-card:hover .home-card-stat {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .home-hero h1 {
    font-size: 1.9rem;
  }

  .home-sub {
    font-size: 1rem;
  }

  .home-cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-card {
    transition: none;
  }

  .home-card:hover {
    transform: none;
  }
}
