/* ═══════════════════════════════════════════════════════════════
   UTILIUM — home.css
   Homepage: compact search header + sidebar + tool grid.
   ═══════════════════════════════════════════════════════════════ */

/* ── Compact search section at the top of main ── */
.home-search-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 1.75rem;
  gap: 1rem;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 1.5rem;
}

/* ── Wordmark ── */
.home-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--tx);
}
.home-wordmark strong {
  font-style: normal;
  font-weight: 500;
  color: var(--ac);
}

/* ── Tagline ── */
.home-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--tx3);
  margin-top: -0.5rem;
}

/* ── Search bar ── */
.home-search-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.home-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tx3);
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 1;
}
.home-search-input {
  width: 100%;
  height: 50px;
  padding: 0 1.25rem 0 2.85rem;
  background: var(--bg2);
  border: 1.5px solid var(--bd);
  border-radius: 26px;
  color: var(--tx);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-search-input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-dim);
}
.home-search-input::placeholder { color: var(--tx3); }

/* Search dropdown */
.home-search-wrap .search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ── Popular chips ── */
.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  max-width: 520px;
}
.home-chip {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--bd);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--tx2);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.home-chip:hover {
  border-color: var(--ac);
  color: var(--ac);
  background: var(--ac-dim);
  text-decoration: none;
}

/* ── Grid header ── */
.grid-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.grid-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.grid-count {
  font-size: 0.72rem;
  color: var(--tx3);
  font-family: 'DM Mono', monospace;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .home-search-section { padding: 1.5rem 0 1.25rem; }
}
@media (max-width: 600px) {
  .home-search-section { padding: 1.25rem 0 1rem; }
  .home-chips { max-width: 100%; }
  .home-search-input { font-size: 0.88rem; }
}
