/* index.css — project grid on the home page */

/* Balance the short page in the viewport instead of stranding empty space below */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

main > h1 {
  position: relative;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  padding-bottom: 0.6rem;
  margin-bottom: 0.35rem;
}

/* Brass hairline under the page title — a small, deliberate brand detail */
main > h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), #8f6a37);
}

.page-intro {
  margin-bottom: 2rem;
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.7;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: var(--text);
}

.project-item i {
  font-size: 40px;
  margin-bottom: 0.6rem;
}

.project-item img {
  width: 50px;
  height: auto;
  margin-bottom: 0.6rem;
  object-fit: contain;
}

.project-logo--wide {
  width: 110px;
}

.project-item > span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.project-item .info {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

a.project-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.project-item--static {
  background: var(--surface);
}
