:root { --ink: #f5f4f1; --muted: #a5a4ac; --line: rgba(255,255,255,.16); --surface: #0c0c0e; --canvas: #050506; --theme: #7657ff; --ease: cubic-bezier(.2,.75,.2,1); }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(650px 400px at 88% 5%, color-mix(in srgb, var(--theme) 17%, transparent), transparent 75%), var(--canvas); color: var(--ink); font-family: Manrope, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { width: min(1200px, calc(100% - 48px)); height: 82px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { font: 500 .89rem/1 "DM Mono", monospace; letter-spacing: .08em; white-space: nowrap; }
.wordmark span { color: var(--theme); }
.topnav { display: flex; align-items: center; gap: 22px; font-size: .88rem; font-weight: 700; }
.topnav a:not(.nav-join), .text-button { opacity: .72; transition: opacity .2s ease; }
.topnav a:hover, .text-button:hover { opacity: 1; }
.topnav form { margin: 0; }
.text-button { padding: 0; border: 0; color: inherit; background: none; font-size: inherit; font-weight: inherit; }
.nav-join { border-bottom: 1px solid var(--theme); }
main { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0 0 10px; color: var(--theme); font: 500 .69rem/1.2 "DM Mono", monospace; letter-spacing: .1em; }
h1,h2,p { margin-top: 0; }
h1 { margin-bottom: .3em; font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.065em; }
h2 { margin-bottom: .4em; font-size: clamp(1.55rem, 3.5vw, 2.7rem); line-height: 1; letter-spacing: -.055em; }
.flash { position: fixed; z-index: 5; right: 24px; top: 96px; width: min(390px, calc(100% - 48px)); padding: 15px 17px; background: #141417; border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(0,0,0,.28); font-weight: 700; animation: enter .45s var(--ease); }
.flash.success { border-left: 3px solid #90fbac; }
.flash.error { border-left: 3px solid #ff7a86; }
@keyframes enter { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: translateY(0); } }

/* Storefront */
.storefront { padding-top: clamp(62px, 10vw, 128px); }
.artist-header { display: grid; grid-template-columns: 230px minmax(260px, 1fr); gap: 0; align-items: stretch; max-width: 770px; margin-bottom: clamp(64px, 10vw, 136px); animation: rise .75s var(--ease) both; }
.artist-image { position: relative; width: 230px; aspect-ratio: 1; overflow: hidden; background: var(--theme); }
.artist-image::after { content: ""; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--theme) 58%, white); mix-blend-mode: screen; pointer-events: none; }
.artist-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.08); }
.artist-image span { display: grid; height: 100%; place-items: center; color: #050506; font-size: 4rem; font-weight: 800; }
.artist-info { display: flex; min-width: 0; min-height: 230px; padding: 30px 34px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-left: 0; background: rgba(13,13,15,.78); }
.artist-info h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.6rem); overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: 9px; }
.socials a { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, color .2s, transform .2s var(--ease); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.socials svg .solid { fill: currentColor; stroke: none; }
.socials a:hover { color: var(--ink); border-color: var(--theme); transform: translateY(-2px); }
.latest-release { position: relative; display: grid; grid-template-columns: minmax(250px, 1fr) minmax(280px, .82fr); min-height: 490px; background: #0d0d0f; border: 1px solid var(--line); overflow: hidden; animation: rise .75s .12s var(--ease) both; }
.latest-release::before { content: ""; position: absolute; z-index: 0; top: -260px; right: -180px; width: 600px; height: 600px; background: radial-gradient(circle, color-mix(in srgb, var(--theme) 41%, transparent), transparent 65%); filter: blur(4px); }
.cover-art { position: relative; min-height: 100%; overflow: hidden; background: #0c0c0e; }
.cover-art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.13); pointer-events: none; }
.cover-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.release-art { position: relative; isolation: isolate; display: flex; min-height: 100%; padding: 30px; align-items: flex-end; overflow: hidden; background: var(--theme); color: #090909; }
.release-art::before, .release-art::after { content: ""; position: absolute; z-index: -1; background: #0a0a0b; transform: rotate(31deg); }
.release-art::before { width: 66%; height: 180%; right: -16%; top: -38%; }
.release-art::after { width: 30%; height: 150%; left: 13%; bottom: -46%; opacity: .48; }
.release-art span { position: absolute; top: 23px; left: 25px; font: 500 .75rem "DM Mono", monospace; letter-spacing: .1em; }
.release-art i { font-style: normal; font-size: clamp(5rem, 13vw, 10.5rem); line-height: .7; font-weight: 800; letter-spacing: -.12em; mix-blend-mode: difference; color: #fff; }
.latest-copy { position: relative; display: flex; z-index: 1; flex-direction: column; justify-content: flex-end; padding: clamp(30px, 5vw, 58px); }
.latest-copy h2 { max-width: 500px; font-size: clamp(3rem, 6vw, 5.8rem); }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.buy-row strong, .price { font: 500 .84rem "DM Mono", monospace; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 24px; padding: 13px 17px; border: 1px solid var(--theme); background: var(--theme); color: #080809; font-size: .84rem; font-weight: 800; line-height: 1; transition: transform .25s var(--ease), background .25s, color .25s; }
.button:hover { transform: translateY(-3px); background: transparent; color: var(--ink); }
.button span { font-size: 1.15rem; line-height: 0; }
.button.large { min-height: 56px; padding: 16px 23px; font-size: .92rem; }
.button.quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.button.quiet:hover { border-color: var(--theme); }
.previous-releases { margin-top: clamp(74px, 12vw, 150px); animation: rise .7s .2s var(--ease) both; }
.upcoming-release { display: grid; grid-template-columns: minmax(210px, .66fr) minmax(280px, 1fr); min-height: 320px; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--theme) 48%, var(--line)); background: rgba(13,13,15,.78); overflow: hidden; }
.upcoming-art { min-height: 320px; }
.upcoming-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(29px, 4.5vw, 52px); }
.upcoming-copy h2 { margin-bottom: 23px; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.countdown { display: flex; flex-wrap: wrap; gap: 8px; }
.countdown span { min-width: 56px; padding: 8px 9px; border: 1px solid var(--line); color: var(--ink); font: 500 .79rem/1 "DM Mono", monospace; }
.upcoming-copy .text-link { width: fit-content; margin-top: 28px; color: var(--theme); font-size: .83rem; font-weight: 800; }
.text-link span { margin-left: 8px; }
.audio-preview { display: block; width: min(100%, 410px); height: 38px; margin: 5px 0 27px; accent-color: var(--theme); filter: grayscale(1) contrast(1.15); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 23px; }
.section-heading h2 { margin: 0; }
.release-list { border-top: 1px solid var(--line); }
.release-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 22px; align-items: center; gap: 22px; padding: 16px 8px 16px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease), background .3s; }
.release-row:hover { padding-left: 13px; background: color-mix(in srgb, var(--theme) 8%, transparent); }
.release-mark { display: grid; place-items: center; width: 53px; aspect-ratio: 1; background: var(--theme); color: #080809; font-weight: 800; font-size: 1.25rem; }
.release-name { display: grid; gap: 4px; }
.release-name strong { font-size: 1.05rem; }
.release-row > span:nth-last-child(2) { color: var(--muted); font: .7rem "DM Mono", monospace; }
.row-arrow { opacity: 0; transform: translateX(-6px); transition: .25s var(--ease); color: var(--theme); }
.release-row:hover .row-arrow { opacity: 1; transform: translateX(0); }
.empty-catalog, .empty-state { padding: 58px 0; border-top: 1px solid var(--line); }

/* Release checkout */
.release-page { padding-top: 70px; }
.back-link { display: inline-block; margin-bottom: 38px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.back-link:hover { color: var(--theme); }
.release-detail { display: grid; grid-template-columns: minmax(260px, .88fr) minmax(300px, 1fr); gap: clamp(40px, 8vw, 126px); align-items: center; max-width: 1000px; }
.large-art { aspect-ratio: 1; min-height: auto; }
.release-detail h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
.price { margin: 34px 0 18px; font-size: 1rem; }
.detail-countdown { margin: 30px 0 14px; }
.release-time { color: var(--muted); font: .75rem "DM Mono", monospace; }
.checkout-form { display: grid; gap: 14px; max-width: 470px; }
.checkout-form label, .profile-form label, .stacked-form label, .invite-form label { display: grid; gap: 7px; color: var(--muted); font-size: .875rem; font-weight: 700; }
.checkout-form input, .profile-form input, .profile-form textarea, .profile-form select, .stacked-form input, .invite-form input { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #0e0e10; color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.profile-form input[type="file"] { padding: 9px; font-size: .84rem; }
.profile-form input[type="color"] { min-width: 100%; padding: 4px; cursor: pointer; }
textarea { resize: vertical; padding-top: 12px !important; }
input:focus, textarea:focus, select:focus { border-color: var(--theme); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme) 22%, transparent); }
.fine-print { margin: 14px 0 0; color: var(--muted); font: .7rem/1.55 "DM Mono", monospace; }

/* Auth + status */
.minimal-main { min-height: calc(100vh - 120px); display: grid; place-items: center; }
.auth-card, .receipt-wrap { width: min(510px, 100%); margin: 64px auto; padding: clamp(29px, 6vw, 54px); background: #0d0d0f; border: 1px solid var(--line); animation: rise .6s var(--ease) both; }
.auth-card .wordmark { display: block; margin-bottom: 70px; }
.auth-card h1, .receipt-wrap h1 { font-size: clamp(2.5rem, 8vw, 4.3rem); }
.stacked-form { display: grid; gap: 18px; margin-top: 30px; }
.stacked-form label span, .invite-form label span { font-weight: 400; opacity: .7; }
.stacked-form .button { width: 100%; margin-top: 6px; }
.auth-bottom { margin: 30px 0 0; color: var(--muted); font-size: .88rem; }
.auth-bottom a { color: var(--ink); border-bottom: 1px solid var(--theme); }
.receipt-wrap { text-align: center; }
.receipt-wrap > p:not(.eyebrow):not(.fine-print) { color: var(--muted); }
.receipt-wrap .button { margin-top: 21px; }
.signal { width: 13px; height: 13px; margin: 0 auto 27px; border-radius: 100%; }
.signal.pending { background: #f8e26d; animation: pulse 1s ease-in-out infinite alternate; }
.signal.ready, .state-dot { background: #91ffb3; box-shadow: 0 0 18px #91ffb3; }
@keyframes pulse { from { transform: scale(.85); opacity: .52; } to { transform: scale(1.2); opacity: 1; } }

/* Dashboard */
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 78px 0 44px; }
.dashboard-head h1 { margin-bottom: 10px; }
.dashboard-head > div > p:last-child { margin: 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { min-height: 256px; padding: clamp(24px, 4vw, 37px); border: 1px solid var(--line); background: rgba(13,13,15,.85); }
.profile-panel, .release-panel, .admin-panel { grid-column: 1 / -1; }
.panel-title { margin-bottom: 28px; }
.panel-title h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.7rem); }
.profile-form { display: grid; gap: 17px; max-width: 850px; }
.theme-control { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 12px; max-width: 440px; }
.theme-control .button { margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.color-field { padding: 5px !important; cursor: pointer; }
.profile-form .button { width: fit-content; margin-top: 3px; }
.panel-copy { max-width: 410px; color: var(--muted); }
.connected-state { display: grid; gap: 10px; }
.connected-state strong { display: flex; gap: 10px; align-items: center; }
.state-dot { width: 8px; height: 8px; border-radius: 100%; }
.connected-state p { margin: 0; color: var(--muted); }
code { width: fit-content; padding: 7px 9px; background: rgba(255,255,255,.06); color: var(--ink); font: .71rem "DM Mono", monospace; }
.dashboard-catalog { border-top: 1px solid var(--line); }
.dashboard-catalog a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.dashboard-catalog a:hover span { color: var(--theme); }
.dashboard-catalog small { color: var(--muted); font: .68rem "DM Mono", monospace; }
.invite-form { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: end; gap: 15px; }
.invite-list { display: grid; gap: 0; margin-top: 31px; border-top: 1px solid var(--line); }
.invite-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invite-list span { color: var(--muted); font: .7rem/1.5 "DM Mono", monospace; }

@keyframes rise { from { opacity: 0; transform: translateY(19px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .topbar, main { width: min(100% - 32px, 1200px); }
  .topbar { height: 69px; }
  .topnav { gap: 13px; font-size: .77rem; }
  .storefront { padding-top: 51px; }
  .artist-header { grid-template-columns: 116px 1fr; margin-bottom: 66px; }
  .artist-image { width: 116px; }
  .artist-info { min-height: 116px; padding: 18px; }
  .artist-header h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .socials { gap: 6px; }
  .socials a { width: 31px; height: 31px; }
  .socials svg { width: 15px; height: 15px; }
  .latest-release { grid-template-columns: 1fr; min-height: 0; }
  .latest-release .release-art, .latest-release .cover-art { min-height: 320px; }
  .latest-copy { min-height: 330px; }
  .upcoming-release { grid-template-columns: 1fr; }
  .upcoming-art { min-height: 260px; }
  .buy-row { align-items: flex-start; flex-direction: column; }
  .release-row { grid-template-columns: 47px minmax(0,1fr) auto; gap: 13px; }
  .release-mark { width: 46px; }
  .row-arrow { display: none; }
  .release-row > span:nth-last-child(2) { font-size: .62rem; }
  .release-detail { grid-template-columns: 1fr; gap: 35px; }
  .release-page { padding-top: 45px; }
  .large-art { max-width: 500px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; padding: 52px 0 35px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-panel, .release-panel, .admin-panel { grid-column: auto; }
  .two-col, .invite-form, .theme-control { grid-template-columns: 1fr; }
  .theme-control { max-width: none; }
  .theme-control .button { width: 100%; }
  .invite-form .button { width: 100%; }
  .auth-card, .receipt-wrap { margin: 28px auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
