/* ============================================================
   irid — Link page / Linktree-style page

   These rules are intentionally scoped to .linktree-page so
   they can be appended to the existing style.css without
   changing the homepage, sidebar, or navigation.
   ============================================================ */

/* Undo the desktop site's fixed-height / no-scroll behavior only
   for this standalone links page. */
html.linktree-html,
html.linktree-html body.linktree-page {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.linktree-page {
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--black);
}

.linktree-shell {
  width: min(100% - 40px, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0 36px;
  display: flex;
  flex-direction: column;
}

/* --- Header ------------------------------------------------ */

.linktree-header {
  text-align: center;
  margin-bottom: 38px;
}

.linktree-logo {
  display: inline-block;
  font-family: var(--font);
  font-size: 56px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-decoration: none;
  color: var(--black);
}

.linktree-tagline {
  max-width: 270px;
  margin: 15px auto 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mid);
}

/* --- Link buttons ----------------------------------------- */

.linktree-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.linktree-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 20px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;

  color: var(--black);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;

  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.linktree-button:hover,
.linktree-button:focus-visible {
  background: var(--black);
  color: var(--white);
}

.linktree-button:active {
  transform: scale(0.985);
}

.linktree-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.linktree-button:hover .linktree-arrow,
.linktree-button:focus-visible .linktree-arrow {
  transform: translateX(3px);
}

/* Optional featured link using the existing irid brand palette. */
.linktree-button-featured {
  border-color: transparent;
  background:
    linear-gradient(
      105deg,
      rgba(112, 116, 205, 0.24) 0%,
      rgba(212, 100, 171, 0.21) 38%,
      rgba(254, 114, 74, 0.18) 68%,
      rgba(50, 168, 218, 0.18) 100%
    );
}

.linktree-button-featured:hover,
.linktree-button-featured:focus-visible {
  background: var(--black);
  color: var(--white);
}

/* --- Footer ------------------------------------------------ */

.linktree-footer {
  margin-top: auto;
  padding-top: 46px;
  text-align: center;
}

.linktree-footer a {
  color: var(--light);
  font-size: 12px;
  text-decoration: none;
}

.linktree-footer a:hover {
  color: var(--black);
}

/* --- Small screens ---------------------------------------- */

@media (max-width: 480px) {
  .linktree-shell {
    width: calc(100% - 32px);
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .linktree-logo {
    font-size: 50px;
  }

  .linktree-header {
    margin-bottom: 32px;
  }

  .linktree-button {
    min-height: 56px;
    padding-left: 20px;
    font-size: 14px;
  }
}
