.index {
    align-items: center;
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.index__link {
    margin-top: 0.2rem;
    font-size: var(--size-xl); /* bigger than header links */
    text-decoration: none;
    font-weight: 400;
    color: var(--clr-medium); /* default medium color */
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.index__link::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--clr-light);
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
}
.index__link:hover::after,
.index__link:focus::after {
    width: 100%;
}
.index__item:hover .index__link::after,
.index__item:focus-within .index__link::after {
    width: 100%;
}
.header__link.active {
    text-decoration: underline;
}
.index__img {
    pointer-events: none;
    position: absolute;
    height: 50vh;
    max-height: 400px;
    opacity: 0;
    left: 95%;
    top: 45%;
    transform: translate3d(calc(-100% - 6vw),-30%,0) translate3d(0,20px,0);
    border-radius: 1rem; /* smooth corners */
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12); /* optional: subtle shadow for depth */
}
.index__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.index__meta {
  font-size: 0.4rem; /* small but visible */
  color: var(--clr-medium);
  margin-bottom: 0.2rem;
  font-weight: 300; /* thin font */
  text-transform: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
  line-height: 1.1;
}
.index__item:hover .index__meta,
.index__item:hover .index__link,
.index__link:hover,
.index__meta:hover {
  color: var(--clr-light);
  transform: translateX(12px);
}
.index__bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}
.index__link:hover ~ .index__bg-image,
.index__link:focus ~ .index__bg-image {
  opacity: 1;
}
/* xs */
@media (min-width: 475px) {
    .container {
        max-width: 475px;
    }
    .index__link {
        font-size: var(--size-xl);
    }
    .index__link:hover + .index__img {
        opacity: 1;
        transform: translate3d(calc(-100% - 6vw),-30%,0) rotate3d(0,0,1,0deg);
        transition: all 0.4s;
    }
}
/* sm */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
    .index__link {
        font-size: var(--size-3xl); /* even bigger on larger screens */
    }
    .index__item {
    margin-bottom: 3rem;
  }
  .index__meta,
  .index__link {
    font-size: var(--size-3xl);
  }
  .index__meta {
    font-size: 0.7rem;
  }
}
/* md */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}
/* lg */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}
/* xl */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    .section{
        margin-top: 10rem;
    }
    .index__meta,
    .index__link {
    font-size: var(--size-4xl);
  }
  .index__meta {
    font-size: 0.8rem;
  }
}
/* 2xl */
@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
    
}
