@font-face { font-family: 'Sk-Modernist'; src: url('assets/fonts/Sk-Modernist-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: light; font-family: 'Sk-Modernist', sans-serif; color: #000; background: #fff; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: 120px; font-size: 16px; text-transform: lowercase; overflow-x: clip; }
button, input, select, summary, textarea { font: inherit; color: inherit; text-transform: lowercase; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:hover:not(:disabled):where(:not(.icon-button)), a:hover, summary:hover { text-decoration: underline; text-underline-offset: 5px; }
:focus-visible { outline: 1px solid #000; outline-offset: 5px; }
[hidden] { display: none !important; }
.page-pending > :not(noscript) { visibility: hidden !important; }
.page-pending::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: #000; z-index: 99; animation: page-wait 1s ease-in-out infinite alternate; }
@keyframes page-wait { from { opacity: .12; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .page-pending::before { animation: none; opacity: .2; } }
.header { position: absolute; top: 0; left: 0; width: 100%; z-index: 5; display: flex; align-items: flex-start; padding: 30px 40px; }
.header nav { display: flex; align-items: flex-start; gap: 16px; }
.header nav button { font-size: 18px; line-height: 1; letter-spacing: 0; white-space: nowrap; transition: font-size 1.2s cubic-bezier(.85, 0, .15, 1), line-height 1.2s cubic-bezier(.85, 0, .15, 1), letter-spacing 1.2s cubic-bezier(.85, 0, .15, 1), opacity .2s; }
.header nav button[aria-current] { font-size: clamp(40px, 7.5vw, 96px); line-height: .85; letter-spacing: -.055em; }
.header nav button:hover { text-decoration: none; opacity: 1; }
.header nav button:not([aria-current]) { opacity: .42; }
.wordmark { position: absolute; left: 50%; transform: translateX(-50%); font-size: 17px; }
.session-actions { position: absolute; right: 40px; top: 32px; display: flex; gap: 20px; font-size: 13px; }
#page-stack { display: grid; min-height: calc(100svh - 180px); }
#store, #info { grid-area: 1 / 1; }
main { min-height: calc(100svh - 180px); display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 480px) minmax(140px, 1fr); column-gap: 5vw; padding: 20px 6vw 45px; align-items: center; }
#empty-month { grid-column: 2; text-align: center; font-size: 12px; opacity: .5; }
.index { align-self: center; max-width: 245px; position: relative; }
.month-nav { position: absolute; bottom: calc(100% + 32px); display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.month-nav button { min-width: 24px; min-height: 32px; }
.month-nav button:disabled { opacity: .2; }
select { appearance: none; border: 0; border-radius: 0; background: transparent; font-size: 14px; cursor: pointer; max-width: 150px; }
.beat-list { min-height: 39px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.beat-list button { display: flex; gap: 16px; min-height: 39px; align-items: center; width: 100%; text-align: left; opacity: .35; }
.beat-list button > span:first-child { flex: 0 0 24px; text-align: center; font-variant-numeric: tabular-nums; }
.beat-list button[aria-current] { opacity: 1; }
.list-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.beat-actions { position: absolute; top: 100%; display: flex; align-items: center; gap: 0; margin-top: 6px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 40px; }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1; }
.beat-actions .icon-button { justify-content: center; width: 24px; height: 32px; }
.beat-actions .icon-button svg { width: 12px; height: 12px; }
#undo-remove { font-size: 11px; }
summary { cursor: pointer; list-style: none; width: fit-content; padding-block: 8px; }
summary::-webkit-details-marker { display: none; }
.canvas { width: 100%; outline: none; }
.artwork { width: clamp(180px, 26vh, 280px); aspect-ratio: 1 / 1; max-width: 100%; margin: 0 auto 32px; position: relative; display: grid; place-items: center; overflow: hidden; }
.artwork img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.image-upload { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }
.image-plus { font-size: 24px; }
.artwork:has(img:not([hidden])) .image-upload { opacity: 0; background: #fff; }
.artwork:has(img:not([hidden])):hover .image-upload, .artwork:has(img:not([hidden])):focus-within .image-upload { opacity: .9; }
input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.image-upload:focus-within, .file-label:focus-within { outline: 1px solid; outline-offset: 6px; }
.beat-heading { display: flex; align-items: center; gap: 16px; min-height: 42px; }
h1 { font-size: 16px; font-weight: 400; margin: 0; }
#beat-title { overflow-wrap: anywhere; }
#title-input { min-width: 0; flex: 1; border: 0; padding: 8px 0; font-size: 14px; }
input::placeholder { color: #000; opacity: .35; }
#copy-link { margin-left: auto; white-space: nowrap; font-size: 12px; }
.player { display: flex; align-items: center; gap: 18px; min-height: 52px; }
#play { font-size: 13px; width: 24px; height: 40px; flex-shrink: 0; }
#play:disabled { opacity: .3; }
#play-icon { fill: currentColor; stroke: none; }
#pause-icon { stroke-width: 2.5; }
#seek { appearance: none; height: 24px; min-width: 0; width: 100%; margin: 0; cursor: pointer; background: transparent; --progress: 0%; }
#seek::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(to right, #000 var(--progress), #0003 var(--progress)); }
#seek::-webkit-slider-thumb { appearance: none; width: 5px; height: 5px; border-radius: 50%; background: #000; margin-top: -2px; }
#seek::-moz-range-track { height: 1px; background: #0003; }
#seek::-moz-range-progress { height: 1px; background: #000; }
#seek::-moz-range-thumb { width: 5px; height: 5px; border: 0; background: #000; }
#seek:disabled { cursor: default; opacity: .5; }
#time { font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.audio-upload-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0 14px; font-size: 12px; }
.file-label { position: relative; display: inline-flex; cursor: pointer; }
input[type="file"]::file-selector-button { cursor: pointer; }
input[type="file"]:disabled, input[type="file"]:disabled::file-selector-button { cursor: wait; }
.hint { font-size: 11px; opacity: .5; line-height: 1.6; }
.leases { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 18px; }
.lease { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #000; padding: 15px 0; font-size: 13px; }
.checkout-note { font-size: 10px; margin: 4px 0 0; opacity: .45; }
#master-files { margin-top: 24px; font-size: 12px; }
.master-actions { display: flex; flex-wrap: wrap; gap: 24px; margin: 16px 0; }
.upload-action { flex: 1; min-width: 140px; }
.verify-master { display: block; margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }
.upload-error { margin: 10px 0 0; color: inherit; font-size: 13px; line-height: 1.5; }
.upload-error:empty { display: none; }
.artwork:has(img:not([hidden])) .image-upload.upload-active { opacity: .95; }
.file-label:has(input:disabled), .image-upload:has(input:disabled) { cursor: wait; }
.lease-editor { align-items: center; }
.lease-editor > span { white-space: nowrap; }
.lease-editor input { appearance: textfield; min-width: 0; width: 10ch; padding: 4px 0; border: 0; border-radius: 0; background: transparent; text-align: right; font-variant-numeric: tabular-nums; }
.lease-editor input::-webkit-inner-spin-button, .lease-editor input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.lease-editor input:focus { outline: none; box-shadow: none; }
.lease-editor input::placeholder { opacity: .6; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 10px; }
.fields label { display: grid; gap: 8px; }
.fields .wide { grid-column: 1 / -1; }
.fields input { background: #fff; border: 0; border-bottom: 1px solid #0003; border-radius: 0; padding: 7px 0; min-width: 0; width: 100%; }
.url-field { display: flex; align-items: center; border-bottom: 1px solid #0003; }
.url-field > span { opacity: .45; white-space: nowrap; }
.url-field input { border-bottom: 0; flex: 1; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 40px 24px; font-size: 11px; }
#draft-status { opacity: .5; }
#position { transition: opacity .42s ease; }
.info { min-height: calc(100svh - 180px); display: grid; place-items: center; padding: 70px 40px 100px; }
.about-content { width: min(100%, 480px); }
.info p, .info a { font-size: 16px; line-height: 1.7; }
#about-description { white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 34px; }
#description-input { width: 100%; resize: vertical; min-height: 130px; border: 0; background: #fff; line-height: 1.7; padding: 0; margin-bottom: 34px; }
#description-input::placeholder { color: #000; opacity: .35; }
.about-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.about-links a { overflow-wrap: anywhere; }
#about-settings { font-size: 12px; margin-top: 32px; }
.notice { position: fixed; bottom: 55px; left: 50%; transform: translateX(-50%); background: #fff; padding: 12px 20px; font-size: 12px; text-align: center; max-width: 90vw; z-index: 10; }
.notice:empty { display: none; }
.skip { position: fixed; top: -80px; left: 20px; background: #fff; padding: 10px; z-index: 20; }
.skip:focus { top: 10px; }
body.busy input, body.busy textarea, body.busy .beat-actions { pointer-events: none; opacity: .4; }
@media (min-width: 1600px) { main { grid-template-columns: 1fr 520px 1fr; padding-inline: 8vw; } .artwork { width: 320px; height: 320px; } }
@media (max-width: 900px) {
    body { padding-top: 110px; }
    .header { padding: 22px 24px; }
    main { grid-template-columns: 100px minmax(0, 1fr) 65px; gap: 25px; padding: 45px 24px 65px; }
    .month-nav { gap: 8px; }
    .month-nav select { font-size: 12px; }
    .artwork { width: 220px; }
    .list-title { display: none; }
    footer { padding-inline: 24px; }
}
@media (max-width: 600px) {
    body { padding-top: 100px; }
    .header { padding: 24px 20px; }
    .header nav { gap: 8px; }
    .header nav button { font-size: 12px; }
    .header nav button[aria-current] { font-size: clamp(30px, 9.5vw, 55px); }
    .wordmark { top: 24px; font-size: 13px; }
    .session-actions { top: 62px; right: 20px; font-size: 11px; gap: 16px; }
    #page-stack { min-height: calc(100svh - 165px); }
    main { min-height: calc(100svh - 165px); grid-template-columns: minmax(0, 1fr); align-content: start; padding: 24px 20px 50px; gap: 30px; }
    #empty-month { grid-column: 1; padding-block: 80px; }
    .index { grid-column: 1; grid-row: 1; align-self: start; max-width: none; }
    .month-nav { position: static; flex-wrap: nowrap; gap: 12px; margin-bottom: 18px; }
    .month-nav select { order: 0; flex-basis: auto; margin: 0; }
    .beat-list { max-height: 125px; }
    .beat-list button { min-height: 36px; height: 36px; }
    .canvas { grid-column: 1 / -1; grid-row: 2; max-width: 440px; justify-self: center; }
    .artwork { width: 200px; margin-bottom: 22px; }
    .beat-actions { position: static; }
    .leases { gap: 26px; }
    .player { gap: 12px; }
    footer { padding: 18px 20px; font-size: 10px; flex-wrap: wrap; }
    #draft-status { order: 3; }
    .info { min-height: calc(100svh - 165px); padding: 65px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
