/* Artists' public pages (/a/ and /a/<handle>). Builds on site.css. */
.ap-loading { min-height: 50vh; place-items: center; }
.ap-spin { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: ap-spin 1s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }

.ap-hero { gap: 1.6rem; }
.ap-who { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.ap-who h1 { max-width: 20ch; overflow-wrap: anywhere; }
.ap-avatar { flex: none; width: clamp(84px, 12vw, 120px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--crystal); font: 400 2.4rem var(--f-display); color: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -20px rgba(217, 72, 138, .8); }
.ap-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-avatar.sm { width: 44px; font-size: 1.1rem; box-shadow: none; }
.ap-sub { color: var(--muted); margin-top: .35rem; overflow-wrap: anywhere; }
.ap-meta { margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.ap-meta .dot { color: var(--muted); }
.ap-verified { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: rgba(215, 179, 106, .16); color: var(--gold); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.ap-stars { color: var(--gold); letter-spacing: .08em; }
.ap-stars span { color: rgba(246, 238, 243, .2); }
.ap-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.ap-sec { padding-bottom: clamp(44px, 6vw, 80px); }
.ap-h { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 1.1rem; }
.ap-h .muted { font: 400 1rem var(--f-body); letter-spacing: 0; }
.ap-bio { max-width: 62ch; font-size: 1.1rem; line-height: 1.6; white-space: pre-line; }
.ap-tags, .ap-card-tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1.1rem 0 0; }
.ap-tags li, .ap-card-tags span { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; color: var(--text); }

.ap-gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.ap-gallery.n1 { grid-template-columns: minmax(0, 560px); }
.ap-gallery.n2 { grid-template-columns: repeat(2, 1fr); }
.ap-gallery.n3 { grid-template-columns: repeat(3, 1fr); }
.ap-gallery a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.ap-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ap-gallery a:hover img { transform: scale(1.03); }

.ap-services, .ap-classes, .ap-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ap-services li, .ap-classes li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem 1.4rem; padding: 1.2rem 1.4rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.ap-classes li { grid-template-columns: auto 1fr auto auto; }
.ap-services h3, .ap-classes h3 { font-size: 1.3rem; margin: .15rem 0 .3rem; }
.ap-kind { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.ap-price { display: grid; justify-items: end; gap: .15rem; white-space: nowrap; }
.ap-price b { font: 400 1.5rem var(--f-display); }
.ap-date { display: grid; justify-items: center; width: 56px; padding: .4rem 0; border-radius: 14px; background: var(--crystal); color: #fff; line-height: 1.1; }
.ap-date b { font: 400 1.5rem var(--f-display); }
.ap-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.ap-how { margin-top: 1rem; max-width: 70ch; }

.ap-reviews { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 1rem; }
.ap-reviews li { padding: 1.2rem 1.3rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); display: grid; gap: .55rem; align-content: start; }
.ap-reviews p { margin: 0; }

.ap-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; border-top: 1px solid var(--line); padding-top: clamp(32px, 5vw, 56px); }
.ap-end .ap-h { margin-bottom: .4rem; }
.ap-end p { max-width: 56ch; }

.ap-filters { display: grid; gap: .8rem; padding-bottom: 1.6rem; }
.ap-search { width: 100%; max-width: 420px; min-height: 48px; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .04); color: var(--text); font: 400 1rem var(--f-body); }
.ap-search:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ap-card { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); color: var(--text); text-decoration: none; transition: transform .4s var(--ease), border-color .3s; }
.ap-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); }
.ap-cover { display: block; aspect-ratio: 4 / 3; background: radial-gradient(60% 80% at 70% 30%, rgba(163, 91, 239, .35), transparent 70%), radial-gradient(50% 70% at 20% 70%, rgba(217, 72, 138, .3), transparent 70%), var(--bg-2); }
.ap-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-card-body { display: grid; gap: .8rem; padding: 1rem 1.1rem 1.2rem; align-content: start; }
.ap-card-top { display: flex; align-items: center; gap: .7rem; line-height: 1.3; }
.ap-card-tags { margin: 0; }
.ap-card-tags span { font-size: .8rem; padding: .25rem .65rem; }
.ap-card-foot { display: flex; justify-content: space-between; gap: .5rem; font-size: .92rem; }
.ap-empty { grid-column: 1 / -1; padding: clamp(28px, 5vw, 56px); border-radius: 22px; border: 1px dashed var(--line); display: grid; gap: .8rem; justify-items: start; }

.ap-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; padding: .7rem 1.2rem; border-radius: 999px; background: #fff; color: #15101A; font-weight: 500; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 50; }
.ap-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .ap-who { align-items: flex-start; }
  .ap-services li { grid-template-columns: 1fr auto; }
  .ap-services li .btn { grid-column: 1 / -1; }
  .ap-classes li { grid-template-columns: auto 1fr; }
  .ap-classes li .ap-price { justify-items: start; grid-column: 2; }
  .ap-classes li .btn { grid-column: 1 / -1; }
  .ap-gallery, .ap-gallery.n3, .ap-gallery.n4 { grid-template-columns: repeat(2, 1fr); }
  .ap-gallery.n1 { grid-template-columns: 1fr; }
}

/* her work, in albums */
.ap-tabs { margin-bottom: 1rem; }
.ap-tabs .chip .muted { margin-left: .3rem; font-size: .82em; }
.ap-tabs .chip[aria-pressed="true"] .muted { color: rgba(255, 255, 255, .8); }
.ap-work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ap-tile { position: relative; display: block; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.ap-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ap-tile:hover img { transform: scale(1.03); }
.ap-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-badge { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .2rem .55rem; border-radius: 999px; background: rgba(7, 6, 13, .72); color: #fff; font-size: .72rem; letter-spacing: .04em; backdrop-filter: blur(6px); }
.ap-note { margin-top: .9rem; }
.ap-lightbox { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); color: var(--text); overflow: auto; }
.ap-lightbox::backdrop { background: rgba(7, 6, 13, .82); backdrop-filter: blur(4px); }
.ap-lightbox figure { margin: 0; }
.ap-lb-img { position: relative; display: block; }
.ap-lb-img img { width: 100%; max-height: 72vh; object-fit: contain; display: block; background: #000; }
.ap-lightbox figcaption { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .35rem; }
.ap-lightbox figcaption p { margin: 0; }
.ap-lb-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(7, 6, 13, .72); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (max-width: 760px) { .ap-work { grid-template-columns: repeat(3, 1fr); gap: 4px; } .ap-tile { border-radius: 8px; } .ap-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .ap-tabs .chip { flex: none; } }
