/* Home page (index.html) */

.home {
  --mona-blue: #4f8db3;
  --mona-blue-light: rgba(134, 184, 212, .18);
  --mona-ink: #1f3b4d;
  color: #333;
}

.home h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--mona-ink);
}

.home-section {
  margin: 2.75rem 0;
}

/* Hero */
.home-hero {
  padding: 2.25rem 2rem 2rem;
  margin-bottom: 2rem;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, .15) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 75%, rgba(255, 255, 255, .12) 0 2px, transparent 3px),
    linear-gradient(135deg, #1f3b4d 0%, #2f6f93 55%, #86b8d4 100%);
}

.home-kicker {
  margin: 0 0 .5rem;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.home-title {
  margin: 0 0 .75rem;
  font-size: 2.2rem;
  line-height: 1.15;
  color: #fff;
}

.home-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40rem;
}

.home-cta {
  margin: 1.25rem 0 0;
}

.home-btn {
  display: inline-block;
  margin: 0 .4rem .5rem 0;
  padding: .45rem 1rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  font-size: .9rem;
  color: #fff !important;
  text-decoration: none !important;
  transition: background .2s ease;
}

.home-btn:hover,
.home-btn-primary {
  background: rgba(255, 255, 255, .2);
}

/* M - N - A */
.home-name {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.home-letter {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--mona-blue);
  background: var(--mona-blue-light);
  border-radius: 0 10px 10px 0;
}

.home-initial {
  float: right;
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1;
  color: var(--mona-blue);
  opacity: .35;
}

.home-letter h3 {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
  color: var(--mona-ink);
}

.home-letter p {
  margin: 0;
  font-size: .9rem;
}

/* Research themes */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.home-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  background: #fff;
  border-top: 3px solid var(--mona-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.home-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: var(--mona-ink);
}

.home-card p {
  margin: 0 0 .6rem;
  font-size: .9rem;
  line-height: 1.5;
}

.home-refs {
  margin-top: auto !important;
  font-size: .8rem !important;
}

/* Future */
.home-future ul {
  padding-left: 1.1rem;
}

.home-future li {
  margin-bottom: .6rem;
  line-height: 1.5;
}

/* Lists of publications / courses */
.home-pubs {
  list-style: none;
  padding: 0;
}

.home-pubs li {
  padding: .55rem 0;
  border-bottom: 1px solid #eee;
}

.home-pub-meta {
  display: block;
  font-size: .8rem;
  color: #777;
}

/* Tools tiles */
.home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.home-tile {
  display: flex;
  flex-direction: column;
  padding: .75rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  text-decoration: none !important;
  color: #333 !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

.home-tile img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: .5rem;
  background: #fafafa;
  border-radius: 6px;
}

.home-tile-title {
  font-weight: bold;
  color: var(--mona-ink);
}

.home-tile-text {
  font-size: .8rem;
  color: #666;
}

/* Join */
.home-join {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: var(--mona-blue-light);
}

@media (max-width: 40em) {
  .home-hero { padding: 1.5rem 1.25rem; }
  .home-title { font-size: 1.7rem; }
}
