/* Stack: one calm column, the way a link-in-bio page should feel. */
.page { max-width: 600px; margin: 0 auto; padding: 56px 16px 112px; display: grid; gap: 20px; }
.is-preview .page { padding-top: 28px; }

.head { display: flex; align-items: center; gap: 16px; }
.head .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); }
.who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.who h1 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.bio { font-size: 15.5px; }
/* The pills sit a little closer to the bio than the sections below them. */
.page > .pill-row { margin-top: -6px; }

.cards { display: grid; gap: 10px; margin-top: 8px; }
.card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-width: 0;
  background: var(--card); color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .35s var(--ease), border-color .2s, box-shadow .35s var(--ease);
}
@media (hover: hover) {
  a.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
  a.card:hover .shot > img { transform: scale(1.03); }
}
a.card:active { transform: scale(.99); }
.card .logo { border-radius: 24%; }
.card-title { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.35; }
.card-title strong { font-weight: 650; letter-spacing: -.01em; }
/* Names stay on one line; a name too long for the card ends in an ellipsis. */
.card-title strong.one-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title .rev { margin-top: 3px; }

.card-featured { display: grid; gap: 12px; padding: 16px; }
.card-featured .card-shot { margin: -16px -16px 4px; border-radius: calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) 0 0; border-bottom: 1px solid var(--line); }
.card-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-desc { color: var(--text); font-size: 15px; }
.card-details { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-meta .rev { margin-left: auto; }

.sub-card { margin-top: 12px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.socials { justify-content: center; padding-top: 12px; border-top: 1px solid var(--line); }

@media (max-width: 420px) {
  .page { padding-top: 36px; gap: 18px; }
  .who h1 { font-size: 21px; }
  .card { padding: 12px 14px; gap: 12px; }
}
/* Narrow phones and phone previews: tighter cards and pills, so names
   fit whole beside a long status. */
.cards { container-type: inline-size; }
@container (max-width: 330px) {
  .card { padding: 12px 10px; gap: 8px; }
  .card-top { gap: 8px; }
  .card .pill { padding: 2px 7px; font-size: 11px; }
  .card-title strong { font-size: 15px; }
}

.page > .links { margin-top: 4px; }

/* A page of links only (src/templates/stack.ts): a link in bio, centered like one. */
.page-links { max-width: 540px; position: relative; }
.page-links .head { flex-direction: column; text-align: center; gap: 12px; }
.page-links .who { justify-items: center; }
.page-links .bio { text-align: center; text-wrap: balance; }
.page-links > .pill-row { justify-content: center; }
.page-links > .socials { justify-content: center; padding-top: 0; border-top: 0; margin-top: -8px; }
.page-links > .socials a { width: 44px; height: 44px; color: var(--text); }
.page-links > .socials svg { width: 26px; height: 26px; }
.page-links .share-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: background .2s; }
.page-links .share-icon:hover { background: var(--soft); }
.page-links .share-icon svg { width: 24px; height: 24px; }
/* Its location card: the address quiet beside the buttons, so the links stay the focus. */
.page-links .biz-addr { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.page-links .biz-addr span { color: var(--muted); }
.page-links .biz-addr strong { color: var(--text); font-size: 14.5px; }
.page-links .biz-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-links .biz-top:not(:has(.biz-now)) { display: contents; }
.page-links .biz-top:not(:has(.biz-now)) + .biz-body { margin-top: 0; }
.page-links .biz-btn { min-height: 38px; font-size: 13.5px; }
