/* Profile page personalization. Two extra name fonts, loaded only when a profile actually uses one. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Rubik Mono One'; src: url('/fonts/rubikmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ---------- the profile card: the one place where personal styling is allowed to take over ---------- */
.pf { position: relative; border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); background: var(--pf-bg, #14110F); color: var(--pf-ink, #F2EADB); box-shadow: 6px 6px 0 var(--shadow-c); overflow: hidden; }
.pf-banner { height: 132px; border-bottom: var(--bw) solid #0E0C0A; }
.pf-main { display: flex; align-items: flex-end; gap: 22px; padding: 0 26px 22px; margin-top: -46px; flex-wrap: wrap; position: relative; }
.pf-av { flex: none; line-height: 0; } .pf-av .avatar { border-width: 3px; font-size: 46px; border-radius: 14px; }
.pf-av .avatar.av-pic img, .pf-av .avatar.av-icon img { border-radius: inherit; }
.pf-id { flex: 1 1 240px; min-width: 0; padding-top: 52px; }
.pf-name { margin: 0; font-family: var(--pf-font, var(--f-display)); font-size: clamp(32px, 5vw, 54px); line-height: 1; letter-spacing: -.03em; font-weight: 700; word-break: break-word; }
.pf-title { display: inline-block; margin-top: 8px; padding: 3px 9px; background: var(--pf-accent); color: #0E0C0A; font: 700 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; border: var(--bw) solid #0E0C0A; border-radius: 2px; transform: rotate(-1deg); }
.pf-bio { margin: 12px 0 0; font-family: var(--pf-font, var(--f-body)); font-size: 16px; line-height: 1.45; max-width: 60ch; color: var(--pf-ink); opacity: .92; overflow-wrap: anywhere; }
.pf-meta { margin-top: 12px; font: 500 12px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--pf-mute, #BDB19C); }
.pf-edit { align-self: flex-start; margin-top: 56px; }
.pf-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pf-accent); display: block; }
@media (max-width: 640px) { .pf-banner { height: 92px; } .pf-main { padding: 0 16px 20px; gap: 14px; margin-top: -38px; } .pf-av .avatar { --s: 84px !important; font-size: 38px; } .pf-id { padding-top: 6px; flex-basis: 100%; } .pf-edit { margin-top: 0; } }

/* ---------- the editor ---------- */
.ed { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.ed-prev .pf { box-shadow: 4px 4px 0 var(--shadow-c); } .ed-prev .pf-banner { height: 84px; } .ed-prev .pf-main { padding: 0 16px 18px; margin-top: -34px; } .ed-prev .pf-av .avatar { --s: 76px !important; font-size: 34px; } .ed-prev .pf-id { flex-basis: 100%; padding-top: 6px; } .ed-prev .pf-name { font-size: 30px; }
.ed-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ed-ctl { display: grid; gap: 16px; min-width: 0; } .ed-sec h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.02em; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 8px; border: var(--bw) solid var(--line); border-radius: var(--r-1); background: var(--bg); color: var(--text); cursor: pointer; text-align: center; min-width: 0; font: inherit; }
.pick:hover:not(:disabled) { border-color: var(--text-2); }
.pick.on { border-color: var(--lime); box-shadow: 3px 3px 0 var(--lime-shadow); }
.pick.na { opacity: .62; } .pick:disabled { cursor: not-allowed; }
.pick-art { height: 46px; display: grid; place-items: center; max-width: 100%; overflow: hidden; } .pick-art .pa-banner { width: 66px; height: 40px; } .pick-art .pa-accent i { width: 30px; height: 30px; } .pick-art .pa-accent em { display: none; } .pick-art .pa-font { font-size: 32px; } .pick-art .pa-title { font-size: 9px; padding: 3px 5px; } .pick-art .sticker { width: 40px; height: 40px; }
.pick-name { font-size: 12px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; } .pick-note { font: 600 9.5px var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); } .pick-note.buy { color: var(--verm); }
.bg-chip { width: 36px; height: 36px; border-radius: 50%; border: var(--bw) solid #0E0C0A; display: block; }
.upl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ed-sec textarea { resize: vertical; min-height: 70px; }

/* the editor has its own way back; when the site's "Back to ..." link is already showing above it, one is enough */
.page > .back-to ~ .section-head #ed-back { display: none; }

/* the pinned one-line preview: only on narrow screens, where the full preview is far above the options */
.ed-mini { display: none; }
@media (max-width: 1000px) {
  .ed-mini { display: block; position: sticky; top: var(--stuck-h); z-index: 4; margin: 0 -2px; padding: 2px; background: var(--bg); }
  .pf-mini { display: flex; align-items: center; gap: 12px; padding: 8px 12px 11px; box-shadow: 3px 3px 0 var(--shadow-c); }
  .pf-mini .pf-av .avatar { --s: 46px !important; border-width: 2px; border-radius: 10px; font-size: 20px; }
  .pm-id { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .pm-id .pf-name { font-size: 20px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pm-id .pf-title { margin: 0; font-size: 10px; padding: 2px 7px; }
  .pf-mini .btn { flex: none; }
}
