/* Links page. Loads after styles.css and reuses its tokens.
   Built mobile-first: essentially all traffic here arrives from a tap on a
   social bio, so the phone layout is the real design and the desktop one is
   just the same column with more air around it. */

.links {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.25rem, 8vw, 4rem) 1.25rem clamp(2rem, 6vw, 3rem);
}

.links__inner {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Polaroid-style avatar, tilted like the photo tiles on the main site.
   drop-shadow rather than box-shadow for the same reason as the video frames:
   a rotated element gets filtered anti-aliasing instead of a stair-stepped edge. */
.links__avatar {
  background: var(--card);
  padding: 8px;
  border-radius: 2px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 8px 18px rgba(40, 37, 31, 0.22));
  margin-bottom: 1.5rem;
}
.links__avatar img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 1px;
}

.links__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  text-align: center;
  color: var(--ink);
}
.links__name .amp { font-style: italic; color: var(--coral-text); }

.links__tag {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.links__note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 22rem;
}

/* ---------- the stack ---------- */

.links__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.linkrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  /* 60px minimum: this is a thumb target on a phone, not a desktop link */
  min-height: 60px;
  padding: 0.85rem 1.15rem;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(40, 37, 31, 0.06), 0 8px 18px -14px rgba(40, 37, 31, 0.45);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.linkrow:hover,
.linkrow:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(40, 37, 31, 0.08), 0 14px 26px -14px rgba(40, 37, 31, 0.5);
}
.linkrow:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
.linkrow:active { transform: translateY(0); }

/* The one row that should win the eye: hiring us. */
.linkrow--primary {
  background: var(--gold);
  box-shadow: 0 1px 2px rgba(40, 37, 31, 0.10), 0 10px 22px -12px rgba(143, 98, 18, 0.55);
}
.linkrow--primary .linkrow__label { color: var(--ink); }
.linkrow--primary .linkrow__sub { color: var(--gold-text); }

.linkrow__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.linkrow__label {
  font-weight: 800;
  font-size: 0.97rem;
  line-height: 1.25;
  letter-spacing: 0.005em;
}
.linkrow__sub {
  font-size: 0.79rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.linkrow__arrow {
  margin-left: auto;
  flex: none;
  color: var(--ink-soft);
  transition: transform 0.18s ease;
}
.linkrow:hover .linkrow__arrow { transform: translateX(3px); }
.linkrow--primary .linkrow__arrow { color: var(--gold-text); }

/* ---------- socials ---------- */

.links__social {
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(40, 37, 31, 0.06), 0 6px 14px -10px rgba(40, 37, 31, 0.45);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease;
}
.social:hover, .social:focus-visible { transform: translateY(-3px); color: var(--azure-deep); }
.social:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
.social svg { width: 21px; height: 21px; fill: currentColor; }

.links__foot {
  margin: 2.25rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.links__foot a { color: var(--azure-deep); }

@media (prefers-reduced-motion: reduce) {
  .linkrow, .social, .linkrow__arrow { transition: none; }
  .linkrow:hover, .social:hover { transform: none; }
}
