/* Thoughts index: page-specific editorial directory --------------------- */
body.thoughts-index-page {
  --thoughts-rose: rgba(255, 119, 200, 0.78);
  --thoughts-rose-soft: rgba(255, 119, 200, 0.11);
  --thoughts-blue-soft: rgba(127, 224, 255, 0.1);
  --thoughts-amber-soft: rgba(255, 200, 120, 0.09);
}

.thoughts-index {
  width: min(100% - 2rem, 84rem);
}

.thoughts-index__shell {
  overflow: hidden;
}

.thoughts-index__intro {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 5vw, 4.5rem)
    clamp(2.2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(
      circle at 85% 38%,
      var(--thoughts-rose-soft),
      transparent 18rem
    ),
    radial-gradient(
      circle at 72% 12%,
      var(--thoughts-blue-soft),
      transparent 15rem
    ),
    linear-gradient(135deg, rgba(255, 200, 120, 0.045), transparent 42%);
  overflow: hidden;
}

.thoughts-index__intro::before,
.thoughts-index__intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.thoughts-index__intro::before {
  width: clamp(11rem, 28vw, 25rem);
  height: clamp(11rem, 28vw, 25rem);
  right: clamp(-8rem, -6vw, -2rem);
  top: clamp(-7rem, -4vw, -1.5rem);
  border: 1px solid rgba(255, 200, 120, 0.15);
  box-shadow:
    inset 0 0 4rem rgba(57, 69, 247, 0.12),
    0 0 5rem rgba(255, 119, 200, 0.07);
}

.thoughts-index__intro::after {
  width: clamp(6rem, 14vw, 12rem);
  height: clamp(6rem, 14vw, 12rem);
  right: clamp(2rem, 15vw, 13rem);
  bottom: clamp(-6rem, -5vw, -2rem);
  border: 1px solid rgba(127, 224, 255, 0.12);
  transform: scaleY(0.48) rotate(-14deg);
}

.thoughts-index__intro .article-title {
  max-width: 10ch;
  margin-top: 0.55rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.thoughts-index__intro .article-deck {
  max-width: 48rem;
  margin-top: 1.1rem;
  line-height: 1.75;
}

.thoughts-index__layout {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.thoughts-index__rail {
  position: relative;
  flex: 0 0 15.5rem;
  align-self: stretch;
  min-width: 0;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(57, 69, 247, 0.08), transparent 22rem),
    rgba(2, 3, 15, 0.18);
}

.thoughts-index__rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4rem;
  width: 9rem;
  height: 18rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 119, 200, 0.08);
  border-radius: 50%;
  filter: blur(0.2px);
  pointer-events: none;
}

.thoughts-index__nav {
  position: sticky;
  top: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: clamp(1.2rem, 3vw, 2rem) 1rem clamp(2rem, 5vw, 4rem);
}

.thoughts-index__nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.75rem 0.55rem 1.2rem;
  border-radius: 0.45rem;
  color: var(--mist-500);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.085em;
  line-height: 1.35;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.thoughts-index__nav a::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: rgba(127, 224, 255, 0.34);
  box-shadow: 0 0 0 rgba(127, 224, 255, 0);
  transform: translateY(-50%);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.thoughts-index__nav a:hover,
.thoughts-index__nav a:focus-visible {
  color: var(--star-50);
  background: linear-gradient(
    90deg,
    rgba(57, 69, 247, 0.16),
    rgba(255, 119, 200, 0.05)
  );
  transform: translateX(0.2rem);
}

.thoughts-index__nav a:hover::before,
.thoughts-index__nav a:focus-visible::before {
  background: var(--blue-300);
  box-shadow: 0 0 0.9rem rgba(127, 224, 255, 0.58);
  transform: translateY(-50%) scale(1.45);
}

.thoughts-index__catalog {
  flex: 1 1 auto;
  min-width: 0;
}

.thoughts-index__section {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.15rem, 4vw, 3.4rem);
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 1rem;
}

.thoughts-index__section:last-child {
  border-bottom: 0;
}

.thoughts-index__section::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(1.8rem, 4vw, 3.2rem);
  width: 2px;
  height: clamp(2.6rem, 5vw, 4.8rem);
  border-radius: 999px;
  background: linear-gradient(var(--blue-300), var(--thoughts-rose));
  box-shadow: 0 0 1.2rem rgba(127, 224, 255, 0.2);
  opacity: 0.72;
}

