:root {
  color-scheme: dark;
  --ink: #f6f1e8;
  --muted: #aaa29a;
  --paper: #0b0c0f;
  --panel: #15171c;
  --panel-strong: #101218;
  --line: #2a2e36;
  --green: #b8ff57;
  --cyan: #68d8ff;
  --coral: #ff6b5f;
  --yellow: #f7c948;
  --violet: #8d75ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(184, 255, 87, 0.11), transparent 28%),
    radial-gradient(circle at 76% 0%, rgba(255, 107, 95, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 12, 15, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #050608;
  box-shadow: 4px 4px 0 var(--green);
  overflow: hidden;
}

.brand-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav button,
.ghost,
.primary,
.icon-button {
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 3px 3px 0 rgba(184, 255, 87, 0.2);
}

.nav button {
  padding: 0 14px;
}

.nav .active {
  background: var(--green);
  color: #090b0f;
  box-shadow: none;
}

.primary {
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  background: var(--green);
  color: #090b0f;
}

.primary.is-disabled,
.primary:disabled {
  border-color: var(--line);
  background: #090b0f;
  color: var(--muted);
  cursor: default;
  box-shadow: none;
}

.ghost {
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
}

.icon-button {
  width: 40px;
  padding: 0;
  background: #101218;
}

.landing {
  padding: clamp(18px, 4vw, 48px);
  padding-bottom: 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  min-height: min(520px, calc(100vh - 156px));
}

.hero-copy {
  min-width: 0;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pulse {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 95, 0.18);
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 20px 0 0;
  color: #d8d0c7;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
}

.search {
  min-width: 0;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 16px;
  background: #101218;
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(104, 216, 255, 0.2);
  font-weight: 750;
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  min-height: 34px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 7px 11px;
  background: #101218;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.chip.hot {
  background: var(--yellow);
  color: #090b0f;
}

.featured,
.project-card,
.side-panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow), 6px 6px 0 rgba(184, 255, 87, 0.18);
}

.featured {
  display: grid;
  gap: 18px;
  min-height: 390px;
  padding: 18px;
}

.cover-art {
  position: relative;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 15%, rgba(184, 255, 87, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%),
    #1d1d1d;
  overflow: hidden;
}

.cover-art::before,
.project-cover::before {
  content: "";
  position: absolute;
  inset: 26px 18px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 10px,
      rgba(184, 255, 87, 0.85) 10px 13px,
      transparent 13px 23px,
      rgba(104, 216, 255, 0.72) 23px 26px,
      transparent 26px 38px,
      rgba(255, 107, 95, 0.7) 38px 41px
    );
  clip-path: polygon(0 52%, 8% 40%, 15% 60%, 24% 28%, 34% 72%, 43% 42%, 51% 64%, 62% 34%, 72% 76%, 82% 38%, 91% 58%, 100% 48%, 100% 100%, 0 100%);
}

.badges,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge,
.privacy {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.public,
.privacy.public {
  color: var(--green);
}

.badge.private,
.privacy.private {
  color: var(--cyan);
}

.featured h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.featured p {
  margin: 0;
  color: #d8d8d8;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  margin-top: 28px;
}

.main-column {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.project-cover {
  position: relative;
  min-height: 148px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #090b0f;
}

.project-cover.green {
  background: linear-gradient(135deg, #172014, #25371a 54%, #b8ff57);
}

.project-cover.cyan {
  background: linear-gradient(135deg, #101f27, #173a47 54%, #68d8ff);
}

.project-cover.coral {
  background: linear-gradient(135deg, #271313, #4a211f 54%, #ff6b5f);
}

.project-cover.violet {
  background: linear-gradient(135deg, #181522, #2f2855 54%, #8d75ff);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.project-title {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.1;
}

.project-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.sidebar {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.side-panel {
  overflow: hidden;
}

.side-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.side-panel h3 {
  margin: 0;
  font-size: 16px;
}

.metric-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.metric,
.activity,
.visibility-row,
.empty {
  background: #12141a;
}

.metric {
  min-width: 0;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.metric span,
.activity span,
.visibility-row span,
.empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.activity,
.visibility-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.activity:first-child,
.visibility-row:first-child {
  border-top: 0;
}

.visibility-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.visibility-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.empty {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  margin-bottom: 28px;
}

.project-detail .cover-art {
  min-height: 320px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow), 6px 6px 0 rgba(184, 255, 87, 0.18);
}

.detail-copy {
  min-width: 0;
}

.detail-copy h1 {
  margin-top: 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.track-list {
  display: grid;
  gap: 14px;
}

.track-panel h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}

.version-list {
  display: grid;
}

.version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #12141a;
}

.version-row:first-child {
  border-top: 0;
}

.version-row div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.version-row strong {
  overflow-wrap: anywhere;
}

.version-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.version-row audio {
  width: 100%;
  min-width: 0;
  height: 40px;
}

@media (max-width: 1180px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .nav {
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 12px;
  }

  .landing {
    padding: 16px 12px 48px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 74px);
  }

  .search-row,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .search-row .primary,
  .search {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .version-row {
    grid-template-columns: 1fr;
  }
}

/* Shared navigation wraps with project actions on narrow screens. */
@media(max-width:600px){.topbar{grid-template-columns:minmax(0,1fr);gap:10px}.nav{flex-wrap:wrap;justify-content:flex-start}}
