/* Creator pages (/creators/ and /creators/<slug>/, rendered by tools/creators.mjs). Phone first, garden.css tokens only.
   Game tiles reuse the hub tile styles from site/hub.css (.hub-grid). */

.cr-head { gap: 10px; padding-bottom: 6px; }
.cr-head .gg-eyebrow a { color: inherit; text-underline-offset: 3px; }
.cr-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cr-id__text { display: grid; gap: 4px; min-width: 0; }
.cr-avatar {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--gg-r-pill);
  background: var(--gg-butter); border: var(--gg-border); box-shadow: var(--gg-shadow-sm);
  font-family: var(--gg-font-display); font-weight: 800; font-size: 32px; line-height: 1;
}
/* one colour per creator, picked from the slug by tools/creators.mjs (avatarColour) */
.cr-avatar--lime { background: var(--gg-lime); }
.cr-avatar--lavender { background: var(--gg-lavender-100); }
.cr-avatar--butter { background: var(--gg-butter); }
.cr-avatar--pink { background: var(--gg-pink-100); }
.cr-head h1 { font-size: clamp(34px, 9vw, 60px); line-height: 1.02; letter-spacing: -.03em; overflow-wrap: anywhere; }
.cr-garden { display: inline-flex; align-items: center; gap: 6px; color: var(--gg-ink-2); font-size: var(--gg-text-sm); font-weight: 600; }
.cr-garden svg { flex: none; }
.cr-garden b { color: var(--gg-ink); font-weight: 800; }
.cr-role { font-weight: 800; font-size: var(--gg-text-md); line-height: 1.35; }
.cr-bio { color: var(--gg-ink-2); font-size: var(--gg-text-md); line-height: 1.55; max-width: 52ch; }
.cr-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cr-link { gap: 8px; }
.cr-link svg { flex: none; }
.cr-link__on { color: var(--gg-ink-3); font-weight: 700; }

.cr-games { display: grid; gap: 14px; padding: 22px 0 6px; }
.cr-games h2 { font-size: var(--gg-text-2xl); letter-spacing: -.02em; }
/* one game: the tile takes the full width on phones (half a row looks lost) */
.cr-grid--n1 .tile { grid-column: 1 / -1; }
.cr-grid--n1 .tile__art { height: 150px; }

.cr-more { margin-top: 22px; padding: 0 0 4px; color: var(--gg-ink-2); line-height: 1.5; }
.cr-more a { color: var(--gg-ink); font-weight: 800; text-underline-offset: 3px; }

/* the index */
.cr-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 18px; }
.cr-card { gap: 10px; padding: 18px; }
.cr-card h2 { font-size: var(--gg-text-2xl); letter-spacing: -.02em; line-height: 1.05; }
.cr-card__name { color: var(--gg-ink); text-decoration: none; }
.cr-card__name:hover { text-decoration: underline; text-underline-offset: 4px; }
.cr-card__go { justify-self: start; align-self: end; margin-top: 4px; }

@media (min-width: 700px) {
  .cr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cr-grid--n1 .tile { grid-column: auto; }
  .cr-grid--n1 .tile__art { height: 106px; }
}
@media (min-width: 1000px) {
  .cr-head { padding-top: 40px; }
  .cr-avatar { width: 84px; height: 84px; font-size: 42px; }
  .cr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cr-grid--n1 .tile__art { height: 150px; }
  .cr-games { padding-top: 32px; gap: 18px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .cr-head { padding-top: 14px; }
  .cr-head h1 { font-size: 34px; }
  .cr-avatar { width: 52px; height: 52px; font-size: 26px; }
}
/* footer in two columns on phones, like the hub pages */
@media (max-width: 520px) { .cr-page .site-foot__nav { grid-template-columns: 1fr 1fr; } }
