/* Landing page. */

.hm-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 8px 48px;
}

.hm-hero {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.hm-hero h1 {
  margin: 0 0 16px;
  font-size: 3rem;
  line-height: 1.1;
}
.hm-hero p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}
.hm-hero .hm-lede {
  color: var(--text-primary);
  font-size: 1.25rem;
}
.hm-auth { margin-top: 20px !important; font-size: 0.95rem !important; }

.hm-section {
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 32px;
  text-align: center;
}
.hm-section h2 { margin: 0 0 4px; font-size: 1.4rem; }
.hm-sub { margin: 0 0 20px; color: var(--text-secondary); }

/* Flex rather than grid so a short row (fantasy's three cards) stays centred
   at card width instead of stretching across the page. */
.hm-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hm-card {
  flex: 0 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  transition: border-color 0.2s, transform 0.2s;
}
.hm-card:hover {
  text-decoration: none;
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}
.hm-card-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  color: var(--accent-blue);
}
.hm-card-title { font-weight: 700; }
.hm-card-desc { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.35; }

.hm-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.hm-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.hm-shot:hover { border-color: var(--accent-blue); }
.hm-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hm-shot-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 12px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}

@media (max-width: 600px) {
  .hm-page { padding: 8px 0 32px; }
  .hm-hero h1 { font-size: 2.2rem; }
  .hm-grid { gap: 12px; }
  .hm-card { flex-basis: calc(50% - 6px); }
  .hm-card-desc { display: none; }
  .hm-shots { grid-template-columns: 1fr; }
}
