/* Spotify-like Font */
body, h1, h2, h3, h4, h5, h6, p, a, span, li {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
}

/* Mosaic Grid Layout */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
  width: min(90vw, 600px);
  margin: 0 auto 1rem auto;
}

.mosaic-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mosaic-item:hover img {
  transform: scale(1.05);
}

/* Wide item spans full width - main featured image */
.mosaic-item--wide {
  grid-column: 1 / -1;
  height: min(51vh, 324px);
}

/* Regular items in second row */
.mosaic-item:not(.mosaic-item--wide) {
  height: min(33vh, 198px);
}

/* Home content centering */
.home-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.home-content h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.home-content p {
  margin: 0.3rem 0;
}

/* Presentations Section */
.presentations {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.presentations h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.presentations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.presentations-list li {
  margin: 0;
}

.presentations-list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(128, 128, 128, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.presentations-list a:hover {
  background: rgba(128, 128, 128, 0.15);
  transform: translateY(-2px);
}

.presentation-title {
  font-weight: 500;
  font-size: 0.95rem;
}

.presentation-venue {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .mosaic {
    width: 95vw;
  }
  
  .mosaic-item--wide {
    height: 39vh;
  }
  
  .mosaic-item:not(.mosaic-item--wide) {
    height: 26vh;
  }
  
  .presentations-list a {
    padding: 0.6rem 0.8rem;
  }
  
  .presentation-title {
    font-size: 0.85rem;
  }
}
