:host { display: block; }

nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 18px);
}

/* text links: italic serif, an underline grows on hover */
.link {
  padding: 8px 6px;
  font: italic 600 17px/1 var(--font-serif);
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--color-ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 50% 88% / 0 1.5px no-repeat;
  transition: background-size 0.3s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.link:hover { background-size: calc(100% - 12px) 1.5px; }

/* share: a small round button that opens the share card (components/share) */
.share {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1.5px solid rgba(36, 31, 38, 0.16);
  border-radius: 50%;
  color: var(--color-ink);
  background: #fff;
  cursor: pointer;
  transition: translate 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}
.share svg { width: 18px; }
.share:hover { translate: 0 -1px; border-color: var(--color-petal); }

/* follow on Instagram: the ink pill */
.ig {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  margin-left: 4px;
  padding: 9px 15px 9px 11px;
  border-radius: 99px;
  font: 600 14px/1 var(--font-ui);
  color: var(--color-paper);
  text-decoration: none;
  background: var(--color-ink);
  transition: translate 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ig:hover { translate: 0 -1px; }
.ig svg { width: 18px; }

.link:focus-visible { outline: 2.5px solid var(--color-leaf); outline-offset: 2px; border-radius: 8px; }
.share:focus-visible, .ig:focus-visible { outline: 2.5px solid var(--color-leaf); outline-offset: 2px; }

/* phones: the page's main link, share and follow */
@media (max-width: 640px) {
  .link:not(.main) { display: none; }
}
@media (max-width: 440px) {
  .ig span { display: none; }
  .ig { padding: 9px; margin-left: 0; }
}
/* the narrowest phones: everything a touch tighter, so it all fits beside the name */
@media (max-width: 400px) {
  nav { gap: 3px; }
  .link { padding: 8px 4px; font-size: 16px; letter-spacing: 0.01em; }
  .share { width: 34px; height: 34px; }
  .share svg, .ig svg { width: 16px; }
  .ig { padding: 8px; }
}
/* very small phones (320 px): just share and follow — the name in the bar already goes home, and
   "meet the artist" is on the home page itself */
@media (max-width: 340px) {
  .link { display: none; }
}
