@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: dark;
  --background: #111315;
  --text: #f8eee2;
  --muted: #c0b4a9;
  --accent: #edb77d;
  --line: #393432;
  font-family: 'DM Sans', Arial, sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 85% 3%, #302423 0%, transparent 49%), var(--background);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(1240px, 90%); margin-inline: auto; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-header { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -.065em; }
.brand span { font-weight: 400; }
nav { display: flex; gap: clamp(18px, 4vw, 42px); font-size: 14px; }
.release {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(52px, 8vw, 110px) 0;
}
.cover { background: #222329; border: 1px solid #6a5145; box-shadow: 0 18px 55px #0005; }
.cover img { display: block; width: 100%; height: auto; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  font-weight: 700;
}
.eyebrow span { display: inline-block; vertical-align: 1px; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(68px, 8.2vw, 133px); line-height: .82; margin: 0; letter-spacing: -.045em; }
h2 { font-size: clamp(44px, 5vw, 66px); line-height: 1; margin: 0; letter-spacing: -.025em; }
.description { color: var(--muted); margin: 22px 0 27px; font-size: 16px; line-height: 1.5; }
.player audio { max-width: 100%; }
.custom-player { display: flex; align-items: center; gap: 16px; }
.play {
  width: 53px; height: 53px; flex: none; border-radius: 50%; border: 1px solid #9c7a5e;
  background: transparent; color: var(--accent); cursor: pointer; display: grid; place-items: center;
}
.play:hover { background: #edb77d22; }
.play-symbol { margin-left: 3px; border-block: 7px solid transparent; border-left: 11px solid currentColor; }
.play[aria-pressed="true"] .play-symbol {
  margin: 0; width: 11px; height: 14px; border: 0; border-inline: 3px solid currentColor;
}
.timeline { flex: 1; min-width: 0; }
.wave { position: relative; height: 40px; }
.bars { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 100%; }
.bar { flex: 1; min-width: 0; height: var(--peak); border-radius: 8px; background: #806853; }
.bar.played { background: var(--accent); }
#seek { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wave:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.times, .player-status { color: var(--muted); font-size: 11px; }
.times { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 26px; }
.download {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  background: var(--accent); color: #1b1613; padding: 10px 17px; font-weight: 700; font-size: 14px;
}
.download:hover { background: #ffce9d; color: #1b1613; }
.terms-link { display: inline-block; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #9c7a5e; }
.terms-link span { margin-left: 3px; }
.licence { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 42px 0 53px; }
.licence-copy { max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.65; }
.licence-copy p { margin: 0 0 13px; }
.licence-copy a, .licence-copy strong { color: var(--text); }
.licence-copy a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); min-height: 70px; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .site-header { min-height: 63px; }
  .release { grid-template-columns: 1fr; gap: 26px; padding-block: 30px 50px; }
  .title-break { display: none; }
  h1 { font-size: clamp(62px, 12vw, 92px); }
  .licence { grid-template-columns: 1fr; padding-block: 32px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.download-dialog {
  width: min(480px, calc(100% - 32px));
  border: 1px solid #6a5145;
  padding: clamp(24px, 6vw, 38px);
  background: #211b1b;
  color: var(--text);
  box-shadow: 0 18px 70px #0008;
}
.download-dialog::backdrop { background: #0b0b0cbd; }
.download-dialog h2 { font-size: clamp(37px, 8vw, 52px); }
.download-dialog p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.dialog-close { position: absolute; right: 12px; top: 12px; }
.dialog-close button {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
.dialog-close button:hover { border-color: #9c7a5e; }
.download-help { margin: 22px 0 0; font-size: 13px; }

.store-heading { padding: clamp(38px, 7vw, 92px) 0 34px; }
.store-heading h1 { font-size: clamp(56px, 8vw, 105px); line-height: .98; }
.store-heading p, .track-meta, .store-panel p, .beat-card span { color: var(--muted); }
.release h1 { line-height: .92; overflow-wrap: anywhere; }
.beat-preview { max-width: 460px; }
.preview-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.preview-controls[hidden] { display: none; }
.preview-toggle { min-width: 72px; }
.preview-controls input.preview-seek { min-height: 44px; padding: 0; accent-color: var(--accent); cursor: pointer; }
.preview-time, .preview-status { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.store-panel { border-top: 1px solid var(--line); padding: 36px 0; max-width: 820px; }
.store-panel h2 { margin-bottom: 17px; }
.store-panel p { max-width: 68ch; line-height: 1.6; }
.store-panel details { margin: 18px 0; }
.store-panel summary { cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; }
.check input { width: auto; }
.filters, .editor-fields { display: grid; align-items: end; gap: 14px; }
.filters { grid-template-columns: 2fr 1fr .75fr auto; margin: 0 0 32px; }
.editor-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 730px; }
.editor-fields .wide { grid-column: 1 / -1; }
label:not(.check) { display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
input:not([type=checkbox]), textarea { width: 100%; min-width: 0; background: #231e1d; color: var(--text); border: 1px solid #69554a; border-radius: 3px; padding: 10px; min-height: 44px; font: inherit; }
input[type=file] { padding: 8px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button.download { border: 0; }
.plain { color: var(--text); background: transparent; border: 1px solid #69554a; min-height: 44px; padding: 8px 14px; }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; padding-bottom: 32px; }
.beat-card { display: grid; align-content: start; gap: 9px; }
.beat-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.beat-card strong { font-size: 22px; }
.beat-card span { font-size: 14px; }
.release-list { list-style: none; margin: 0; padding: 0; }
.release-list li { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pagination { margin-bottom: 22px; }
@media (max-width: 760px) { .filters, .editor-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 390px) { .editor-fields { grid-template-columns: 1fr; } }
