/* ==========================================================================
   Links page: a Linktree-style list in the site's drafting style.
   Builds on ../style.css for the tokens, base type, .btn, .portrait,
   .dimension, .truss and crop marks; this file only adds the layout.
   ========================================================================== */

.links-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-hero) url("../img/low-poly.svg") center top / cover no-repeat;
}

.links {
  position: relative;
  flex: 1;
  max-width: 36rem;
  padding-block: clamp(3.5rem, 9vh, 5.5rem) 1rem;
}

/* ---------- Share ---------- */

.share {
  position: absolute;
  top: 1rem;
  right: var(--gutter);
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(38, 40, 42, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

@media (hover: hover) {
  .share:hover { border-color: var(--text); }
}

/* ---------- Profile ---------- */

.profile {
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile .portrait {
  width: 8rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem;
}

.profile h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile .dimension {
  width: 100%;
  margin: 1rem 0 0.75rem;
}

.profile__bio {
  color: var(--text-2);
  word-spacing: 0.1em;
}

/* ---------- Links ---------- */

.link-list {
  list-style: none;
  display: grid;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

.link-list .btn {
  position: relative;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding-inline: 2.75rem;
  text-align: center;
}

/* the blue node from the hero's integration boxes */
.link-list .btn::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--blue);
}

.links .truss { margin-top: 2.5rem; }

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

.links-page .site-footer__inner {
  max-width: 36rem;
  justify-content: center;
}
