/* THE SOLO TRAIL — homepage. Loads after tokens.css. */

/* — HERO — */
.hero { position: relative; padding: 76px 48px 56px; overflow: hidden; }
#topo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--accent); flex-shrink: 0; }
.hero-headline { font-family: var(--font-display); font-size: clamp(34px, 5.5vw, 64px); font-weight: 700; color: var(--ink); line-height: 1.08; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero-sub { font-size: 16px; color: var(--text-mid); max-width: 540px; line-height: 1.7; margin: 0 auto 32px; }

/* — SEARCH — */
.search-wrap { position: relative; max-width: 560px; margin: 0 auto; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 6px 8px 6px 18px; box-shadow: 0 4px 20px rgba(20,22,26,.06); transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 4px 24px rgba(228,121,90,.15); }
.search-icon { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-input { flex: 1; border: none; outline: none; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text); background: transparent; min-width: 0; padding: 10px 0; }
.search-input::placeholder { color: var(--text-muted); }
.search-go { background: var(--ink); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s; font-family: 'Inter', sans-serif; }
.search-go:hover { background: var(--ink-soft); }
.search-results { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 50; overflow: hidden; text-align: left; max-height: 360px; overflow-y: auto; }
.search-results.open { display: block; }
.search-result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border-soft); transition: background .12s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item.active-result { background: var(--bg); }
.sr-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.sr-meta { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.sr-arrow { font-size: 13px; color: var(--accent); flex-shrink: 0; }
.search-empty { padding: 16px 18px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* — TRUST BAR — */
.trust-bar { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 32px; position: relative; z-index: 1; }
.trust-stat { text-align: center; }
.trust-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1; }
.trust-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* — SECTION CHROME — */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--ink); }
.section-head p { font-size: 14px; color: var(--text-muted); max-width: 480px; }
.section-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* — CATEGORY GRID — */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-grid > * { min-width: 0; }
.category-card { position: relative; height: 200px; border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; align-items: flex-end; background: var(--ink-soft); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,13,15,.88) 0%, rgba(11,13,15,.25) 55%, rgba(11,13,15,.05) 100%); }
.category-card-body { position: relative; z-index: 1; padding: 18px 20px; width: 100%; }
.category-card-count { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 6px; }
.category-card-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 3px; line-height: 1.2; }
.category-card-sub { font-size: 12px; color: rgba(255,255,255,.7); }

/* — PICKS GRID — */
.picks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.picks-grid > * { min-width: 0; }
.pick-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pick-card:hover { box-shadow: 0 8px 28px rgba(20,22,26,.1); transform: translateY(-2px); }
.pick-img { position: relative; height: 130px; overflow: hidden; }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-why { position: absolute; top: 10px; left: 10px; background: rgba(20,22,26,.85); color: var(--accent-light); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 10px; }
.pick-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.pick-region { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.pick-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.25; margin-bottom: 8px; }
.pick-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pick-tag { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: var(--bg); color: var(--text-mid); }

/* — DIFFICULTY STRIP — */
.diff-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.diff-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.diff-strip-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); flex-shrink: 0; }
.diff-pill { font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 20px; text-decoration: none; border: 1px solid var(--border); color: var(--text-mid); transition: all .15s; }
.diff-pill:hover { border-color: var(--ink); color: var(--ink); background: var(--ink-pale); }
.diff-pill.easy:hover { border-color: var(--good); color: var(--good); background: var(--good-pale); }
.diff-pill.expert:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-pale); }

/* — MANIFESTO — */
.manifesto { background: var(--ink); padding: 64px 24px; text-align: center; }
.manifesto-inner { max-width: 640px; margin: 0 auto; }
.manifesto-quote { font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 30px); font-weight: 500; color: var(--surface); line-height: 1.45; margin-bottom: 20px; }
.manifesto-attr { font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; }

/* — RESPONSIVE — */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 44px 20px 40px; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 16px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }
  .search-box { padding: 4px 6px 4px 14px; }
  .search-input { font-size: 14px; padding: 9px 0; }
  .search-go { padding: 9px 14px; font-size: 12px; }
  .trust-bar { gap: 24px; margin-top: 24px; }
  .trust-num { font-size: 22px; }
  .section-wrap { padding: 40px 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { height: 160px; }
  .picks-grid { grid-template-columns: 1fr; }
  .diff-strip { padding: 20px 16px; }
  .manifesto { padding: 44px 20px; }
}
@media (max-width: 400px) {
  .hero-headline { font-size: 30px; }
}
