/* Home page. Consumes tokens from main.css; defines none. */

.hero {
  padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem);
}

.hero-kicker {
  margin-bottom: var(--space-3);
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: var(--space-4);
}

.hero .lede {
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.products-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  height: 100%;
}

.product-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.dropzone-section .card {
  border-style: dashed;
  border-width: 1.5px;
  text-align: center;
  cursor: pointer;
  padding: var(--space-6) var(--space-4);
}

.home-dropzone.is-dragging,
.dropzone-section .card.is-dragging {
  border-color: var(--accent);
  background: var(--surface-2);
}

.dropzone-icon {
  display: block;
  margin: 0 auto var(--space-2);
  width: 44px;
  height: 44px;
  stroke: var(--accent);
}

.dropzone-hint {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.dropzone-status {
  min-height: 1.4em;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.resources-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.resource-preview {
  aspect-ratio: 210 / 160;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.resource-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
}
