html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.links-page {
  max-width: var(--max);
  overflow-x: hidden;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

@supports (overflow-x: clip) {
  .links-page {
    overflow-x: clip;
  }
}

.links-hero-minimal {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(2.7rem, 7vw, 5.2rem) 0 clamp(1.4rem, 4vw, 2.6rem);
}

.links-hero-minimal::before {
  content: "";
  position: absolute;
  right: clamp(-7rem, -9vw, -2rem);
  top: 0;
  width: min(52vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle, rgba(77, 255, 136, 0.22) 0 1px, transparent 1px 52px),
    conic-gradient(from 240deg, transparent 0 38%, rgba(77, 255, 136, 0.32), transparent 49% 100%);
  mask-image: radial-gradient(circle, #000 0 58%, transparent 72%);
  opacity: 0.62;
  filter: blur(0.2px);
}

.links-title {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  margin: 1rem 0 0.45rem;
  color: transparent;
  background:
    linear-gradient(180deg, #ffffff 0%, #dfffea 23%, #75ff9e 68%, #1ac85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(77, 255, 136, 0.42),
    0 0 46px rgba(77, 255, 136, 0.24),
    0 0 110px rgba(77, 255, 136, 0.11);
}

.links-subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(227, 255, 233, 0.78);
  font-size: clamp(1.15rem, 2.25vw, 1.55rem);
  line-height: 1.45;
}

.suggested-link-grid,
.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
  counter-reset: link-card;
}

.link-item {
  position: relative;
  isolation: isolate;
  counter-increment: link-card;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  min-height: 13rem;
  padding: clamp(1.05rem, 2vw, 1.35rem);
  border: 1px solid rgba(96, 255, 137, 0.34);
  border-radius: 0;
  clip-path: polygon(1.15rem 0, 100% 0, 100% calc(100% - 1.15rem), calc(100% - 1.15rem) 100%, 0 100%, 0 1.15rem);
  background:
    radial-gradient(circle at 15% 0%, rgba(77, 255, 136, 0.18), transparent 11rem),
    linear-gradient(135deg, rgba(119, 217, 255, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(4, 34, 17, 0.82), rgba(0, 0, 0, 0.52)),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    0 0 24px rgba(77, 255, 136, 0.10),
    inset 0 0 22px rgba(77, 255, 136, 0.045);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.link-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(77, 255, 136, 0.18) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 12px),
    linear-gradient(120deg, transparent 0 58%, rgba(255, 211, 106, 0.10) 59%, transparent 72%);
  background-size: 42px 100%, auto, auto;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.link-item::after {
  content: "0" counter(link-card);
  position: absolute;
  right: 0.9rem;
  top: 0.75rem;
  z-index: 1;
  color: rgba(119, 217, 255, 0.36);
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 1;
}

.link-item:hover,
.link-item:focus-within {
  transform: translateY(-3px);
  border-color: rgba(77, 255, 136, 0.84);
  box-shadow:
    0 0 28px rgba(77, 255, 136, 0.20),
    0 0 88px rgba(77, 255, 136, 0.08),
    inset 0 0 26px rgba(119, 217, 255, 0.055);
}

.link-item > div {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.link-item .meta-row {
  margin-bottom: 0.85rem;
}

.link-item .badge {
  border-color: rgba(119, 217, 255, 0.38);
  color: rgba(119, 217, 255, 0.86);
  background: rgba(0, 0, 0, 0.36);
}

.link-item h3 {
  margin: 0 0 0.55rem;
  max-width: 17ch;
  color: var(--hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.link-item h3 a {
  color: inherit;
  text-shadow:
    0 0 14px rgba(77, 255, 136, 0.20),
    0 0 36px rgba(77, 255, 136, 0.10);
}

.link-item h3 a:hover,
.link-item h3 a:focus-visible {
  color: #ffffff;
}

.link-item p {
  margin: 0;
  max-width: 62ch;
  color: rgba(227, 255, 233, 0.68);
  font-size: 0.96rem;
  line-height: 1.62;
}

.link-item .btn {
  position: relative;
  z-index: 2;
  align-self: end;
  min-width: 7.3rem;
  border-radius: 0;
  clip-path: polygon(0.7rem 0, 100% 0, 100% calc(100% - 0.7rem), calc(100% - 0.7rem) 100%, 0 100%, 0 0.7rem);
  white-space: nowrap;
}

@media (min-width: 980px) {
  .link-item:nth-child(3n) {
    grid-column: span 2;
    min-height: 10.5rem;
  }

  .link-item:nth-child(3n) h3 {
    max-width: 24ch;
  }
}

@media (max-width: 900px) {
  .suggested-link-grid,
  .link-list {
    grid-template-columns: 1fr;
  }

  .link-item {
    min-height: 11.5rem;
  }
}

@media (max-width: 640px) {
  .links-page {
    width: min(100% - 1rem, var(--max));
  }

  .links-hero-minimal {
    padding-top: 2rem;
  }

  .links-hero-minimal::before {
    right: -8rem;
    width: 20rem;
    opacity: 0.42;
  }

  .links-title {
    max-width: 10ch;
    font-size: clamp(2.45rem, 13.5vw, 3.7rem);
    line-height: 0.9;
    letter-spacing: -0.062em;
  }

  .links-subtitle {
    font-size: 1.08rem;
  }

  .link-item {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1rem;
  }

  .link-item h3 {
    max-width: 14ch;
    font-size: clamp(1.55rem, 12vw, 2.5rem);
  }

  .link-item .btn {
    width: 100%;
  }
}

@media (min-width: 981px) {
  .links-hero-minimal {
    padding-left: 0.45rem;
    padding-top: clamp(2.2rem, 5vw, 4.1rem);
    padding-bottom: clamp(1.2rem, 3vw, 2rem);
  }

  .links-hero-minimal::before {
    right: clamp(1rem, 5vw, 4rem);
    top: 0.35rem;
    width: min(36vw, 450px);
    opacity: 0.56;
  }

  .links-title {
    max-width: 12ch;
    margin-left: 0.18rem;
    font-size: clamp(3rem, 6.8vw, 5.65rem);
    line-height: 0.88;
    letter-spacing: -0.058em;
  }

  .links-subtitle {
    font-size: clamp(1.05rem, 1.75vw, 1.32rem);
  }

  .suggested-link-grid,
  .link-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .link-item,
  .link-item:nth-child(3n) {
    grid-column: auto;
    min-height: 9.9rem;
    padding: 0.92rem;
  }

  .link-item .meta-row {
    margin-bottom: 0.55rem;
  }

  .link-item .badge {
    min-height: 1.35rem;
    padding: 0.14rem 0.46rem;
    font-size: 0.64rem;
  }

  .link-item h3,
  .link-item:nth-child(3n) h3 {
    max-width: 15ch;
    margin-bottom: 0.38rem;
    font-size: clamp(1.28rem, 2vw, 2rem);
    line-height: 0.9;
    letter-spacing: -0.052em;
  }

  .link-item p {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .link-item .btn {
    min-width: 6.4rem;
    min-height: 2.25rem;
    padding: 0.52rem 0.72rem;
    font-size: 0.72rem;
  }
}
