:root {
  color-scheme: dark;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  background: #110e18;
  color: #f7f2ff;
  --surface: #191523;
  --line: #30283e;
  --muted: #bcb0cb;
  --accent: #c7a3ff;
  --sidebar: 220px;
  --wrap: 1320px;
  --page-padding: clamp(.8rem, 3vw, 2.75rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #d7bdff; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .7rem; background: #21172e; z-index: 5; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; display: flex; flex-direction: column; gap: 2.3rem; padding: 1.55rem 1rem 1.2rem; background: #14101c; border-right: 1px solid #2a2336; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.site-navigation { display: flex; flex: 1; flex-direction: column; gap: 1rem; min-width: 0; }
.menu-toggle.button { display: none; }
.brand { display: flex; align-items: center; gap: .6rem; padding-left: .35rem; font-size: 1.03rem; font-weight: 720; white-space: nowrap; letter-spacing: -.035em; }
.brand img { object-fit: contain; flex: none; }
.brand strong { color: var(--accent); }
.sidebar nav, .sidebar-bottom { display: grid; gap: .38rem; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: .7rem; }
.sidebar nav a, .sidebar-bottom a { display: flex; align-items: center; gap: .68rem; padding: .72rem .68rem; border-radius: .65rem; font-size: .9rem; color: var(--muted); }
.sidebar nav a:hover, .sidebar-bottom a:hover { background: #21192d; color: #f7f2ff; }
.sidebar nav a[aria-current="page"] { background: #302044; color: #efdeff; }
.nav-icon { flex: 0 0 1.3rem; text-align: center; font-size: 1.12rem; line-height: 1; color: var(--accent); }
.topbar { border-bottom: 1px solid #2a2336; }
.topbar-inner { max-width: var(--wrap); padding-block: .75rem; min-height: 4.15rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.topbar p { min-width: 0; margin: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.topbar .button { flex: none; }
.content { max-width: var(--wrap); padding-top: 1.8rem; margin: 0 auto; }
.topbar-inner, .content { padding-inline: max(var(--page-padding), env(safe-area-inset-left, 0px)) max(var(--page-padding), env(safe-area-inset-right, 0px)); }
.content:focus { outline: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: clamp(340px, 31vw, 455px); align-items: center; border-radius: 1rem; border: 1px solid #453456; background: #1a1028; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 84%; height: 100%; object-fit: cover; object-position: 65% 50%; z-index: -2; }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, #1a0f29 4%, #1a0f29f5 21%, #1a0f29d9 36%, #1a0f2950 59%, transparent 80%), linear-gradient(0deg, #140d20cd, transparent 41%); }
.hero-copy { padding: clamp(1.6rem, 4vw, 3.6rem); max-width: 45rem; min-width: 0; }
.eyebrow { margin: 0 0 1rem; color: #d0b2fa; font-size: .83rem; font-weight: 750; letter-spacing: .145em; text-transform: uppercase; }
.hero h1, .page-heading h1 { font-size: clamp(2.4rem, 1.7rem + 3.8vw, 5.35rem); font-weight: 770; line-height: .99; letter-spacing: -.065em; margin: 0; }
.hero h1 em { color: #cfacff; font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 24rem; margin: 1.15rem 0 1.55rem; color: #e8ddf3; line-height: 1.6; }
.hero-caption { display: grid; justify-items: end; position: absolute; right: 1.35rem; bottom: 1.15rem; color: #fff6ff; font-size: .88rem; font-weight: 700; }
.hero-caption small { font-weight: 500; color: #e4d5f3; font-size: .78rem; }

.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.button { display: inline-flex; min-height: 2.75rem; max-width: 100%; justify-content: center; align-items: center; padding: .58rem .98rem; border: 1px solid transparent; border-radius: .62rem; color: #f6effc; font-size: .9rem; font-weight: 680; text-align: center; }
.button-primary { background: #c6a2fc; color: #20112e; }
.button-primary:hover { background: #d8bcff; }
.button-quiet { background: #221a2e; border-color: #3c304a; }
.button-quiet:hover { background: #30213f; }
.button-glass { background: #251735b3; border-color: #ac8ac875; }
.button-glass:hover { background: #3a2450; }
.button:disabled, .button[aria-disabled="true"] { opacity: .57; }

.catalog-section { margin-top: .35rem; }
.home-catalog { margin-top: 2.15rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading :is(h1, h2), .callout h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p, .page-heading > p:last-child, .callout p { color: var(--muted); margin: .5rem 0 0; line-height: 1.55; }
.search { display: flex; align-items: center; gap: .5rem; padding: 0 .76rem; background: #191423; border: 1px solid var(--line); border-radius: .6rem; color: var(--muted); min-width: 0; }
.search span { font-size: 1.35rem; line-height: 1; }
.search:focus-within { border-color: #a480d5; }
.search input { background: transparent; border: 0; outline: 0; min-height: 2.75rem; min-width: 0; color: #fff; width: 12rem; }
.search input::placeholder, .email-form input::placeholder { color: #b3a6c5; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.15rem 0; }
.filters button { padding: .47rem .78rem; border: 1px solid var(--line); background: #171320; border-radius: 2rem; color: var(--muted); font-size: .88rem; }
.filters button:hover { color: #fff; border-color: #72568e; }
.filters button[aria-pressed="true"] { border-color: #705095; background: #34234b; color: #f0ddff; }
.release-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.release-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .82rem; text-align: left; width: 100%; padding: 0; background: var(--surface); color: inherit; height: 100%; }
.release-card:hover { border-color: #9374ad; background: #21182d; }
.card-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #282039; }
.card-art.node-mark-art, .release-cover.node-mark-art {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 52%, var(--node-art-glow, #5c2c86), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 22px, #d7b5ff0c 23px 24px), #150e20;
}
.release-cover.node-mark-art { aspect-ratio: 16 / 9; }
.node-mark-art img { display: block; width: min(32%, 7rem); height: auto; }
[data-kind="Audio"] { --node-art-glow: #1c5279; }
[data-kind="Utilities"] { --node-art-glow: #1e5c50; }
[data-kind="Prompt tools"] { --node-art-glow: #6e295d; }
.card-copy { display: grid; gap: .42rem; width: 100%; padding: .86rem .95rem 1rem; overflow-wrap: anywhere; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: .35rem; color: var(--muted); font-size: .82rem; }
.badge { padding: .25rem .48rem; border-radius: .4rem; background: #38264c; color: #eedaff; font-size: .8rem; line-height: 1; font-weight: 700; white-space: nowrap; }
.badge.free { background: #173429; color: #b0ecd2; }
.card-title { font-size: 1.12rem; font-weight: 720; letter-spacing: -.025em; }
.card-summary { font-size: .91rem; color: var(--muted); line-height: 1.45; }
.card-shop-price { color: #e6ccff; font-size: .96rem; font-weight: 700; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 1rem 0; }

.page-heading { padding: 1.4rem 0 2.1rem; max-width: 48rem; }
.page-heading h1 { font-size: clamp(2.4rem, 1.65rem + 4vw, 5rem); overflow-wrap: anywhere; }
.page-heading > p:last-of-type { margin-top: 1rem; font-size: 1.07rem; }
.page-heading > .button { margin-top: 1rem; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.plan { display: flex; flex-direction: column; align-items: start; padding: 1.15rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.plan:nth-child(3) { background: #24182f; border-color: #664889; }
.plan h2 { margin: .85rem 0 .3rem; font-size: 1.3rem; letter-spacing: -.04em; }
.plan p { margin: 0; color: var(--muted); font-size: .9rem; }
.plan ul { color: #ded4ea; display: grid; gap: .65rem; padding-left: 1.1rem; font-size: .95rem; line-height: 1.4; margin: 1.3rem 0 1.6rem; }
.plan .button { margin-top: auto; width: 100%; }
.plan .plan-price { margin-top: .75rem; }
.plan-price strong { color: #f7f2ff; font-size: 1.7rem; }
.plan-price span, .billing-preview { color: var(--muted); }
.billing-options { display: grid; gap: .45rem; margin-top: .75rem; width: 100%; }
.billing-options small, .billing-memberships { color: var(--muted); line-height: 1.45; }
.billing-options .actions { align-items: stretch; }
.billing-options .button { width: 100%; }
.billing-options p { margin: .25rem 0; overflow-wrap: anywhere; }
.stars-terms { display: grid; gap: .4rem; font-size: .88rem; }
.stars-terms label { display: flex; align-items: start; gap: .45rem; }
.stars-terms input { flex: none; margin-top: .22rem; }
.stars-terms a { text-decoration: underline; }
.membership-page .plan { scroll-margin-top: 1rem; }
.billing-invoice { display: grid; gap: .55rem; padding: .7rem; border: 1px solid var(--line); border-radius: .7rem; overflow-wrap: anywhere; }
.billing-invoice label { display: grid; gap: .35rem; color: var(--muted); font-size: .87rem; min-width: 0; }
.billing-invoice input { width: 100%; border: 1px solid var(--line); border-radius: .42rem; background: #15101f; color: #f7f2ff; padding: .55rem; }
.billing-status { margin-top: 1rem; }
.billing-status dl { display: grid; gap: .6rem; }
.billing-status dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; }
.billing-status dd { margin: 0; color: var(--muted); }
.legal-page { max-width: 50rem; padding-block: 2rem; }
.legal-page > a { color: var(--accent); }
.legal-page h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-page p { color: var(--muted); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.legal-page p a { color: var(--accent); text-decoration: underline; }
.callout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.35rem; background: #1b1426; border: 1px solid var(--line); border-radius: .87rem; }
.membership-page .callout { margin-top: 1.3rem; }
.callout h2 { font-size: 1.24rem; }
.feedback { color: var(--muted); line-height: 1.5; }
.feedback:empty { display: none; }
.library-releases { margin-top: 1.25rem; }
.page-feedback { border: 1px solid var(--line); background: var(--surface); padding: .8rem 1rem; border-radius: .6rem; margin: 0 0 1rem; }
footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: .75rem 0 max(.75rem, env(safe-area-inset-bottom, 0px)); font-size: .87rem; color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; }
.site-footer a:hover { color: var(--accent); }

dialog { --dialog-x: max(.75rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --dialog-y: max(.65rem, env(safe-area-inset-top, 0px), env(safe-area-inset-bottom, 0px)); background: #191321; color: inherit; border: 1px solid #544267; padding: 0; border-radius: .9rem; max-width: min(40rem, calc(100% - 2 * var(--dialog-x))); width: 100%; max-height: calc(100dvh - 2 * var(--dialog-y)); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #09060dd0; }
dialog > form[method=dialog] { position: sticky; top: .55rem; z-index: 1; }
dialog .close { position: absolute; top: 0; right: .6rem; width: 2.75rem; height: 2.75rem; font-size: 1.4rem; line-height: 1; color: #fff; border: 1px solid #765d8b; border-radius: 50%; background: #1b1226ed; }
.close:hover { background: #4c3462; }
.dialog-content { padding: 1.55rem; }
.dialog-content h2 { margin: .65rem 0; font-size: 1.8rem; letter-spacing: -.043em; }
.dialog-content p { color: var(--muted); line-height: 1.55; }
.dialog-content .actions { margin-top: 1.1rem; }
.dialog-mark { display: block; object-fit: contain; }
#signin-dialog { max-width: min(29rem, calc(100% - 2 * var(--dialog-x))); }
.providers, .email-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .62rem; }
.email-form { margin-top: 1.15rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.email-form input { min-height: 2.75rem; min-width: 0; width: 100%; border-radius: .6rem; background: #14101c; border: 1px solid #433354; padding: .5rem .7rem; }
.email-form label { color: var(--muted); font-size: .91rem; }

.release-breadcrumb { display: flex; gap: .6rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin: 0 0 1.15rem; overflow-wrap: anywhere; }
.release-breadcrumb > span:last-child { min-width: 0; }
.release-breadcrumb a { color: var(--accent); text-underline-offset: .25em; }
.release-breadcrumb a:hover { text-decoration: underline; }
.release-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; overflow: hidden; background: #241731; border: 1px solid #463454; border-radius: 1rem; }
.release-hero-copy { padding: clamp(1.35rem, 3vw, 2.65rem); }
.release-kinds { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; color: #dfd0f0; font-size: .88rem; }
.release-hero h1 { font-size: clamp(1.95rem, 1.3rem + 3vw, 4.35rem); line-height: 1.05; letter-spacing: -.06em; margin: .88rem 0; overflow-wrap: anywhere; }
.release-hero p { color: #dfd1ef; margin: 0 0 1.35rem; line-height: 1.6; max-width: 33rem; overflow-wrap: anywhere; }
.release-cover { display: block; width: 100%; height: 100%; min-height: 15rem; object-fit: contain; background: #191222; }
.release-layout { display: grid; grid-template: "story access" / minmax(0, 1fr) minmax(230px, 295px); align-items: start; gap: clamp(1.3rem, 4vw, 4rem); margin-top: 2.25rem; }
.release-story { grid-area: story; min-width: 0; color: #e1d7ec; font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.release-story > p:first-child { margin-top: 0; font-size: 1.12rem; }
.release-story h2 { color: #f7f2ff; line-height: 1.16; font-size: clamp(1.48rem, 2.8vw, 2.15rem); letter-spacing: -.04em; margin: 2rem 0 .65rem; }
.release-story :is(p, ul) { margin: .65rem 0 1.25rem; }
.release-story ul { padding-left: 1.2rem; }
.release-figure { margin: 1.3rem 0 2.1rem; min-width: 0; scroll-margin-top: 1.1rem; }
.release-figure h2 { margin-top: 0; }
.release-figure :is(video, iframe, .image-preview) { display: block; width: 100%; border: 1px solid #463454; background: #100c17; border-radius: .8rem; overflow: hidden; }
.release-figure :is(video, iframe) { aspect-ratio: 16 / 9; }
.release-youtube iframe { min-height: 200px; }
.release-youtube figcaption a { text-decoration: underline; }
.image-preview { padding: 0; cursor: zoom-in; }
.image-preview:hover { border-color: #9f7ac6; }
.image-preview img { display: block; width: 100%; height: auto; }
.release-figure figcaption, .image-dialog figcaption { font-size: .89rem; line-height: 1.5; margin-top: .55rem; color: var(--muted); }
.release-access { grid-area: access; min-width: 0; position: sticky; top: 1.2rem; padding: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: .88rem; overflow-wrap: anywhere; }
.release-access h2 { margin: 0 0 .7rem; font-size: 1.25rem; letter-spacing: -.03em; scroll-margin-top: 1rem; }
.release-access dl { margin: 0 0 1rem; }
.release-access dl div { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .61rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.release-access dt, .access-note { color: var(--muted); }
.release-access dd { margin: 0; text-align: right; }
.release-access .button { width: 100%; }
.access-note { margin: .5rem 0 0; font-size: .92rem; line-height: 1.55; }
.shop-purchase { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .95rem; }
.shop-purchase h3 { margin: 0; color: var(--muted); font-size: .88rem; }
.shop-price { margin: .35rem 0 .8rem; font-size: 1.35rem; font-weight: 700; }
.shop-claim { margin-top: .85rem; font-size: .91rem; color: var(--muted); }
.shop-claim summary { min-height: 2.75rem; padding-block: .61rem; color: var(--accent); cursor: pointer; }
.shop-claim p { line-height: 1.5; }
.shop-claim form { display: grid; gap: .62rem; }
.shop-claim input { width: 100%; min-height: 2.75rem; margin-top: .3rem; border: 1px solid #4a3959; border-radius: .55rem; background: #15101d; padding: .5rem .65rem; font-size: 1rem; }
.related-releases { margin-top: 2rem; }
.related-releases .section-heading { margin-bottom: .9rem; }
.image-dialog { max-width: min(72rem, calc(100% - 2 * var(--dialog-x))); width: fit-content; }
.image-dialog figure { margin: .65rem; }
.image-dialog img { display: block; width: auto; max-width: 100%; max-height: 76dvh; border-radius: .55rem; object-fit: contain; }
.image-dialog figcaption { padding: 0 .3rem .35rem; }
.hero-caption:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1190px) {
  :root { --sidebar: 184px; }
  .sidebar { padding-inline: .65rem; }
  .brand { font-size: .95rem; }
  .brand img { width: 28px; height: 28px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: .65rem 1rem; flex-wrap: wrap; padding-block: max(.65rem, env(safe-area-inset-top, 0px)) .55rem; padding-inline: max(var(--page-padding), env(safe-area-inset-left, 0px)) max(var(--page-padding), env(safe-area-inset-right, 0px)); overflow: visible; }
  .brand { min-height: 2.75rem; padding-left: 0; font-size: 1.04rem; }
  .sidebar nav { display: flex; justify-content: end; gap: .35rem; flex-wrap: wrap; }
  .sidebar nav a { min-height: 2.75rem; padding: .5rem .72rem; }
  .sidebar .nav-icon, .sidebar-bottom { display: none; }
  .release-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
}
@media (max-width: 840px) {
  .release-layout { grid-template: "access" "story" / minmax(0, 1fr); gap: 1.35rem; margin-top: 1.3rem; }
  .release-access { position: static; width: 100%; }
  .release-story { font-size: 1rem; }
}
@media (max-width: 720px) {
  .sidebar { display: block; }
  .sidebar nav { justify-content: flex-start; }
  .topbar-inner { min-height: 3.55rem; padding-block: .5rem; }
  .content { padding-top: 1rem; }
  .hero { min-height: clamp(19rem, 70vw, 23rem); align-items: end; }
  .hero-art { width: 100%; object-position: 62% 24%; }
  .hero::before { background: linear-gradient(0deg, #190e26 3%, #190e26e8 42%, #190e2655 75%, #190e260b), linear-gradient(90deg, #190e2680, transparent 85%); }
  .hero-copy { padding: clamp(3.5rem, 16vw, 5.5rem) clamp(.9rem, 3.5vw, 1.4rem) 1.2rem; }
  .hero-caption { display: none; }
  .hero-copy > p:not(.eyebrow) { margin-block: .8rem 1.05rem; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search input { width: 100%; }
  .card-copy { padding: .75rem; }
  .release-grid { gap: .75rem; }
  .release-hero { grid-template-columns: 1fr; }
  .release-cover { min-height: 0; height: auto; max-height: 19rem; object-fit: contain; }
  .release-hero-copy { padding: clamp(1rem, 4vw, 1.55rem); }
  .filters button { min-height: 2.75rem; }
  :is(.search, .email-form) input { font-size: 1rem; }
}
@media (max-width: 560px) {
  .menu-toggle.button { display: inline-flex; flex: none; }
  .site-navigation { gap: .3rem; margin-top: .5rem; }
  .site-navigation[data-expanded=false] { display: none; }
  .site-navigation :is(nav, .sidebar-bottom) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .32rem; }
  .sidebar .sidebar-bottom { padding-top: .42rem; margin-top: .15rem; }
  .sidebar-bottom a { min-height: 2.75rem; overflow-wrap: anywhere; }
  .plan-grid { grid-template-columns: 1fr; }
  .callout { padding: .95rem; }
  .dialog-content { padding: 1rem; }
  .dialog-content h2 { font-size: 1.55rem; }
}
@media (max-width: 360px) {
  .brand { font-size: .96rem; gap: .45rem; }
  .brand img { width: 25px; height: 25px; }
  .hero-copy .actions .button { flex: 1 1 100%; }
  .release-access dl div { flex-wrap: wrap; }
  .release-access dd { text-align: start; }
}
@media (max-height: 470px) and (orientation: landscape) and (max-width: 1050px) {
  .hero { min-height: 16rem; }
  .hero-copy { padding-block: 1.3rem; }
  .hero-caption { display: none; }
}