.thoughts-index__section-title {
  margin: 0 0 1.15rem;
  color: var(--star-200);
  font-size: 0.73rem;
  font-weight: 720;
  letter-spacing: 0.21em;
  line-height: 1.35;
  text-transform: uppercase;
  scroll-margin-top: 1rem;
}

.thoughts-index__section-title:target {
  color: var(--blue-300);
  text-shadow: 0 0 1.2rem rgba(127, 224, 255, 0.35);
}

.thoughts-index__list {
  border-top: 1px solid rgba(127, 224, 255, 0.13);
}

.thoughts-index__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr) 1.5rem;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  align-items: center;
  min-height: 5.25rem;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 200, 120, 0.09);
  color: var(--star-100);
  background: linear-gradient(90deg, transparent, transparent);
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
  overflow: hidden;
}

.thoughts-index__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(var(--star-300), var(--thoughts-rose));
  transform: translateY(-50%);
  transition:
    height 180ms ease,
    box-shadow 180ms ease;
}

.thoughts-index__item:last-child {
  border-bottom: 0;
}

.thoughts-index__item:hover,
.thoughts-index__item:focus-visible {
  color: var(--star-50);
  background:
    radial-gradient(
      circle at 86% 50%,
      rgba(255, 119, 200, 0.08),
      transparent 15rem
    ),
    linear-gradient(90deg, rgba(57, 69, 247, 0.1), rgba(127, 224, 255, 0.025));
  transform: translateX(0.25rem);
}

.thoughts-index__item:hover::before,
.thoughts-index__item:focus-visible::before {
  height: calc(100% - 1.4rem);
  box-shadow: 0 0 1rem rgba(255, 119, 200, 0.32);
}

.thoughts-index__meta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(127, 224, 255, 0.13);
  border-radius: 999px;
  color: var(--mist-500);
  background: rgba(3, 4, 20, 0.34);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.15;
  text-transform: uppercase;
}

.thoughts-index__copy {
  display: block;
  min-width: 0;
}

.thoughts-index__copy strong {
  display: block;
  margin: 0;
  color: var(--star-50);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 330;
  letter-spacing: -0.025em;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.thoughts-index__description {
  margin: 0.3rem 0 0;
  color: var(--violet-300);
  font-size: 0.86rem;
  line-height: 1.55;
}

.thoughts-index__arrow {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 200, 120, 0.12);
  border-radius: 50%;
  color: var(--mist-700);
  font-size: 0.78rem;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.thoughts-index__item:hover .thoughts-index__arrow,
.thoughts-index__item:focus-visible .thoughts-index__arrow {
  border-color: rgba(255, 200, 120, 0.35);
  color: var(--star-200);
  transform: rotate(45deg);
  box-shadow: 0 0 1rem rgba(255, 200, 120, 0.12);
}

.thoughts-index__item[href="#"] {
  opacity: 0.58;
}

.thoughts-index__note {
  margin-top: 1rem;
}

@supports not (display: grid) {
  .thoughts-index__item {
    display: flex;
  }

  .thoughts-index__meta {
    flex: 0 0 9rem;
  }

  .thoughts-index__copy {
    flex: 1 1 auto;
  }

  .thoughts-index__arrow {
    flex: 0 0 1.5rem;
  }
}

@media (max-width: 920px) {
  .thoughts-index__layout {
    display: block;
  }

  .thoughts-index__rail {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .thoughts-index__rail::after {
    display: none;
  }

  .thoughts-index__nav {
    position: static;
    flex-direction: row;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .thoughts-index__nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .thoughts-index__intro {
    padding-top: 2rem;
  }

  .thoughts-index__intro .article-title {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .thoughts-index__section {
    padding: 1.55rem 1rem 1.8rem;
  }

  .thoughts-index__item {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    gap: 0.4rem 0.85rem;
    min-height: 0;
    padding: 1rem 0.55rem;
  }

  .thoughts-index__meta {
    grid-column: 1;
    grid-row: 1;
  }

  .thoughts-index__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-right: 0.25rem;
  }

  .thoughts-index__arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .thoughts-index__item:hover,
  .thoughts-index__item:focus-visible {
    transform: none;
  }
}
