/* style.css for TFU landing page with Cy Grotesk Wide */

@import url('https://fonts.googleapis.com/css2?family=Cy+Grotesk+Wide:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cy Grotesk Wide', sans-serif;
}

body {
  background-color: #F8F8F6;
  color: #111;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.tfu-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  max-width: 20%;  /* half of 80% from .grid-item img */
  height: auto;
}

.content {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.subline {
  font-size: 0.95rem;
  color: #555;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
  gap: 1.5rem;
  padding: 2rem;
  flex: 1;
}

.grid-item {
  aspect-ratio: 1 / 1; /* Perfect squares */
  background-color: #f6f6f6;
  border: 1px solid #ccc;
  text-align: center;
  text-decoration: none;
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.grid-item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(0.95);
}


footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: #888;
}

footer a {
  color: #888;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns */
  }
}
