.home-page { color: var(--ink); }

.home-section { margin: 68px 0; }
.section-heading {
  display: flex; justify-content: space-between; align-items: end;
  gap: 25px; margin-bottom: 24px;
}
.section-heading .eyebrow { margin-bottom: 12px; }
.home-page h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -.035em; line-height: 1.15; font-weight: 650; margin: 0;
}
.section-heading > p {
  max-width: 280px; font-size: .87rem; color: var(--muted); line-height: 1.6;
}

.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.collection-card {
  position: relative; min-height: 196px; padding: 23px;
  border: 1px solid #e1e4da; border-radius: 12px;
  background: #f1f3eb; text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.collection-card:hover { transform: translateY(-4px); border-color: #7b9782; }
.collection-hiking { background: #e9efe7; }
.collection-running { background: #f1ebe0; }
.collection-pets { background: #e9eeeb; }
.collection-icon { display: block; font-size: 2rem; line-height: 1; margin-bottom: 32px; color: #577259; }
.collection-card h3,
.featured-card h3,
.home-empty h3,
.guide-step h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 8px; }
.collection-card p { color: var(--muted); font-size: .8rem; line-height: 1.5; margin: 0; max-width: 180px; }
.collection-arrow { position: absolute; top: 23px; right: 22px; color: #748773; }

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.featured-card {
  background: white; border: 1px solid #e1e4da;
  border-radius: 12px; padding: 24px;
}
.featured-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.route-symbol { font-size: 2.8rem; color: #64866b; }
.route-badge { font-size: .7rem; padding: 6px 10px; background: #edf1e8; border-radius: 20px; }
.featured-card h3 { font-size: 1.25rem; overflow-wrap: anywhere; }
.featured-card h3 a { text-decoration: none; }
.featured-card h3 a:hover { text-decoration: underline; }
.featured-card > p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.route-stats {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: .76rem;
  border-top: 1px solid #e9ece5; margin-top: 20px; padding-top: 16px;
}

.home-empty {
  display: flex; align-items: center; gap: 26px;
  padding: 35px; border: 1px dashed #c6cec1;
  border-radius: 14px; background: #f4f5ef;
}
.empty-contour { font-size: 4rem; color: #8b9e84; }
.home-empty > div:nth-child(2) { flex: 1; }
.home-empty p { color: var(--muted); font-size: .9rem; line-height: 1.6; max-width: 460px; }

.home-guide {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px;
  padding: 48px; border-radius: 18px; background: #e9eee5;
  scroll-margin-top: 30px;
}
.guide-intro h2 { max-width: 330px; }
.guide-intro > p:last-child {
  color: var(--muted); font-size: .9rem; line-height: 1.7; margin-top: 20px;
}
.guide-step {
  display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid #ccd7c6;
}
.guide-step:first-child { padding-top: 0; }
.guide-step:last-child { border: 0; padding-bottom: 0; }
.step-number { color: #7d8f75; font-size: .8rem; padding-top: 3px; }
.guide-step p { color: var(--muted); font-size: .85rem; line-height: 1.6; margin: 0; }

.home-community { text-align: center; padding: 70px 20px; }
.home-community .eyebrow { justify-content: center; }
.home-community p:not(.eyebrow) {
  color: var(--muted); font-size: .95rem; line-height: 1.7;
  max-width: 470px; margin: 20px auto 25px;
}
.home-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 18px; border-top: 1px solid #dce2d6;
  padding-top: 25px; font-size: .78rem; color: var(--muted);
}
.home-footer > span { font-weight: 750; color: var(--ink); }
.home-footer a { text-decoration: underline; }

.home-page .route-card h2 { font-size: 1.25rem; letter-spacing: 0; line-height: 1.3; }

@media (max-width: 900px) {
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .home-guide { padding: 32px; gap: 32px; }
  .home-empty { flex-wrap: wrap; }
  .featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-container:has(.home-page) { margin-top: 20px; padding: 0 16px; }
  .section-heading { flex-direction: column; align-items: start; gap: 16px; }
  .home-section { margin: 44px 0; }
  .collection-card { padding: 19px; min-height: 198px; }
  .collection-card h3 { font-size: .95rem; }
  .home-guide { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .home-empty { padding: 25px; gap: 16px; }
  .empty-contour { display: none; }
  .home-empty > div:nth-child(2) { flex-basis: 100%; }
  .home-community { padding: 50px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-card, .home-button { transition: none; }
}
