/* Homepage layout */

.home {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 40px 0;
}

/* Greeting */
.home-greeting {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

/* Three-column info grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.home-col h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.home-col ul {
  list-style: none;
  padding: 0 0 0 0.75rem;
  margin: 0;
}

.home-col ul li {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

/* Building: featured projects on a blueprint backdrop */
.home-building {
  margin-bottom: 2rem;
  padding: 1.4rem;
  background-color: var(--accent-color);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
}

.home-building h2 {
  font-size: 1rem;
  margin: 0 0 0.8rem;
  color: #fff;
}

.home-building-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* Inverted cards: light fill, dark text — readable on the blueprint */
.home-building-item {
  font-size: 0.9rem;
  background-color: var(--background-color);
  border: 1px solid transparent;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease;
}

.home-building-item:hover {
  border-color: var(--accent-color);
}

.home-building-item a {
  color: var(--link-color);
}

.home-building-item a:hover {
  color: var(--link-hover);
}

.home-building-item .desc {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-top: 0.35rem;
}

/* Bottom section: Latest + Links side by side */
.home-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

/* Latest section */
.home-latest h2 {
  font-size: 1rem;
  margin: 0 0 0.8rem;
  color: var(--primary-color);
}

.home-latest-item {
  margin-bottom: 0.8rem;
}

.home-latest-item:last-child {
  margin-bottom: 0;
}

.home-latest-item a {
  color: var(--link-color);
  font-weight: 700;
  font-size: 0.92rem;
}

.home-latest-item a:hover {
  color: var(--link-hover);
}

.home-latest-meta {
  padding-left: 0.75rem;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--secondary-color);
  margin-top: 0.15rem;
}

/* Links section */
.home-links h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.home-links ul {
  list-style: none;
  padding: 0 0 0 0.75rem;
  margin: 0;
}

.home-links ul li {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .home-building-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .home {
    padding: 30px 16px 24px;
  }

  .home-greeting {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-building {
    padding: 1rem;
  }

  .home-building-grid {
    grid-template-columns: 1fr;
  }

  .home-bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
