/* Hero */
.hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.hero p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 56ch;
}

/* Section */
.section {
  padding: 3rem 0 0;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header .section-meta {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.35rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Card grid (unified width across all sections) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.card .card-link {
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card .card-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card .card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background: currentColor;
  display: inline-block;
}

.card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}

.card p.excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .card-footer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 1.75rem;
  }
  .section {
    padding: 2rem 0 0;
  }
}
