/* Public creator profile /@handle in the V6 public-site design (spec 70
   Decision 2026-10-06; mockup kuickr/mockup/profile-v1.html). Tokens come from
   .v6-public-site in public-site-v6.css; the cards are the Showcase cards from
   public-site-v6-showcase.css, loaded alongside. Phone first: one column at
   375px, no page-level horizontal scroll, every control at least 44px. */

.v6-profile h1,
.v6-profile h2,
.v6-profile h3 { margin: 0; font-family: var(--v6-display); font-weight: 500; text-wrap: balance; }
.v6-profile h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .95; letter-spacing: -.045em; font-variation-settings: "wdth" 85; }
.v6-profile em { font: italic 400 1.06em var(--v6-serif); letter-spacing: -.02em; color: var(--v6-accent-text); }
.v6-profile canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.v6-profile .v6s-title { font-family: var(--v6-sans); font-size: 1.0625rem; font-weight: 600; text-wrap: pretty; line-height: 1.3; letter-spacing: 0; transition: color .3s; }
.v6p-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.v6p-btn-ring { box-shadow: inset 0 0 0 1px var(--v6-rule); color: var(--v6-ink) !important; background: none; border: 0; cursor: pointer; font-family: inherit; }
.v6p-btn-ring:hover { box-shadow: inset 0 0 0 1px var(--v6-ink); }
.v6p-heading { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(1.25rem, 5vw, 5rem); align-items: end; }
.v6p-heading .v6-eyebrow { margin-bottom: 16px; }

/* Hero: sky with the pixel field; the person sits on the left */
.v6p-hero { position: relative; overflow: hidden; background: var(--v6-sky); }
.v6p-hero-in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px clamp(1.25rem, 3vw, 2.5rem); align-items: start; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.v6p-avatar { display: grid; place-items: center; width: clamp(72px, 10vw, 120px); aspect-ratio: 1; border-radius: 18px; background: var(--v6-paper); box-shadow: 0 0 0 1px var(--v6-hair), 0 20px 50px rgba(17, 18, 20, .10); font: 600 clamp(2rem, 4.4vw, 3.4rem)/1 var(--v6-display); letter-spacing: -.04em; }
.v6p-avatar[data-kind="emoji"] { font-family: system-ui; }
.v6p-id { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.v6p-hl { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 4px; background: var(--v6-lime); color: var(--v6-ink); }
.v6p-hero h1 { font-size: clamp(2.6rem, 7vw, 6.2rem); font-weight: 400; line-height: .9; letter-spacing: -.05em; font-variation-settings: "wdth" 82; overflow-wrap: anywhere; }
.v6p-bio { max-width: 52ch; margin: 0; color: var(--v6-stone); font-size: clamp(1.05rem, 1.4vw, 1.25rem); text-wrap: pretty; overflow-wrap: anywhere; }
.v6p-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font: .75rem var(--v6-mono); color: var(--v6-stone); }
.v6p-facts b { color: var(--v6-ink); font-weight: 500; }
.v6p-note { margin: 0; padding: 10px 12px; border-radius: 8px; border: 1px dashed var(--v6-rule); font: .75rem var(--v6-mono); color: var(--v6-stone); }
@media (max-width: 560px) { .v6p-hero-in { grid-template-columns: 1fr; } .v6p-avatar { width: 72px; } }

/* Shelf */
.v6p-shelf > .v6-shell { display: flex; flex-direction: column; gap: 28px; padding-block: clamp(3.5rem, 7vw, 6rem); }
.v6p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.v6p-pin { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; background: var(--v6-ink); color: var(--v6-bone); font: .6875rem var(--v6-mono); }
.v6p-note-line { margin: 0; font: .75rem var(--v6-mono); color: var(--v6-stone); }
.v6p-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 56px 24px; border-radius: 14px; background: var(--v6-paper); box-shadow: 0 0 0 1px var(--v6-hair); text-align: center; }
.v6p-empty h3 { font-size: 2rem; letter-spacing: -.04em; }
.v6p-empty p { max-width: 46ch; margin: 6px auto 0; color: var(--v6-stone); }
.v6p-empty .v6-button { margin-top: 18px; }

/* Spaces: a ruled list, one row per public Space */
.v6p-spaces { background: var(--v6-paper); border-block: 1px solid var(--v6-hair); }
.v6p-spaces > .v6-shell { display: flex; flex-direction: column; gap: 24px; padding-block: clamp(3.5rem, 7vw, 6rem); }
.v6p-space-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--v6-rule); }
.v6p-space { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--v6-hair); color: inherit; }
.v6-public-site .v6p-space:hover { color: inherit; }
.v6p-space:hover b { color: var(--v6-accent-text); }
.v6p-space-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--v6-bone); box-shadow: inset 0 0 0 1px var(--v6-hair); }
.v6p-space-tile i { width: 12px; height: 12px; border-radius: 3px; background: var(--kk-current-accent, var(--v6-stone)); }
.v6p-space > div { min-width: 0; }
.v6p-space b { display: block; overflow-wrap: anywhere; font: 500 clamp(1.15rem, 2vw, 1.6rem)/1.1 var(--v6-display); letter-spacing: -.03em; transition: color .3s; }
.v6p-space span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: .75rem var(--v6-mono); color: var(--v6-stone); }
.v6p-space-go { font: .875rem var(--v6-sans); color: var(--v6-stone); white-space: nowrap; }

/* Closing band (Graphite) */
.v6p-fin { position: relative; overflow: hidden; background: var(--v6-ink); color: var(--v6-copy-dark); }
.v6p-fin-in { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: clamp(4rem, 8vw, 7rem); }
.v6p-fin h2 { max-width: 14ch; }
.v6p-fin em { color: var(--v6-accent-dark); }
.v6p-fin a.v6-button-outline { box-shadow: inset 0 0 0 1px rgba(242, 242, 240, .22); }
.v6p-fin a:hover { color: var(--v6-lime); }

@media (prefers-reduced-motion: reduce) {
  .v6p-space b, .v6-profile .v6s-title { transition: none; }
}

/* A Space's public hub (/spaces/<org>, search engines §8.5): the profile's
   sections, with one ruled list of Pages per Public Folder. */
.v6-hub .v6p-spaces > .v6-shell { gap: clamp(2.5rem, 5vw, 4rem); }
.v6h-folder { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.v6-profile .v6h-folder-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1; overflow-wrap: anywhere; }
.v6h-folder-head .v6-eyebrow { margin-bottom: 10px; }
.v6h-folder-head a { color: inherit; }
.v6h-folder-head a:hover { color: var(--v6-accent-text); }
.v6-hub .v6p-space { grid-template-columns: minmax(0, 1fr) auto; }
.v6-hub .v6p-space b { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
